[03:01:31]OFD Sender: No OFD packet to send [03:01:36]OFD Sender: No OFD packet to send [03:01:41]OFD Sender: No OFD packet to send [03:01:46]OFD Sender: No OFD packet to send [03:01:51]OFD Sender: No OFD packet to send [03:01:56]OFD Sender: No OFD packet to send [03:02:01]OFD Sender: No OFD packet to send [03:02:06]OFD Sender: No OFD packet to send [03:02:11]OFD Sender: No OFD packet to send [03:02:16]OFD Sender: No OFD packet to send [03:02:22]OFD Sender: No OFD packet to send [03:02:27]OFD Sender: No OFD packet to send [03:02:32]OFD Sender: No OFD packet to send [03:02:37]OFD Sender: No OFD packet to send [03:02:42]OFD Sender: No OFD packet to send [03:02:47]OFD Sender: No OFD packet to send [03:02:52]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:47]OFD Sender: No OFD packet to send [03:06:52]OFD Sender: No OFD packet to send [03:06:57]OFD Sender: No OFD packet to send [03:07:02]OFD Sender: No OFD packet to send [03:07:07]OFD Sender: No OFD packet to send [03:07:12]OFD Sender: No OFD packet to send [03:07:17]OFD Sender: No OFD packet to send [03:07:22]OFD Sender: No OFD packet to send [03:07:27]OFD Sender: No OFD packet to send [03:07:32]OFD Sender: No OFD packet to send [03:07:37]OFD Sender: No OFD packet to send [03:07:42]OFD Sender: No OFD packet to send [03:07:47]OFD Sender: No OFD packet to send [03:07:52]OFD Sender: No OFD packet to send [03:07:57]OFD Sender: No OFD packet to send [03:08:02]OFD Sender: No OFD packet to send [03:08:07]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:47]accept exits with 9 [03:14:47]New connection [03:14:47]New thread 3066830180 created [03:14:47]Thread 3066973540 joined [03:14:47]Waiting for new connection... [03:14:47] Sock 9.Parse request [03:14:47]Sock 9.Check first char [03:14:47]Sock 9.First char is OK [03:14:47]request: POST /json_proto HTTP/1.0 [03:14:47]Method: POST [03:14:47]URL: /json_proto [03:14:47]Method is POST - this is cgi request [03:14:47]url: /json_proto [03:14:47]query_string will be loaded in cgi processing [03:14:47]execute_cgi json_proto POST (null) [03:14:47]execute_cgi path=json_proto method=POST [03:14:47]POST find Content-Length [03:14:47]Host: 172.17.46.196:8080 [03:14:47]Content-Length: 619 [03:14:47]Content-Type: application/json [03:14:47] [03:14:47]POST finish read [03:14:47]Found Content-Length = 619 [03:14:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189608", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:14:47]execute_script... [03:14:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189608", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:14:47]POST & json_proto [03:14:47]process_json_proto [03:14:47]json parsed OK: [03:14:47]protocol is kg_v1.0 [03:14:47]action value=close_receipt [03:14:47]process_action close_receipt [03:14:47]cmd_close_receipt [03:14:47]MH_GetDate [03:14:47]Write to MH i2c: F0 00 00 5D 2E 7A [03:14:47]Write i2c OK [03:14:47]MH_I2C_Read... [03:14:47]Read from MH i2c: F0 [03:14:47]MH_I2C_Read... [03:14:47]Read from MH i2c: F0 09 00 [03:14:47]MH_I2C_Read... [03:14:47]Read from MH i2c: F0 09 00 5D 2E 00 2B C4 BE 66 07 E8 5D 66 48 [03:14:47]GetLastDocTimeStamp 1723776006 [03:14:47]current date 1723778091 [03:14:47]FM_GetShiftState [03:14:47]SAM_PROTO_GetShiftState [03:14:47]wFMCommunicate request_size=4 [03:14:47]MH_SAM_APDU [03:14:47]CAPDU: 80 13 01 00 [03:14:47]Write to MH i2c: E2 08 00 5E 2E 80 13 01 00 00 00 00 00 09 [03:14:47]Write i2c OK [03:14:47]MH_I2C_Read... [03:14:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:14:47]Read from MH i2c: E2 [03:14:47]MH_I2C_Read... [03:14:47]Read from MH i2c: E2 0E 00 [03:14:47]MH_I2C_Read... [03:14:47]Read from MH i2c: E2 0E 00 5E 2E 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 7F [03:14:47]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [03:14:47]wFMCommunicate OK [03:14:47]SAM_PROTO_GetShiftState done [03:14:47]FM_GetShiftState done [03:14:47]opened in 1723766958 [03:14:47]opened+sec_in_day 1723853358 [03:14:47]quantity*price = 14000 [03:14:47]sum+1 = 14001 [03:14:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 16 16.08.2024 03:14 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49368 ФПД: 7073350911224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T031451&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49368&fm=7073350911224&tin=02508201610067®Number=0000000000092546&sum=14000 0 [03:14:48]StoreToDocumentArchive [03:14:48]shift 464 fd 49368 [03:14:48]save to /storage/0464/doc_00049368 [03:14:48]save last doc name /storage/0464/doc_00049368 to /storage/kkm_last_doc_name [03:14:48]save OK [03:14:48]Clear old archive folders... [03:14:48]ProcessDocumentItem done err = 0, tmpTLVsize=271 [03:14:48]tlvbuf is 00E127A0 [03:14:48]SAM_PROTO_ClearQueue [03:14:48]wFMCommunicate request_size=4 [03:14:48]MH_SAM_APDU [03:14:48]CAPDU: 80 09 00 00 [03:14:48]Write to MH i2c: E2 08 00 6B 2E 80 09 00 00 00 00 00 00 0B [03:14:48]Write i2c OK [03:14:48]MH_I2C_Read... [03:14:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:14:48]Read from MH i2c: E2 [03:14:48]MH_I2C_Read... [03:14:48]Read from MH i2c: E2 03 00 [03:14:48]MH_I2C_Read... [03:14:48]Read from MH i2c: E2 03 00 6B 2E 00 90 00 0D [03:14:48]RAPDU: 90 00 [03:14:48]wFMCommunicate OK [03:14:48]SAM_PROTO_ClearQueue done [03:14:48]KKMCreateOFDPacket [03:14:48]OFDProtocolAddRootSTLVToBuf [03:14:48]FM_MakeSignedData [03:14:48]FM_MakeSignedData [03:14:48]SAM_PROTO_SignData [03:14:48]wFMCommunicate request_size=4 [03:14:48]MH_SAM_APDU [03:14:48]CAPDU: 80 0D 01 02 [03:14:48]Write to MH i2c: E2 08 00 6C 2E 80 0D 01 02 00 00 00 00 13 [03:14:48]Write i2c OK [03:14:48]MH_I2C_Read... [03:14:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:14:49]Read from MH i2c: E2 [03:14:49]MH_I2C_Read... [03:14:49]Read from MH i2c: E2 03 00 [03:14:49]MH_I2C_Read... [03:14:49]Read from MH i2c: E2 03 00 6C 2E 00 90 00 0E [03:14:49]RAPDU: 90 00 [03:14:49]wFMCommunicate OK [03:14:49]wFMCommunicate request_size=255 [03:14:49]MH_SAM_APDU [03:14:49]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 2B C4 BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [03:14:49]Write to MH i2c: E2 02 01 6D 2E 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 2B C4 BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 8C [03:14:49]Write i2c OK [03:14:49]MH_I2C_Read... [03:14:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:14:49]Read from MH i2c: E2 [03:14:49]MH_I2C_Read... [03:14:49]Read from MH i2c: E2 03 00 [03:14:49]MH_I2C_Read... [03:14:49]Read from MH i2c: E2 03 00 6D 2E 00 90 00 0F [03:14:49]RAPDU: 90 00 [03:14:49]wFMCommunicate OK [03:14:49]wFMCommunicate request_size=30 [03:14:49]MH_SAM_APDU [03:14:49]CAPDU: 80 0D 02 02 19 30 38 37 31 38 30 30 10 04 04 00 D8 C0 00 00 35 04 06 00 06 6E E4 91 84 F8 [03:14:49]Write to MH i2c: E2 21 00 6E 2E 80 0D 02 02 19 00 30 38 37 31 38 30 30 10 04 04 00 D8 C0 00 00 35 04 06 00 06 6E E4 91 84 F8 00 00 04 [03:14:49]Write i2c OK [03:14:49]MH_I2C_Read... [03:14:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:14:49]Read from MH i2c: E2 [03:14:49]MH_I2C_Read... [03:14:49]Read from MH i2c: E2 03 00 [03:14:49]MH_I2C_Read... [03:14:49]Read from MH i2c: E2 03 00 6E 2E 00 90 00 10 [03:14:49]RAPDU: 90 00 [03:14:49]wFMCommunicate OK [03:14:49]wFMCommunicate request_size=4 [03:14:49]MH_SAM_APDU [03:14:49]CAPDU: 80 0D 03 02 [03:14:49]Write to MH i2c: E2 08 00 6F 2E 80 0D 03 02 00 00 00 00 18 [03:14:49]Write i2c OK [03:14:49]MH_I2C_Read... [03:14:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:14:49]Read from MH i2c: E2 [03:14:49]MH_I2C_Read... [03:14:49]Read from MH i2c: E2 0B 00 [03:14:49]MH_I2C_Read... [03:14:49]Read from MH i2c: E2 0B 00 6F 2E 00 F0 97 D0 FC 6D 53 08 D3 90 00 07 [03:14:49]RAPDU: F0 97 D0 FC 6D 53 08 D3 90 00 [03:14:49]wFMCommunicate OK [03:14:49]SAM_PROTO_SignData done [03:14:49]FM_MakeSignedData done [03:14:49]CreateOFDProtocolMessage [03:14:49]wFMCommunicate request_size=4 [03:14:49]MH_SAM_APDU [03:14:49]CAPDU: 80 11 00 00 [03:14:49]Write to MH i2c: E2 08 00 70 2E 80 11 00 00 00 00 00 00 18 [03:14:49]Write i2c OK [03:14:49]MH_I2C_Read... [03:14:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:14:49]Read from MH i2c: E2 [03:14:49]MH_I2C_Read... [03:14:49]Read from MH i2c: E2 17 00 [03:14:49]MH_I2C_Read... [03:14:49]Read from MH i2c: E2 17 00 70 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 63 [03:14:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [03:14:49]wFMCommunicate OK [03:14:49]CreateOFDProtocolMessage done [03:14:49]OFDSenderStorePacket 49368 [03:14:49]StoreOFDPacket docnum=49368 [03:14:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 21 2C 1B 01 B6 67 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 2B C4 BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D8 C0 00 00 35 04 06 00 06 6E E4 91 84 F8 F0 97 D0 FC 6D 53 08 D3 [03:14:49]CheckFolder [03:14:49]dirname=/storage/ofd_packets [03:14:49]CheckFolder done [03:14:49]ProducePacketName [03:14:49]name=ofd_packets/00049368 [03:14:49]NVStorageSaveData ofd_packets/00049368 [03:14:49]File name is /storage/ofd_packets/00049368 [03:14:49]Write 321 bytes [03:14:49]NVStorageSaveData done [03:14:49]OFDSenderStorePacket done [03:14:49]KKMCreateOFDPacket done [03:14:49]NVStorageSaveData kkm_last_timestamp [03:14:49]File name is /storage/kkm_last_timestamp [03:14:49]Write 4 bytes [03:14:49]NVStorageSaveData done [03:14:49]ExternCall_PrintAddStr [03:14:49]wPrintStart [03:14:49]Write to MH i2c: 01 00 00 71 2E 9F [03:14:49]Write i2c OK [03:14:49]MH_I2C_Read... [03:14:49]Read from MH i2c: 01 [03:14:49]MH_I2C_Read... [03:14:49]Read from MH i2c: 01 07 00 [03:14:49]MH_I2C_Read... [03:14:49]Read from MH i2c: 01 07 00 71 2E 00 00 00 00 00 FF 0F B4 [03:14:49]RasterBufferAndPrint [03:14:49]line Счет N : (3)189608 [03:14:49]line ИНН: 02508201610067 [03:14:49]line Контрольно-Кассовый Чек [03:14:49]line ПРОДАЖА [03:14:49]line Товар: 47802995 [03:14:49]line Сигареты Winston XS Silver [03:14:49]line 1.000 * 140.00 [03:14:49]line = 140.00 [03:14:49]line НДС 12% НСП 1% [03:14:49]line > о реализуемом товаре [03:14:49]line ИТОГО: 140.00 [03:14:49]line НСП 1% : 1.24 [03:14:49]line НДС 12% : 14.87 [03:14:49]line Наличными: 140.00 [03:14:49]line Безнал.: 0.00 [03:14:49]line Место: АЗС № 95 "Партнер Нефть" [03:14:49]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [03:14:49]line СНО: Общий режим [03:14:49]line Чек 16 16.08.2024 03:14 [03:14:49]line Смена: 464 ФФД: 1.0 [03:14:49]line ЗНМ: 0300000078 [03:14:49]line РНМ: 0000000000092546 [03:14:49]line Версия ККМ: 001 [03:14:49]line ФМ: 0000000000871800 [03:14:49]line ФД: 49368 [03:14:49]line ФПД: 7073350911224 [03:14:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T031451&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49368&fm=7073350911224&tin=02508201610067®Number=0000000000092546&sum=14000 [03:14:49]line 0 [03:14:49]OFD Sender: Processing packet 49368 [packets to send 21, broken 20] [03:14:49]ProducePacketName [03:14:49]name=ofd_packets/00049368 [03:14:49]OFD Sender: To server: pG, [03:14:49]CommunicateWithHost lk.salyk.kg:30040 [03:14:49]ConnectInit lk.salyk.kg [03:14:49]written 0, free lines is 4095 [03:14:49]Connected sock=10 [03:14:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 21 2C 1B 01 B6 67 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 2B C4 BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D8 C0 00 00 35 04 06 00 06 6E E4 91 84 F8 F0 97 D0 FC 6D 53 08 D3 [03:14:50]Write to MH i2c: 01 00 00 99 2E C7 [03:14:50]Write i2c OK [03:14:50]MH_I2C_Read... [03:14:50]Read from MH i2c: 01 [03:14:50]MH_I2C_Read... [03:14:50]Read from MH i2c: 01 07 00 [03:14:50]MH_I2C_Read... [03:14:50]Read from MH i2c: 01 07 00 99 2E 00 00 00 00 00 FC 0C D6 [03:14:50]RasterBufferAndPrint [03:14:50]line [03:14:50]line [03:14:50]line [03:14:50]line [03:14:50]line [03:14:50]written 0, free lines is 3329 [03:14:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 15 A1 47 00 90 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D8 C0 00 00 F4 03 04 00 6B 6F BE 66 B6 04 01 00 00 47 C7 B4 3B 52 E9 A3 E8 [03:14:50]CommunicateWithHost err = 0 [03:14:50]CheckOFDResponse [03:14:50]1017 (14) - 77093643461234 [03:14:50]1041 (16) - 0000000000871800 [03:14:50]1040 (4) - 49368 [03:14:50]1012 (4) - 15.08.2024 21:13 [03:14:50]1206 (1) - 0 [03:14:50]OFD Sender: Remove packet 49368 [03:14:50]ProducePacketName [03:14:50]name=ofd_packets/00049368 [03:14:50]NVStorageDeleteData [03:14:50]MH_Cut [03:14:50]Write to MH i2c: D1 01 00 A0 2E 01 A0 [03:14:50]Write i2c OK [03:14:50]MH_I2C_Read... [03:14:50]Read from MH i2c: D1 [03:14:50]MH_I2C_Read... [03:14:50]Read from MH i2c: D1 01 00 [03:14:50]MH_I2C_Read... [03:14:50]Read from MH i2c: D1 01 00 A0 2E 00 9F [03:14:50]Write to MH i2c: 01 00 00 A1 2E CF [03:14:50]Write i2c OK [03:14:50]MH_I2C_Read... [03:14:50]OFD Sender: No OFD packet to send [03:14:50]*** Cut start [03:14:50]*** Purtial cut [03:14:50]*** CUTSNS_PIN = 0 [03:14:51]*** Stage 1: CUTSNS_PIN = 1 [03:14:53]Read from MH i2c: 01 [03:14:53]MH_I2C_Read... [03:14:53]*** Stop cut motor [03:14:53]*** Cut end [03:14:53]Read from MH i2c: 01 07 00 [03:14:53]MH_I2C_Read... [03:14:53]Read from MH i2c: 01 07 00 A1 2E 00 00 00 00 00 FF 0F E4 [03:14:53]process_action close_receipt done [03:14:53]requested_data is exist [03:14:53]produce_requested_data [03:14:53]requested_item fm.sn is exist - process it [03:14:53]wFMCommunicate request_size=4 [03:14:53]MH_SAM_APDU [03:14:53]CAPDU: 80 11 00 00 [03:14:53]Write to MH i2c: E2 08 00 A2 2E 80 11 00 00 00 00 00 00 4A [03:14:53]Write i2c OK [03:14:53]MH_I2C_Read... [03:14:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:14:53]Read from MH i2c: E2 [03:14:53]MH_I2C_Read... [03:14:53]Read from MH i2c: E2 17 00 [03:14:53]MH_I2C_Read... [03:14:53]Read from MH i2c: E2 17 00 A2 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 95 [03:14:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [03:14:53]wFMCommunicate OK [03:14:53]requested_item fd.num is exist - process it [03:14:53]SAM_PROTO_GetFieldsCounters [03:14:53]wFMCommunicate request_size=4 [03:14:53]MH_SAM_APDU [03:14:53]CAPDU: 80 13 00 00 [03:14:53]Write to MH i2c: E2 08 00 A3 2E 80 13 00 00 00 00 00 00 4D [03:14:53]Write i2c OK [03:14:53]MH_I2C_Read... [03:14:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:14:53]Read from MH i2c: E2 [03:14:53]MH_I2C_Read... [03:14:53]Read from MH i2c: E2 62 00 [03:14:53]MH_I2C_Read... [03:14:53]Read from MH i2c: E2 62 00 A3 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D8 C0 00 00 0E 04 04 00 D0 01 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 00 [03:14:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D8 C0 00 00 0E 04 04 00 D0 01 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 [03:14:53]wFMCommunicate OK [03:14:53]SAM_PROTO_GetFieldsCounters done [03:14:53]requested_item shift.num is exist - process it [03:14:53]requested_item shift.opened is exist - process it [03:14:53]req_shift_opened [03:14:53]FM_GetShiftState [03:14:53]SAM_PROTO_GetShiftState [03:14:53]wFMCommunicate request_size=4 [03:14:53]MH_SAM_APDU [03:14:53]CAPDU: 80 13 01 00 [03:14:53]Write to MH i2c: E2 08 00 A4 2E 80 13 01 00 00 00 00 00 4F [03:14:53]Write i2c OK [03:14:53]MH_I2C_Read... [03:14:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:14:53]Read from MH i2c: E2 [03:14:53]MH_I2C_Read... [03:14:53]Read from MH i2c: E2 0E 00 [03:14:53]MH_I2C_Read... [03:14:53]Read from MH i2c: E2 0E 00 A4 2E 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 C5 [03:14:53]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [03:14:53]wFMCommunicate OK [03:14:53]SAM_PROTO_GetShiftState done [03:14:53]FM_GetShiftState done [03:14:53]req_shift_opened done [03:14:53]requested_item shift.open_date is exist - process it [03:14:53]req_shift_open_date [03:14:53]req_shift_open_date done [03:14:53]produce_requested_data done [03:14:53]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49368,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [03:14:53]process_action_free close_receipt [03:14:53]json_value_free [03:14:53]json_value_free done [03:14:53]process_json_proto returns [03:14:53]Send response to host [03:14:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49368,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [03:14:53]free response buf [03:14:53]execute_script done [03:14:53]execute_script returns [03:14:53]free content buf [03:14:53]Sock 9.Close socket [03:14:53]Sock 9.Thread stoped [03:14:55]OFD Sender: No OFD packet to send [03:15:00]OFD Sender: No OFD packet to send [03:15:05]OFD Sender: No OFD packet to send [03:15:10]OFD Sender: No OFD packet to send [03:15:15]OFD Sender: No OFD packet to send [03:15:20]OFD Sender: No OFD packet to send [03:15:25]OFD Sender: No OFD packet to send [03:15:30]OFD Sender: No OFD packet to send [03:15:35]OFD Sender: No OFD packet to send [03:15:40]OFD Sender: No OFD packet to send [03:15:45]OFD Sender: No OFD packet to send [03:15:50]OFD Sender: No OFD packet to send [03:15:55]OFD Sender: No OFD packet to send [03:16:00]OFD Sender: No OFD packet to send [03:16:05]OFD Sender: No OFD packet to send [03:16:10]OFD Sender: No OFD packet to send [03:16:15]OFD Sender: No OFD packet to send [03:16:20]OFD Sender: No OFD packet to send [03:16:25]OFD Sender: No OFD packet to send [03:16:30]OFD Sender: No OFD packet to send [03:16:35]OFD Sender: No OFD packet to send [03:16:40]OFD Sender: No OFD packet to send [03:16:45]OFD Sender: No OFD packet to send [03:16:50]OFD Sender: No OFD packet to send [03:16:55]OFD Sender: No OFD packet to send [03:17:00]OFD Sender: No OFD packet to send [03:17:05]OFD Sender: No OFD packet to send [03:17:10]OFD Sender: No OFD packet to send [03:17:15]OFD Sender: No OFD packet to send [03:17:20]OFD Sender: No OFD packet to send [03:17:25]OFD Sender: No OFD packet to send [03:17:30]OFD Sender: No OFD packet to send [03:17:35]OFD Sender: No OFD packet to send [03:17:40]OFD Sender: No OFD packet to send [03:17:45]OFD Sender: No OFD packet to send [03:17:50]OFD Sender: No OFD packet to send [03:17:55]OFD Sender: No OFD packet to send [03:18:00]OFD Sender: No OFD packet to send [03:18:05]OFD Sender: No OFD packet to send [03:18:10]OFD Sender: No OFD packet to send [03:18:15]OFD Sender: No OFD packet to send [03:18:20]OFD Sender: No OFD packet to send [03:18:25]OFD Sender: No OFD packet to send [03:18:30]OFD Sender: No OFD packet to send [03:18:35]OFD Sender: No OFD packet to send [03:18:40]OFD Sender: No OFD packet to send [03:18:45]OFD Sender: No OFD packet to send [03:18:50]OFD Sender: No OFD packet to send [03:18:55]OFD Sender: No OFD packet to send [03:19:00]OFD Sender: No OFD packet to send [03:19:05]OFD Sender: No OFD packet to send [03:19:10]OFD Sender: No OFD packet to send [03:19:15]OFD Sender: No OFD packet to send [03:19:20]OFD Sender: No OFD packet to send [03:19:25]OFD Sender: No OFD packet to send [03:19:30]OFD Sender: No OFD packet to send [03:19:35]OFD Sender: No OFD packet to send [03:19:40]OFD Sender: No OFD packet to send [03:19:45]OFD Sender: No OFD packet to send [03:19:50]OFD Sender: No OFD packet to send [03:19:55]OFD Sender: No OFD packet to send [03:20:01]OFD Sender: No OFD packet to send [03:20:06]OFD Sender: No OFD packet to send [03:20:11]OFD Sender: No OFD packet to send [03:20:16]OFD Sender: No OFD packet to send [03:20:21]OFD Sender: No OFD packet to send [03:20:26]OFD Sender: No OFD packet to send [03:20:31]OFD Sender: No OFD packet to send [03:20:36]OFD Sender: No OFD packet to send [03:20:41]OFD Sender: No OFD packet to send [03:20:46]OFD Sender: No OFD packet to send [03:20:51]OFD Sender: No OFD packet to send [03:20:56]OFD Sender: No OFD packet to send [03:21:01]OFD Sender: No OFD packet to send [03:21:06]OFD Sender: No OFD packet to send [03:21:11]OFD Sender: No OFD packet to send [03:21:16]OFD Sender: No OFD packet to send [03:21:21]OFD Sender: No OFD packet to send [03:21:26]OFD Sender: No OFD packet to send [03:21:31]OFD Sender: No OFD packet to send [03:21:36]OFD Sender: No OFD packet to send [03:21:41]OFD Sender: No OFD packet to send [03:21:46]OFD Sender: No OFD packet to send [03:21:51]OFD Sender: No OFD packet to send [03:21:56]OFD Sender: No OFD packet to send [03:22:01]OFD Sender: No OFD packet to send [03:22:06]OFD Sender: No OFD packet to send [03:22:11]OFD Sender: No OFD packet to send [03:22:16]OFD Sender: No OFD packet to send [03:22:21]OFD Sender: No OFD packet to send [03:22:26]OFD Sender: No OFD packet to send [03:22:31]OFD Sender: No OFD packet to send [03:22:36]OFD Sender: No OFD packet to send [03:22:41]OFD Sender: No OFD packet to send [03:22:46]OFD Sender: No OFD packet to send [03:22:51]OFD Sender: No OFD packet to send [03:22:56]OFD Sender: No OFD packet to send [03:23:01]OFD Sender: No OFD packet to send [03:23:06]OFD Sender: No OFD packet to send [03:23:11]OFD Sender: No OFD packet to send [03:23:16]OFD Sender: No OFD packet to send [03:23:21]OFD Sender: No OFD packet to send [03:23:26]OFD Sender: No OFD packet to send [03:23:31]OFD Sender: No OFD packet to send [03:23:36]OFD Sender: No OFD packet to send [03:23:41]OFD Sender: No OFD packet to send [03:23:46]OFD Sender: No OFD packet to send [03:23:51]OFD Sender: No OFD packet to send [03:23:56]OFD Sender: No OFD packet to send [03:24:01]OFD Sender: No OFD packet to send [03:24:06]OFD Sender: No OFD packet to send [03:24:11]OFD Sender: No OFD packet to send [03:24:16]OFD Sender: No OFD packet to send [03:24:21]OFD Sender: No OFD packet to send [03:24:26]OFD Sender: No OFD packet to send [03:24:31]OFD Sender: No OFD packet to send [03:24:36]OFD Sender: No OFD packet to send [03:24:41]OFD Sender: No OFD packet to send [03:24:46]OFD Sender: No OFD packet to send [03:24:51]OFD Sender: No OFD packet to send [03:24:56]OFD Sender: No OFD packet to send [03:25:01]OFD Sender: No OFD packet to send [03:25:06]OFD Sender: No OFD packet to send [03:25:11]OFD Sender: No OFD packet to send [03:25:16]OFD Sender: No OFD packet to send [03:25:21]OFD Sender: No OFD packet to send [03:25:26]OFD Sender: No OFD packet to send [03:25:31]OFD Sender: No OFD packet to send [03:25:36]OFD Sender: No OFD packet to send [03:25:41]OFD Sender: No OFD packet to send [03:25:46]OFD Sender: No OFD packet to send [03:25:51]OFD Sender: No OFD packet to send [03:25:56]OFD Sender: No OFD packet to send [03:26:01]OFD Sender: No OFD packet to send [03:26:06]OFD Sender: No OFD packet to send [03:26:11]OFD Sender: No OFD packet to send [03:26:16]OFD Sender: No OFD packet to send [03:26:21]OFD Sender: No OFD packet to send [03:26:26]OFD Sender: No OFD packet to send [03:26:31]OFD Sender: No OFD packet to send [03:26:36]OFD Sender: No OFD packet to send [03:26:41]OFD Sender: No OFD packet to send [03:26:46]OFD Sender: No OFD packet to send [03:26:51]OFD Sender: No OFD packet to send [03:26:56]OFD Sender: No OFD packet to send [03:27:01]OFD Sender: No OFD packet to send [03:27:06]OFD Sender: No OFD packet to send [03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27:31]OFD Sender: No OFD packet to send [03:27:36]OFD Sender: No OFD packet to send [03:27:41]OFD Sender: No OFD packet to send [03:27:46]OFD Sender: No OFD packet to send [03:27:51]OFD Sender: No OFD packet to send [03:27:56]OFD Sender: No OFD packet to send [03:28:01]OFD Sender: No OFD packet to send [03:28:06]OFD Sender: No OFD packet to send [03:28:11]OFD Sender: No OFD packet to send [03:28:16]OFD Sender: No OFD packet to send [03:28:21]OFD Sender: No OFD packet to send [03:28:26]OFD Sender: No OFD packet to send [03:28:31]OFD Sender: No OFD packet to send [03:28:36]OFD Sender: No OFD packet to send [03:28:41]OFD Sender: No OFD packet to send [03:28:46]OFD Sender: No OFD packet to send [03:28:51]OFD Sender: No OFD packet to send [03:28:56]OFD Sender: No OFD packet to send [03:29:01]OFD Sender: No OFD packet to send [03:29:06]OFD Sender: No OFD packet to send [03:29:11]OFD Sender: No OFD packet to send [03:29:16]OFD Sender: No OFD packet to send [03:29:21]OFD Sender: No OFD packet to send [03:29:26]OFD Sender: No OFD packet to send [03:29:31]OFD Sender: No OFD packet to send [03:29:36]OFD Sender: No OFD packet to send [03:29:41]OFD Sender: No OFD packet to send [03:29:46]OFD Sender: No OFD packet to send [03:29:51]OFD Sender: No OFD packet to send [03:29:56]OFD Sender: No OFD packet to send [03:30:01]OFD Sender: No OFD packet to send [03:30:06]OFD Sender: No OFD packet to send [03:30:11]OFD Sender: No OFD packet to send [03:30:16]OFD Sender: No OFD packet to send [03:30:21]OFD Sender: No OFD packet to send [03:30:26]OFD Sender: No OFD packet to send [03:30:31]OFD Sender: No OFD packet to send [03:30:36]OFD Sender: No OFD packet to send [03:30:41]OFD Sender: No OFD packet to send [03:30:46]OFD Sender: No OFD packet to send [03:30:51]OFD Sender: No OFD packet to send [03:30:56]OFD Sender: No OFD packet to send [03:31:01]OFD Sender: No OFD packet to send [03:31:06]OFD Sender: No OFD packet to send [03:31:11]OFD Sender: No OFD packet to send [03:31:16]OFD Sender: No OFD packet to send [03:31:21]OFD Sender: No OFD packet to send [03:31:26]OFD Sender: No OFD packet to send [03:31:31]OFD Sender: No OFD packet to send [03:31:36]OFD Sender: No OFD packet to send [03:31:41]OFD Sender: No OFD packet to send [03:31:46]OFD Sender: No OFD packet to send [03:31:51]OFD Sender: No OFD packet to send [03:31:56]OFD Sender: No OFD packet to send [03:32:01]OFD Sender: No OFD packet to send [03:32:06]OFD Sender: No OFD packet to send [03:32:11]OFD Sender: No OFD packet to send [03:32:16]OFD Sender: No OFD packet to send [03:32:21]OFD Sender: No OFD packet to send [03:32:26]OFD Sender: No OFD packet to send [03:32:31]OFD Sender: No OFD packet to send [03:32:36]OFD Sender: No OFD packet to send [03:32:41]OFD Sender: No OFD packet to send [03:32:46]OFD Sender: No OFD packet to send [03:32:51]OFD Sender: No OFD packet to send [03:32:56]OFD Sender: No OFD packet to send [03:33:01]OFD Sender: No OFD packet to send [03:33:06]OFD Sender: No OFD packet to send [03:33:11]OFD Sender: No OFD packet to send [03:33:16]OFD Sender: No OFD packet to send [03:33:21]OFD Sender: No OFD packet to send [03:33:26]OFD Sender: No OFD packet to send [03:33:31]OFD Sender: No OFD packet to send [03:33:36]OFD Sender: No OFD packet to send [03:33:41]OFD Sender: No OFD packet to send [03:33:46]OFD Sender: No OFD packet to send [03:33:51]OFD Sender: No OFD packet to send [03:33:56]OFD Sender: No OFD packet to send [03:34:01]OFD Sender: No OFD packet to send [03:34:06]OFD Sender: No OFD packet to send [03:34:11]OFD Sender: No OFD packet to send [03:34:16]OFD Sender: No OFD packet to send [03:34:21]OFD Sender: No OFD packet to send [03:34:26]OFD Sender: No OFD packet to send [03:34:31]OFD Sender: No OFD packet to send [03:34:36]OFD Sender: No OFD packet to send [03:34:41]OFD Sender: No OFD packet to send [03:34:46]OFD Sender: No OFD packet to send [03:34:51]OFD Sender: No OFD packet to send [03:34:56]OFD Sender: No OFD packet to send [03:35:01]OFD Sender: No OFD packet to send [03:35:06]OFD Sender: No OFD packet to send [03:35:11]OFD Sender: No OFD packet to send [03:35:16]OFD Sender: No OFD packet to send [03:35:21]OFD Sender: No OFD packet to send [03:35:26]OFD Sender: No OFD packet to send [03:35:31]OFD Sender: No OFD packet to send [03:35:36]OFD Sender: No OFD packet to send [03:35:41]OFD Sender: No OFD packet to send [03:35:46]OFD Sender: No OFD packet to send [03:35:51]OFD Sender: No OFD packet to send [03:35:56]OFD Sender: No OFD packet to send [03:36:01]OFD Sender: No OFD packet to send [03:36:06]OFD Sender: No OFD packet to send [03:36:11]OFD Sender: No OFD packet to send [03:36:16]OFD Sender: No OFD packet to send [03:36:21]OFD Sender: No OFD packet to send [03:36:26]OFD Sender: No OFD packet to send [03:36:31]OFD Sender: No OFD packet to send [03:36:36]OFD Sender: No OFD packet to send [03:36:41]OFD Sender: No OFD packet to send [03:36:46]OFD Sender: No OFD packet to send [03:36:51]OFD Sender: No OFD packet to send [03:36:56]OFD Sender: No OFD packet to send [03:37:01]OFD Sender: No OFD packet to send [03:37:06]OFD Sender: No OFD packet to send [03:37:11]OFD Sender: No OFD packet to send [03:37:16]OFD Sender: No OFD packet to send [03:37:21]OFD Sender: No OFD packet to send [03:37:26]OFD Sender: No OFD packet to send [03:37:31]OFD Sender: No OFD packet to send [03:37:36]OFD Sender: No OFD packet to send [03:37:41]OFD Sender: No OFD packet to send [03:37:46]OFD Sender: No OFD packet to send [03:37:51]OFD Sender: No OFD packet to send [03:37:56]OFD Sender: No OFD packet to send [03:38:01]OFD Sender: No OFD packet to send [03:38:06]OFD Sender: No OFD packet to send [03:38:11]OFD Sender: No OFD packet to send [03:38:16]OFD Sender: No OFD packet to send [03:38:21]OFD Sender: No OFD packet to send [03:38:26]OFD Sender: No OFD packet to send [03:38:31]OFD Sender: No OFD packet to send [03:38:36]OFD Sender: No OFD packet to send [03:38:41]OFD Sender: No OFD packet to send [03:38:46]OFD Sender: No OFD packet to send [03:38:51]OFD Sender: No OFD packet to send [03:38:56]OFD Sender: No OFD packet to send [03:39:01]OFD Sender: No OFD packet to send [03:39:06]OFD Sender: No OFD packet to send [03:39:11]OFD Sender: No OFD packet to send [03:39:16]OFD Sender: No OFD packet to send [03:39:21]OFD Sender: No OFD packet to send [03:39:26]OFD Sender: No OFD packet to send [03:39:31]OFD Sender: No OFD packet to send [03:39:36]OFD Sender: No OFD packet to send [03:39:41]OFD Sender: No OFD packet to send [03:39:46]OFD Sender: No OFD packet to send [03:39:51]OFD Sender: No OFD packet to send [03:39:56]OFD Sender: No OFD packet to send [03:40:01]OFD Sender: No OFD packet to send [03:40:06]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:27]OFD Sender: No OFD packet to send [03:54:32]OFD Sender: No OFD packet to send [03:54:37]OFD Sender: No OFD packet to send [03:54:42]OFD Sender: No OFD packet to send [03:54:47]OFD Sender: No OFD packet to send [03:54:52]OFD Sender: No OFD packet to send [03:54:57]OFD Sender: No OFD packet to send [03:55:02]OFD Sender: No OFD packet to send [03:55:07]OFD Sender: No OFD packet to send [03:55:12]OFD Sender: No OFD packet to send [03:55:17]OFD Sender: No OFD packet to send [03:55:22]OFD Sender: No OFD packet to send [03:55:27]OFD Sender: No OFD packet to send [03:55:32]OFD Sender: No OFD packet to send [03:55:37]OFD Sender: No OFD packet to send [03:55:42]OFD Sender: No OFD packet to send [03:55:47]OFD Sender: No OFD packet to send [03:55:52]OFD Sender: No OFD packet to send [03:55:57]OFD Sender: No OFD packet to send [03:56:02]OFD Sender: No OFD packet to send [03:56:07]OFD Sender: No OFD packet to send [03:56:12]OFD Sender: No OFD packet to send [03:56:17]OFD Sender: No OFD packet to send [03:56:22]OFD Sender: No OFD packet to send [03:56:27]OFD Sender: No OFD packet to send [03:56:32]OFD Sender: No OFD packet to send [03:56:37]OFD Sender: No OFD packet to send [03:56:42]OFD Sender: No OFD packet to send [03:56:47]OFD Sender: No OFD packet to send [03:56:52]OFD Sender: No OFD packet to send [03:56:57]OFD Sender: No OFD packet to send [03:57:02]OFD Sender: No OFD packet to send [03:57:07]OFD Sender: No OFD packet to send [03:57:12]OFD Sender: No OFD packet to send [03:57:17]OFD Sender: No OFD packet to send [03:57:22]OFD Sender: No OFD packet to send [03:57:27]OFD Sender: No OFD packet to send [03:57:32]OFD Sender: No OFD packet to send [03:57:37]OFD Sender: No OFD packet to send [03:57:42]OFD Sender: No OFD packet to send [03:57:47]OFD Sender: No OFD packet to send [03:57:52]OFD Sender: No OFD packet to send [03:57:57]OFD Sender: No OFD packet to send [03:58:02]OFD Sender: No OFD packet to send [03:58:07]OFD Sender: No OFD packet to send [03:58:12]OFD Sender: No OFD packet to send [03:58:17]OFD Sender: No OFD packet to send [03:58:22]OFD Sender: No OFD packet to send [03:58:27]OFD Sender: No OFD packet to send [03:58:32]OFD Sender: No OFD packet to send [03:58:37]OFD Sender: No OFD packet to send [03:58:42]OFD Sender: No OFD packet to send [03:58:47]OFD Sender: No OFD packet to send [03:58:52]OFD Sender: No OFD packet to send [03:58:57]OFD Sender: No OFD packet to send [03:59:02]OFD Sender: No OFD packet to send [03:59:07]OFD Sender: No OFD packet to send [03:59:12]OFD Sender: No OFD packet to send [03:59:17]OFD Sender: No OFD packet to send [03:59:22]OFD Sender: No OFD packet to send [03:59:27]OFD Sender: No OFD packet to send [03:59:32]OFD Sender: No OFD packet to send [03:59:37]OFD Sender: No OFD packet to send [03:59:42]OFD Sender: No OFD packet to send [03:59:47]OFD Sender: No OFD packet to send [03:59:52]OFD Sender: No OFD packet to send [03:59:57]OFD Sender: No OFD packet to send [04:00:02]OFD Sender: No OFD packet to send [04:00:07]OFD Sender: No OFD packet to send [04:00:12]OFD Sender: No OFD packet to send [04:00:17]OFD Sender: No OFD packet to send [04:00:22]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:07:08]OFD Sender: No OFD packet to send [04:07:08]ConnectInit Can't connect to host [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:41]ConnectInit Can't connect to host [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:43]OFD Sender: No OFD packet to send [04:15:48]OFD Sender: No OFD packet to send [04:15:53]OFD Sender: No OFD packet to send [04:15:58]OFD Sender: No OFD packet to send [04:16:03]OFD Sender: No OFD packet to send [04:16:08]OFD Sender: No OFD packet to send [04:16:13]OFD Sender: No OFD packet to send [04:16:18]OFD Sender: No OFD packet to send [04:16:23]OFD Sender: No OFD packet to send [04:16:28]OFD Sender: No OFD packet to send [04:16:33]OFD Sender: No OFD packet to send [04:16:38]OFD Sender: No OFD packet to send [04:16:43]OFD Sender: No OFD packet to send [04:16:48]OFD Sender: No OFD packet to send [04:16:53]OFD Sender: No OFD packet to send [04:16:58]OFD Sender: No OFD packet to send [04:17:03]OFD Sender: No OFD packet to send [04:17:08]OFD Sender: No OFD packet to send [04:17:13]OFD Sender: No OFD packet to send [04:17:18]OFD Sender: No OFD packet to send [04:17:23]OFD Sender: No OFD packet to send [04:17:28]OFD Sender: No OFD packet to send [04:17:33]OFD Sender: No OFD packet to send [04:17:38]OFD Sender: No OFD packet to send [04:17:43]OFD Sender: No OFD packet to send [04:17:48]OFD Sender: No OFD packet to send [04:17:53]OFD Sender: No OFD packet to send [04:17:58]OFD Sender: No OFD packet to send [04:18:03]OFD Sender: No OFD packet to send [04:18:08]OFD Sender: No OFD packet to send [04:18:13]OFD Sender: No OFD packet to send [04:18:18]OFD Sender: No OFD packet to send [04:18:23]OFD Sender: No OFD packet to send [04:18:28]OFD Sender: No OFD packet to send [04:18:33]OFD Sender: No OFD packet to send [04:18:38]OFD Sender: No OFD packet to send [04:18:43]OFD Sender: No OFD packet to send [04:18:48]OFD Sender: No OFD packet to send [04:18:53]OFD Sender: No OFD packet to send [04:18:58]OFD Sender: No OFD packet to send [04:19:03]OFD Sender: No OFD packet to send [04:19:08]OFD Sender: No OFD packet to send [04:19:13]OFD Sender: No OFD packet to send [04:19:18]OFD Sender: No OFD packet to send [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]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:31]accept exits with 7 [04:33:31]New connection [04:33:31]New thread 3066973540 created [04:33:31]Thread 3066830180 joined [04:33:31]Waiting for new connection... [04:33:31] Sock 7.Parse request [04:33:31]Sock 7.Check first char [04:33:31]Sock 7.First char is OK [04:33:31]request: POST /json_proto HTTP/1.0 [04:33:31]Method: POST [04:33:31]URL: /json_proto [04:33:31]Method is POST - this is cgi request [04:33:31]url: /json_proto [04:33:31]query_string will be loaded in cgi processing [04:33:31]execute_cgi json_proto POST (null) [04:33:31]execute_cgi path=json_proto method=POST [04:33:31]POST find Content-Length [04:33:31]Host: 172.17.46.196:8080 [04:33:31]Content-Length: 666 [04:33:31]Content-Type: application/json [04:33:31] [04:33:31]POST finish read [04:33:31]Found Content-Length = 666 [04:33:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189609", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:33:31]execute_script... [04:33: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 : (3)189609", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:33:31]POST & json_proto [04:33:31]process_json_proto [04:33:31]json parsed OK: [04:33:31]protocol is kg_v1.0 [04:33:31]action value=close_receipt [04:33:31]process_action close_receipt [04:33:31]cmd_close_receipt [04:33:31]MH_GetDate [04:33:31]Write to MH i2c: F0 00 00 A5 2E C2 [04:33:31]Write i2c OK [04:33:31]MH_I2C_Read... [04:33:31]Read from MH i2c: F0 [04:33:31]MH_I2C_Read... [04:33:31]Read from MH i2c: F0 09 00 [04:33:31]MH_I2C_Read... [04:33:31]Read from MH i2c: F0 09 00 A5 2E 00 9F D6 BE 66 07 E8 5D 66 16 [04:33:31]GetLastDocTimeStamp 1723778091 [04:33:31]current date 1723782815 [04:33:31]FM_GetShiftState [04:33:31]SAM_PROTO_GetShiftState [04:33:31]wFMCommunicate request_size=4 [04:33:31]MH_SAM_APDU [04:33:31]CAPDU: 80 13 01 00 [04:33:31]Write to MH i2c: E2 08 00 A6 2E 80 13 01 00 00 00 00 00 51 [04:33:31]Write i2c OK [04:33:31]MH_I2C_Read... [04:33:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:33:31]Read from MH i2c: E2 [04:33:31]MH_I2C_Read... [04:33:31]Read from MH i2c: E2 0E 00 [04:33:31]MH_I2C_Read... [04:33:31]Read from MH i2c: E2 0E 00 A6 2E 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 C7 [04:33:31]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [04:33:31]wFMCommunicate OK [04:33:31]SAM_PROTO_GetShiftState done [04:33:31]FM_GetShiftState done [04:33:31]opened in 1723766958 [04:33:31]opened+sec_in_day 1723853358 [04:33:31]quantity*price = 9000 [04:33:31]sum+1 = 9001 [04:33:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 17 16.08.2024 04:33 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49369 ФПД: 250835464999396 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T043335&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49369&fm=250835464999396&tin=02508201610067®Number=0000000000092546&sum=9000 0 [04:33:32]StoreToDocumentArchive [04:33:32]shift 464 fd 49369 [04:33:32]save to /storage/0464/doc_00049369 [04:33:32]save last doc name /storage/0464/doc_00049369 to /storage/kkm_last_doc_name [04:33:32]save OK [04:33:32]Clear old archive folders... [04:33:32]ProcessDocumentItem done err = 0, tmpTLVsize=293 [04:33:32]tlvbuf is 00DDC7B0 [04:33:32]SAM_PROTO_ClearQueue [04:33:32]wFMCommunicate request_size=4 [04:33:32]MH_SAM_APDU [04:33:32]CAPDU: 80 09 00 00 [04:33:32]Write to MH i2c: E2 08 00 B3 2E 80 09 00 00 00 00 00 00 53 [04:33:32]Write i2c OK [04:33:32]MH_I2C_Read... [04:33:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:33:32]Read from MH i2c: E2 [04:33:32]MH_I2C_Read... [04:33:32]Read from MH i2c: E2 03 00 [04:33:32]MH_I2C_Read... [04:33:32]Read from MH i2c: E2 03 00 B3 2E 00 90 00 55 [04:33:32]RAPDU: 90 00 [04:33:32]wFMCommunicate OK [04:33:32]SAM_PROTO_ClearQueue done [04:33:32]KKMCreateOFDPacket [04:33:32]OFDProtocolAddRootSTLVToBuf [04:33:32]FM_MakeSignedData [04:33:32]FM_MakeSignedData [04:33:32]SAM_PROTO_SignData [04:33:32]wFMCommunicate request_size=4 [04:33:32]MH_SAM_APDU [04:33:32]CAPDU: 80 0D 01 02 [04:33:32]Write to MH i2c: E2 08 00 B4 2E 80 0D 01 02 00 00 00 00 5B [04:33:32]Write i2c OK [04:33:32]MH_I2C_Read... [04:33:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:33:32]Read from MH i2c: E2 [04:33:32]MH_I2C_Read... [04:33:32]Read from MH i2c: E2 03 00 [04:33:32]MH_I2C_Read... [04:33:32]Read from MH i2c: E2 03 00 B4 2E 00 90 00 56 [04:33:32]RAPDU: 90 00 [04:33:32]wFMCommunicate OK [04:33:32]wFMCommunicate request_size=255 [04:33:32]MH_SAM_APDU [04:33:32]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 9F D6 BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [04:33:32]Write to MH i2c: E2 02 01 B5 2E 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 9F D6 BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 AE [04:33:32]Write i2c OK [04:33:32]MH_I2C_Read... [04:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:33:33]Read from MH i2c: E2 [04:33:33]MH_I2C_Read... [04:33:33]Read from MH i2c: E2 03 00 [04:33:33]MH_I2C_Read... [04:33:33]Read from MH i2c: E2 03 00 B5 2E 00 90 00 57 [04:33:33]RAPDU: 90 00 [04:33:33]wFMCommunicate OK [04:33:33]wFMCommunicate request_size=52 [04:33:33]MH_SAM_APDU [04:33:33]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D9 C0 00 00 35 04 06 00 E4 22 2E C9 D1 E4 [04:33:33]Write to MH i2c: E2 37 00 B6 2E 80 0D 02 02 2F 00 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D9 C0 00 00 35 04 06 00 E4 22 2E C9 D1 E4 00 00 65 [04:33:33]Write i2c OK [04:33:33]MH_I2C_Read... [04:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:33:33]Read from MH i2c: E2 [04:33:33]MH_I2C_Read... [04:33:33]Read from MH i2c: E2 03 00 [04:33:33]MH_I2C_Read... [04:33:33]Read from MH i2c: E2 03 00 B6 2E 00 90 00 58 [04:33:33]RAPDU: 90 00 [04:33:33]wFMCommunicate OK [04:33:33]wFMCommunicate request_size=4 [04:33:33]MH_SAM_APDU [04:33:33]CAPDU: 80 0D 03 02 [04:33:33]Write to MH i2c: E2 08 00 B7 2E 80 0D 03 02 00 00 00 00 60 [04:33:33]Write i2c OK [04:33:33]MH_I2C_Read... [04:33:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:33:33]Read from MH i2c: E2 [04:33:33]MH_I2C_Read... [04:33:33]Read from MH i2c: E2 0B 00 [04:33:33]MH_I2C_Read... [04:33:33]Read from MH i2c: E2 0B 00 B7 2E 00 78 83 BD 61 C4 E9 94 09 90 00 C4 [04:33:33]RAPDU: 78 83 BD 61 C4 E9 94 09 90 00 [04:33:33]wFMCommunicate OK [04:33:33]SAM_PROTO_SignData done [04:33:33]FM_MakeSignedData done [04:33:33]CreateOFDProtocolMessage [04:33:33]wFMCommunicate request_size=4 [04:33:33]MH_SAM_APDU [04:33:33]CAPDU: 80 11 00 00 [04:33:33]Write to MH i2c: E2 08 00 B8 2E 80 11 00 00 00 00 00 00 60 [04:33:33]Write i2c OK [04:33:33]MH_I2C_Read... [04:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:33:33]Read from MH i2c: E2 [04:33:33]MH_I2C_Read... [04:33:33]Read from MH i2c: E2 17 00 [04:33:33]MH_I2C_Read... [04:33:33]Read from MH i2c: E2 17 00 B8 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AB [04:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [04:33:33]wFMCommunicate OK [04:33:33]CreateOFDProtocolMessage done [04:33:33]OFDSenderStorePacket 49369 [04:33:33]StoreOFDPacket docnum=49369 [04:33:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 43 D0 31 01 FB 42 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 9F D6 BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D9 C0 00 00 35 04 06 00 E4 22 2E C9 D1 E4 78 83 BD 61 C4 E9 94 09 [04:33:33]CheckFolder [04:33:33]dirname=/storage/ofd_packets [04:33:33]CheckFolder done [04:33:33]ProducePacketName [04:33:33]name=ofd_packets/00049369 [04:33:33]NVStorageSaveData ofd_packets/00049369 [04:33:33]File name is /storage/ofd_packets/00049369 [04:33:33]Write 343 bytes [04:33:33]NVStorageSaveData done [04:33:33]OFDSenderStorePacket done [04:33:33]KKMCreateOFDPacket done [04:33:33]NVStorageSaveData kkm_last_timestamp [04:33:33]File name is /storage/kkm_last_timestamp [04:33:33]Write 4 bytes [04:33:33]NVStorageSaveData done [04:33:33]OFD Sender: Processing packet 49369 [packets to send 21, broken 20] [04:33:33]ProducePacketName [04:33:33]name=ofd_packets/00049369 [04:33:33]OFD Sender: To server: pG, [04:33:33]CommunicateWithHost lk.salyk.kg:30040 [04:33:33]ConnectInit lk.salyk.kg [04:33:33]ExternCall_PrintAddStr [04:33:33]wPrintStart [04:33:33]Write to MH i2c: 01 00 00 B9 2E E7 [04:33:33]Write i2c OK [04:33:33]MH_I2C_Read... [04:33:33]Read from MH i2c: 01 [04:33:33]MH_I2C_Read... [04:33:33]Read from MH i2c: 01 07 00 [04:33:33]MH_I2C_Read... [04:33:33]Read from MH i2c: 01 07 00 B9 2E 00 00 00 00 00 FF 0F FC [04:33:33]RasterBufferAndPrint [04:33:33]line Счет N : (3)189609 [04:33:33]line ИНН: 02508201610067 [04:33:33]line Контрольно-Кассовый Чек [04:33:33]line ПРОДАЖА [04:33:33]line Товар: 4870022003305 [04:33:33]line Напиток Gorilla эн нат ж/б 0,5/0,45л [04:33:33]line 1.000 * 90.00 [04:33:33]line = 90.00 [04:33:33]line НДС 12% НСП 1% [04:33:33]line > о реализуемом товаре [04:33:33]line ИТОГО: 90.00 [04:33:33]line НСП 1% : 0.80 [04:33:33]line НДС 12% : 9.56 [04:33:33]line Наличными: 90.00 [04:33:33]line Безнал.: 0.00 [04:33:33]line Место: АЗС № 95 "Партнер Нефть" [04:33:33]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [04:33:33]line СНО: Общий режим [04:33:33]line Чек 17 16.08.2024 04:33 [04:33:33]line Смена: 464 ФФД: 1.0 [04:33:33]line ЗНМ: 0300000078 [04:33:33]line РНМ: 0000000000092546 [04:33:33]line Версия ККМ: 001 [04:33:33]line ФМ: 0000000000871800 [04:33:33]line ФД: 49369 [04:33:33]line ФПД: 250835464999396 [04:33:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T043335&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49369&fm=250835464999396&tin=02508201610067®Number=0000000000092546&sum=9000 [04:33:33]line 0 [04:33:33]Connected sock=11 [04:33:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 43 D0 31 01 FB 42 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 9F D6 BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 D9 C0 00 00 35 04 06 00 E4 22 2E C9 D1 E4 78 83 BD 61 C4 E9 94 09 [04:33:33]written 0, free lines is 4095 [04:33:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 55 FF 47 00 CA 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 38 37 31 38 30 30 10 04 04 00 D9 C0 00 00 F4 03 04 00 DE 81 BE 66 B6 04 01 00 00 12 FF FC BA 0C 92 3B 09 [04:33:33]CommunicateWithHost err = 0 [04:33:33]CheckOFDResponse [04:33:33]1017 (14) - 77093643461234 [04:33:33]1041 (16) - 0000000000871800 [04:33:33]1040 (4) - 49369 [04:33:33]1012 (4) - 15.08.2024 22:31 [04:33:33]1206 (1) - 0 [04:33:33]OFD Sender: Remove packet 49369 [04:33:33]ProducePacketName [04:33:33]name=ofd_packets/00049369 [04:33:33]NVStorageDeleteData [04:33:34]Write to MH i2c: 01 00 00 E2 2E 10 [04:33:34]Write i2c OK [04:33:34]MH_I2C_Read... [04:33:34]Read from MH i2c: 01 [04:33:34]MH_I2C_Read... [04:33:34]Read from MH i2c: 01 07 00 [04:33:34]MH_I2C_Read... [04:33:34]Read from MH i2c: 01 07 00 E2 2E 00 00 00 00 00 D4 0C F7 [04:33:34]RasterBufferAndPrint [04:33:34]line [04:33:34]line [04:33:34]line [04:33:34]line [04:33:34]line [04:33:34]written 0, free lines is 3290 [04:33:34]MH_Cut [04:33:34]Write to MH i2c: D1 01 00 E9 2E 01 E9 [04:33:34]Write i2c OK [04:33:34]MH_I2C_Read... [04:33:34]Read from MH i2c: D1 [04:33:34]MH_I2C_Read... [04:33:34]Read from MH i2c: D1 01 00 [04:33:34]MH_I2C_Read... [04:33:34]Read from MH i2c: D1 01 00 E9 2E 00 E8 [04:33:34]Write to MH i2c: 01 00 00 EA 2E 18 [04:33:34]Write i2c OK [04:33:34]MH_I2C_Read... [04:33:34]OFD Sender: No OFD packet to send [04:33:34]*** Cut start [04:33:34]*** Purtial cut [04:33:34]*** Stage 1: CUTSNS_PIN = 1 [04:33:35]Read from MH i2c: 01 [04:33:35]MH_I2C_Read... [04:33:35]*** Stop cut motor [04:33:35]*** Cut end [04:33:35]Read from MH i2c: 01 07 00 [04:33:35]MH_I2C_Read... [04:33:35]Read from MH i2c: 01 07 00 EA 2E 00 00 00 00 00 FF 0F 2D [04:33:35]process_action close_receipt done [04:33:35]requested_data is exist [04:33:35]produce_requested_data [04:33:35]requested_item fm.sn is exist - process it [04:33:35]wFMCommunicate request_size=4 [04:33:35]MH_SAM_APDU [04:33:35]CAPDU: 80 11 00 00 [04:33:35]Write to MH i2c: E2 08 00 EB 2E 80 11 00 00 00 00 00 00 93 [04:33:35]Write i2c OK [04:33:35]MH_I2C_Read... [04:33:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:33:35]Read from MH i2c: E2 [04:33:35]MH_I2C_Read... [04:33:35]Read from MH i2c: E2 17 00 [04:33:35]MH_I2C_Read... [04:33:35]Read from MH i2c: E2 17 00 EB 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DE [04:33:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [04:33:35]wFMCommunicate OK [04:33:35]requested_item fd.num is exist - process it [04:33:35]SAM_PROTO_GetFieldsCounters [04:33:35]wFMCommunicate request_size=4 [04:33:35]MH_SAM_APDU [04:33:35]CAPDU: 80 13 00 00 [04:33:35]Write to MH i2c: E2 08 00 EC 2E 80 13 00 00 00 00 00 00 96 [04:33:35]Write i2c OK [04:33:35]MH_I2C_Read... [04:33:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:33:35]Read from MH i2c: E2 [04:33:35]MH_I2C_Read... [04:33:35]Read from MH i2c: E2 62 00 [04:33:35]MH_I2C_Read... [04:33:35]Read from MH i2c: E2 62 00 EC 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D9 C0 00 00 0E 04 04 00 D0 01 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 4D [04:33:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 D9 C0 00 00 0E 04 04 00 D0 01 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 [04:33:35]wFMCommunicate OK [04:33:35]SAM_PROTO_GetFieldsCounters done [04:33:35]requested_item shift.num is exist - process it [04:33:35]requested_item shift.opened is exist - process it [04:33:35]req_shift_opened [04:33:35]FM_GetShiftState [04:33:35]SAM_PROTO_GetShiftState [04:33:35]wFMCommunicate request_size=4 [04:33:35]MH_SAM_APDU [04:33:35]CAPDU: 80 13 01 00 [04:33:35]Write to MH i2c: E2 08 00 ED 2E 80 13 01 00 00 00 00 00 98 [04:33:35]Write i2c OK [04:33:35]MH_I2C_Read... [04:33:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:33:35]Read from MH i2c: E2 [04:33:35]MH_I2C_Read... [04:33:35]Read from MH i2c: E2 0E 00 [04:33:35]MH_I2C_Read... [04:33:35]Read from MH i2c: E2 0E 00 ED 2E 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 0E [04:33:35]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [04:33:35]wFMCommunicate OK [04:33:35]SAM_PROTO_GetShiftState done [04:33:35]FM_GetShiftState done [04:33:35]req_shift_opened done [04:33:35]requested_item shift.open_date is exist - process it [04:33:35]req_shift_open_date [04:33:35]req_shift_open_date done [04:33:35]produce_requested_data done [04:33:35]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49369,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [04:33:35]process_action_free close_receipt [04:33:35]json_value_free [04:33:35]json_value_free done [04:33:35]process_json_proto returns [04:33:35]Send response to host [04:33:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49369,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [04:33:35]free response buf [04:33:35]execute_script done [04:33:35]execute_script returns [04:33:35]free content buf [04:33:35]Sock 7.Close socket [04:33:35]Sock 7.Thread stoped [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:36:59]OFD Sender: No OFD packet to send [04:37:04]OFD Sender: No OFD packet to send [04:37:09]OFD Sender: No OFD packet to send [04:37:14]OFD Sender: No OFD packet to send [04:37:19]OFD Sender: No OFD packet to send [04:37:24]OFD Sender: No OFD packet to send [04:37:29]OFD Sender: No OFD packet to send [04:37:34]OFD Sender: No OFD packet to send [04:37:39]OFD Sender: No OFD packet to send [04:37:44]OFD Sender: No OFD packet to send [04:37:49]OFD Sender: No OFD packet to send [04:37:54]OFD Sender: No OFD packet to send [04:37:59]OFD Sender: No OFD packet to send [04:38:04]OFD Sender: No OFD packet to send [04:38:09]OFD Sender: No OFD packet to send [04:38:14]OFD Sender: No OFD packet to send [04:38:19]OFD Sender: No OFD packet to send [04:38:24]OFD Sender: No OFD packet to send [04:38:29]OFD Sender: No OFD packet to send [04:38:34]OFD Sender: No OFD packet to send [04:38:39]OFD Sender: No OFD packet to send [04:38:44]OFD Sender: No OFD packet to send [04:38:49]OFD Sender: No OFD packet to send [04:38:54]OFD Sender: No OFD packet to send [04:38:59]OFD Sender: No OFD packet to send [04:39:04]OFD Sender: No OFD packet to send [04:39:09]OFD Sender: No OFD packet to send [04:39:14]OFD Sender: No OFD packet to send [04:39:19]OFD Sender: No OFD packet to send [04:39:24]OFD Sender: No OFD packet to send [04:39:29]OFD Sender: No OFD packet to send [04:39:34]OFD Sender: No OFD packet to send [04:39:39]OFD Sender: No OFD packet to send [04:39:44]OFD Sender: No OFD packet to send [04:39:49]OFD Sender: No OFD packet to send [04:39:54]OFD Sender: No OFD packet to send [04:39:59]OFD Sender: No OFD packet to send [04:40:04]OFD Sender: No OFD packet to send [04:40:09]OFD Sender: No OFD packet to send [04:40:14]OFD Sender: No OFD packet to send [04:40:19]OFD Sender: No OFD packet to send [04:40:24]OFD Sender: No OFD packet to send [04:40:29]OFD Sender: No OFD packet to send [04:40:34]OFD Sender: No OFD packet to send [04:40:39]OFD Sender: No OFD packet to send [04:40:44]OFD Sender: No OFD packet to send [04:40:49]OFD Sender: No OFD packet to send [04:40:54]OFD Sender: No OFD packet to send [04:40:59]OFD Sender: No OFD packet to send [04:41:04]OFD Sender: No OFD packet to send [04:41:09]OFD Sender: No OFD packet to send [04:41:14]OFD Sender: No OFD packet to send [04:41:19]OFD Sender: No OFD packet to send [04:41:24]OFD Sender: No OFD packet to send [04:41:29]OFD Sender: No OFD packet to send [04:41:34]OFD Sender: No OFD packet to send [04:41:39]OFD Sender: No OFD packet to send [04:41:44]OFD Sender: No OFD packet to send [04:41:49]OFD Sender: No OFD packet to send [04:41:54]OFD Sender: No OFD packet to send [04:41:59]OFD Sender: No OFD packet to send [04:42:04]OFD Sender: No OFD packet to send [04:42:09]OFD Sender: No OFD packet to send [04:42:14]OFD Sender: No OFD packet to send [04:42:19]OFD Sender: No OFD packet to send [04:42:24]OFD Sender: No OFD packet to send [04:42:29]OFD Sender: No OFD packet to send [04:42:34]OFD Sender: No OFD packet to send [04:42:39]OFD Sender: No OFD packet to send [04:42:44]OFD Sender: No OFD packet to send [04:42:49]OFD Sender: No OFD packet to send [04:42:54]OFD Sender: No OFD packet to send [04:42:59]OFD Sender: No OFD packet to send [04:43:04]OFD Sender: No OFD packet to send [04:43:09]OFD Sender: No OFD packet to send [04:43:14]OFD Sender: No OFD packet to send [04:43:19]OFD Sender: No OFD packet to send [04:43:24]OFD Sender: No OFD packet to send [04:43:29]OFD Sender: No OFD packet to send [04:43:34]OFD Sender: No OFD packet to send [04:43:39]OFD Sender: No OFD packet to send [04:43:44]OFD Sender: No OFD packet to send [04:43:49]OFD Sender: No OFD packet to send [04:43:54]OFD Sender: No OFD packet to send [04:43:59]OFD Sender: No OFD packet to send [04:44:04]OFD Sender: No OFD packet to send [04:44:09]OFD Sender: No OFD packet to send [04:44:14]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]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:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:35]OFD Sender: No OFD packet to send [04:58:40]OFD Sender: No OFD packet to send [04:58:45]OFD Sender: No OFD packet to send [04:58:50]OFD Sender: No OFD packet to send [04:58:55]OFD Sender: No OFD packet to send [04:59:00]OFD Sender: No OFD packet to send [04:59:05]OFD Sender: No OFD packet to send [04:59:10]OFD Sender: No OFD packet to send [04:59:15]OFD Sender: No OFD packet to send [04:59:20]OFD Sender: No OFD packet to send [04:59:25]OFD Sender: No OFD packet to send [04:59:30]OFD Sender: No OFD packet to send [04:59:35]OFD Sender: No OFD packet to send [04:59:40]OFD Sender: No OFD packet to send [04:59:45]OFD Sender: No OFD packet to send [04:59:50]OFD Sender: No OFD packet to send [04:59:55]OFD Sender: No OFD packet to send [05:00:00]OFD Sender: No OFD packet to send [05:00:05]OFD Sender: No OFD packet to send [05:00:10]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:47]accept exits with 9 [05:00:47]New connection [05:00:47]New thread 3066830180 created [05:00:47]Thread 3066973540 joined [05:00:47]Waiting for new connection... [05:00:47] Sock 9.Parse request [05:00:47]Sock 9.Check first char [05:00:47]Sock 9.First char is OK [05:00:47]request: POST /json_proto HTTP/1.0 [05:00:47]Method: POST [05:00:47]URL: /json_proto [05:00:47]Method is POST - this is cgi request [05:00:47]url: /json_proto [05:00:47]query_string will be loaded in cgi processing [05:00:47]execute_cgi json_proto POST (null) [05:00:47]execute_cgi path=json_proto method=POST [05:00:47]POST find Content-Length [05:00:47]Host: 172.17.46.196:8080 [05:00:47]Content-Length: 630 [05:00:47]Content-Type: application/json [05:00:47] [05:00:47]POST finish read [05:00:47]Found Content-Length = 630 [05:00:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189610", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:00:47]execute_script... [05:00:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189610", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:00:47]POST & json_proto [05:00:47]process_json_proto [05:00:47]json parsed OK: [05:00:47]protocol is kg_v1.0 [05:00:47]action value=close_receipt [05:00:47]process_action close_receipt [05:00:47]cmd_close_receipt [05:00:47]MH_GetDate [05:00:47]Write to MH i2c: F0 00 00 EE 2E 0B [05:00:47]Write i2c OK [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: F0 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: F0 09 00 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: F0 09 00 EE 2E 00 03 DD BE 66 07 E8 5D 66 CA [05:00:47]GetLastDocTimeStamp 1723782815 [05:00:47]current date 1723784451 [05:00:47]FM_GetShiftState [05:00:47]SAM_PROTO_GetShiftState [05:00:47]wFMCommunicate request_size=4 [05:00:47]MH_SAM_APDU [05:00:47]CAPDU: 80 13 01 00 [05:00:47]Write to MH i2c: E2 08 00 EF 2E 80 13 01 00 00 00 00 00 9A [05:00:47]Write i2c OK [05:00:47]MH_I2C_Read... [05:00:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:00:47]Read from MH i2c: E2 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: E2 0E 00 [05:00:47]MH_I2C_Read... [05:00:47]Read from MH i2c: E2 0E 00 EF 2E 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 10 [05:00:47]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [05:00:47]wFMCommunicate OK [05:00:47]SAM_PROTO_GetShiftState done [05:00:47]FM_GetShiftState done [05:00:47]opened in 1723766958 [05:00:47]opened+sec_in_day 1723853358 [05:00:47]quantity*price = 5000 [05:00:47]sum+1 = 5001 [05:00:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 18 16.08.2024 05:00 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49370 ФПД: 75312912668762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T050051&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49370&fm=75312912668762&tin=02508201610067®Number=0000000000092546&sum=5000 0 [05:00:48]StoreToDocumentArchive [05:00:48]shift 464 fd 49370 [05:00:48]save to /storage/0464/doc_00049370 [05:00:48]save last doc name /storage/0464/doc_00049370 to /storage/kkm_last_doc_name [05:00:48]save OK [05:00:48]Clear old archive folders... [05:00:48]ProcessDocumentItem done err = 0, tmpTLVsize=269 [05:00:48]tlvbuf is 00E43B50 [05:00:48]SAM_PROTO_ClearQueue [05:00:48]wFMCommunicate request_size=4 [05:00:48]MH_SAM_APDU [05:00:48]CAPDU: 80 09 00 00 [05:00:48]Write to MH i2c: E2 08 00 FC 2E 80 09 00 00 00 00 00 00 9C [05:00:48]Write i2c OK [05:00:48]MH_I2C_Read... [05:00:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:00:48]Read from MH i2c: E2 [05:00:48]MH_I2C_Read... [05:00:48]Read from MH i2c: E2 03 00 [05:00:48]MH_I2C_Read... [05:00:48]Read from MH i2c: E2 03 00 FC 2E 00 90 00 9E [05:00:48]RAPDU: 90 00 [05:00:48]wFMCommunicate OK [05:00:48]SAM_PROTO_ClearQueue done [05:00:48]KKMCreateOFDPacket [05:00:48]OFDProtocolAddRootSTLVToBuf [05:00:48]FM_MakeSignedData [05:00:48]FM_MakeSignedData [05:00:48]SAM_PROTO_SignData [05:00:48]wFMCommunicate request_size=4 [05:00:48]MH_SAM_APDU [05:00:48]CAPDU: 80 0D 01 02 [05:00:48]Write to MH i2c: E2 08 00 FD 2E 80 0D 01 02 00 00 00 00 A4 [05:00:48]Write i2c OK [05:00:48]MH_I2C_Read... [05:00:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:00:48]Read from MH i2c: E2 [05:00:48]MH_I2C_Read... [05:00:48]Read from MH i2c: E2 03 00 [05:00:48]MH_I2C_Read... [05:00:48]Read from MH i2c: E2 03 00 FD 2E 00 90 00 9F [05:00:48]RAPDU: 90 00 [05:00:48]wFMCommunicate OK [05:00:48]wFMCommunicate request_size=255 [05:00:48]MH_SAM_APDU [05:00:48]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 03 DD BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [05:00:48]Write to MH i2c: E2 02 01 FE 2E 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 03 DD BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 A3 [05:00:48]Write i2c OK [05:00:48]MH_I2C_Read... [05:00:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:00:49]Read from MH i2c: E2 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: E2 03 00 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: E2 03 00 FE 2E 00 90 00 A0 [05:00:49]RAPDU: 90 00 [05:00:49]wFMCommunicate OK [05:00:49]wFMCommunicate request_size=28 [05:00:49]MH_SAM_APDU [05:00:49]CAPDU: 80 0D 02 02 17 37 31 38 30 30 10 04 04 00 DA C0 00 00 35 04 06 00 44 7F 27 68 18 5A [05:00:49]Write to MH i2c: E2 1F 00 FF 2E 80 0D 02 02 17 00 37 31 38 30 30 10 04 04 00 DA C0 00 00 35 04 06 00 44 7F 27 68 18 5A 00 00 8A [05:00:49]Write i2c OK [05:00:49]MH_I2C_Read... [05:00:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:00:49]Read from MH i2c: E2 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: E2 03 00 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: E2 03 00 FF 2E 00 90 00 A1 [05:00:49]RAPDU: 90 00 [05:00:49]wFMCommunicate OK [05:00:49]wFMCommunicate request_size=4 [05:00:49]MH_SAM_APDU [05:00:49]CAPDU: 80 0D 03 02 [05:00:49]Write to MH i2c: E2 08 00 00 2F 80 0D 03 02 00 00 00 00 AA [05:00:49]Write i2c OK [05:00:49]MH_I2C_Read... [05:00:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:00:49]Read from MH i2c: E2 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: E2 0B 00 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: E2 0B 00 00 2F 00 9B C1 0D 05 AF EE 1E 33 90 00 07 [05:00:49]RAPDU: 9B C1 0D 05 AF EE 1E 33 90 00 [05:00:49]wFMCommunicate OK [05:00:49]SAM_PROTO_SignData done [05:00:49]FM_MakeSignedData done [05:00:49]CreateOFDProtocolMessage [05:00:49]wFMCommunicate request_size=4 [05:00:49]MH_SAM_APDU [05:00:49]CAPDU: 80 11 00 00 [05:00:49]Write to MH i2c: E2 08 00 01 2F 80 11 00 00 00 00 00 00 AA [05:00:49]Write i2c OK [05:00:49]MH_I2C_Read... [05:00:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:00:49]Read from MH i2c: E2 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: E2 17 00 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: E2 17 00 01 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F5 [05:00:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [05:00:49]wFMCommunicate OK [05:00:49]CreateOFDProtocolMessage done [05:00:49]OFDSenderStorePacket 49370 [05:00:49]StoreOFDPacket docnum=49370 [05:00:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 E5 A2 19 01 74 A6 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 03 DD BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DA C0 00 00 35 04 06 00 44 7F 27 68 18 5A 9B C1 0D 05 AF EE 1E 33 [05:00:49]CheckFolder [05:00:49]dirname=/storage/ofd_packets [05:00:49]CheckFolder done [05:00:49]ProducePacketName [05:00:49]name=ofd_packets/00049370 [05:00:49]NVStorageSaveData ofd_packets/00049370 [05:00:49]File name is /storage/ofd_packets/00049370 [05:00:49]Write 319 bytes [05:00:49]NVStorageSaveData done [05:00:49]OFDSenderStorePacket done [05:00:49]KKMCreateOFDPacket done [05:00:49]NVStorageSaveData kkm_last_timestamp [05:00:49]File name is /storage/kkm_last_timestamp [05:00:49]Write 4 bytes [05:00:49]NVStorageSaveData done [05:00:49]ExternCall_PrintAddStr [05:00:49]wPrintStart [05:00:49]Write to MH i2c: 01 00 00 02 2F 31 [05:00:49]Write i2c OK [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: 01 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: 01 07 00 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: 01 07 00 02 2F 00 00 00 00 00 FF 0F 46 [05:00:49]RasterBufferAndPrint [05:00:49]line Счет N : (3)189610 [05:00:49]line ИНН: 02508201610067 [05:00:49]line Контрольно-Кассовый Чек [05:00:49]line ПРОДАЖА [05:00:49]line Товар: 4700000160358 [05:00:49]line Вода Легенда 1л [05:00:49]line 1.000 * 50.00 [05:00:49]line = 50.00 [05:00:49]line НДС 12% НСП 1% [05:00:49]line > о реализуемом товаре [05:00:49]line ИТОГО: 50.00 [05:00:49]line НСП 1% : 0.44 [05:00:49]line НДС 12% : 5.31 [05:00:49]line Наличными: 50.00 [05:00:49]line Безнал.: 0.00 [05:00:49]line Место: АЗС № 95 "Партнер Нефть" [05:00:49]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [05:00:49]line СНО: Общий режим [05:00:49]line Чек 18 16.08.2024 05:00 [05:00:49]line Смена: 464 ФФД: 1.0 [05:00:49]line ЗНМ: 0300000078 [05:00:49]line РНМ: 0000000000092546 [05:00:49]line Версия ККМ: 001 [05:00:49]line ФМ: 0000000000871800 [05:00:49]line ФД: 49370 [05:00:49]line ФПД: 75312912668762 [05:00:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T050051&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49370&fm=75312912668762&tin=02508201610067®Number=0000000000092546&sum=5000 [05:00:49]line 0 [05:00:49]OFD Sender: Processing packet 49370 [packets to send 21, broken 20] [05:00:49]ProducePacketName [05:00:49]name=ofd_packets/00049370 [05:00:49]OFD Sender: To server: pG, [05:00:49]CommunicateWithHost lk.salyk.kg:30040 [05:00:49]ConnectInit lk.salyk.kg [05:00:49]written 0, free lines is 4095 [05:00:49]Write to MH i2c: 01 00 00 2A 2F 59 [05:00:49]Write i2c OK [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: 01 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: 01 07 00 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: 01 07 00 2A 2F 00 00 00 00 00 E1 0C 4D [05:00:49]RasterBufferAndPrint [05:00:49]line [05:00:49]line [05:00:49]line [05:00:49]line [05:00:49]line [05:00:49]written 0, free lines is 3300 [05:00:49]MH_Cut [05:00:49]Write to MH i2c: D1 01 00 31 2F 01 32 [05:00:49]Write i2c OK [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: D1 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: D1 01 00 [05:00:49]MH_I2C_Read... [05:00:49]Read from MH i2c: D1 01 00 31 2F 00 31 [05:00:49]Write to MH i2c: 01 00 00 32 2F 61 [05:00:49]Write i2c OK [05:00:49]MH_I2C_Read... [05:00:50]*** Cut start [05:00:50]*** Purtial cut [05:00:50]*** CUTSNS_PIN = 0 [05:00:50]*** Stage 1: CUTSNS_PIN = 1 [05:00:52]Read from MH i2c: 01 [05:00:52]MH_I2C_Read... [05:00:52]*** Stop cut motor [05:00:52]*** Cut end [05:00:52]Read from MH i2c: 01 07 00 [05:00:52]MH_I2C_Read... [05:00:52]Read from MH i2c: 01 07 00 32 2F 00 00 00 00 00 FF 0F 76 [05:00:52]process_action close_receipt done [05:00:52]requested_data is exist [05:00:52]produce_requested_data [05:00:52]requested_item fm.sn is exist - process it [05:00:52]wFMCommunicate request_size=4 [05:00:52]MH_SAM_APDU [05:00:52]CAPDU: 80 11 00 00 [05:00:52]Write to MH i2c: E2 08 00 33 2F 80 11 00 00 00 00 00 00 DC [05:00:52]Write i2c OK [05:00:52]MH_I2C_Read... [05:00:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:00:52]Read from MH i2c: E2 [05:00:52]MH_I2C_Read... [05:00:52]Read from MH i2c: E2 17 00 [05:00:52]MH_I2C_Read... [05:00:52]Read from MH i2c: E2 17 00 33 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 27 [05:00:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [05:00:52]wFMCommunicate OK [05:00:52]requested_item fd.num is exist - process it [05:00:52]SAM_PROTO_GetFieldsCounters [05:00:52]wFMCommunicate request_size=4 [05:00:52]MH_SAM_APDU [05:00:52]CAPDU: 80 13 00 00 [05:00:52]Write to MH i2c: E2 08 00 34 2F 80 13 00 00 00 00 00 00 DF [05:00:52]Write i2c OK [05:00:52]MH_I2C_Read... [05:00:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:00:52]Read from MH i2c: E2 [05:00:52]MH_I2C_Read... [05:00:52]Read from MH i2c: E2 62 00 [05:00:52]MH_I2C_Read... [05:00:52]Read from MH i2c: E2 62 00 34 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DA C0 00 00 0E 04 04 00 D0 01 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 9A [05:00:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DA C0 00 00 0E 04 04 00 D0 01 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 [05:00:52]wFMCommunicate OK [05:00:52]SAM_PROTO_GetFieldsCounters done [05:00:52]requested_item shift.num is exist - process it [05:00:52]requested_item shift.opened is exist - process it [05:00:52]req_shift_opened [05:00:52]FM_GetShiftState [05:00:52]SAM_PROTO_GetShiftState [05:00:52]wFMCommunicate request_size=4 [05:00:52]MH_SAM_APDU [05:00:52]CAPDU: 80 13 01 00 [05:00:52]Write to MH i2c: E2 08 00 35 2F 80 13 01 00 00 00 00 00 E1 [05:00:53]Write i2c OK [05:00:53]MH_I2C_Read... [05:00:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:00:53]Read from MH i2c: E2 [05:00:53]MH_I2C_Read... [05:00:53]Read from MH i2c: E2 0E 00 [05:00:53]MH_I2C_Read... [05:00:53]Read from MH i2c: E2 0E 00 35 2F 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 57 [05:00:53]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [05:00:53]wFMCommunicate OK [05:00:53]SAM_PROTO_GetShiftState done [05:00:53]FM_GetShiftState done [05:00:53]req_shift_opened done [05:00:53]requested_item shift.open_date is exist - process it [05:00:53]req_shift_open_date [05:00:53]req_shift_open_date done [05:00:53]produce_requested_data done [05:00:53]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49370,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [05:00:53]process_action_free close_receipt [05:00:53]json_value_free [05:00:53]json_value_free done [05:00:53]process_json_proto returns [05:00:53]Send response to host [05:00:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49370,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [05:00:53]free response buf [05:00:53]execute_script done [05:00:53]execute_script returns [05:00:53]free content buf [05:00:53]Sock 9.Close socket [05:00:53]Sock 9.Thread stoped [05:00:53]Connected sock=11 [05:00:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 E5 A2 19 01 74 A6 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 03 DD BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DA C0 00 00 35 04 06 00 44 7F 27 68 18 5A 9B C1 0D 05 AF EE 1E 33 [05:00:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 0C 7E 47 00 04 4A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DA C0 00 00 F4 03 04 00 47 88 BE 66 B6 04 01 00 00 49 6C A6 48 D3 B4 2F 72 [05:00:54]CommunicateWithHost err = 0 [05:00:54]CheckOFDResponse [05:00:54]1017 (14) - 77093643461234 [05:00:54]1041 (16) - 0000000000871800 [05:00:54]1040 (4) - 49370 [05:00:54]1012 (4) - 15.08.2024 22:59 [05:00:54]1206 (1) - 0 [05:00:54]OFD Sender: Remove packet 49370 [05:00:54]ProducePacketName [05:00:54]name=ofd_packets/00049370 [05:00:54]NVStorageDeleteData [05:00:54]OFD Sender: No OFD packet to send [05:00:56]recv_with_timeout no data received [05:00:59]OFD Sender: No OFD packet to send [05:01:05]OFD Sender: No OFD packet to send [05:01:10]OFD Sender: No OFD packet to send [05:01:15]OFD Sender: No OFD packet to send [05:01:20]OFD Sender: No OFD packet to send [05:01:25]OFD Sender: No OFD packet to send [05:01:30]OFD Sender: No OFD packet to send [05:01:35]OFD Sender: No OFD packet to send [05:01:40]OFD Sender: No OFD packet to send [05:01:45]OFD Sender: No OFD packet to send [05:01:50]OFD Sender: No OFD packet to send [05:01:55]OFD Sender: No OFD packet to send [05:02:00]OFD Sender: No OFD packet to send [05:02:05]OFD Sender: No OFD packet to send [05:02:10]OFD Sender: No OFD packet to send [05:02:15]OFD Sender: No OFD packet to send [05:02:20]OFD Sender: No OFD packet to send [05:02:25]OFD Sender: No OFD packet to send [05:02:30]OFD Sender: No OFD packet to send [05:02:35]OFD Sender: No OFD packet to send [05:02:40]OFD Sender: No OFD packet to send [05:02:45]OFD Sender: No OFD packet to send [05:02:50]OFD Sender: No OFD packet to send [05:02:55]OFD Sender: No OFD packet to send [05:03:00]OFD Sender: No OFD packet to send [05:03:05]OFD Sender: No OFD packet to send [05:03:10]OFD Sender: No OFD packet to send [05:03:15]OFD Sender: No OFD packet to send [05:03:20]OFD Sender: No OFD packet to send [05:03:25]OFD Sender: No OFD packet to send [05:03:30]OFD Sender: No OFD packet to send [05:03:35]OFD Sender: No OFD packet to send [05:03:40]OFD Sender: No OFD packet to send [05:03:45]OFD Sender: No OFD packet to send [05:03:50]OFD Sender: No OFD packet to send [05:03:55]OFD Sender: No OFD packet to send [05:04:00]OFD Sender: No OFD packet to send [05:04:05]OFD Sender: No OFD packet to send [05:04:10]OFD Sender: No OFD packet to send [05:04:15]OFD Sender: No OFD packet to send [05:04:20]OFD Sender: No OFD packet to send [05:04:25]OFD Sender: No OFD packet to send [05:04:30]OFD Sender: No OFD packet to send [05:04:35]OFD Sender: No OFD packet to send [05:04:40]OFD Sender: No OFD packet to send [05:04:45]OFD Sender: No OFD packet to send [05:04:50]OFD Sender: No OFD packet to send [05:04:55]OFD Sender: No OFD packet to send [05:05:00]OFD Sender: No OFD packet to send [05:05:05]OFD Sender: No OFD packet to send [05:05:10]OFD Sender: No OFD packet to send [05:05:15]OFD Sender: No OFD packet to send [05:05:20]OFD Sender: No OFD packet to send [05:05:25]OFD Sender: No OFD packet to send [05:05:30]OFD Sender: No OFD packet to send [05:05:35]OFD Sender: No OFD packet to send [05:05:40]OFD Sender: No OFD packet to send [05:05:45]OFD Sender: No OFD packet to send [05:05:50]OFD Sender: No OFD packet to send [05:05:55]OFD Sender: No OFD packet to send [05:06:00]OFD Sender: No OFD packet to send [05:06:05]OFD Sender: No OFD packet to send [05:06:10]OFD Sender: No OFD packet to send [05:06:15]OFD Sender: No OFD packet to send [05:06:20]OFD Sender: No OFD packet to send [05:06:25]OFD Sender: No OFD packet to send [05:06:30]OFD Sender: No OFD packet to send [05:06:35]OFD Sender: No OFD packet to send [05:06:40]OFD Sender: No OFD packet to send [05:06:45]OFD Sender: No OFD packet to send [05:06:50]OFD Sender: No OFD packet to send [05:06:55]OFD Sender: No OFD packet to send [05:07:00]OFD Sender: No OFD packet to send [05:07:05]OFD Sender: No OFD packet to send [05:07:10]OFD Sender: No OFD packet to send [05:07:15]OFD Sender: No OFD packet to send [05:07:20]OFD Sender: No OFD packet to send [05:07:25]OFD Sender: No OFD packet to send [05:07:30]OFD Sender: No OFD packet to send [05:07:35]OFD Sender: No OFD packet to send [05:07:40]OFD Sender: No OFD packet to send [05:07:45]OFD Sender: No OFD packet to send [05:07:46]int [05:07:46]Write to MH i2c: 01 00 00 36 2F 65 [05:07:46]*** FLAG_PRN_KEY set [05:07:46]Write i2c OK [05:07:46]MH_I2C_Read... [05:07:46]Read from MH i2c: 01 [05:07:46]MH_I2C_Read... [05:07:46]Read from MH i2c: 01 07 00 [05:07:46]MH_I2C_Read... [05:07:46]Read from MH i2c: 01 07 00 36 2F 00 08 00 00 00 FF 0F 82 [05:07:46]state=0 [05:07:46]Key pressed [05:07:46]Feed [05:07:46]Write to MH i2c: D8 00 00 37 2F 3D [05:07:46]Write i2c OK [05:07:46]MH_I2C_Read... [05:07:46]Read from MH i2c: D8 [05:07:46]MH_I2C_Read... [05:07:46]Read from MH i2c: D8 01 00 [05:07:46]MH_I2C_Read... [05:07:46]Read from MH i2c: D8 01 00 37 2F 00 3E [05:07:46]int [05:07:46]Write to MH i2c: 01 00 00 38 2F 67 [05:07:46]Write i2c OK [05:07:46]MH_I2C_Read... [05:07:46]Read from MH i2c: 01 [05:07:46]MH_I2C_Read... [05:07:46]Read from MH i2c: 01 07 00 [05:07:46]MH_I2C_Read... [05:07:46]Read from MH i2c: 01 07 00 38 2F 00 48 00 00 00 3C 00 F2 [05:07:46]state=2 [05:07:46]Key pressed [05:07:47]int [05:07:47]Write to MH i2c: 01 00 00 39 2F 68 [05:07:47]*** FLAG_PRN_KEY reset [05:07:47]Write i2c OK [05:07:47]MH_I2C_Read... [05:07:47]Read from MH i2c: 01 [05:07:47]MH_I2C_Read... [05:07:47]Read from MH i2c: 01 07 00 [05:07:47]MH_I2C_Read... [05:07:47]Read from MH i2c: 01 07 00 39 2F 00 00 00 00 00 F5 0F 73 [05:07:47]state=2 [05:07:47]Stop feed [05:07:50]OFD Sender: No OFD packet to send [05:07:55]OFD Sender: No OFD packet to send [05:08:00]OFD Sender: No OFD packet to send [05:08:05]OFD Sender: No OFD packet to send [05:08:10]OFD Sender: No OFD packet to send [05:08:15]OFD Sender: No OFD packet to send [05:08:20]OFD Sender: No OFD packet to send [05:08:25]OFD Sender: No OFD packet to send [05:08:30]OFD Sender: No OFD packet to send [05:08:35]OFD Sender: No OFD packet to send [05:08:40]OFD Sender: No OFD packet to send [05:08:45]OFD Sender: No OFD packet to send [05:08:50]OFD Sender: No OFD packet to send [05:08:55]OFD Sender: No OFD packet to send [05:09:00]OFD Sender: No OFD packet to send [05:09:05]OFD Sender: No OFD packet to send [05:09:10]OFD Sender: No OFD packet to send [05:09:15]OFD Sender: No OFD packet to send [05:09:20]OFD Sender: No OFD packet to send [05:09:25]OFD Sender: No OFD packet to send [05:09:30]OFD Sender: No OFD packet to send [05:09:35]OFD Sender: No OFD packet to send [05:09:40]OFD Sender: No OFD packet to send [05:09:45]OFD Sender: No OFD packet to send [05:09:50]OFD Sender: No OFD packet to send [05:09:55]OFD Sender: No OFD packet to send [05:10:00]OFD Sender: No OFD packet to send [05:10:05]OFD Sender: No OFD packet to send [05:10:10]OFD Sender: No OFD packet to send [05:10:15]OFD Sender: No OFD packet to send [05:10:20]OFD Sender: No OFD packet to send [05:10:25]OFD Sender: No OFD packet to send [05:10:30]OFD Sender: No OFD packet to send [05:10:35]OFD Sender: No OFD packet to send [05:10:40]OFD Sender: No OFD packet to send [05:10:45]OFD Sender: No OFD packet to send [05:10:50]OFD Sender: No OFD packet to send [05:10:55]OFD Sender: No OFD packet to send [05:11:00]OFD Sender: No OFD packet to send [05:11:05]OFD Sender: No OFD packet to send [05:11:10]OFD Sender: No OFD packet to send [05:11:15]OFD Sender: No OFD packet to send [05:11:20]OFD Sender: No OFD packet to send [05:11:25]OFD Sender: No OFD packet to send [05:11:30]OFD Sender: No OFD packet to send [05:11:35]OFD Sender: No OFD packet to send [05:11:40]OFD Sender: No OFD packet to send [05:11:45]OFD Sender: No OFD packet to send [05:11:50]OFD Sender: No OFD packet to send [05:11:55]OFD Sender: No OFD packet to send [05:12:00]OFD Sender: No OFD packet to send [05:12:05]OFD Sender: No OFD packet to send [05:12:10]OFD Sender: No OFD packet to send [05:12:15]OFD Sender: No OFD packet to send [05:12:20]OFD Sender: No OFD packet to send [05:12:25]OFD Sender: No OFD packet to send [05:12:30]OFD Sender: No OFD packet to send [05:12:35]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [05:21:41]OFD Sender: No OFD packet to send [05:21:46]OFD Sender: No OFD packet to send [05:21:51]OFD Sender: No OFD packet to send [05:21:56]OFD Sender: No OFD packet to send [05:22:01]OFD Sender: No OFD packet to send [05:22:06]OFD Sender: No OFD packet to send [05:22:11]OFD Sender: No OFD packet to send [05:22:16]OFD Sender: No OFD packet to send [05:22:21]OFD Sender: No OFD packet to send [05:22:26]OFD Sender: No OFD packet to send [05:22:31]OFD Sender: No OFD packet to send [05:22:36]OFD Sender: No OFD packet to send [05:22:41]OFD Sender: No OFD packet to send [05:22:46]OFD Sender: No OFD packet to send [05:22:51]OFD Sender: No OFD packet to send [05:22:56]OFD Sender: No OFD packet to send [05:23:01]OFD Sender: No OFD packet to send [05:23:06]OFD Sender: No OFD packet to send [05:23:11]OFD Sender: No OFD packet to send [05:23:16]OFD Sender: No OFD packet to send [05:23:21]OFD Sender: No OFD packet to send [05:23:26]OFD Sender: No OFD packet to send [05:23:31]OFD Sender: No OFD packet to send [05:23:36]OFD Sender: No OFD packet to send [05:23:41]OFD Sender: No OFD packet to send [05:23:46]OFD Sender: No OFD packet to send [05:23:51]OFD Sender: No OFD packet to send [05:23:56]OFD Sender: No OFD packet to send [05:24:01]OFD Sender: No OFD packet to send [05:24:06]OFD Sender: No OFD packet to send [05:24:11]OFD Sender: No OFD packet to send [05:24:16]OFD Sender: No OFD packet to send [05:24:21]OFD Sender: No OFD packet to send [05:24:26]OFD Sender: No OFD packet to send [05:24:31]OFD Sender: No OFD packet to send [05:24:36]OFD Sender: No OFD packet to send [05:24:41]OFD Sender: No OFD packet to send [05:24:46]OFD Sender: No OFD packet to send [05:24:51]OFD Sender: No OFD packet to send [05:24:56]OFD Sender: No OFD packet to send [05:25:01]OFD Sender: No OFD packet to send [05:25:06]OFD Sender: No OFD packet to send [05:25:11]OFD Sender: No OFD packet to send [05:25:16]OFD Sender: No OFD packet to send [05:25:21]OFD Sender: No OFD packet to send [05:25:26]OFD Sender: No OFD packet to send [05:25:31]OFD Sender: No OFD packet to send [05:25:36]OFD Sender: No OFD packet to send [05:25:41]OFD Sender: No OFD packet to send [05:25:46]OFD Sender: No OFD packet to send [05:25:51]OFD Sender: No OFD packet to send [05:25:56]OFD Sender: No OFD packet to send [05:26:01]OFD Sender: No OFD packet to send [05:26:06]OFD Sender: No OFD packet to send [05:26:11]OFD Sender: No OFD packet to send [05:26:16]OFD Sender: No OFD packet to send [05:26:21]OFD Sender: No OFD packet to send [05:26:26]OFD Sender: No OFD packet to send [05:26:31]OFD Sender: No OFD packet to send [05:26:36]OFD Sender: No OFD packet to send [05:26:41]OFD Sender: No OFD packet to send [05:26:46]OFD Sender: No OFD packet to send [05:26:51]OFD Sender: No OFD packet to send [05:26:56]OFD Sender: No OFD packet to send [05:27:01]OFD Sender: No OFD packet to send [05:27:06]OFD Sender: No OFD packet to send [05:27:11]OFD Sender: No OFD packet to send [05:27:16]OFD Sender: No OFD packet to send [05:27:21]OFD Sender: No OFD packet to send [05:27:26]OFD Sender: No OFD packet to send [05:27:31]OFD Sender: No OFD packet to send [05:27:36]OFD Sender: No OFD packet to send [05:27:41]OFD Sender: No OFD packet to send [05:27:46]OFD Sender: No OFD packet to send [05:27:51]OFD Sender: No OFD packet to send [05:27:56]OFD Sender: No OFD packet to send [05:28:01]OFD Sender: No OFD packet to send [05:28:06]OFD Sender: No OFD packet to send [05:28:11]OFD Sender: No OFD packet to send [05:28:16]OFD Sender: No OFD packet to send [05:28:21]OFD Sender: No OFD packet to send [05:28:26]OFD Sender: No OFD packet to send [05:28:31]OFD Sender: No OFD packet to send [05:28:36]OFD Sender: No OFD packet to send [05:28:41]OFD Sender: No OFD packet to send [05:28:46]OFD Sender: No OFD packet to send [05:28:51]OFD Sender: No OFD packet to send [05:28:56]OFD Sender: No OFD packet to send [05:29:01]OFD Sender: No OFD packet to send [05:29:06]OFD Sender: No OFD packet to send [05:29:11]OFD Sender: No OFD packet to send [05:29:16]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:31]OFD Sender: No OFD packet to send [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:11]OFD Sender: No OFD packet to send [05:31:16]OFD Sender: No OFD packet to send [05:31: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:40:01]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44:32]OFD Sender: No OFD packet to send [05:44:37]OFD Sender: No OFD packet to send [05:44:42]OFD Sender: No OFD packet to send [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:02]OFD Sender: No OFD packet to send [05:45:07]OFD Sender: No OFD packet to send [05:45:12]OFD Sender: No OFD packet to send [05:45:17]OFD Sender: No OFD packet to send [05:45:22]OFD Sender: No OFD packet to send [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:42]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:49:02]OFD Sender: No OFD packet to send [05:49:07]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:02]OFD Sender: No OFD packet to send [05:52:07]OFD Sender: No OFD packet to send [05:52:12]OFD Sender: No OFD packet to send [05:52:17]OFD Sender: No OFD packet to send [05:52:22]OFD Sender: No OFD packet to send [05:52:27]OFD Sender: No OFD packet to send [05:52:32]OFD Sender: No OFD packet to send [05:52:37]OFD Sender: No OFD packet to send [05:52:42]OFD Sender: No OFD packet to send [05:52:47]OFD Sender: No OFD packet to send [05:52:52]OFD Sender: No OFD packet to send [05:52:57]OFD Sender: No OFD packet to send [05:53:02]OFD Sender: No OFD packet to send [05:53:07]OFD Sender: No OFD packet to send [05:53:12]OFD Sender: No OFD packet to send [05:53:17]OFD Sender: No OFD packet to send [05:53:22]OFD Sender: No OFD packet to send [05:53:27]OFD Sender: No OFD packet to send [05:53: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:46]accept exits with 7 [05:53:46]New connection [05:53:46]New thread 3066973540 created [05:53:46]Thread 3066830180 joined [05:53:46]Waiting for new connection... [05:53:46] Sock 7.Parse request [05:53:46]Sock 7.Check first char [05:53:46]Sock 7.First char is OK [05:53:46]request: POST /json_proto HTTP/1.0 [05:53:46]Method: POST [05:53:46]URL: /json_proto [05:53:46]Method is POST - this is cgi request [05:53:46]url: /json_proto [05:53:46]query_string will be loaded in cgi processing [05:53:46]execute_cgi json_proto POST (null) [05:53:46]execute_cgi path=json_proto method=POST [05:53:46]POST find Content-Length [05:53:46]Host: 172.17.46.196:8080 [05:53:46]Content-Length: 912 [05:53:46]Content-Type: application/json [05:53:46] [05:53:46]POST finish read [05:53:46]Found Content-Length = 912 [05:53:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189611", "tax_sys" : 0, "items" : [ { "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:53:46]execute_script... [05:53:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189611", "tax_sys" : 0, "items" : [ { "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 215.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:53:46]POST & json_proto [05:53:46]process_json_proto [05:53:46]json parsed OK: [05:53:46]protocol is kg_v1.0 [05:53:46]action value=close_receipt [05:53:46]process_action close_receipt [05:53:46]cmd_close_receipt [05:53:46]MH_GetDate [05:53:46]Write to MH i2c: F0 00 00 3A 2F 58 [05:53:46]Write i2c OK [05:53:46]MH_I2C_Read... [05:53:46]Read from MH i2c: F0 [05:53:46]MH_I2C_Read... [05:53:46]Read from MH i2c: F0 09 00 [05:53:46]MH_I2C_Read... [05:53:46]Read from MH i2c: F0 09 00 3A 2F 00 6E E9 BE 66 07 E8 5D 66 8E [05:53:46]GetLastDocTimeStamp 1723784451 [05:53:46]current date 1723787630 [05:53:46]FM_GetShiftState [05:53:46]SAM_PROTO_GetShiftState [05:53:46]wFMCommunicate request_size=4 [05:53:46]MH_SAM_APDU [05:53:46]CAPDU: 80 13 01 00 [05:53:46]Write to MH i2c: E2 08 00 3B 2F 80 13 01 00 00 00 00 00 E7 [05:53:46]Write i2c OK [05:53:46]MH_I2C_Read... [05:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:53:46]Read from MH i2c: E2 [05:53:46]MH_I2C_Read... [05:53:46]Read from MH i2c: E2 0E 00 [05:53:46]MH_I2C_Read... [05:53:46]Read from MH i2c: E2 0E 00 3B 2F 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 5D [05:53:46]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [05:53:46]wFMCommunicate OK [05:53:46]SAM_PROTO_GetShiftState done [05:53:46]FM_GetShiftState done [05:53:46]opened in 1723766958 [05:53:46]opened+sec_in_day 1723853358 [05:53:46]quantity*price = 8500 [05:53:46]sum+1 = 8501 [05:53:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 215.00 НСП 1% : 1.90 НДС 12% : 22.83 Наличными: 215.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 19 16.08.2024 05:53 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49371 ФПД: 75084003868890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T055350&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49371&fm=75084003868890&tin=02508201610067®Number=0000000000092546&sum=21500 0 [05:53:47]StoreToDocumentArchive [05:53:47]shift 464 fd 49371 [05:53:47]save to /storage/0464/doc_00049371 [05:53:47]save last doc name /storage/0464/doc_00049371 to /storage/kkm_last_doc_name [05:53:47]save OK [05:53:47]Clear old archive folders... [05:53:47]ProcessDocumentItem done err = 0, tmpTLVsize=392 [05:53:47]tlvbuf is 00EFADC0 [05:53:47]SAM_PROTO_ClearQueue [05:53:47]wFMCommunicate request_size=4 [05:53:47]MH_SAM_APDU [05:53:47]CAPDU: 80 09 00 00 [05:53:47]Write to MH i2c: E2 08 00 48 2F 80 09 00 00 00 00 00 00 E9 [05:53:47]Write i2c OK [05:53:47]MH_I2C_Read... [05:53:47]Read from MH i2c: E2 [05:53:47]MH_I2C_Read... [05:53:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:53:47]Read from MH i2c: E2 03 00 [05:53:47]MH_I2C_Read... [05:53:47]Read from MH i2c: E2 03 00 48 2F 00 90 00 EB [05:53:47]RAPDU: 90 00 [05:53:47]wFMCommunicate OK [05:53:47]SAM_PROTO_ClearQueue done [05:53:47]KKMCreateOFDPacket [05:53:47]OFDProtocolAddRootSTLVToBuf [05:53:47]FM_MakeSignedData [05:53:47]FM_MakeSignedData [05:53:47]SAM_PROTO_SignData [05:53:47]wFMCommunicate request_size=4 [05:53:47]MH_SAM_APDU [05:53:47]CAPDU: 80 0D 01 02 [05:53:47]Write to MH i2c: E2 08 00 49 2F 80 0D 01 02 00 00 00 00 F1 [05:53:47]Write i2c OK [05:53:47]MH_I2C_Read... [05:53:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:53:47]Read from MH i2c: E2 [05:53:47]MH_I2C_Read... [05:53:47]Read from MH i2c: E2 03 00 [05:53:47]MH_I2C_Read... [05:53:47]Read from MH i2c: E2 03 00 49 2F 00 90 00 EC [05:53:47]RAPDU: 90 00 [05:53:47]wFMCommunicate OK [05:53:47]wFMCommunicate request_size=255 [05:53:47]MH_SAM_APDU [05:53:47]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [05:53:47]Write to MH i2c: E2 02 01 4A 2F 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 D4 [05:53:47]Write i2c OK [05:53:47]MH_I2C_Read... [05:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:53:48]Read from MH i2c: E2 [05:53:48]MH_I2C_Read... [05:53:48]Read from MH i2c: E2 03 00 [05:53:48]MH_I2C_Read... [05:53:48]Read from MH i2c: E2 03 00 4A 2F 00 90 00 ED [05:53:48]RAPDU: 90 00 [05:53:48]wFMCommunicate OK [05:53:48]wFMCommunicate request_size=151 [05:53:48]MH_SAM_APDU [05:53:48]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 6E E9 BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DB C0 00 00 35 04 06 00 44 49 DB 61 00 DA [05:53:48]Write to MH i2c: E2 9A 00 4B 2F 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 6E E9 BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DB C0 00 00 35 04 06 00 44 49 DB 61 00 DA 00 00 E0 [05:53:48]Write i2c OK [05:53:48]MH_I2C_Read... [05:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:53:48]Read from MH i2c: E2 [05:53:48]MH_I2C_Read... [05:53:48]Read from MH i2c: E2 03 00 [05:53:48]MH_I2C_Read... [05:53:48]Read from MH i2c: E2 03 00 4B 2F 00 90 00 EE [05:53:48]RAPDU: 90 00 [05:53:48]wFMCommunicate OK [05:53:48]wFMCommunicate request_size=4 [05:53:48]MH_SAM_APDU [05:53:48]CAPDU: 80 0D 03 02 [05:53:48]Write to MH i2c: E2 08 00 4C 2F 80 0D 03 02 00 00 00 00 F6 [05:53:48]Write i2c OK [05:53:48]MH_I2C_Read... [05:53:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:53:48]Read from MH i2c: E2 [05:53:48]MH_I2C_Read... [05:53:48]Read from MH i2c: E2 0B 00 [05:53:48]MH_I2C_Read... [05:53:48]Read from MH i2c: E2 0B 00 4C 2F 00 A5 B7 9C 87 5B 27 B6 C0 90 00 6E [05:53:48]RAPDU: A5 B7 9C 87 5B 27 B6 C0 90 00 [05:53:48]wFMCommunicate OK [05:53:48]SAM_PROTO_SignData done [05:53:48]FM_MakeSignedData done [05:53:48]CreateOFDProtocolMessage [05:53:48]wFMCommunicate request_size=4 [05:53:48]MH_SAM_APDU [05:53:48]CAPDU: 80 11 00 00 [05:53:48]Write to MH i2c: E2 08 00 4D 2F 80 11 00 00 00 00 00 00 F6 [05:53:48]Write i2c OK [05:53:48]MH_I2C_Read... [05:53:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:53:48]Read from MH i2c: E2 [05:53:48]MH_I2C_Read... [05:53:48]Read from MH i2c: E2 17 00 [05:53:48]MH_I2C_Read... [05:53:48]Read from MH i2c: E2 17 00 4D 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 41 [05:53:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [05:53:48]wFMCommunicate OK [05:53:48]CreateOFDProtocolMessage done [05:53:48]OFDSenderStorePacket 49371 [05:53:48]StoreOFDPacket docnum=49371 [05:53:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9C 01 00 00 21 4B 94 01 A3 00 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 6E E9 BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DB C0 00 00 35 04 06 00 44 49 DB 61 00 DA A5 B7 9C 87 5B 27 B6 C0 [05:53:48]CheckFolder [05:53:48]dirname=/storage/ofd_packets [05:53:48]CheckFolder done [05:53:48]ProducePacketName [05:53:48]name=ofd_packets/00049371 [05:53:48]NVStorageSaveData ofd_packets/00049371 [05:53:48]File name is /storage/ofd_packets/00049371 [05:53:48]Write 442 bytes [05:53:48]NVStorageSaveData done [05:53:48]OFDSenderStorePacket done [05:53:48]KKMCreateOFDPacket done [05:53:48]NVStorageSaveData kkm_last_timestamp [05:53:48]File name is /storage/kkm_last_timestamp [05:53:48]Write 4 bytes [05:53:48]NVStorageSaveData done [05:53:48]ExternCall_PrintAddStr [05:53:48]wPrintStart [05:53:48]Write to MH i2c: 01 00 00 4E 2F 7D [05:53:48]Write i2c OK [05:53:48]MH_I2C_Read... [05:53:48]Read from MH i2c: 01 [05:53:48]MH_I2C_Read... [05:53:48]Read from MH i2c: 01 07 00 [05:53:48]MH_I2C_Read... [05:53:48]Read from MH i2c: 01 07 00 4E 2F 00 00 00 00 00 FF 0F 92 [05:53:48]RasterBufferAndPrint [05:53:48]line Счет N : (3)189611 [05:53:48]line ИНН: 02508201610067 [05:53:48]line Контрольно-Кассовый Чек [05:53:48]line ПРОДАЖА [05:53:48]line Товар: 4870227273831 [05:53:48]line Лимонад Sunbel Мохито 1л [05:53:48]line 1.000 * 85.00 [05:53:48]line = 85.00 [05:53:48]line НДС 12% НСП 1% [05:53:48]line > о реализуемом товаре [05:53:48]line Товар: 2000036220012 [05:53:48]line Кофе Капучино XL(GABB TRADE) [05:53:48]line 1.000 * 130.00 [05:53:48]line = 130.00 [05:53:48]line НДС 12% НСП 1% [05:53:48]line > о реализуемом товаре [05:53:48]line ИТОГО: 215.00 [05:53:48]line НСП 1% : 1.90 [05:53:48]line НДС 12% : 22.83 [05:53:48]line Наличными: 215.00 [05:53:48]line Безнал.: 0.00 [05:53:48]line Место: АЗС № 95 "Партнер Нефть" [05:53:48]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [05:53:48]line СНО: Общий режим [05:53:48]line Чек 19 16.08.2024 05:53 [05:53:48]line Смена: 464 ФФД: 1.0 [05:53:48]line ЗНМ: 0300000078 [05:53:48]line РНМ: 0000000000092546 [05:53:48]line Версия ККМ: 001 [05:53:48]line ФМ: 0000000000871800 [05:53:48]line ФД: 49371 [05:53:48]line ФПД: 75084003868890 [05:53:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T055350&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49371&fm=75084003868890&tin=02508201610067®Number=0000000000092546&sum=21500 [05:53:48]line 0 [05:53:48]OFD Sender: Processing packet 49371 [packets to send 21, broken 20] [05:53:48]ProducePacketName [05:53:48]name=ofd_packets/00049371 [05:53:48]OFD Sender: To server: pG, [05:53:48]CommunicateWithHost lk.salyk.kg:30040 [05:53:48]ConnectInit lk.salyk.kg [05:53:48]written 0, free lines is 4095 [05:53:48]Connected sock=10 [05:53:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9C 01 00 00 21 4B 94 01 A3 00 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EB 08 00 00 00 00 07 04 06 00 FC 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 6E E9 BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DB C0 00 00 35 04 06 00 44 49 DB 61 00 DA A5 B7 9C 87 5B 27 B6 C0 [05:53:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E7 DE 47 00 61 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 38 37 31 38 30 30 10 04 04 00 DB C0 00 00 F4 03 04 00 AE 94 BE 66 B6 04 01 00 00 C7 FC 02 95 C1 12 B3 B8 [05:53:49]CommunicateWithHost err = 0 [05:53:49]CheckOFDResponse [05:53:49]1017 (14) - 77093643461234 [05:53:49]1041 (16) - 0000000000871800 [05:53:49]1040 (4) - 49371 [05:53:49]1012 (4) - 15.08.2024 23:52 [05:53:49]1206 (1) - 0 [05:53:49]OFD Sender: Remove packet 49371 [05:53:49]ProducePacketName [05:53:49]name=ofd_packets/00049371 [05:53:49]NVStorageDeleteData [05:53:49]Write to MH i2c: 01 00 00 7D 2F AC [05:53:49]Write i2c OK [05:53:49]MH_I2C_Read... [05:53:49]Read from MH i2c: 01 [05:53:49]MH_I2C_Read... [05:53:49]Read from MH i2c: 01 07 00 [05:53:49]MH_I2C_Read... [05:53:49]Read from MH i2c: 01 07 00 7D 2F 00 00 00 00 00 85 0C 44 [05:53:49]RasterBufferAndPrint [05:53:49]line [05:53:49]line [05:53:49]line [05:53:49]line [05:53:49]line [05:53:49]written 0, free lines is 3212 [05:53:49]MH_Cut [05:53:49]Write to MH i2c: D1 01 00 84 2F 01 85 [05:53:49]Write i2c OK [05:53:49]MH_I2C_Read... [05:53:49]Read from MH i2c: D1 [05:53:49]MH_I2C_Read... [05:53:49]Read from MH i2c: D1 01 00 [05:53:49]MH_I2C_Read... [05:53:49]Read from MH i2c: D1 01 00 84 2F 00 84 [05:53:49]Write to MH i2c: 01 00 00 85 2F B4 [05:53:49]Write i2c OK [05:53:49]MH_I2C_Read... [05:53:49]OFD Sender: No OFD packet to send [05:53:50]*** Cut start [05:53:50]*** Purtial cut [05:53:50]*** Stage 1: CUTSNS_PIN = 1 [05:53:50]Read from MH i2c: 01 [05:53:50]MH_I2C_Read... [05:53:50]*** Stop cut motor [05:53:50]*** Cut end [05:53:50]Read from MH i2c: 01 07 00 [05:53:50]MH_I2C_Read... [05:53:50]Read from MH i2c: 01 07 00 85 2F 00 00 00 00 00 FF 0F C9 [05:53:50]process_action close_receipt done [05:53:50]requested_data is exist [05:53:50]produce_requested_data [05:53:50]requested_item fm.sn is exist - process it [05:53:50]wFMCommunicate request_size=4 [05:53:50]MH_SAM_APDU [05:53:50]CAPDU: 80 11 00 00 [05:53:50]Write to MH i2c: E2 08 00 86 2F 80 11 00 00 00 00 00 00 2F [05:53:50]Write i2c OK [05:53:50]MH_I2C_Read... [05:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:53:50]Read from MH i2c: E2 [05:53:50]MH_I2C_Read... [05:53:50]Read from MH i2c: E2 17 00 [05:53:50]MH_I2C_Read... [05:53:50]Read from MH i2c: E2 17 00 86 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7A [05:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [05:53:50]wFMCommunicate OK [05:53:50]requested_item fd.num is exist - process it [05:53:50]SAM_PROTO_GetFieldsCounters [05:53:50]wFMCommunicate request_size=4 [05:53:50]MH_SAM_APDU [05:53:50]CAPDU: 80 13 00 00 [05:53:50]Write to MH i2c: E2 08 00 87 2F 80 13 00 00 00 00 00 00 32 [05:53:50]Write i2c OK [05:53:50]MH_I2C_Read... [05:53:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:53:50]Read from MH i2c: E2 [05:53:50]MH_I2C_Read... [05:53:50]Read from MH i2c: E2 62 00 [05:53:50]MH_I2C_Read... [05:53:50]Read from MH i2c: E2 62 00 87 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DB C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 F1 [05:53:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DB C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:53:50]wFMCommunicate OK [05:53:50]SAM_PROTO_GetFieldsCounters done [05:53:50]requested_item shift.num is exist - process it [05:53:50]requested_item shift.opened is exist - process it [05:53:50]req_shift_opened [05:53:50]FM_GetShiftState [05:53:50]SAM_PROTO_GetShiftState [05:53:50]wFMCommunicate request_size=4 [05:53:50]MH_SAM_APDU [05:53:50]CAPDU: 80 13 01 00 [05:53:50]Write to MH i2c: E2 08 00 88 2F 80 13 01 00 00 00 00 00 34 [05:53:50]Write i2c OK [05:53:50]MH_I2C_Read... [05:53:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:53:50]Read from MH i2c: E2 [05:53:50]MH_I2C_Read... [05:53:50]Read from MH i2c: E2 0E 00 [05:53:50]MH_I2C_Read... [05:53:50]Read from MH i2c: E2 0E 00 88 2F 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 AA [05:53:50]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [05:53:50]wFMCommunicate OK [05:53:50]SAM_PROTO_GetShiftState done [05:53:50]FM_GetShiftState done [05:53:50]req_shift_opened done [05:53:50]requested_item shift.open_date is exist - process it [05:53:50]req_shift_open_date [05:53:50]req_shift_open_date done [05:53:50]produce_requested_data done [05:53:50]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49371,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [05:53:50]process_action_free close_receipt [05:53:50]json_value_free [05:53:50]json_value_free done [05:53:50]process_json_proto returns [05:53:50]Send response to host [05:53:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49371,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [05:53:50]free response buf [05:53:50]execute_script done [05:53:50]execute_script returns [05:53:50]free content buf [05:53:50]Sock 7.Close socket [05:53:50]Sock 7.Thread stoped [05:53:54]OFD Sender: No OFD packet to send [05:53:59]OFD Sender: No OFD packet to send [05:54:04]OFD Sender: No OFD packet to send [05:54:09]OFD Sender: No OFD packet to send [05:54:14]OFD Sender: No OFD packet to send [05:54:19]OFD Sender: No OFD packet to send [05:54:24]OFD Sender: No OFD packet to send [05:54:29]OFD Sender: No OFD packet to send [05:54:34]OFD Sender: No OFD packet to send [05:54:39]OFD Sender: No OFD packet to send [05:54:44]OFD Sender: No OFD packet to send [05:54:49]OFD Sender: No OFD packet to send [05:54:54]OFD Sender: No OFD packet to send [05:54:59]OFD Sender: No OFD packet to send [05:55:04]OFD Sender: No OFD packet to send [05:55:09]OFD Sender: No OFD packet to send [05:55:14]OFD Sender: No OFD packet to send [05:55:19]OFD Sender: No OFD packet to send [05:55:24]OFD Sender: No OFD packet to send [05:55:29]OFD Sender: No OFD packet to send [05:55:34]OFD Sender: No OFD packet to send [05:55:39]OFD Sender: No OFD packet to send [05:55:44]OFD Sender: No OFD packet to send [05:55:49]OFD Sender: No OFD packet to send [05:55:54]OFD Sender: No OFD packet to send [05:55:59]OFD Sender: No OFD packet to send [05:56:04]OFD Sender: No OFD packet to send [05:56:09]OFD Sender: No OFD packet to send [05:56:14]OFD Sender: No OFD packet to send [05:56:19]OFD Sender: No OFD packet to send [05:56:24]OFD Sender: No OFD packet to send [05:56:29]OFD Sender: No OFD packet to send [05:56:34]OFD Sender: No OFD packet to send [05:56:39]OFD Sender: No OFD packet to send [05:56:44]OFD Sender: No OFD packet to send [05:56:49]OFD Sender: No OFD packet to send [05:56:54]OFD Sender: No OFD packet to send [05:56:59]OFD Sender: No OFD packet to send [05:57:04]OFD Sender: No OFD packet to send [05:57:09]OFD Sender: No OFD packet to send [05:57:14]OFD Sender: No OFD packet to send [05:57:19]OFD Sender: No OFD packet to send [05:57:24]OFD Sender: No OFD packet to send [05:57:29]OFD Sender: No OFD packet to send [05:57:34]OFD Sender: No OFD packet to send [05:57:39]OFD Sender: No OFD packet to send [05:57:44]OFD Sender: No OFD packet to send [05:57:49]OFD Sender: No OFD packet to send [05:57:54]OFD Sender: No OFD packet to send [05:57:59]OFD Sender: No OFD packet to send [05:58:04]OFD Sender: No OFD packet to send [05:58:09]OFD Sender: No OFD packet to send [05:58:14]OFD Sender: No OFD packet to send [05:58:19]OFD Sender: No OFD packet to send [05:58:24]OFD Sender: No OFD packet to send [05:58:29]OFD Sender: No OFD packet to send [05:58:34]OFD Sender: No OFD packet to send [05:58:39]OFD Sender: No OFD packet to send [05:58:44]OFD Sender: No OFD packet to send [05:58:49]OFD Sender: No OFD packet to send [05:58:54]OFD Sender: No OFD packet to send [05:58:59]OFD Sender: No OFD packet to send [05:59:04]OFD Sender: No OFD packet to send [05:59:09]OFD Sender: No OFD packet to send [05:59:14]OFD Sender: No OFD packet to send [05:59:19]OFD Sender: No OFD packet to send [05:59:24]OFD Sender: No OFD packet to send [05:59:29]OFD Sender: No OFD packet to send [05:59:34]OFD Sender: No OFD packet to send [05:59:40]OFD Sender: No OFD packet to send [05:59:45]OFD Sender: No OFD packet to send [05:59:50]OFD Sender: No OFD packet to send [05:59:55]OFD Sender: No OFD packet to send [06:00:00]OFD Sender: No OFD packet to send [06:00:05]OFD Sender: No OFD packet to send [06:00:10]OFD Sender: No OFD packet to send [06:00:15]OFD Sender: No OFD packet to send [06:00:20]OFD Sender: No OFD packet to send [06:00:25]OFD Sender: No OFD packet to send [06:00:30]OFD Sender: No OFD packet to send [06:00:35]OFD Sender: No OFD packet to send [06:00:40]OFD Sender: No OFD packet to send [06:00:45]OFD Sender: No OFD packet to send [06:00:50]OFD Sender: No OFD packet to send [06:00:55]OFD Sender: No OFD packet to send [06:01:00]OFD Sender: No OFD packet to send [06:01:05]OFD Sender: No OFD packet to send [06:01:10]OFD Sender: No OFD packet to send [06:01:15]OFD Sender: No OFD packet to send [06:01:20]OFD Sender: No OFD packet to send [06:01:25]OFD Sender: No OFD packet to send [06:01:30]OFD Sender: No OFD packet to send [06:01:35]OFD Sender: No OFD packet to send [06:01:40]OFD Sender: No OFD packet to send [06:01:45]OFD Sender: No OFD packet to send [06:01:50]OFD Sender: No OFD packet to send [06:01:55]OFD Sender: No OFD packet to send [06:02:00]OFD Sender: No OFD packet to send [06:02:05]OFD Sender: No OFD packet to send [06:02:10]OFD Sender: No OFD packet to send [06:02:15]OFD Sender: No OFD packet to send [06:02:20]OFD Sender: No OFD packet to send [06:02:25]OFD Sender: No OFD packet to send [06:02:30]OFD Sender: No OFD packet to send [06:02:35]OFD Sender: No OFD packet to send [06:02:40]OFD Sender: No OFD packet to send [06:02:45]OFD Sender: No OFD packet to send [06:02:50]OFD Sender: No OFD packet to send [06:02:55]OFD Sender: No OFD packet to send [06:03:00]OFD Sender: No OFD packet to send [06:03:05]OFD Sender: No OFD packet to send [06:03:10]OFD Sender: No OFD packet to send [06:03:15]OFD Sender: No OFD packet to send [06:03:20]OFD Sender: No OFD packet to send [06:03:25]OFD Sender: No OFD packet to send [06:03:30]OFD Sender: No OFD packet to send [06:03:35]OFD Sender: No OFD packet to send [06:03:35]accept exits with 9 [06:03:35]New connection [06:03:35]New thread 3066830180 created [06:03:35]Thread 3066973540 joined [06:03:35]Waiting for new connection... [06:03:35] Sock 9.Parse request [06:03:35]Sock 9.Check first char [06:03:35]Sock 9.First char is OK [06:03:35]request: POST /json_proto HTTP/1.0 [06:03:35]Method: POST [06:03:35]URL: /json_proto [06:03:35]Method is POST - this is cgi request [06:03:35]url: /json_proto [06:03:35]query_string will be loaded in cgi processing [06:03:35]execute_cgi json_proto POST (null) [06:03:35]execute_cgi path=json_proto method=POST [06:03:35]POST find Content-Length [06:03:35]Host: 172.17.46.196:8080 [06:03:35]Content-Length: 668 [06:03:35]Content-Type: application/json [06:03:35] [06:03:35]POST finish read [06:03:35]Found Content-Length = 668 [06:03:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189612", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:35]execute_script... [06:03:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189612", "tax_sys" : 0, "items" : [ { "code": "4670003190013", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0436\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 225.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:35]POST & json_proto [06:03:35]process_json_proto [06:03:35]json parsed OK: [06:03:35]protocol is kg_v1.0 [06:03:35]action value=close_receipt [06:03:35]process_action close_receipt [06:03:35]cmd_close_receipt [06:03:35]MH_GetDate [06:03:35]Write to MH i2c: F0 00 00 89 2F A7 [06:03:35]Write i2c OK [06:03:35]MH_I2C_Read... [06:03:35]Read from MH i2c: F0 [06:03:35]MH_I2C_Read... [06:03:35]Read from MH i2c: F0 09 00 [06:03:35]MH_I2C_Read... [06:03:35]Read from MH i2c: F0 09 00 89 2F 00 BB EB BE 66 07 E8 5D 66 2C [06:03:35]GetLastDocTimeStamp 1723787630 [06:03:35]current date 1723788219 [06:03:35]FM_GetShiftState [06:03:35]SAM_PROTO_GetShiftState [06:03:35]wFMCommunicate request_size=4 [06:03:35]MH_SAM_APDU [06:03:35]CAPDU: 80 13 01 00 [06:03:35]Write to MH i2c: E2 08 00 8A 2F 80 13 01 00 00 00 00 00 36 [06:03:35]Write i2c OK [06:03:35]MH_I2C_Read... [06:03:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:35]Read from MH i2c: E2 [06:03:35]MH_I2C_Read... [06:03:35]Read from MH i2c: E2 0E 00 [06:03:35]MH_I2C_Read... [06:03:35]Read from MH i2c: E2 0E 00 8A 2F 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 AC [06:03:35]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [06:03:35]wFMCommunicate OK [06:03:35]SAM_PROTO_GetShiftState done [06:03:35]FM_GetShiftState done [06:03:35]opened in 1723766958 [06:03:35]opened+sec_in_day 1723853358 [06:03:35]quantity*price = 22500 [06:03:35]sum+1 = 22501 [06:03:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 225.00 НСП 1% : 1.99 НДС 12% : 23.89 Наличными: 225.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 20 16.08.2024 06:03 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49372 ФПД: 216793200922461 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T060339&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49372&fm=216793200922461&tin=02508201610067®Number=0000000000092546&sum=22500 0 [06:03:36]StoreToDocumentArchive [06:03:36]shift 464 fd 49372 [06:03:36]save to /storage/0464/doc_00049372 [06:03:36]save last doc name /storage/0464/doc_00049372 to /storage/kkm_last_doc_name [06:03:36]save OK [06:03:36]Clear old archive folders... [06:03:36]ProcessDocumentItem done err = 0, tmpTLVsize=296 [06:03:36]tlvbuf is B6F5D230 [06:03:36]SAM_PROTO_ClearQueue [06:03:36]wFMCommunicate request_size=4 [06:03:36]MH_SAM_APDU [06:03:36]CAPDU: 80 09 00 00 [06:03:36]Write to MH i2c: E2 08 00 97 2F 80 09 00 00 00 00 00 00 38 [06:03:36]Write i2c OK [06:03:36]MH_I2C_Read... [06:03:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:03:36]Read from MH i2c: E2 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: E2 03 00 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: E2 03 00 97 2F 00 90 00 3A [06:03:36]RAPDU: 90 00 [06:03:36]wFMCommunicate OK [06:03:36]SAM_PROTO_ClearQueue done [06:03:36]KKMCreateOFDPacket [06:03:36]OFDProtocolAddRootSTLVToBuf [06:03:36]FM_MakeSignedData [06:03:36]FM_MakeSignedData [06:03:36]SAM_PROTO_SignData [06:03:36]wFMCommunicate request_size=4 [06:03:36]MH_SAM_APDU [06:03:36]CAPDU: 80 0D 01 02 [06:03:36]Write to MH i2c: E2 08 00 98 2F 80 0D 01 02 00 00 00 00 40 [06:03:36]Write i2c OK [06:03:36]MH_I2C_Read... [06:03:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:03:36]Read from MH i2c: E2 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: E2 03 00 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: E2 03 00 98 2F 00 90 00 3B [06:03:36]RAPDU: 90 00 [06:03:36]wFMCommunicate OK [06:03:36]wFMCommunicate request_size=255 [06:03:36]MH_SAM_APDU [06:03:36]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 BB EB BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [06:03:36]Write to MH i2c: E2 02 01 99 2F 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 BB EB BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 70 [06:03:36]Write i2c OK [06:03:36]MH_I2C_Read... [06:03:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:36]Read from MH i2c: E2 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: E2 03 00 [06:03:36]MH_I2C_Read... [06:03:36]Read from MH i2c: E2 03 00 99 2F 00 90 00 3C [06:03:36]RAPDU: 90 00 [06:03:36]wFMCommunicate OK [06:03:36]wFMCommunicate request_size=55 [06:03:36]MH_SAM_APDU [06:03:36]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DC C0 00 00 35 04 06 00 C5 2C 19 BB 0F 5D [06:03:36]Write to MH i2c: E2 3A 00 9A 2F 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DC C0 00 00 35 04 06 00 C5 2C 19 BB 0F 5D 00 00 62 [06:03:36]Write i2c OK [06:03:36]MH_I2C_Read... [06:03:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:37]Read from MH i2c: E2 [06:03:37]MH_I2C_Read... [06:03:37]Read from MH i2c: E2 03 00 [06:03:37]MH_I2C_Read... [06:03:37]Read from MH i2c: E2 03 00 9A 2F 00 90 00 3D [06:03:37]RAPDU: 90 00 [06:03:37]wFMCommunicate OK [06:03:37]wFMCommunicate request_size=4 [06:03:37]MH_SAM_APDU [06:03:37]CAPDU: 80 0D 03 02 [06:03:37]Write to MH i2c: E2 08 00 9B 2F 80 0D 03 02 00 00 00 00 45 [06:03:37]Write i2c OK [06:03:37]MH_I2C_Read... [06:03:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:03:37]Read from MH i2c: E2 [06:03:37]MH_I2C_Read... [06:03:37]Read from MH i2c: E2 0B 00 [06:03:37]MH_I2C_Read... [06:03:37]Read from MH i2c: E2 0B 00 9B 2F 00 D0 E5 B9 FC C8 46 39 E2 90 00 D9 [06:03:37]RAPDU: D0 E5 B9 FC C8 46 39 E2 90 00 [06:03:37]wFMCommunicate OK [06:03:37]SAM_PROTO_SignData done [06:03:37]FM_MakeSignedData done [06:03:37]CreateOFDProtocolMessage [06:03:37]wFMCommunicate request_size=4 [06:03:37]MH_SAM_APDU [06:03:37]CAPDU: 80 11 00 00 [06:03:37]Write to MH i2c: E2 08 00 9C 2F 80 11 00 00 00 00 00 00 45 [06:03:37]Write i2c OK [06:03:37]MH_I2C_Read... [06:03:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:37]Read from MH i2c: E2 [06:03:37]MH_I2C_Read... [06:03:37]Read from MH i2c: E2 17 00 [06:03:37]MH_I2C_Read... [06:03:37]Read from MH i2c: E2 17 00 9C 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 90 [06:03:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [06:03:37]wFMCommunicate OK [06:03:37]CreateOFDProtocolMessage done [06:03:37]OFDSenderStorePacket 49372 [06:03:37]StoreOFDPacket docnum=49372 [06:03:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3C 01 00 00 B7 35 34 01 B0 01 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 BB EB BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DC C0 00 00 35 04 06 00 C5 2C 19 BB 0F 5D D0 E5 B9 FC C8 46 39 E2 [06:03:37]CheckFolder [06:03:37]dirname=/storage/ofd_packets [06:03:37]CheckFolder done [06:03:37]ProducePacketName [06:03:37]name=ofd_packets/00049372 [06:03:37]NVStorageSaveData ofd_packets/00049372 [06:03:37]File name is /storage/ofd_packets/00049372 [06:03:37]Write 346 bytes [06:03:37]NVStorageSaveData done [06:03:37]OFDSenderStorePacket done [06:03:37]KKMCreateOFDPacket done [06:03:37]NVStorageSaveData kkm_last_timestamp [06:03:37]File name is /storage/kkm_last_timestamp [06:03:37]Write 4 bytes [06:03:37]NVStorageSaveData done [06:03:37]ExternCall_PrintAddStr [06:03:37]wPrintStart [06:03:37]Write to MH i2c: 01 00 00 9D 2F CC [06:03:37]OFD Sender: Processing packet 49372 [packets to send 21, broken 20] [06:03:37]ProducePacketName [06:03:37]name=ofd_packets/00049372 [06:03:37]OFD Sender: To server: pG, [06:03:37]CommunicateWithHost lk.salyk.kg:30040 [06:03:37]ConnectInit lk.salyk.kg [06:03:37]Write i2c OK [06:03:37]MH_I2C_Read... [06:03:37]Read from MH i2c: 01 [06:03:37]MH_I2C_Read... [06:03:37]Read from MH i2c: 01 07 00 [06:03:37]MH_I2C_Read... [06:03:37]Read from MH i2c: 01 07 00 9D 2F 00 00 00 00 00 FF 0F E1 [06:03:37]RasterBufferAndPrint [06:03:37]line Счет N : (3)189612 [06:03:37]line ИНН: 02508201610067 [06:03:37]line Контрольно-Кассовый Чек [06:03:37]line ПРОДАЖА [06:03:37]line Товар: 4670003190013 [06:03:37]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 жел 1л [06:03:37]line 1.000 * 225.00 [06:03:37]line = 225.00 [06:03:37]line НДС 12% НСП 1% [06:03:37]line > о реализуемом товаре [06:03:37]line ИТОГО: 225.00 [06:03:37]line НСП 1% : 1.99 [06:03:37]line НДС 12% : 23.89 [06:03:37]line Наличными: 225.00 [06:03:37]line Безнал.: 0.00 [06:03:37]line Место: АЗС № 95 "Партнер Нефть" [06:03:37]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [06:03:37]line СНО: Общий режим [06:03:37]line Чек 20 16.08.2024 06:03 [06:03:37]line Смена: 464 ФФД: 1.0 [06:03:37]line ЗНМ: 0300000078 [06:03:37]line РНМ: 0000000000092546 [06:03:37]line Версия ККМ: 001 [06:03:37]line ФМ: 0000000000871800 [06:03:37]line ФД: 49372 [06:03:37]line ФПД: 216793200922461 [06:03:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T060339&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49372&fm=216793200922461&tin=02508201610067®Number=0000000000092546&sum=22500 [06:03:37]line 0 [06:03:37]Connected sock=7 [06:03:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3C 01 00 00 B7 35 34 01 B0 01 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 31 33 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B6 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 E4 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 BB EB BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DC C0 00 00 35 04 06 00 C5 2C 19 BB 0F 5D D0 E5 B9 FC C8 46 39 E2 [06:03:37]written 0, free lines is 4095 [06:03:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 B3 3B 47 00 AF 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DC C0 00 00 F4 03 04 00 FB 96 BE 66 B6 04 01 00 00 77 88 BB 10 CE 96 4C 4A [06:03:37]CommunicateWithHost err = 0 [06:03:37]CheckOFDResponse [06:03:37]1017 (14) - 77093643461234 [06:03:37]1041 (16) - 0000000000871800 [06:03:37]1040 (4) - 49372 [06:03:37]1012 (4) - 16.08.2024 00:02 [06:03:37]1206 (1) - 0 [06:03:37]OFD Sender: Remove packet 49372 [06:03:37]ProducePacketName [06:03:37]name=ofd_packets/00049372 [06:03:37]NVStorageDeleteData [06:03:37]Write to MH i2c: 01 00 00 C6 2F F5 [06:03:37]Write i2c OK [06:03:37]MH_I2C_Read... [06:03:37]Read from MH i2c: 01 [06:03:37]MH_I2C_Read... [06:03:37]Read from MH i2c: 01 07 00 [06:03:37]MH_I2C_Read... [06:03:37]Read from MH i2c: 01 07 00 C6 2F 00 00 00 00 00 D8 0C E0 [06:03:37]RasterBufferAndPrint [06:03:37]line [06:03:37]line [06:03:37]line [06:03:37]line [06:03:37]line [06:03:37]written 0, free lines is 3296 [06:03:37]MH_Cut [06:03:37]Write to MH i2c: D1 01 00 CD 2F 01 CE [06:03:37]Write i2c OK [06:03:37]MH_I2C_Read... [06:03:37]Read from MH i2c: D1 [06:03:37]MH_I2C_Read... [06:03:37]Read from MH i2c: D1 01 00 [06:03:37]MH_I2C_Read... [06:03:37]Read from MH i2c: D1 01 00 CD 2F 00 CD [06:03:37]Write to MH i2c: 01 00 00 CE 2F FD [06:03:37]Write i2c OK [06:03:37]MH_I2C_Read... [06:03:38]OFD Sender: No OFD packet to send [06:03:38]*** Cut start [06:03:38]*** Purtial cut [06:03:38]*** CUTSNS_PIN = 0 [06:03:38]*** Stage 1: CUTSNS_PIN = 1 [06:03:40]Read from MH i2c: 01 [06:03:40]MH_I2C_Read... [06:03:40]*** Stop cut motor [06:03:40]*** Cut end [06:03:40]Read from MH i2c: 01 07 00 [06:03:40]MH_I2C_Read... [06:03:40]Read from MH i2c: 01 07 00 CE 2F 00 00 00 00 00 FF 0F 12 [06:03:40]process_action close_receipt done [06:03:40]requested_data is exist [06:03:40]produce_requested_data [06:03:40]requested_item fm.sn is exist - process it [06:03:40]wFMCommunicate request_size=4 [06:03:40]MH_SAM_APDU [06:03:40]CAPDU: 80 11 00 00 [06:03:40]Write to MH i2c: E2 08 00 CF 2F 80 11 00 00 00 00 00 00 78 [06:03:40]Write i2c OK [06:03:40]MH_I2C_Read... [06:03:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:40]Read from MH i2c: E2 [06:03:40]MH_I2C_Read... [06:03:40]Read from MH i2c: E2 17 00 [06:03:40]MH_I2C_Read... [06:03:40]Read from MH i2c: E2 17 00 CF 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C3 [06:03:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [06:03:40]wFMCommunicate OK [06:03:40]requested_item fd.num is exist - process it [06:03:40]SAM_PROTO_GetFieldsCounters [06:03:40]wFMCommunicate request_size=4 [06:03:40]MH_SAM_APDU [06:03:40]CAPDU: 80 13 00 00 [06:03:40]Write to MH i2c: E2 08 00 D0 2F 80 13 00 00 00 00 00 00 7B [06:03:40]Write i2c OK [06:03:40]MH_I2C_Read... [06:03:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:03:40]Read from MH i2c: E2 [06:03:40]MH_I2C_Read... [06:03:40]Read from MH i2c: E2 62 00 [06:03:40]MH_I2C_Read... [06:03:40]Read from MH i2c: E2 62 00 D0 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DC C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 3E [06:03:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DC C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:03:40]wFMCommunicate OK [06:03:40]SAM_PROTO_GetFieldsCounters done [06:03:40]requested_item shift.num is exist - process it [06:03:40]requested_item shift.opened is exist - process it [06:03:40]req_shift_opened [06:03:40]FM_GetShiftState [06:03:40]SAM_PROTO_GetShiftState [06:03:40]wFMCommunicate request_size=4 [06:03:40]MH_SAM_APDU [06:03:40]CAPDU: 80 13 01 00 [06:03:40]Write to MH i2c: E2 08 00 D1 2F 80 13 01 00 00 00 00 00 7D [06:03:40]Write i2c OK [06:03:40]MH_I2C_Read... [06:03:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:41]Read from MH i2c: E2 [06:03:41]MH_I2C_Read... [06:03:41]Read from MH i2c: E2 0E 00 [06:03:41]MH_I2C_Read... [06:03:41]Read from MH i2c: E2 0E 00 D1 2F 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 F3 [06:03:41]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [06:03:41]wFMCommunicate OK [06:03:41]SAM_PROTO_GetShiftState done [06:03:41]FM_GetShiftState done [06:03:41]req_shift_opened done [06:03:41]requested_item shift.open_date is exist - process it [06:03:41]req_shift_open_date [06:03:41]req_shift_open_date done [06:03:41]produce_requested_data done [06:03:41]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49372,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [06:03:41]process_action_free close_receipt [06:03:41]json_value_free [06:03:41]json_value_free done [06:03:41]process_json_proto returns [06:03:41]Send response to host [06:03:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49372,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [06:03:41]free response buf [06:03:41]execute_script done [06:03:41]execute_script returns [06:03:41]free content buf [06:03:41]Sock 9.Close socket [06:03:41]Sock 9.Thread stoped [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:03:58]int [06:03:58]Write to MH i2c: 01 00 00 D2 2F 01 [06:03:58]*** FLAG_PRN_KEY set [06:03:58]Write i2c OK [06:03:58]MH_I2C_Read... [06:03:58]Read from MH i2c: 01 [06:03:58]MH_I2C_Read... [06:03:58]Read from MH i2c: 01 07 00 [06:03:58]MH_I2C_Read... [06:03:58]Read from MH i2c: 01 07 00 D2 2F 00 08 00 00 00 FF 0F 1E [06:03:58]state=0 [06:03:58]Key pressed [06:03:58]Feed [06:03:58]Write to MH i2c: D8 00 00 D3 2F D9 [06:03:59]Write i2c OK [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: D8 [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: D8 01 00 [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: D8 01 00 D3 2F 00 DA [06:03:59]int [06:03:59]Write to MH i2c: 01 00 00 D4 2F 03 [06:03:59]Write i2c OK [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: 01 [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: 01 07 00 [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: 01 07 00 D4 2F 00 48 00 00 00 3C 00 8E [06:03:59]state=2 [06:03:59]Key pressed [06:03:59]int [06:03:59]Write to MH i2c: 01 00 00 D5 2F 04 [06:03:59]*** FLAG_PRN_KEY reset [06:03:59]Write i2c OK [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: 01 [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: 01 07 00 [06:03:59]MH_I2C_Read... [06:03:59]Read from MH i2c: 01 07 00 D5 2F 00 00 00 00 00 F5 0F 0F [06:03:59]state=2 [06:03:59]Stop feed [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:06:59]accept exits with 10 [06:06:59]New connection [06:06:59]New thread 3066973540 created [06:06:59]Thread 3066830180 joined [06:06:59]Waiting for new connection... [06:06:59] Sock 10.Parse request [06:06:59]Sock 10.Check first char [06:06:59]Sock 10.First char is OK [06:06:59]request: POST /json_proto HTTP/1.0 [06:06:59]Method: POST [06:06:59]URL: /json_proto [06:06:59]Method is POST - this is cgi request [06:06:59]url: /json_proto [06:06:59]query_string will be loaded in cgi processing [06:06:59]execute_cgi json_proto POST (null) [06:06:59]execute_cgi path=json_proto method=POST [06:06:59]POST find Content-Length [06:06:59]Host: 172.17.46.196:8080 [06:06:59]Content-Length: 1362 [06:06:59]Content-Type: application/json [06:06:59] [06:06:59]POST finish read [06:06:59]Found Content-Length = 1362 [06:06:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189613", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 3.000, "sum" : 345.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607123066058", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E \u043E\u0440\u0435\u0445 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630056952563", "name": "\u041F\u0435\u0447 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E \u043C\u043E\u043B\u043E\u0447\u043D\u043E\u0435 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 463.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:06:59]execute_script... [06:06: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 : (3)189613", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 3.000, "sum" : 345.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607123066058", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E \u043E\u0440\u0435\u0445 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630056952563", "name": "\u041F\u0435\u0447 \u042E\u0431\u0438\u043B\u0435\u0439\u043D\u043E\u0435 \u0422\u043E\u0440\u0436\u0435\u0441\u0442\u0432\u043E \u043C\u043E\u043B\u043E\u0447\u043D\u043E\u0435 120\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 463.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:06:59]POST & json_proto [06:06:59]process_json_proto [06:06:59]json parsed OK: [06:06:59]protocol is kg_v1.0 [06:06:59]action value=close_receipt [06:06:59]process_action close_receipt [06:06:59]cmd_close_receipt [06:06:59]MH_GetDate [06:06:59]Write to MH i2c: F0 00 00 D6 2F F4 [06:06:59]Write i2c OK [06:06:59]MH_I2C_Read... [06:06:59]Read from MH i2c: F0 [06:06:59]MH_I2C_Read... [06:06:59]Read from MH i2c: F0 09 00 [06:06:59]MH_I2C_Read... [06:06:59]Read from MH i2c: F0 09 00 D6 2F 00 88 EC BE 66 07 E8 5D 66 47 [06:06:59]GetLastDocTimeStamp 1723788219 [06:06:59]current date 1723788424 [06:06:59]FM_GetShiftState [06:06:59]SAM_PROTO_GetShiftState [06:06:59]wFMCommunicate request_size=4 [06:06:59]MH_SAM_APDU [06:06:59]CAPDU: 80 13 01 00 [06:06:59]Write to MH i2c: E2 08 00 D7 2F 80 13 01 00 00 00 00 00 83 [06:06:59]Write i2c OK [06:06:59]MH_I2C_Read... [06:06:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:06:59]Read from MH i2c: E2 [06:06:59]MH_I2C_Read... [06:06:59]Read from MH i2c: E2 0E 00 [06:06:59]MH_I2C_Read... [06:06:59]Read from MH i2c: E2 0E 00 D7 2F 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 F9 [06:06:59]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [06:06:59]wFMCommunicate OK [06:06:59]SAM_PROTO_GetShiftState done [06:06:59]FM_GetShiftState done [06:06:59]opened in 1723766958 [06:06:59]opened+sec_in_day 1723853358 [06:06:59]quantity*price = 34500 [06:06:59]sum+1 = 34501 [06:07:00]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607123066058 Печенье Юбилейное Торжество орех 120г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4630056952563 Печ Юбилейное Торжество молочное 120г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 463.00 НСП 1% : 4.09 НДС 12% : 49.16 Наличными: 463.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 21 16.08.2024 06:07 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49373 ФПД: 98136202394239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T060704&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49373&fm=98136202394239&tin=02508201610067®Number=0000000000092546&sum=46300 0 [06:07:01]StoreToDocumentArchive [06:07:01]shift 464 fd 49373 [06:07:01]save to /storage/0464/doc_00049373 [06:07:01]save last doc name /storage/0464/doc_00049373 to /storage/kkm_last_doc_name [06:07:01]save OK [06:07:01]Clear old archive folders... [06:07:01]ProcessDocumentItem done err = 0, tmpTLVsize=558 [06:07:01]tlvbuf is 00DEA0D0 [06:07:01]SAM_PROTO_ClearQueue [06:07:01]wFMCommunicate request_size=4 [06:07:01]MH_SAM_APDU [06:07:01]CAPDU: 80 09 00 00 [06:07:01]Write to MH i2c: E2 08 00 E4 2F 80 09 00 00 00 00 00 00 85 [06:07:01]Write i2c OK [06:07:01]MH_I2C_Read... [06:07:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:07:01]Read from MH i2c: E2 [06:07:01]MH_I2C_Read... [06:07:01]Read from MH i2c: E2 03 00 [06:07:01]MH_I2C_Read... [06:07:01]Read from MH i2c: E2 03 00 E4 2F 00 90 00 87 [06:07:01]RAPDU: 90 00 [06:07:01]wFMCommunicate OK [06:07:01]SAM_PROTO_ClearQueue done [06:07:01]KKMCreateOFDPacket [06:07:01]OFDProtocolAddRootSTLVToBuf [06:07:01]FM_MakeSignedData [06:07:01]FM_MakeSignedData [06:07:01]SAM_PROTO_SignData [06:07:01]wFMCommunicate request_size=4 [06:07:01]MH_SAM_APDU [06:07:01]CAPDU: 80 0D 01 02 [06:07:01]Write to MH i2c: E2 08 00 E5 2F 80 0D 01 02 00 00 00 00 8D [06:07:01]Write i2c OK [06:07:01]MH_I2C_Read... [06:07:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:07:01]Read from MH i2c: E2 [06:07:01]MH_I2C_Read... [06:07:01]Read from MH i2c: E2 03 00 [06:07:01]MH_I2C_Read... [06:07:01]Read from MH i2c: E2 03 00 E5 2F 00 90 00 88 [06:07:01]RAPDU: 90 00 [06:07:01]wFMCommunicate OK [06:07:01]wFMCommunicate request_size=255 [06:07:01]MH_SAM_APDU [06:07:01]CAPDU: 80 0D 02 02 FA 03 00 2E 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 32 33 30 36 36 30 35 38 06 04 43 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BE D1 80 D0 B5 D1 85 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 [06:07:01]Write to MH i2c: E2 02 01 E6 2F 80 0D 02 02 FA 00 03 00 2E 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 32 33 30 36 36 30 35 38 06 04 43 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BE D1 80 D0 B5 D1 85 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 00 00 E7 [06:07:01]Write i2c OK [06:07:01]MH_I2C_Read... [06:07:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:07:01]Read from MH i2c: E2 [06:07:01]MH_I2C_Read... [06:07:01]Read from MH i2c: E2 03 00 [06:07:01]MH_I2C_Read... [06:07:01]Read from MH i2c: E2 03 00 E6 2F 00 90 00 89 [06:07:01]RAPDU: 90 00 [06:07:01]wFMCommunicate OK [06:07:01]wFMCommunicate request_size=255 [06:07:01]MH_SAM_APDU [06:07:01]CAPDU: 80 0D 02 02 FA 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 35 36 33 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D0 BE D0 B5 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC B4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 13 00 00 00 00 07 04 06 00 DC B4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 88 EC BE 66 0E 04 04 00 D0 01 00 00 B9 [06:07:01]Write to MH i2c: E2 02 01 E7 2F 80 0D 02 02 FA 00 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 35 36 33 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D0 BE D0 B5 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC B4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 13 00 00 00 00 07 04 06 00 DC B4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 88 EC BE 66 0E 04 04 00 D0 01 00 00 B9 00 00 98 [06:07:01]Write i2c OK [06:07:01]MH_I2C_Read... [06:07:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:07:02]Read from MH i2c: E2 [06:07:02]MH_I2C_Read... [06:07:02]Read from MH i2c: E2 03 00 [06:07:02]MH_I2C_Read... [06:07:02]Read from MH i2c: E2 03 00 E7 2F 00 90 00 8A [06:07:02]RAPDU: 90 00 [06:07:02]wFMCommunicate OK [06:07:02]wFMCommunicate request_size=67 [06:07:02]MH_SAM_APDU [06:07:02]CAPDU: 80 0D 02 02 3E 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DD C0 00 00 35 04 06 00 59 41 1D 7B BA 7F [06:07:02]Write to MH i2c: E2 46 00 E8 2F 80 0D 02 02 3E 00 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DD C0 00 00 35 04 06 00 59 41 1D 7B BA 7F 00 00 EA [06:07:02]Write i2c OK [06:07:02]MH_I2C_Read... [06:07:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:07:02]Read from MH i2c: E2 [06:07:02]MH_I2C_Read... [06:07:02]Read from MH i2c: E2 03 00 [06:07:02]MH_I2C_Read... [06:07:02]Read from MH i2c: E2 03 00 E8 2F 00 90 00 8B [06:07:02]RAPDU: 90 00 [06:07:02]wFMCommunicate OK [06:07:02]wFMCommunicate request_size=4 [06:07:02]MH_SAM_APDU [06:07:02]CAPDU: 80 0D 03 02 [06:07:02]Write to MH i2c: E2 08 00 E9 2F 80 0D 03 02 00 00 00 00 93 [06:07:02]Write i2c OK [06:07:02]MH_I2C_Read... [06:07:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:07:02]Read from MH i2c: E2 [06:07:02]MH_I2C_Read... [06:07:02]Read from MH i2c: E2 0B 00 [06:07:02]MH_I2C_Read... [06:07:02]Read from MH i2c: E2 0B 00 E9 2F 00 92 05 AE 60 0B C1 EC 03 90 00 F4 [06:07:02]RAPDU: 92 05 AE 60 0B C1 EC 03 90 00 [06:07:02]wFMCommunicate OK [06:07:02]SAM_PROTO_SignData done [06:07:02]FM_MakeSignedData done [06:07:02]CreateOFDProtocolMessage [06:07:02]wFMCommunicate request_size=4 [06:07:02]MH_SAM_APDU [06:07:02]CAPDU: 80 11 00 00 [06:07:02]Write to MH i2c: E2 08 00 EA 2F 80 11 00 00 00 00 00 00 93 [06:07:02]Write i2c OK [06:07:02]MH_I2C_Read... [06:07:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:07:02]Read from MH i2c: E2 [06:07:02]MH_I2C_Read... [06:07:02]Read from MH i2c: E2 17 00 [06:07:02]MH_I2C_Read... [06:07:02]Read from MH i2c: E2 17 00 EA 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DE [06:07:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [06:07:02]wFMCommunicate OK [06:07:02]CreateOFDProtocolMessage done [06:07:02]OFDSenderStorePacket 49373 [06:07:02]StoreOFDPacket docnum=49373 [06:07:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 42 02 00 00 31 5D 3A 02 0F 44 5A 03 01 00 03 00 2E 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 32 33 30 36 36 30 35 38 06 04 43 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BE D1 80 D0 B5 D1 85 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 35 36 33 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D0 BE D0 B5 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC B4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 13 00 00 00 00 07 04 06 00 DC B4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 88 EC BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DD C0 00 00 35 04 06 00 59 41 1D 7B BA 7F 92 05 AE 60 0B C1 EC 03 [06:07:02]CheckFolder [06:07:02]dirname=/storage/ofd_packets [06:07:02]CheckFolder done [06:07:02]ProducePacketName [06:07:02]name=ofd_packets/00049373 [06:07:02]NVStorageSaveData ofd_packets/00049373 [06:07:02]File name is /storage/ofd_packets/00049373 [06:07:02]Write 608 bytes [06:07:02]NVStorageSaveData done [06:07:02]OFDSenderStorePacket done [06:07:02]KKMCreateOFDPacket done [06:07:02]NVStorageSaveData kkm_last_timestamp [06:07:02]File name is /storage/kkm_last_timestamp [06:07:02]Write 4 bytes [06:07:02]NVStorageSaveData done [06:07:02]ExternCall_PrintAddStr [06:07:02]wPrintStart [06:07:02]Write to MH i2c: 01 00 00 EB 2F 1A [06:07:02]Write i2c OK [06:07:02]MH_I2C_Read... [06:07:02]Read from MH i2c: 01 [06:07:02]MH_I2C_Read... [06:07:02]Read from MH i2c: 01 07 00 [06:07:02]MH_I2C_Read... [06:07:02]Read from MH i2c: 01 07 00 EB 2F 00 00 00 00 00 FF 0F 2F [06:07:02]RasterBufferAndPrint [06:07:02]line Счет N : (3)189613 [06:07:02]line ИНН: 02508201610067 [06:07:02]line Контрольно-Кассовый Чек [06:07:02]line ПРОДАЖА [06:07:02]line Товар: 2000036210013 [06:07:02]line Кофе Капучино (GABB TRADE) [06:07:02]line 3.000 * 115.00 [06:07:02]line = 345.00 [06:07:02]line НДС 12% НСП 1% [06:07:02]line > о реализуемом товаре [06:07:02]line Товар: 4607123066058 [06:07:02]line Печенье Юбилейное Торжество орех 120г [06:07:02]line 1.000 * 59.00 [06:07:02]line = 59.00 [06:07:02]line НДС 12% НСП 1% [06:07:02]line > о реализуемом товаре [06:07:02]line Товар: 4630056952563 [06:07:02]line Печ Юбилейное Торжество молочное 120г [06:07:02]line 1.000 * 59.00 [06:07:02]line = 59.00 [06:07:02]line НДС 12% НСП 1% [06:07:02]line > о реализуемом товаре [06:07:02]line ИТОГО: 463.00 [06:07:02]line НСП 1% : 4.09 [06:07:02]line НДС 12% : 49.16 [06:07:02]line Наличными: 463.00 [06:07:02]line Безнал.: 0.00 [06:07:02]line Место: АЗС № 95 "Партнер Нефть" [06:07:02]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [06:07:02]line СНО: Общий режим [06:07:02]line Чек 21 16.08.2024 06:07 [06:07:02]line Смена: 464 ФФД: 1.0 [06:07:02]line ЗНМ: 0300000078 [06:07:02]line РНМ: 0000000000092546 [06:07:02]line Версия ККМ: 001 [06:07:02]line ФМ: 0000000000871800 [06:07:02]line ФД: 49373 [06:07:02]line ФПД: 98136202394239 [06:07:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T060704&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49373&fm=98136202394239&tin=02508201610067®Number=0000000000092546&sum=46300 [06:07:02]line 0 [06:07:02]OFD Sender: Processing packet 49373 [packets to send 21, broken 20] [06:07:02]ProducePacketName [06:07:02]name=ofd_packets/00049373 [06:07:02]OFD Sender: To server: pG, [06:07:02]CommunicateWithHost lk.salyk.kg:30040 [06:07:02]ConnectInit lk.salyk.kg [06:07:02]written 0, free lines is 4095 [06:07:02]Connected sock=9 [06:07:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 42 02 00 00 31 5D 3A 02 0F 44 5A 03 01 00 03 00 2E 02 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 30 37 31 32 33 30 36 36 30 35 38 06 04 43 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BE D1 80 D0 B5 D1 85 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 36 33 30 30 35 36 39 35 32 35 36 33 06 04 43 00 D0 9F D0 B5 D1 87 20 D0 AE D0 B1 D0 B8 D0 BB D0 B5 D0 B9 D0 BD D0 BE D0 B5 20 D0 A2 D0 BE D1 80 D0 B6 D0 B5 D1 81 D1 82 D0 B2 D0 BE 20 D0 BC D0 BE D0 BB D0 BE D1 87 D0 BD D0 BE D0 B5 20 31 32 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC B4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 99 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 13 00 00 00 00 07 04 06 00 DC B4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 88 EC BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DD C0 00 00 35 04 06 00 59 41 1D 7B BA 7F 92 05 AE 60 0B C1 EC 03 [06:07:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 21 F3 47 00 14 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DD C0 00 00 F4 03 04 00 C8 97 BE 66 B6 04 01 00 00 2C 1D 89 5B 12 19 63 52 [06:07:03]CommunicateWithHost err = 0 [06:07:03]CheckOFDResponse [06:07:03]1017 (14) - 77093643461234 [06:07:03]1041 (16) - 0000000000871800 [06:07:03]1040 (4) - 49373 [06:07:03]1012 (4) - 16.08.2024 00:05 [06:07:03]1206 (1) - 0 [06:07:03]OFD Sender: Remove packet 49373 [06:07:03]ProducePacketName [06:07:03]name=ofd_packets/00049373 [06:07:03]NVStorageDeleteData [06:07:03]Write to MH i2c: 01 00 00 21 30 51 [06:07:03]Write i2c OK [06:07:03]MH_I2C_Read... [06:07:03]Read from MH i2c: 01 [06:07:03]MH_I2C_Read... [06:07:03]Read from MH i2c: 01 07 00 [06:07:03]MH_I2C_Read... [06:07:03]Read from MH i2c: 01 07 00 21 30 00 00 00 00 00 09 0C 6D [06:07:03]RasterBufferAndPrint [06:07:03]line [06:07:03]line [06:07:03]line [06:07:03]line [06:07:03]line [06:07:03]written 0, free lines is 3087 [06:07:03]MH_Cut [06:07:03]Write to MH i2c: D1 01 00 28 30 01 2A [06:07:03]Write i2c OK [06:07:03]MH_I2C_Read... [06:07:03]Read from MH i2c: D1 [06:07:03]MH_I2C_Read... [06:07:03]Read from MH i2c: D1 01 00 [06:07:03]MH_I2C_Read... [06:07:03]Read from MH i2c: D1 01 00 28 30 00 29 [06:07:03]Write to MH i2c: 01 00 00 29 30 59 [06:07:03]Write i2c OK [06:07:03]MH_I2C_Read... [06:07:03]OFD Sender: No OFD packet to send [06:07:04]*** Cut start [06:07:04]*** Purtial cut [06:07:04]*** Stage 1: CUTSNS_PIN = 1 [06:07:04]Read from MH i2c: 01 [06:07:04]MH_I2C_Read... [06:07:04]*** Stop cut motor [06:07:04]*** Cut end [06:07:04]Read from MH i2c: 01 07 00 [06:07:04]MH_I2C_Read... [06:07:04]Read from MH i2c: 01 07 00 29 30 00 00 00 00 00 FF 0F 6E [06:07:04]process_action close_receipt done [06:07:04]requested_data is exist [06:07:04]produce_requested_data [06:07:04]requested_item fm.sn is exist - process it [06:07:04]wFMCommunicate request_size=4 [06:07:04]MH_SAM_APDU [06:07:04]CAPDU: 80 11 00 00 [06:07:04]Write to MH i2c: E2 08 00 2A 30 80 11 00 00 00 00 00 00 D4 [06:07:04]Write i2c OK [06:07:04]MH_I2C_Read... [06:07:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:07:04]Read from MH i2c: E2 [06:07:04]MH_I2C_Read... [06:07:04]Read from MH i2c: E2 17 00 [06:07:04]MH_I2C_Read... [06:07:04]Read from MH i2c: E2 17 00 2A 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1F [06:07:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [06:07:04]wFMCommunicate OK [06:07:04]requested_item fd.num is exist - process it [06:07:04]SAM_PROTO_GetFieldsCounters [06:07:04]wFMCommunicate request_size=4 [06:07:04]MH_SAM_APDU [06:07:04]CAPDU: 80 13 00 00 [06:07:04]Write to MH i2c: E2 08 00 2B 30 80 13 00 00 00 00 00 00 D7 [06:07:04]Write i2c OK [06:07:04]MH_I2C_Read... [06:07:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:07:04]Read from MH i2c: E2 [06:07:04]MH_I2C_Read... [06:07:04]Read from MH i2c: E2 62 00 [06:07:04]MH_I2C_Read... [06:07:04]Read from MH i2c: E2 62 00 2B 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DD C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [06:07:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DD C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:07:04]wFMCommunicate OK [06:07:04]SAM_PROTO_GetFieldsCounters done [06:07:04]requested_item shift.num is exist - process it [06:07:04]requested_item shift.opened is exist - process it [06:07:04]req_shift_opened [06:07:04]FM_GetShiftState [06:07:04]SAM_PROTO_GetShiftState [06:07:04]wFMCommunicate request_size=4 [06:07:04]MH_SAM_APDU [06:07:04]CAPDU: 80 13 01 00 [06:07:04]Write to MH i2c: E2 08 00 2C 30 80 13 01 00 00 00 00 00 D9 [06:07:04]Write i2c OK [06:07:04]MH_I2C_Read... [06:07:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:07:04]Read from MH i2c: E2 [06:07:04]MH_I2C_Read... [06:07:04]Read from MH i2c: E2 0E 00 [06:07:04]MH_I2C_Read... [06:07:04]Read from MH i2c: E2 0E 00 2C 30 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 4F [06:07:04]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [06:07:04]wFMCommunicate OK [06:07:04]SAM_PROTO_GetShiftState done [06:07:04]FM_GetShiftState done [06:07:04]req_shift_opened done [06:07:04]requested_item shift.open_date is exist - process it [06:07:04]req_shift_open_date [06:07:04]req_shift_open_date done [06:07:04]produce_requested_data done [06:07:04]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49373,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [06:07:04]process_action_free close_receipt [06:07:04]json_value_free [06:07:04]json_value_free done [06:07:04]process_json_proto returns [06:07:04]Send response to host [06:07:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49373,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [06:07:04]free response buf [06:07:04]execute_script done [06:07:04]execute_script returns [06:07:04]free content buf [06:07:04]Sock 10.Close socket [06:07:04]Sock 10.Thread stoped [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:58]OFD Sender: No OFD packet to send [06:14:03]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:09]OFD Sender: No OFD packet to send [06:16:14]OFD Sender: No OFD packet to send [06:16:19]OFD Sender: No OFD packet to send [06:16:24]OFD Sender: No OFD packet to send [06:16:29]OFD Sender: No OFD packet to send [06:16:34]OFD Sender: No OFD packet to send [06:16:39]OFD Sender: No OFD packet to send [06:16:44]OFD Sender: No OFD packet to send [06:16:49]OFD Sender: No OFD packet to send [06:16:54]OFD Sender: No OFD packet to send [06:16:59]OFD Sender: No OFD packet to send [06:17:04]OFD Sender: No OFD packet to send [06:17:09]OFD Sender: No OFD packet to send [06:17:14]OFD Sender: No OFD packet to send [06:17:19]OFD Sender: No OFD packet to send [06:17:24]OFD Sender: No OFD packet to send [06:17:29]OFD Sender: No OFD packet to send [06:17:34]OFD Sender: No OFD packet to send [06:17:39]OFD Sender: No OFD packet to send [06:17:43]accept exits with 7 [06:17:43]New connection [06:17:43]New thread 3066830180 created [06:17:43]Thread 3066973540 joined [06:17:43]Waiting for new connection... [06:17:43] Sock 7.Parse request [06:17:43]Sock 7.Check first char [06:17:43]Sock 7.First char is OK [06:17:43]request: POST /json_proto HTTP/1.0 [06:17:43]Method: POST [06:17:43]URL: /json_proto [06:17:43]Method is POST - this is cgi request [06:17:43]url: /json_proto [06:17:43]query_string will be loaded in cgi processing [06:17:43]execute_cgi json_proto POST (null) [06:17:43]execute_cgi path=json_proto method=POST [06:17:43]POST find Content-Length [06:17:43]Host: 172.17.46.196:8080 [06:17:43]Content-Length: 1047 [06:17:43]Content-Type: application/json [06:17:43] [06:17:43]POST finish read [06:17:43]Found Content-Length = 1047 [06:17:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189614", "tax_sys" : 0, "items" : [ { "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:17:43]execute_script... [06:17:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189614", "tax_sys" : 0, "items" : [ { "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 280.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:17:43]POST & json_proto [06:17:43]process_json_proto [06:17:43]json parsed OK: [06:17:43]protocol is kg_v1.0 [06:17:43]action value=close_receipt [06:17:43]process_action close_receipt [06:17:43]cmd_close_receipt [06:17:43]MH_GetDate [06:17:43]Write to MH i2c: F0 00 00 2D 30 4C [06:17:43]Write i2c OK [06:17:43]MH_I2C_Read... [06:17:43]Read from MH i2c: F0 [06:17:43]MH_I2C_Read... [06:17:43]Read from MH i2c: F0 09 00 [06:17:43]MH_I2C_Read... [06:17:43]Read from MH i2c: F0 09 00 2D 30 00 0B EF BE 66 07 E8 5D 66 25 [06:17:43]GetLastDocTimeStamp 1723788424 [06:17:43]current date 1723789067 [06:17:43]FM_GetShiftState [06:17:43]SAM_PROTO_GetShiftState [06:17:43]wFMCommunicate request_size=4 [06:17:43]MH_SAM_APDU [06:17:43]CAPDU: 80 13 01 00 [06:17:43]Write to MH i2c: E2 08 00 2E 30 80 13 01 00 00 00 00 00 DB [06:17:43]Write i2c OK [06:17:43]MH_I2C_Read... [06:17:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:17:43]Read from MH i2c: E2 [06:17:43]MH_I2C_Read... [06:17:43]Read from MH i2c: E2 0E 00 [06:17:43]MH_I2C_Read... [06:17:43]Read from MH i2c: E2 0E 00 2E 30 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 51 [06:17:43]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [06:17:43]wFMCommunicate OK [06:17:43]SAM_PROTO_GetShiftState done [06:17:43]FM_GetShiftState done [06:17:43]opened in 1723766958 [06:17:43]opened+sec_in_day 1723853358 [06:17:43]quantity*price = 15000 [06:17:43]sum+1 = 15001 [06:17:43]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 280.00 НСП 1% : 2.48 НДС 12% : 29.73 Наличными: 0.00 Безнал.: 280.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 22 16.08.2024 06:17 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49374 ФПД: 198193198878334 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T061747&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49374&fm=198193198878334&tin=02508201610067®Number=0000000000092546&sum=28000 0 [06:17:44]StoreToDocumentArchive [06:17:44]shift 464 fd 49374 [06:17:44]save to /storage/0464/doc_00049374 [06:17:44]save last doc name /storage/0464/doc_00049374 to /storage/kkm_last_doc_name [06:17:44]save OK [06:17:44]Clear old archive folders... [06:17:44]ProcessDocumentItem done err = 0, tmpTLVsize=388 [06:17:44]tlvbuf is 00ED0360 [06:17:44]SAM_PROTO_ClearQueue [06:17:44]wFMCommunicate request_size=4 [06:17:44]MH_SAM_APDU [06:17:44]CAPDU: 80 09 00 00 [06:17:44]Write to MH i2c: E2 08 00 3B 30 80 09 00 00 00 00 00 00 DD [06:17:44]Write i2c OK [06:17:44]MH_I2C_Read... [06:17:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:17:44]Read from MH i2c: E2 [06:17:44]MH_I2C_Read... [06:17:44]Read from MH i2c: E2 03 00 [06:17:44]MH_I2C_Read... [06:17:44]Read from MH i2c: E2 03 00 3B 30 00 90 00 DF [06:17:44]RAPDU: 90 00 [06:17:44]wFMCommunicate OK [06:17:44]SAM_PROTO_ClearQueue done [06:17:44]KKMCreateOFDPacket [06:17:44]OFDProtocolAddRootSTLVToBuf [06:17:44]FM_MakeSignedData [06:17:44]FM_MakeSignedData [06:17:44]SAM_PROTO_SignData [06:17:44]wFMCommunicate request_size=4 [06:17:44]MH_SAM_APDU [06:17:44]CAPDU: 80 0D 01 02 [06:17:44]Write to MH i2c: E2 08 00 3C 30 80 0D 01 02 00 00 00 00 E5 [06:17:44]Write i2c OK [06:17:44]MH_I2C_Read... [06:17:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:17:44]Read from MH i2c: E2 [06:17:44]MH_I2C_Read... [06:17:44]Read from MH i2c: E2 03 00 [06:17:44]MH_I2C_Read... [06:17:44]Read from MH i2c: E2 03 00 3C 30 00 90 00 E0 [06:17:44]RAPDU: 90 00 [06:17:44]wFMCommunicate OK [06:17:44]wFMCommunicate request_size=255 [06:17:44]MH_SAM_APDU [06:17:44]CAPDU: 80 0D 02 02 FA 03 00 84 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [06:17:44]Write to MH i2c: E2 02 01 3D 30 80 0D 02 02 FA 00 03 00 84 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 47 [06:17:45]Write i2c OK [06:17:45]MH_I2C_Read... [06:17:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:17:45]Read from MH i2c: E2 [06:17:45]MH_I2C_Read... [06:17:45]Read from MH i2c: E2 03 00 [06:17:45]MH_I2C_Read... [06:17:45]Read from MH i2c: E2 03 00 3D 30 00 90 00 E1 [06:17:45]RAPDU: 90 00 [06:17:45]wFMCommunicate OK [06:17:45]wFMCommunicate request_size=147 [06:17:45]MH_SAM_APDU [06:17:45]CAPDU: 80 0D 02 02 8E F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 0B EF BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DE C0 00 00 35 04 06 00 B4 41 73 37 4E 7E [06:17:45]Write to MH i2c: E2 96 00 3E 30 80 0D 02 02 8E 00 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 0B EF BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DE C0 00 00 35 04 06 00 B4 41 73 37 4E 7E 00 00 A5 [06:17:45]Write i2c OK [06:17:45]MH_I2C_Read... [06:17:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:17:45]Read from MH i2c: E2 [06:17:45]MH_I2C_Read... [06:17:45]Read from MH i2c: E2 03 00 [06:17:45]MH_I2C_Read... [06:17:45]Read from MH i2c: E2 03 00 3E 30 00 90 00 E2 [06:17:45]RAPDU: 90 00 [06:17:45]wFMCommunicate OK [06:17:45]wFMCommunicate request_size=4 [06:17:45]MH_SAM_APDU [06:17:45]CAPDU: 80 0D 03 02 [06:17:45]Write to MH i2c: E2 08 00 3F 30 80 0D 03 02 00 00 00 00 EA [06:17:45]Write i2c OK [06:17:45]MH_I2C_Read... [06:17:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:17:45]Read from MH i2c: E2 [06:17:45]MH_I2C_Read... [06:17:45]Read from MH i2c: E2 0B 00 [06:17:45]MH_I2C_Read... [06:17:45]Read from MH i2c: E2 0B 00 3F 30 00 DF 29 0F A0 7E B6 D0 83 90 00 29 [06:17:45]RAPDU: DF 29 0F A0 7E B6 D0 83 90 00 [06:17:45]wFMCommunicate OK [06:17:45]SAM_PROTO_SignData done [06:17:45]FM_MakeSignedData done [06:17:45]CreateOFDProtocolMessage [06:17:45]wFMCommunicate request_size=4 [06:17:45]MH_SAM_APDU [06:17:45]CAPDU: 80 11 00 00 [06:17:45]Write to MH i2c: E2 08 00 40 30 80 11 00 00 00 00 00 00 EA [06:17:45]Write i2c OK [06:17:45]MH_I2C_Read... [06:17:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:17:45]Read from MH i2c: E2 [06:17:45]MH_I2C_Read... [06:17:45]Read from MH i2c: E2 17 00 [06:17:45]MH_I2C_Read... [06:17:45]Read from MH i2c: E2 17 00 40 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 35 [06:17:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [06:17:45]wFMCommunicate OK [06:17:45]CreateOFDProtocolMessage done [06:17:45]OFDSenderStorePacket 49374 [06:17:45]StoreOFDPacket docnum=49374 [06:17:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 98 01 00 00 DC 22 90 01 A0 D5 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 0B EF BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DE C0 00 00 35 04 06 00 B4 41 73 37 4E 7E DF 29 0F A0 7E B6 D0 83 [06:17:45]CheckFolder [06:17:45]dirname=/storage/ofd_packets [06:17:45]CheckFolder done [06:17:45]ProducePacketName [06:17:45]name=ofd_packets/00049374 [06:17:45]NVStorageSaveData ofd_packets/00049374 [06:17:45]File name is /storage/ofd_packets/00049374 [06:17:45]Write 438 bytes [06:17:45]NVStorageSaveData done [06:17:45]OFDSenderStorePacket done [06:17:45]KKMCreateOFDPacket done [06:17:45]NVStorageSaveData kkm_last_timestamp [06:17:45]File name is /storage/kkm_last_timestamp [06:17:45]Write 4 bytes [06:17:45]NVStorageSaveData done [06:17:45]ExternCall_PrintAddStr [06:17:45]wPrintStart [06:17:45]Write to MH i2c: 01 00 00 41 30 71 [06:17:45]OFD Sender: Processing packet 49374 [packets to send 21, broken 20] [06:17:45]ProducePacketName [06:17:45]name=ofd_packets/00049374 [06:17:45]OFD Sender: To server: pG, [06:17:45]CommunicateWithHost lk.salyk.kg:30040 [06:17:45]Write i2c OK [06:17:45]ConnectInit lk.salyk.kg [06:17:45]MH_I2C_Read... [06:17:45]Read from MH i2c: 01 [06:17:45]MH_I2C_Read... [06:17:45]Read from MH i2c: 01 07 00 [06:17:45]MH_I2C_Read... [06:17:45]Read from MH i2c: 01 07 00 41 30 00 00 00 00 00 FF 0F 86 [06:17:45]RasterBufferAndPrint [06:17:45]line Счет N : (3)189614 [06:17:45]line ИНН: 02508201610067 [06:17:45]line Контрольно-Кассовый Чек [06:17:45]line ПРОДАЖА [06:17:45]line Товар: 48747073 [06:17:45]line Сигареты Richmond Royal Edition [06:17:45]line 1.000 * 150.00 [06:17:45]line = 150.00 [06:17:45]line НДС 12% НСП 1% [06:17:45]line > о реализуемом товаре [06:17:45]line Товар: 2000036220012 [06:17:45]line Кофе Капучино XL(GABB TRADE) [06:17:45]line 1.000 * 130.00 [06:17:45]line = 130.00 [06:17:45]line НДС 12% НСП 1% [06:17:45]line > о реализуемом товаре [06:17:45]line ИТОГО: 280.00 [06:17:45]line НСП 1% : 2.48 [06:17:45]line НДС 12% : 29.73 [06:17:45]line Наличными: 0.00 [06:17:45]line Безнал.: 280.00 [06:17:45]line Место: АЗС № 95 "Партнер Нефть" [06:17:45]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [06:17:45]line СНО: Общий режим [06:17:45]line Чек 22 16.08.2024 06:17 [06:17:45]line Смена: 464 ФФД: 1.0 [06:17:45]line ЗНМ: 0300000078 [06:17:45]line РНМ: 0000000000092546 [06:17:45]line Версия ККМ: 001 [06:17:45]line Платежная система: O! деньги [06:17:45]line ФМ: 0000000000871800 [06:17:45]line ФД: 49374 [06:17:45]line ФПД: 198193198878334 [06:17:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T061747&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49374&fm=198193198878334&tin=02508201610067®Number=0000000000092546&sum=28000 [06:17:45]line 0 [06:17:45]written 0, free lines is 4095 [06:17:46]Connected sock=10 [06:17:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 98 01 00 00 DC 22 90 01 A0 D5 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 6D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 6D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 0B EF BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DE C0 00 00 35 04 06 00 B4 41 73 37 4E 7E DF 29 0F A0 7E B6 D0 83 [06:17:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 88 53 47 00 E4 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DE C0 00 00 F4 03 04 00 4B 9A BE 66 B6 04 01 00 00 76 00 91 56 93 4F 21 B4 [06:17:46]CommunicateWithHost err = 0 [06:17:46]CheckOFDResponse [06:17:46]1017 (14) - 77093643461234 [06:17:46]1041 (16) - 0000000000871800 [06:17:46]1040 (4) - 49374 [06:17:46]1012 (4) - 16.08.2024 00:16 [06:17:46]1206 (1) - 0 [06:17:46]OFD Sender: Remove packet 49374 [06:17:46]ProducePacketName [06:17:46]name=ofd_packets/00049374 [06:17:46]NVStorageDeleteData [06:17:46]Write to MH i2c: 01 00 00 73 30 A3 [06:17:46]Write i2c OK [06:17:46]MH_I2C_Read... [06:17:46]Read from MH i2c: 01 [06:17:46]MH_I2C_Read... [06:17:46]Read from MH i2c: 01 07 00 [06:17:46]MH_I2C_Read... [06:17:46]Read from MH i2c: 01 07 00 73 30 00 00 00 00 00 50 0C 06 [06:17:46]RasterBufferAndPrint [06:17:46]line [06:17:46]line [06:17:46]line [06:17:46]line [06:17:46]line [06:17:46]written 0, free lines is 3159 [06:17:46]MH_Cut [06:17:46]Write to MH i2c: D1 01 00 7A 30 01 7C [06:17:46]Write i2c OK [06:17:46]MH_I2C_Read... [06:17:46]Read from MH i2c: D1 [06:17:46]MH_I2C_Read... [06:17:46]Read from MH i2c: D1 01 00 [06:17:46]MH_I2C_Read... [06:17:46]Read from MH i2c: D1 01 00 7A 30 00 7B [06:17:46]Write to MH i2c: 01 00 00 7B 30 AB [06:17:46]Write i2c OK [06:17:46]MH_I2C_Read... [06:17:46]OFD Sender: No OFD packet to send [06:17:47]*** Cut start [06:17:47]*** Purtial cut [06:17:47]*** CUTSNS_PIN = 0 [06:17:47]*** Stage 1: CUTSNS_PIN = 1 [06:17:49]Read from MH i2c: 01 [06:17:49]MH_I2C_Read... [06:17:49]*** Stop cut motor [06:17:49]Read from MH i2c: 01 07 00 [06:17:49]MH_I2C_Read... [06:17:49]*** Cut end [06:17:49]Read from MH i2c: 01 07 00 7B 30 00 00 00 00 00 FF 0F C0 [06:17:49]process_action close_receipt done [06:17:49]requested_data is exist [06:17:49]produce_requested_data [06:17:49]requested_item fm.sn is exist - process it [06:17:49]wFMCommunicate request_size=4 [06:17:49]MH_SAM_APDU [06:17:49]CAPDU: 80 11 00 00 [06:17:49]Write to MH i2c: E2 08 00 7C 30 80 11 00 00 00 00 00 00 26 [06:17:49]Write i2c OK [06:17:49]MH_I2C_Read... [06:17:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:17:49]Read from MH i2c: E2 [06:17:49]MH_I2C_Read... [06:17:49]Read from MH i2c: E2 17 00 [06:17:49]MH_I2C_Read... [06:17:49]Read from MH i2c: E2 17 00 7C 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 71 [06:17:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [06:17:49]wFMCommunicate OK [06:17:49]requested_item fd.num is exist - process it [06:17:49]SAM_PROTO_GetFieldsCounters [06:17:49]wFMCommunicate request_size=4 [06:17:49]MH_SAM_APDU [06:17:49]CAPDU: 80 13 00 00 [06:17:49]Write to MH i2c: E2 08 00 7D 30 80 13 00 00 00 00 00 00 29 [06:17:49]Write i2c OK [06:17:49]MH_I2C_Read... [06:17:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:17:49]Read from MH i2c: E2 [06:17:49]MH_I2C_Read... [06:17:49]Read from MH i2c: E2 62 00 [06:17:49]MH_I2C_Read... [06:17:49]Read from MH i2c: E2 62 00 7D 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DE C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 F4 [06:17:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DE C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:17:49]wFMCommunicate OK [06:17:49]SAM_PROTO_GetFieldsCounters done [06:17:49]requested_item shift.num is exist - process it [06:17:49]requested_item shift.opened is exist - process it [06:17:49]req_shift_opened [06:17:49]FM_GetShiftState [06:17:49]SAM_PROTO_GetShiftState [06:17:49]wFMCommunicate request_size=4 [06:17:49]MH_SAM_APDU [06:17:49]CAPDU: 80 13 01 00 [06:17:49]Write to MH i2c: E2 08 00 7E 30 80 13 01 00 00 00 00 00 2B [06:17:49]Write i2c OK [06:17:49]MH_I2C_Read... [06:17:49]Read from MH i2c: E2 [06:17:49]MH_I2C_Read... [06:17:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:17:49]Read from MH i2c: E2 0E 00 [06:17:49]MH_I2C_Read... [06:17:49]Read from MH i2c: E2 0E 00 7E 30 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 A1 [06:17:49]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [06:17:49]wFMCommunicate OK [06:17:49]SAM_PROTO_GetShiftState done [06:17:49]FM_GetShiftState done [06:17:49]req_shift_opened done [06:17:49]requested_item shift.open_date is exist - process it [06:17:49]req_shift_open_date [06:17:49]req_shift_open_date done [06:17:49]produce_requested_data done [06:17:49]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49374,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [06:17:49]process_action_free close_receipt [06:17:49]json_value_free [06:17:49]json_value_free done [06:17:49]process_json_proto returns [06:17:49]Send response to host [06:17:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49374,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [06:17:49]free response buf [06:17:49]execute_script done [06:17:49]execute_script returns [06:17:49]free content buf [06:17:49]Sock 7.Close socket [06:17:49]Sock 7.Thread stoped [06:17:51]OFD Sender: No OFD packet to send [06:17:56]OFD Sender: No OFD packet to send [06:18:01]OFD Sender: No OFD packet to send [06:18:06]OFD Sender: No OFD packet to send [06:18:11]OFD Sender: No OFD packet to send [06:18:16]OFD Sender: No OFD packet to send [06:18:21]OFD Sender: No OFD packet to send [06:18:26]OFD Sender: No OFD packet to send [06:18:31]OFD Sender: No OFD packet to send [06:18:36]OFD Sender: No OFD packet to send [06:18:41]OFD Sender: No OFD packet to send [06:18:46]OFD Sender: No OFD packet to send [06:18:51]OFD Sender: No OFD packet to send [06:18:56]OFD Sender: No OFD packet to send [06:19:01]OFD Sender: No OFD packet to send [06:19:06]OFD Sender: No OFD packet to send [06:19:11]OFD Sender: No OFD packet to send [06:19:16]OFD Sender: No OFD packet to send [06:19:21]OFD Sender: No OFD packet to send [06:19:26]OFD Sender: No OFD packet to send [06:19:31]OFD Sender: No OFD packet to send [06:19:36]OFD Sender: No OFD packet to send [06:19:41]OFD Sender: No OFD packet to send [06:19:46]OFD Sender: No OFD packet to send [06:19:51]OFD Sender: No OFD packet to send [06:19:56]OFD Sender: No OFD packet to send [06:20:01]OFD Sender: No OFD packet to send [06:20:06]OFD Sender: No OFD packet to send [06:20:11]OFD Sender: No OFD packet to send [06:20:16]OFD Sender: No OFD packet to send [06:20:21]OFD Sender: No OFD packet to send [06:20:26]OFD Sender: No OFD packet to send [06:20:31]OFD Sender: No OFD packet to send [06:20:36]OFD Sender: No OFD packet to send [06:20:41]OFD Sender: No OFD packet to send [06:20:46]OFD Sender: No OFD packet to send [06:20:51]OFD Sender: No OFD packet to send [06:20:56]OFD Sender: No OFD packet to send [06:21:02]OFD Sender: No OFD packet to send [06:21:07]OFD Sender: No OFD packet to send [06:21:12]OFD Sender: No OFD packet to send [06:21:17]OFD Sender: No OFD packet to send [06:21:22]OFD Sender: No OFD packet to send [06:21:27]OFD Sender: No OFD packet to send [06:21:32]OFD Sender: No OFD packet to send [06:21:37]OFD Sender: No OFD packet to send [06:21:42]OFD Sender: No OFD packet to send [06:21:47]OFD Sender: No OFD packet to send [06:21:52]OFD Sender: No OFD packet to send [06:21:57]OFD Sender: No OFD packet to send [06:22:02]OFD Sender: No OFD packet to send [06:22:07]OFD Sender: No OFD packet to send [06:22:12]OFD Sender: No OFD packet to send [06:22:17]OFD Sender: No OFD packet to send [06:22:22]OFD Sender: No OFD packet to send [06:22:27]OFD Sender: No OFD packet to send [06:22:32]OFD Sender: No OFD packet to send [06:22:37]OFD Sender: No OFD packet to send [06:22:42]OFD Sender: No OFD packet to send [06:22:47]OFD Sender: No OFD packet to send [06:22:52]OFD Sender: No OFD packet to send [06:22:57]OFD Sender: No OFD packet to send [06:23:02]OFD Sender: No OFD packet to send [06:23:07]OFD Sender: No OFD packet to send [06:23:12]OFD Sender: No OFD packet to send [06:23:17]OFD Sender: No OFD packet to send [06:23:22]OFD Sender: No OFD packet to send [06:23:27]OFD Sender: No OFD packet to send [06:23:32]OFD Sender: No OFD packet to send [06:23:37]OFD Sender: No OFD packet to send [06:23:42]OFD Sender: No OFD packet to send [06:23:47]OFD Sender: No OFD packet to send [06:23:52]OFD Sender: No OFD packet to send [06:23:57]OFD Sender: No OFD packet to send [06:24:02]OFD Sender: No OFD packet to send [06:24:07]OFD Sender: No OFD packet to send [06:24:12]OFD Sender: No OFD packet to send [06:24:17]OFD Sender: No OFD packet to send [06:24:22]OFD Sender: No OFD packet to send [06:24:27]OFD Sender: No OFD packet to send [06:24:32]OFD Sender: No OFD packet to send [06:24:37]OFD Sender: No OFD packet to send [06:24:42]OFD Sender: No OFD packet to send [06:24:47]OFD Sender: No OFD packet to send [06:24:52]OFD Sender: No OFD packet to send [06:24:57]OFD Sender: No OFD packet to send [06:25:02]OFD Sender: No OFD packet to send [06:25:07]OFD Sender: No OFD packet to send [06:25:12]OFD Sender: No OFD packet to send [06:25:17]OFD Sender: No OFD packet to send [06:25:22]OFD Sender: No OFD packet to send [06:25:27]OFD Sender: No OFD packet to send [06:25:32]OFD Sender: No OFD packet to send [06:25:37]OFD Sender: No OFD packet to send [06:25:42]OFD Sender: No OFD packet to send [06:25:47]OFD Sender: No OFD packet to send [06:25:52]OFD Sender: No OFD packet to send [06:25:57]OFD Sender: No OFD packet to send [06:26:02]OFD Sender: No OFD packet to send [06:26:07]OFD Sender: No OFD packet to send [06:26:12]OFD Sender: No OFD packet to send [06:26:17]OFD Sender: No OFD packet to send [06:26:22]OFD Sender: No OFD packet to send [06:26:27]OFD Sender: No OFD packet to send [06:26:32]OFD Sender: No OFD packet to send [06:26:37]OFD Sender: No OFD packet to send [06:26:42]OFD Sender: No OFD packet to send [06:26:47]OFD Sender: No OFD packet to send [06:26:52]OFD Sender: No OFD packet to send [06:26:57]OFD Sender: No OFD packet to send [06:27:02]OFD Sender: No OFD packet to send [06:27:07]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:17]OFD Sender: No OFD packet to send [06:27:22]OFD Sender: No OFD packet to send [06:27:27]OFD Sender: No OFD packet to send [06:27:32]OFD Sender: No OFD packet to send [06:27:37]OFD Sender: No OFD packet to send [06:27:42]OFD Sender: No OFD packet to send [06:27:47]OFD Sender: No OFD packet to send [06:27:52]OFD Sender: No OFD packet to send [06:27:57]OFD Sender: No OFD packet to send [06:28:02]OFD Sender: No OFD packet to send [06:28:07]OFD Sender: No OFD packet to send [06:28:12]OFD Sender: No OFD packet to send [06:28:17]OFD Sender: No OFD packet to send [06:28:22]OFD Sender: No OFD packet to send [06:28:27]OFD Sender: No OFD packet to send [06:28:32]OFD Sender: No OFD packet to send [06:28:37]OFD Sender: No OFD packet to send [06:28:38]accept exits with 9 [06:28:38]New connection [06:28:38]New thread 3066973540 created [06:28:38]Thread 3066830180 joined [06:28:38]Waiting for new connection... [06:28:38] Sock 9.Parse request [06:28:38]Sock 9.Check first char [06:28:38]Sock 9.First char is OK [06:28:38]request: POST /json_proto HTTP/1.0 [06:28:38]Method: POST [06:28:38]URL: /json_proto [06:28:38]Method is POST - this is cgi request [06:28:38]url: /json_proto [06:28:38]query_string will be loaded in cgi processing [06:28:38]execute_cgi json_proto POST (null) [06:28:38]execute_cgi path=json_proto method=POST [06:28:38]POST find Content-Length [06:28:38]Host: 172.17.46.196:8080 [06:28:38]Content-Length: 1821 [06:28:38]Content-Type: application/json [06:28:38] [06:28:38]POST finish read [06:28:38]Found Content-Length = 1821 [06:28:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189615", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 1.000, "sum" : 55.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" : 429.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:38]execute_script... [06:28: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 : (3)189615", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 1.000, "sum" : 55.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" : 429.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:28:38]POST & json_proto [06:28:38]process_json_proto [06:28:38]json parsed OK: [06:28:38]protocol is kg_v1.0 [06:28:38]action value=close_receipt [06:28:38]process_action close_receipt [06:28:38]cmd_close_receipt [06:28:38]MH_GetDate [06:28:38]Write to MH i2c: F0 00 00 7F 30 9E [06:28:38]Write i2c OK [06:28:38]MH_I2C_Read... [06:28:38]Read from MH i2c: F0 [06:28:38]MH_I2C_Read... [06:28:38]Read from MH i2c: F0 09 00 [06:28:38]MH_I2C_Read... [06:28:38]Read from MH i2c: F0 09 00 7F 30 00 9A F1 BE 66 07 E8 5D 66 08 [06:28:38]GetLastDocTimeStamp 1723789067 [06:28:38]current date 1723789722 [06:28:38]FM_GetShiftState [06:28:38]SAM_PROTO_GetShiftState [06:28:38]wFMCommunicate request_size=4 [06:28:38]MH_SAM_APDU [06:28:38]CAPDU: 80 13 01 00 [06:28:38]Write to MH i2c: E2 08 00 80 30 80 13 01 00 00 00 00 00 2D [06:28:38]Write i2c OK [06:28:38]MH_I2C_Read... [06:28:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:38]Read from MH i2c: E2 [06:28:38]MH_I2C_Read... [06:28:38]Read from MH i2c: E2 0E 00 [06:28:38]MH_I2C_Read... [06:28:38]Read from MH i2c: E2 0E 00 80 30 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 A3 [06:28:38]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [06:28:38]wFMCommunicate OK [06:28:38]SAM_PROTO_GetShiftState done [06:28:38]FM_GetShiftState done [06:28:38]opened in 1723766958 [06:28:38]opened+sec_in_day 1723853358 [06:28:38]quantity*price = 13000 [06:28:38]sum+1 = 13001 [06:28:38]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4860019001414 Вода Боржоми 0,75л ПЭТ 1.000 * 135.00 = 135.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870112003925 Конд ULKER-Albeni 40gr (6*24) 1.000 * 55.00 = 55.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 429.00 НСП 1% : 3.79 НДС 12% : 45.55 Наличными: 0.00 Безнал.: 429.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 23 16.08.2024 06:28 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 49375 ФПД: 67708876579590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T062842&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49375&fm=67708876579590&tin=02508201610067®Number=0000000000092546&sum=42900 0 [06:28:39]StoreToDocumentArchive [06:28:39]shift 464 fd 49375 [06:28:39]save to /storage/0464/doc_00049375 [06:28:39]save last doc name /storage/0464/doc_00049375 to /storage/kkm_last_doc_name [06:28:39]save OK [06:28:39]Clear old archive folders... [06:28:39]ProcessDocumentItem done err = 0, tmpTLVsize=706 [06:28:39]tlvbuf is 00EC6270 [06:28:39]SAM_PROTO_ClearQueue [06:28:39]wFMCommunicate request_size=4 [06:28:39]MH_SAM_APDU [06:28:39]CAPDU: 80 09 00 00 [06:28:39]Write to MH i2c: E2 08 00 8D 30 80 09 00 00 00 00 00 00 2F [06:28:39]Write i2c OK [06:28:39]MH_I2C_Read... [06:28:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:28:39]Read from MH i2c: E2 [06:28:39]MH_I2C_Read... [06:28:39]Read from MH i2c: E2 03 00 [06:28:39]MH_I2C_Read... [06:28:39]Read from MH i2c: E2 03 00 8D 30 00 90 00 31 [06:28:39]RAPDU: 90 00 [06:28:39]wFMCommunicate OK [06:28:39]SAM_PROTO_ClearQueue done [06:28:39]KKMCreateOFDPacket [06:28:39]OFDProtocolAddRootSTLVToBuf [06:28:39]FM_MakeSignedData [06:28:39]FM_MakeSignedData [06:28:39]SAM_PROTO_SignData [06:28:39]wFMCommunicate request_size=4 [06:28:39]MH_SAM_APDU [06:28:39]CAPDU: 80 0D 01 02 [06:28:39]Write to MH i2c: E2 08 00 8E 30 80 0D 01 02 00 00 00 00 37 [06:28:39]Write i2c OK [06:28:39]MH_I2C_Read... [06:28:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:28:39]Read from MH i2c: E2 [06:28:39]MH_I2C_Read... [06:28:39]Read from MH i2c: E2 03 00 [06:28:39]MH_I2C_Read... [06:28:39]Read from MH i2c: E2 03 00 8E 30 00 90 00 32 [06:28:39]RAPDU: 90 00 [06:28:39]wFMCommunicate OK [06:28:39]wFMCommunicate request_size=255 [06:28:39]MH_SAM_APDU [06:28:39]CAPDU: 80 0D 02 02 FA 03 00 C2 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 [06:28:39]Write to MH i2c: E2 02 01 8F 30 80 0D 02 02 FA 00 03 00 C2 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 00 00 A5 [06:28:39]Write i2c OK [06:28:39]MH_I2C_Read... [06:28:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:40]Read from MH i2c: E2 [06:28:40]MH_I2C_Read... [06:28:40]Read from MH i2c: E2 03 00 [06:28:40]MH_I2C_Read... [06:28:40]Read from MH i2c: E2 03 00 8F 30 00 90 00 33 [06:28:40]RAPDU: 90 00 [06:28:40]wFMCommunicate OK [06:28:40]wFMCommunicate request_size=255 [06:28:40]MH_SAM_APDU [06:28:40]CAPDU: 80 0D 02 02 FA B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 [06:28:40]Write to MH i2c: E2 02 01 90 30 80 0D 02 02 FA 00 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 00 00 08 [06:28:40]Write i2c OK [06:28:40]MH_I2C_Read... [06:28:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:40]Read from MH i2c: E2 [06:28:40]MH_I2C_Read... [06:28:40]Read from MH i2c: E2 03 00 [06:28:40]MH_I2C_Read... [06:28:40]Read from MH i2c: E2 03 00 90 30 00 90 00 34 [06:28:40]RAPDU: 90 00 [06:28:40]wFMCommunicate OK [06:28:40]wFMCommunicate request_size=215 [06:28:40]MH_SAM_APDU [06:28:40]CAPDU: 80 0D 02 02 D2 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 A7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 9A F1 BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DF C0 00 00 35 04 06 00 3D 94 B3 89 63 06 [06:28:40]Write to MH i2c: E2 DA 00 91 30 80 0D 02 02 D2 00 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 A7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 9A F1 BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DF C0 00 00 35 04 06 00 3D 94 B3 89 63 06 00 00 BE [06:28:40]Write i2c OK [06:28:40]MH_I2C_Read... [06:28:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:28:40]Read from MH i2c: E2 [06:28:40]MH_I2C_Read... [06:28:40]Read from MH i2c: E2 03 00 [06:28:40]MH_I2C_Read... [06:28:40]Read from MH i2c: E2 03 00 91 30 00 90 00 35 [06:28:40]RAPDU: 90 00 [06:28:40]wFMCommunicate OK [06:28:40]wFMCommunicate request_size=4 [06:28:40]MH_SAM_APDU [06:28:40]CAPDU: 80 0D 03 02 [06:28:40]Write to MH i2c: E2 08 00 92 30 80 0D 03 02 00 00 00 00 3D [06:28:40]Write i2c OK [06:28:40]MH_I2C_Read... [06:28:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:28:40]Read from MH i2c: E2 [06:28:40]MH_I2C_Read... [06:28:40]Read from MH i2c: E2 0B 00 [06:28:40]MH_I2C_Read... [06:28:40]Read from MH i2c: E2 0B 00 92 30 00 13 7B 5D 23 44 F4 4F FF 90 00 D2 [06:28:40]RAPDU: 13 7B 5D 23 44 F4 4F FF 90 00 [06:28:40]wFMCommunicate OK [06:28:40]SAM_PROTO_SignData done [06:28:40]FM_MakeSignedData done [06:28:40]CreateOFDProtocolMessage [06:28:40]wFMCommunicate request_size=4 [06:28:40]MH_SAM_APDU [06:28:40]CAPDU: 80 11 00 00 [06:28:40]Write to MH i2c: E2 08 00 93 30 80 11 00 00 00 00 00 00 3D [06:28:40]Write i2c OK [06:28:40]MH_I2C_Read... [06:28:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:40]Read from MH i2c: E2 [06:28:40]MH_I2C_Read... [06:28:40]Read from MH i2c: E2 17 00 [06:28:40]MH_I2C_Read... [06:28:40]Read from MH i2c: E2 17 00 93 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 88 [06:28:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [06:28:40]wFMCommunicate OK [06:28:40]CreateOFDProtocolMessage done [06:28:40]OFDSenderStorePacket 49375 [06:28:40]StoreOFDPacket docnum=49375 [06:28:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 D6 02 00 00 DA 44 CE 02 26 56 5A 03 01 00 03 00 C2 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 A7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 9A F1 BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DF C0 00 00 35 04 06 00 3D 94 B3 89 63 06 13 7B 5D 23 44 F4 4F FF [06:28:41]CheckFolder [06:28:41]dirname=/storage/ofd_packets [06:28:41]CheckFolder done [06:28:41]ProducePacketName [06:28:41]name=ofd_packets/00049375 [06:28:41]NVStorageSaveData ofd_packets/00049375 [06:28:41]File name is /storage/ofd_packets/00049375 [06:28:41]Write 756 bytes [06:28:41]NVStorageSaveData done [06:28:41]OFDSenderStorePacket done [06:28:41]KKMCreateOFDPacket done [06:28:41]NVStorageSaveData kkm_last_timestamp [06:28:41]File name is /storage/kkm_last_timestamp [06:28:41]Write 4 bytes [06:28:41]NVStorageSaveData done [06:28:41]ExternCall_PrintAddStr [06:28:41]wPrintStart [06:28:41]Write to MH i2c: 01 00 00 94 30 C4 [06:28:41]Write i2c OK [06:28:41]MH_I2C_Read... [06:28:41]Read from MH i2c: 01 [06:28:41]MH_I2C_Read... [06:28:41]Read from MH i2c: 01 07 00 [06:28:41]MH_I2C_Read... [06:28:41]Read from MH i2c: 01 07 00 94 30 00 00 00 00 00 FF 0F D9 [06:28:41]RasterBufferAndPrint [06:28:41]line Счет N : (3)189615 [06:28:41]line ИНН: 02508201610067 [06:28:41]line Контрольно-Кассовый Чек [06:28:41]line ПРОДАЖА [06:28:41]line Товар: 2000036220012 [06:28:41]line Кофе Капучино XL(GABB TRADE) [06:28:41]line 1.000 * 130.00 [06:28:41]line = 130.00 [06:28:41]line НДС 12% НСП 1% [06:28:41]line > о реализуемом товаре [06:28:41]line Товар: 4700000160358 [06:28:41]line Вода Легенда 1л [06:28:41]line 1.000 * 50.00 [06:28:41]line = 50.00 [06:28:41]line НДС 12% НСП 1% [06:28:41]line > о реализуемом товаре [06:28:41]line Товар: 4860019001414 [06:28:41]line Вода Боржоми 0,75л ПЭТ [06:28:41]line 1.000 * 135.00 [06:28:41]line = 135.00 [06:28:41]line НДС 12% НСП 1% [06:28:41]line > о реализуемом товаре [06:28:41]line Товар: 4607065001445 [06:28:41]line Шок батончик Snickers 50,5г [06:28:41]line 1.000 * 59.00 [06:28:41]line = 59.00 [06:28:41]line НДС 12% НСП 1% [06:28:41]line > о реализуемом товаре [06:28:41]line Товар: 4870112003925 [06:28:41]line Конд ULKER-Albeni 40gr (6*24) [06:28:41]line 1.000 * 55.00 [06:28:41]line = 55.00 [06:28:41]line НДС 12% НСП 1% [06:28:41]line > о реализуемом товаре [06:28:41]line ИТОГО: 429.00 [06:28:41]line НСП 1% : 3.79 [06:28:41]line НДС 12% : 45.55 [06:28:41]line Наличными: 0.00 [06:28:41]line Безнал.: 429.00 [06:28:41]line Место: АЗС № 95 "Партнер Нефть" [06:28:41]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [06:28:41]line СНО: Общий режим [06:28:41]line Чек 23 16.08.2024 06:28 [06:28:41]line Смена: 464 ФФД: 1.0 [06:28:41]line ЗНМ: 0300000078 [06:28:41]line РНМ: 0000000000092546 [06:28:41]line Версия ККМ: 001 [06:28:41]line Платежная система: Бакай Банк [06:28:41]line ФМ: 0000000000871800 [06:28:41]line ФД: 49375 [06:28:41]line ФПД: 67708876579590 [06:28:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T062842&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49375&fm=67708876579590&tin=02508201610067®Number=0000000000092546&sum=42900 [06:28:41]line 0 [06:28:41]written 0, free lines is 4095 [06:28:41]OFD Sender: Processing packet 49375 [packets to send 21, broken 20] [06:28:41]ProducePacketName [06:28:41]name=ofd_packets/00049375 [06:28:41]OFD Sender: To server: pG, [06:28:41]CommunicateWithHost lk.salyk.kg:30040 [06:28:41]ConnectInit lk.salyk.kg [06:28:41]Connected sock=10 [06:28:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 D6 02 00 00 DA 44 CE 02 26 56 5A 03 01 00 03 00 C2 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 A7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CB 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 A7 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 9A F1 BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 DF C0 00 00 35 04 06 00 3D 94 B3 89 63 06 13 7B 5D 23 44 F4 4F FF [06:28:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A2 BA 47 00 2D 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 38 37 31 38 30 30 10 04 04 00 DF C0 00 00 F4 03 04 00 DA 9C BE 66 B6 04 01 00 00 D5 9F 59 91 73 01 61 32 [06:28:41]CommunicateWithHost err = 0 [06:28:41]CheckOFDResponse [06:28:41]1017 (14) - 77093643461234 [06:28:41]1041 (16) - 0000000000871800 [06:28:41]1040 (4) - 49375 [06:28:41]1012 (4) - 16.08.2024 00:27 [06:28:41]1206 (1) - 0 [06:28:41]OFD Sender: Remove packet 49375 [06:28:41]ProducePacketName [06:28:41]name=ofd_packets/00049375 [06:28:41]NVStorageDeleteData [06:28:41]Write to MH i2c: 01 00 00 D7 30 07 [06:28:41]Write i2c OK [06:28:41]MH_I2C_Read... [06:28:41]Read from MH i2c: 01 [06:28:41]MH_I2C_Read... [06:28:41]Read from MH i2c: 01 07 00 [06:28:41]MH_I2C_Read... [06:28:41]Read from MH i2c: 01 07 00 D7 30 00 00 00 00 00 66 0B 7F [06:28:41]RasterBufferAndPrint [06:28:41]line [06:28:41]line [06:28:41]line [06:28:41]line [06:28:41]line [06:28:41]written 0, free lines is 2926 [06:28:41]MH_Cut [06:28:41]Write to MH i2c: D1 01 00 DE 30 01 E0 [06:28:41]Write i2c OK [06:28:41]MH_I2C_Read... [06:28:41]Read from MH i2c: D1 [06:28:41]MH_I2C_Read... [06:28:41]Read from MH i2c: D1 01 00 [06:28:41]MH_I2C_Read... [06:28:41]Read from MH i2c: D1 01 00 DE 30 00 DF [06:28:41]Write to MH i2c: 01 00 00 DF 30 0F [06:28:41]Write i2c OK [06:28:41]MH_I2C_Read... [06:28:42]OFD Sender: No OFD packet to send [06:28:42]*** Cut start [06:28:42]*** Purtial cut [06:28:42]*** Stage 1: CUTSNS_PIN = 1 [06:28:43]Read from MH i2c: 01 [06:28:43]MH_I2C_Read... [06:28:43]*** Stop cut motor [06:28:43]*** Cut end [06:28:43]Read from MH i2c: 01 07 00 [06:28:43]MH_I2C_Read... [06:28:43]Read from MH i2c: 01 07 00 DF 30 00 00 00 00 00 FF 0F 24 [06:28:43]process_action close_receipt done [06:28:43]requested_data is exist [06:28:43]produce_requested_data [06:28:43]requested_item fm.sn is exist - process it [06:28:43]wFMCommunicate request_size=4 [06:28:43]MH_SAM_APDU [06:28:43]CAPDU: 80 11 00 00 [06:28:43]Write to MH i2c: E2 08 00 E0 30 80 11 00 00 00 00 00 00 8A [06:28:43]Write i2c OK [06:28:43]MH_I2C_Read... [06:28:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:28:43]Read from MH i2c: E2 [06:28:43]MH_I2C_Read... [06:28:43]Read from MH i2c: E2 17 00 [06:28:43]MH_I2C_Read... [06:28:43]Read from MH i2c: E2 17 00 E0 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D5 [06:28:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [06:28:43]wFMCommunicate OK [06:28:43]requested_item fd.num is exist - process it [06:28:43]SAM_PROTO_GetFieldsCounters [06:28:43]wFMCommunicate request_size=4 [06:28:43]MH_SAM_APDU [06:28:43]CAPDU: 80 13 00 00 [06:28:43]Write to MH i2c: E2 08 00 E1 30 80 13 00 00 00 00 00 00 8D [06:28:43]Write i2c OK [06:28:43]MH_I2C_Read... [06:28:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:28:43]Read from MH i2c: E2 [06:28:43]MH_I2C_Read... [06:28:43]Read from MH i2c: E2 62 00 [06:28:43]MH_I2C_Read... [06:28:43]Read from MH i2c: E2 62 00 E1 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DF C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 5C [06:28:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 DF C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:28:43]wFMCommunicate OK [06:28:43]SAM_PROTO_GetFieldsCounters done [06:28:43]requested_item shift.num is exist - process it [06:28:43]requested_item shift.opened is exist - process it [06:28:43]req_shift_opened [06:28:43]FM_GetShiftState [06:28:43]SAM_PROTO_GetShiftState [06:28:43]wFMCommunicate request_size=4 [06:28:43]MH_SAM_APDU [06:28:43]CAPDU: 80 13 01 00 [06:28:43]Write to MH i2c: E2 08 00 E2 30 80 13 01 00 00 00 00 00 8F [06:28:43]Write i2c OK [06:28:43]MH_I2C_Read... [06:28:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:28:43]Read from MH i2c: E2 [06:28:43]MH_I2C_Read... [06:28:43]Read from MH i2c: E2 0E 00 [06:28:43]MH_I2C_Read... [06:28:43]Read from MH i2c: E2 0E 00 E2 30 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 05 [06:28:43]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [06:28:43]wFMCommunicate OK [06:28:43]SAM_PROTO_GetShiftState done [06:28:43]FM_GetShiftState done [06:28:43]req_shift_opened done [06:28:43]requested_item shift.open_date is exist - process it [06:28:43]req_shift_open_date [06:28:43]req_shift_open_date done [06:28:43]produce_requested_data done [06:28:43]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49375,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [06:28:43]process_action_free close_receipt [06:28:43]json_value_free [06:28:43]json_value_free done [06:28:43]process_json_proto returns [06:28:43]Send response to host [06:28:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49375,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [06:28:43]free response buf [06:28:43]execute_script done [06:28:43]execute_script returns [06:28:43]free content buf [06:28:43]Sock 9.Close socket [06:28:43]Sock 9.Thread stoped [06:28:45]int [06:28:45]Write to MH i2c: 01 00 00 E3 30 13 [06:28:45]*** FLAG_PRN_KEY set [06:28:45]Write i2c OK [06:28:45]MH_I2C_Read... [06:28:45]Read from MH i2c: 01 [06:28:45]MH_I2C_Read... [06:28:45]Read from MH i2c: 01 07 00 [06:28:45]MH_I2C_Read... [06:28:45]Read from MH i2c: 01 07 00 E3 30 00 08 00 00 00 FF 0F 30 [06:28:45]state=0 [06:28:45]Key pressed [06:28:45]Feed [06:28:45]Write to MH i2c: D8 00 00 E4 30 EB [06:28:45]Write i2c OK [06:28:45]MH_I2C_Read... [06:28:45]Read from MH i2c: D8 [06:28:45]MH_I2C_Read... [06:28:45]Read from MH i2c: D8 01 00 [06:28:45]MH_I2C_Read... [06:28:45]Read from MH i2c: D8 01 00 E4 30 00 EC [06:28:45]int [06:28:45]Write to MH i2c: 01 00 00 E5 30 15 [06:28:45]Write i2c OK [06:28:45]MH_I2C_Read... [06:28:45]Read from MH i2c: 01 [06:28:45]MH_I2C_Read... [06:28:45]Read from MH i2c: 01 07 00 [06:28:45]MH_I2C_Read... [06:28:45]Read from MH i2c: 01 07 00 E5 30 00 48 00 00 00 3C 00 A0 [06:28:45]state=2 [06:28:45]Key pressed [06:28:45]int [06:28:45]Write to MH i2c: 01 00 00 E6 30 16 [06:28:45]*** FLAG_PRN_KEY reset [06:28:45]Write i2c OK [06:28:45]MH_I2C_Read... [06:28:45]Read from MH i2c: 01 [06:28:45]MH_I2C_Read... [06:28:45]Read from MH i2c: 01 07 00 [06:28:45]MH_I2C_Read... [06:28:45]Read from MH i2c: 01 07 00 E6 30 00 00 00 00 00 FC 0F 28 [06:28:45]state=2 [06:28:45]Stop feed [06:28:47]OFD Sender: No OFD packet to send [06:28:52]OFD Sender: No OFD packet to send [06:28:57]OFD Sender: No OFD packet to send [06:29:02]OFD Sender: No OFD packet to send [06:29:07]OFD Sender: No OFD packet to send [06:29:12]OFD Sender: No OFD packet to send [06:29:17]OFD Sender: No OFD packet to send [06:29:22]OFD Sender: No OFD packet to send [06:29:27]OFD Sender: No OFD packet to send [06:29:32]OFD Sender: No OFD packet to send [06:29:37]OFD Sender: No OFD packet to send [06:29:42]OFD Sender: No OFD packet to send [06:29:47]OFD Sender: No OFD packet to send [06:29:52]OFD Sender: No OFD packet to send [06:29:57]OFD Sender: No OFD packet to send [06:30:02]OFD Sender: No OFD packet to send [06:30:07]OFD Sender: No OFD packet to send [06:30:12]OFD Sender: No OFD packet to send [06:30:17]OFD Sender: No OFD packet to send [06:30:22]OFD Sender: No OFD packet to send [06:30:27]OFD Sender: No OFD packet to send [06:30:32]OFD Sender: No OFD packet to send [06:30:37]OFD Sender: No OFD packet to send [06:30:42]OFD Sender: No OFD packet to send [06:30:47]OFD Sender: No OFD packet to send [06:30:52]OFD Sender: No OFD packet to send [06:30:57]OFD Sender: No OFD packet to send [06:31:02]OFD Sender: No OFD packet to send [06:31:07]OFD Sender: No OFD packet to send [06:31:12]OFD Sender: No OFD packet to send [06:31:17]OFD Sender: No OFD packet to send [06:31:22]OFD Sender: No OFD packet to send [06:31:27]OFD Sender: No OFD packet to send [06:31:32]OFD Sender: No OFD packet to send [06:31:37]OFD Sender: No OFD packet to send [06:31:42]OFD Sender: No OFD packet to send [06:31:47]OFD Sender: No OFD packet to send [06:31:52]OFD Sender: No OFD packet to send [06:31:57]OFD Sender: No OFD packet to send [06:32:02]OFD Sender: No OFD packet to send [06:32:07]OFD Sender: No OFD packet to send [06:32:12]OFD Sender: No OFD packet to send [06:32:17]OFD Sender: No OFD packet to send [06:32:22]OFD Sender: No OFD packet to send [06:32:27]OFD Sender: No OFD packet to send [06:32:32]OFD Sender: No OFD packet to send [06:32:37]OFD Sender: No OFD packet to send [06:32:42]OFD Sender: No OFD packet to send [06:32:47]OFD Sender: No OFD packet to send [06:32:52]OFD Sender: No OFD packet to send [06:32:57]OFD Sender: No OFD packet to send [06:33:02]OFD Sender: No OFD packet to send [06:33:07]OFD Sender: No OFD packet to send [06:33:12]OFD Sender: No OFD packet to send [06:33:17]OFD Sender: No OFD packet to send [06:33:22]OFD Sender: No OFD packet to send [06:33:27]OFD Sender: No OFD packet to send [06:33:32]OFD Sender: No OFD packet to send [06:33:37]OFD Sender: No OFD packet to send [06:33:42]OFD Sender: No OFD packet to send [06:33:47]OFD Sender: No OFD packet to send [06:33:52]OFD Sender: No OFD packet to send [06:33:57]OFD Sender: No OFD packet to send [06:34:02]OFD Sender: No OFD packet to send [06:34:07]OFD Sender: No OFD packet to send [06:34:12]OFD Sender: No OFD packet to send [06:34:17]OFD Sender: No OFD packet to send [06:34:22]OFD Sender: No OFD packet to send [06:34:27]OFD Sender: No OFD packet to send [06:34:32]OFD Sender: No OFD packet to send [06:34:37]OFD Sender: No OFD packet to send [06:34:42]OFD Sender: No OFD packet to send [06:34:47]OFD Sender: No OFD packet to send [06:34:52]OFD Sender: No OFD packet to send [06:34:57]OFD Sender: No OFD packet to send [06:35:02]OFD Sender: No OFD packet to send [06:35:07]OFD Sender: No OFD packet to send [06:35:12]OFD Sender: No OFD packet to send [06:35:17]OFD Sender: No OFD packet to send [06:35:22]OFD Sender: No OFD packet to send [06:35:27]OFD Sender: No OFD packet to send [06:35:32]OFD Sender: No OFD packet to send [06:35:37]OFD Sender: No OFD packet to send [06:35:42]OFD Sender: No OFD packet to send [06:35:47]OFD Sender: No OFD packet to send [06:35:52]OFD Sender: No OFD packet to send [06:35:57]OFD Sender: No OFD packet to send [06:36:02]OFD Sender: No OFD packet to send [06:36:07]OFD Sender: No OFD packet to send [06:36:12]OFD Sender: No OFD packet to send [06:36:17]OFD Sender: No OFD packet to send [06:36:22]OFD Sender: No OFD packet to send [06:36:27]OFD Sender: No OFD packet to send [06:36:32]OFD Sender: No OFD packet to send [06:36:37]OFD Sender: No OFD packet to send [06:36:42]OFD Sender: No OFD packet to send [06:36:47]OFD Sender: No OFD packet to send [06:36:52]OFD Sender: No OFD packet to send [06:36:57]OFD Sender: No OFD packet to send [06:37:02]OFD Sender: No OFD packet to send [06:37:07]OFD Sender: No OFD packet to send [06:37:12]OFD Sender: No OFD packet to send [06:37:17]OFD Sender: No OFD packet to send [06:37:22]OFD Sender: No OFD packet to send [06:37:27]OFD Sender: No OFD packet to send [06:37:32]OFD Sender: No OFD packet to send [06:37:37]OFD Sender: No OFD packet to send [06:37:42]OFD Sender: No OFD packet to send [06:37:47]OFD Sender: No OFD packet to send [06:37:52]OFD Sender: No OFD packet to send [06:37:57]OFD Sender: No OFD packet to send [06:38:02]OFD Sender: No OFD packet to send [06:38:07]OFD Sender: No OFD packet to send [06:38:12]OFD Sender: No OFD packet to send [06:38:17]OFD Sender: No OFD packet to send [06:38:22]OFD Sender: No OFD packet to send [06:38:27]OFD Sender: No OFD packet to send [06:38:32]OFD Sender: No OFD packet to send [06:38:37]OFD Sender: No OFD packet to send [06:38:42]OFD Sender: No OFD packet to send [06:38:47]OFD Sender: No OFD packet to send [06:38:52]OFD Sender: No OFD packet to send [06:38:57]OFD Sender: No OFD packet to send [06:39:02]OFD Sender: No OFD packet to send [06:39:07]OFD Sender: No OFD packet to send [06:39:12]OFD Sender: No OFD packet to send [06:39:17]OFD Sender: No OFD packet to send [06:39:22]OFD Sender: No OFD packet to send [06:39:27]OFD Sender: No OFD packet to send [06:39:32]OFD Sender: No OFD packet to send [06:39:37]OFD Sender: No OFD packet to send [06:39:42]OFD Sender: No OFD packet to send [06:39:47]OFD Sender: No OFD packet to send [06:39:52]OFD Sender: No OFD packet to send [06:39:57]OFD Sender: No OFD packet to send [06:40:02]OFD Sender: No OFD packet to send [06:40:07]OFD Sender: No OFD packet to send [06:40:12]OFD Sender: No OFD packet to send [06:40:17]OFD Sender: No OFD packet to send [06:40:22]OFD Sender: No OFD packet to send [06:40:27]OFD Sender: No OFD packet to send [06:40:32]OFD Sender: No OFD packet to send [06:40:37]OFD Sender: No OFD packet to send [06:40:42]OFD Sender: No OFD packet to send [06:40:47]OFD Sender: No OFD packet to send [06:40:52]OFD Sender: No OFD packet to send [06:40:57]OFD Sender: No OFD packet to send [06:41:02]OFD Sender: No OFD packet to send [06:41:07]OFD Sender: No OFD packet to send [06:41:12]OFD Sender: No OFD packet to send [06:41:17]OFD Sender: No OFD packet to send [06:41:22]OFD Sender: No OFD packet to send [06:41:27]OFD Sender: No OFD packet to send [06:41:32]OFD Sender: No OFD packet to send [06:41:37]OFD Sender: No OFD packet to send [06:41:42]OFD Sender: No OFD packet to send [06:41:47]OFD Sender: No OFD packet to send [06:41:52]OFD Sender: No OFD packet to send [06:41:57]OFD Sender: No OFD packet to send [06:42:02]OFD Sender: No OFD packet to send [06:42:07]OFD Sender: No OFD packet to send [06:42:12]OFD Sender: No OFD packet to send [06:42:17]OFD Sender: No OFD packet to send [06:42:22]OFD Sender: No OFD packet to send [06:42:27]OFD Sender: No OFD packet to send [06:42:32]OFD Sender: No OFD packet to send [06:42:37]OFD Sender: No OFD packet to send [06:42:42]OFD Sender: No OFD packet to send [06:42:47]OFD Sender: No OFD packet to send [06:42:52]OFD Sender: No OFD packet to send [06:42:57]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:52]OFD Sender: No OFD packet to send [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:23]OFD Sender: No OFD packet to send [06:47:28]OFD Sender: No OFD packet to send [06:47:33]OFD Sender: No OFD packet to send [06:47:38]OFD Sender: No OFD packet to send [06:47:43]OFD Sender: No OFD packet to send [06:47:48]OFD Sender: No OFD packet to send [06:47:53]OFD Sender: No OFD packet to send [06:47:58]OFD Sender: No OFD packet to send [06:48:03]OFD Sender: No OFD packet to send [06:48:08]OFD Sender: No OFD packet to send [06:48:13]OFD Sender: No OFD packet to send [06:48:18]OFD Sender: No OFD packet to send [06:48:23]OFD Sender: No OFD packet to send [06:48:28]OFD Sender: No OFD packet to send [06:48:33]OFD Sender: No OFD packet to send [06:48:38]OFD Sender: No OFD packet to send [06:48:43]OFD Sender: No OFD packet to send [06:48:48]OFD Sender: No OFD packet to send [06:48:53]OFD Sender: No OFD packet to send [06:48:58]OFD Sender: No OFD packet to send [06:49:03]OFD Sender: No OFD packet to send [06:49:08]OFD Sender: No OFD packet to send [06:49:13]OFD Sender: No OFD packet to send [06:49:18]OFD Sender: No OFD packet to send [06:49:23]OFD Sender: No OFD packet to send [06:49:28]OFD Sender: No OFD packet to send [06:49:33]OFD Sender: No OFD packet to send [06:49:38]OFD Sender: No OFD packet to send [06:49:43]OFD Sender: No OFD packet to send [06:49:48]OFD Sender: No OFD packet to send [06:49:53]OFD Sender: No OFD packet to send [06:49:58]OFD Sender: No OFD packet to send [06:50:03]OFD Sender: No OFD packet to send [06:50:08]OFD Sender: No OFD packet to send [06:50:13]OFD Sender: No OFD packet to send [06:50:18]OFD Sender: No OFD packet to send [06:50:23]OFD Sender: No OFD packet to send [06:50:28]OFD Sender: No OFD packet to send [06:50:33]OFD Sender: No OFD packet to send [06:50:38]OFD Sender: No OFD packet to send [06:50:43]OFD Sender: No OFD packet to send [06:50:48]OFD Sender: No OFD packet to send [06:50:53]OFD Sender: No OFD packet to send [06:50:58]OFD Sender: No OFD packet to send [06:51:03]OFD Sender: No OFD packet to send [06:51:08]OFD Sender: No OFD packet to send [06:51:13]OFD Sender: No OFD packet to send [06:51:18]OFD Sender: No OFD packet to send [06:51:23]OFD Sender: No OFD packet to send [06:51:28]OFD Sender: No OFD packet to send [06:51:33]OFD Sender: No OFD packet to send [06:51:38]OFD Sender: No OFD packet to send [06:51:43]OFD Sender: No OFD packet to send [06:51:48]OFD Sender: No OFD packet to send [06:51:53]OFD Sender: No OFD packet to send [06:51:58]OFD Sender: No OFD packet to send [06:52:03]OFD Sender: No OFD packet to send [06:52:08]OFD Sender: No OFD packet to send [06:52:13]OFD Sender: No OFD packet to send [06:52:18]OFD Sender: No OFD packet to send [06:52:23]OFD Sender: No OFD packet to send [06:52:28]OFD Sender: No OFD packet to send [06:52:33]OFD Sender: No OFD packet to send [06:52:38]OFD Sender: No OFD packet to send [06:52:43]OFD Sender: No OFD packet to send [06:52:48]OFD Sender: No OFD packet to send [06:52:53]OFD Sender: No OFD packet to send [06:52:58]OFD Sender: No OFD packet to send [06:53:03]OFD Sender: No OFD packet to send [06:53:08]OFD Sender: No OFD packet to send [06:53:13]OFD Sender: No OFD packet to send [06:53:18]OFD Sender: No OFD packet to send [06:53:23]OFD Sender: No OFD packet to send [06:53:28]OFD Sender: No OFD packet to send [06:53:33]OFD Sender: No OFD packet to send [06:53:38]OFD Sender: No OFD packet to send [06:53:43]OFD Sender: No OFD packet to send [06:53:48]OFD Sender: No OFD packet to send [06:53:53]OFD Sender: No OFD packet to send [06:53:58]OFD Sender: No OFD packet to send [06:54:03]OFD Sender: No OFD packet to send [06:54:08]OFD Sender: No OFD packet to send [06:54:13]OFD Sender: No OFD packet to send [06:54:18]OFD Sender: No OFD packet to send [06:54:23]OFD Sender: No OFD packet to send [06:54:28]OFD Sender: No OFD packet to send [06:54:33]OFD Sender: No OFD packet to send [06:54:38]OFD Sender: No OFD packet to send [06:54:43]OFD Sender: No OFD packet to send [06:54:48]OFD Sender: No OFD packet to send [06:54:53]OFD Sender: No OFD packet to send [06:54:58]OFD Sender: No OFD packet to send [06:55:03]OFD Sender: No OFD packet to send [06:55:08]OFD Sender: No OFD packet to send [06:55:13]OFD Sender: No OFD packet to send [06:55:18]OFD Sender: No OFD packet to send [06:55:23]OFD Sender: No OFD packet to send [06:55:28]OFD Sender: No OFD packet to send [06:55:33]OFD Sender: No OFD packet to send [06:55:38]OFD Sender: No OFD packet to send [06:55:43]OFD Sender: No OFD packet to send [06:55:48]OFD Sender: No OFD packet to send [06:55:53]OFD Sender: No OFD packet to send [06:55:58]OFD Sender: No OFD packet to send [06:56:03]OFD Sender: No OFD packet to send [06:56:08]OFD Sender: No OFD packet to send [06:56:13]OFD Sender: No OFD packet to send [06:56:18]OFD Sender: No OFD packet to send [06:56:23]OFD Sender: No OFD packet to send [06:56:28]OFD Sender: No OFD packet to send [06:56:33]OFD Sender: No OFD packet to send [06:56:38]OFD Sender: No OFD packet to send [06:56:43]OFD Sender: No OFD packet to send [06:56:48]OFD Sender: No OFD packet to send [06:56:53]OFD Sender: No OFD packet to send [06:56:58]OFD Sender: No OFD packet to send [06:57:03]OFD Sender: No OFD packet to send [06:57:08]OFD Sender: No OFD packet to send [06:57:13]OFD Sender: No OFD packet to send [06:57:18]OFD Sender: No OFD packet to send [06:57:23]OFD Sender: No OFD packet to send [06:57:28]OFD Sender: No OFD packet to send [06:57:33]OFD Sender: No OFD packet to send [06:57:38]OFD Sender: No OFD packet to send [06:57:43]OFD Sender: No OFD packet to send [06:57:48]OFD Sender: No OFD packet to send [06:57:53]OFD Sender: No OFD packet to send [06:57:58]OFD Sender: No OFD packet to send [06:58:03]OFD Sender: No OFD packet to send [06:58:08]OFD Sender: No OFD packet to send [06:58:13]OFD Sender: No OFD packet to send [06:58:18]OFD Sender: No OFD packet to send [06:58:23]OFD Sender: No OFD packet to send [06:58:28]OFD Sender: No OFD packet to send [06:58:33]OFD Sender: No OFD packet to send [06:58:38]OFD Sender: No OFD packet to send [06:58:43]OFD Sender: No OFD packet to send [06:58:48]OFD Sender: No OFD packet to send [06:58:53]OFD Sender: No OFD packet to send [06:58:58]OFD Sender: No OFD packet to send [06:59:03]OFD Sender: No OFD packet to send [06:59:08]OFD Sender: No OFD packet to send [06:59:13]OFD Sender: No OFD packet to send [06:59:18]OFD Sender: No OFD packet to send [06:59:23]OFD Sender: No OFD packet to send [06:59:28]OFD Sender: No OFD packet to send [06:59:33]OFD Sender: No OFD packet to send [06:59:38]OFD Sender: No OFD packet to send [06:59:43]OFD Sender: No OFD packet to send [06:59:48]OFD Sender: No OFD packet to send [06:59:53]OFD Sender: No OFD packet to send [06:59:58]OFD Sender: No OFD packet to send [07:00:03]OFD Sender: No OFD packet to send [07:00:08]OFD Sender: No OFD packet to send [07:00:13]OFD Sender: No OFD packet to send [07:00:18]OFD Sender: No OFD packet to send [07:00:23]OFD Sender: No OFD packet to send [07:00:28]OFD Sender: No OFD packet to send [07:00:33]OFD Sender: No OFD packet to send [07:00:38]OFD Sender: No OFD packet to send [07:00:43]OFD Sender: No OFD packet to send [07:00:48]OFD Sender: No OFD packet to send [07:00:53]OFD Sender: No OFD packet to send [07:00:58]OFD Sender: No OFD packet to send [07:01:03]OFD Sender: No OFD packet to send [07:01:08]OFD Sender: No OFD packet to send [07:01:13]OFD Sender: No OFD packet to send [07:01:18]OFD Sender: No OFD packet to send [07:01:23]OFD Sender: No OFD packet to send [07:01:28]OFD Sender: No OFD packet to send [07:01:33]OFD Sender: No OFD packet to send [07:01:38]OFD Sender: No OFD packet to send [07:01:43]OFD Sender: No OFD packet to send [07:01:48]OFD Sender: No OFD packet to send [07:01:53]OFD Sender: No OFD packet to send [07:01:58]OFD Sender: No OFD packet to send [07:02:03]OFD Sender: No OFD packet to send [07:02:08]OFD Sender: No OFD packet to send [07:02:13]OFD Sender: No OFD packet to send [07:02:18]OFD Sender: No OFD packet to send [07:02:23]OFD Sender: No OFD packet to send [07:02:28]OFD Sender: No OFD packet to send [07:02:33]OFD Sender: No OFD packet to send [07:02:38]OFD Sender: No OFD packet to send [07:02:43]OFD Sender: No OFD packet to send [07:02:48]OFD Sender: No OFD packet to send [07:02:53]OFD Sender: No OFD packet to send [07:02:58]OFD Sender: No OFD packet to send [07:03:03]OFD Sender: No OFD packet to send [07:03:08]OFD Sender: No OFD packet to send [07:03:13]OFD Sender: No OFD packet to send [07:03:18]OFD Sender: No OFD packet to send [07:03:23]OFD Sender: No OFD packet to send [07:03:28]OFD Sender: No OFD packet to send [07:03:33]OFD Sender: No OFD packet to send [07:03:38]OFD Sender: No OFD packet to send [07:03:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:29]OFD Sender: No OFD packet to send [07:07:34]OFD Sender: No OFD packet to send [07:07:39]OFD Sender: No OFD packet to send [07:07:44]OFD Sender: No OFD packet to send [07:07:49]OFD Sender: No OFD packet to send [07:07:54]OFD Sender: No OFD packet to send [07:07:59]OFD Sender: No OFD packet to send [07:08:04]OFD Sender: No OFD packet to send [07:08:09]OFD Sender: No OFD packet to send [07:08:14]OFD Sender: No OFD packet to send [07:08:19]OFD Sender: No OFD packet to send [07:08:24]OFD Sender: No OFD packet to send [07:08:29]OFD Sender: No OFD packet to send [07:08:34]OFD Sender: No OFD packet to send [07:08:39]OFD Sender: No OFD packet to send [07:08:44]OFD Sender: No OFD packet to send [07:08:49]OFD Sender: No OFD packet to send [07:08:54]OFD Sender: No OFD packet to send [07:08:59]OFD Sender: No OFD packet to send [07:09:02]accept exits with 7 [07:09:02]New connection [07:09:02]New thread 3066830180 created [07:09:02]Thread 3066973540 joined [07:09:02]Waiting for new connection... [07:09:02] Sock 7.Parse request [07:09:02]Sock 7.Check first char [07:09:02]Sock 7.First char is OK [07:09:02]request: POST /json_proto HTTP/1.0 [07:09:02]Method: POST [07:09:02]URL: /json_proto [07:09:02]Method is POST - this is cgi request [07:09:02]url: /json_proto [07:09:02]query_string will be loaded in cgi processing [07:09:02]execute_cgi json_proto POST (null) [07:09:02]execute_cgi path=json_proto method=POST [07:09:02]POST find Content-Length [07:09:02]Host: 172.17.46.196:8080 [07:09:02]Content-Length: 628 [07:09:02]Content-Type: application/json [07:09:02] [07:09:02]POST finish read [07:09:02]Found Content-Length = 628 [07:09:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189616", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:09:02]execute_script... [07:09: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 : (3)189616", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:09:02]POST & json_proto [07:09:02]process_json_proto [07:09:02]json parsed OK: [07:09:02]protocol is kg_v1.0 [07:09:02]action value=close_receipt [07:09:02]process_action close_receipt [07:09:02]cmd_close_receipt [07:09:02]MH_GetDate [07:09:02]Write to MH i2c: F0 00 00 E7 30 06 [07:09:02]Write i2c OK [07:09:02]MH_I2C_Read... [07:09:02]Read from MH i2c: F0 [07:09:02]MH_I2C_Read... [07:09:02]Read from MH i2c: F0 09 00 [07:09:02]MH_I2C_Read... [07:09:02]Read from MH i2c: F0 09 00 E7 30 00 12 FB BE 66 07 E8 5D 66 F2 [07:09:02]GetLastDocTimeStamp 1723789722 [07:09:02]current date 1723792146 [07:09:02]FM_GetShiftState [07:09:02]SAM_PROTO_GetShiftState [07:09:02]wFMCommunicate request_size=4 [07:09:02]MH_SAM_APDU [07:09:02]CAPDU: 80 13 01 00 [07:09:02]Write to MH i2c: E2 08 00 E8 30 80 13 01 00 00 00 00 00 95 [07:09:02]Write i2c OK [07:09:02]MH_I2C_Read... [07:09:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:02]Read from MH i2c: E2 [07:09:02]MH_I2C_Read... [07:09:02]Read from MH i2c: E2 0E 00 [07:09:02]MH_I2C_Read... [07:09:02]Read from MH i2c: E2 0E 00 E8 30 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 0B [07:09:02]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [07:09:02]wFMCommunicate OK [07:09:02]SAM_PROTO_GetShiftState done [07:09:02]FM_GetShiftState done [07:09:02]opened in 1723766958 [07:09:02]opened+sec_in_day 1723853358 [07:09:02]quantity*price = 26000 [07:09:02]sum+1 = 26001 [07:09:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 24 16.08.2024 07:09 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49376 ФПД: 109187902212842 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T070906&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49376&fm=109187902212842&tin=02508201610067®Number=0000000000092546&sum=26000 0 [07:09:03]StoreToDocumentArchive [07:09:03]shift 464 fd 49376 [07:09:03]save to /storage/0464/doc_00049376 [07:09:03]save last doc name /storage/0464/doc_00049376 to /storage/kkm_last_doc_name [07:09:03]save OK [07:09:03]Clear old archive folders... [07:09:03]ProcessDocumentItem done err = 0, tmpTLVsize=276 [07:09:03]tlvbuf is B6DAD760 [07:09:03]SAM_PROTO_ClearQueue [07:09:03]wFMCommunicate request_size=4 [07:09:03]MH_SAM_APDU [07:09:03]CAPDU: 80 09 00 00 [07:09:03]Write to MH i2c: E2 08 00 F5 30 80 09 00 00 00 00 00 00 97 [07:09:03]Write i2c OK [07:09:03]MH_I2C_Read... [07:09:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:09:03]Read from MH i2c: E2 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: E2 03 00 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: E2 03 00 F5 30 00 90 00 99 [07:09:03]RAPDU: 90 00 [07:09:03]wFMCommunicate OK [07:09:03]SAM_PROTO_ClearQueue done [07:09:03]KKMCreateOFDPacket [07:09:03]OFDProtocolAddRootSTLVToBuf [07:09:03]FM_MakeSignedData [07:09:03]FM_MakeSignedData [07:09:03]SAM_PROTO_SignData [07:09:03]wFMCommunicate request_size=4 [07:09:03]MH_SAM_APDU [07:09:03]CAPDU: 80 0D 01 02 [07:09:03]Write to MH i2c: E2 08 00 F6 30 80 0D 01 02 00 00 00 00 9F [07:09:03]Write i2c OK [07:09:03]MH_I2C_Read... [07:09:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:09:03]Read from MH i2c: E2 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: E2 03 00 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: E2 03 00 F6 30 00 90 00 9A [07:09:03]RAPDU: 90 00 [07:09:03]wFMCommunicate OK [07:09:03]wFMCommunicate request_size=255 [07:09:03]MH_SAM_APDU [07:09:03]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 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 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 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 18 00 00 00 F4 03 04 00 12 FB BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 [07:09:03]Write to MH i2c: E2 02 01 F7 30 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 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 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 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 18 00 00 00 F4 03 04 00 12 FB BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 00 00 8F [07:09:03]Write i2c OK [07:09:03]MH_I2C_Read... [07:09:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:09:03]Read from MH i2c: E2 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: E2 03 00 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: E2 03 00 F7 30 00 90 00 9B [07:09:03]RAPDU: 90 00 [07:09:03]wFMCommunicate OK [07:09:03]wFMCommunicate request_size=35 [07:09:03]MH_SAM_APDU [07:09:03]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E0 C0 00 00 35 04 06 00 63 4E 4A 20 0A EA [07:09:03]Write to MH i2c: E2 26 00 F8 30 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E0 C0 00 00 35 04 06 00 63 4E 4A 20 0A EA 00 00 3C [07:09:03]Write i2c OK [07:09:03]MH_I2C_Read... [07:09:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:09:03]Read from MH i2c: E2 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: E2 03 00 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: E2 03 00 F8 30 00 90 00 9C [07:09:03]RAPDU: 90 00 [07:09:03]wFMCommunicate OK [07:09:03]wFMCommunicate request_size=4 [07:09:03]MH_SAM_APDU [07:09:03]CAPDU: 80 0D 03 02 [07:09:03]Write to MH i2c: E2 08 00 F9 30 80 0D 03 02 00 00 00 00 A4 [07:09:03]Write i2c OK [07:09:03]MH_I2C_Read... [07:09:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:09:03]Read from MH i2c: E2 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: E2 0B 00 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: E2 0B 00 F9 30 00 49 21 BD B1 34 D0 E0 9B 90 00 FC [07:09:03]RAPDU: 49 21 BD B1 34 D0 E0 9B 90 00 [07:09:03]wFMCommunicate OK [07:09:03]SAM_PROTO_SignData done [07:09:03]FM_MakeSignedData done [07:09:03]CreateOFDProtocolMessage [07:09:03]wFMCommunicate request_size=4 [07:09:03]MH_SAM_APDU [07:09:03]CAPDU: 80 11 00 00 [07:09:03]Write to MH i2c: E2 08 00 FA 30 80 11 00 00 00 00 00 00 A4 [07:09:03]Write i2c OK [07:09:03]MH_I2C_Read... [07:09:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:03]Read from MH i2c: E2 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: E2 17 00 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: E2 17 00 FA 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 EF [07:09:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:09:03]wFMCommunicate OK [07:09:03]CreateOFDProtocolMessage done [07:09:03]OFDSenderStorePacket 49376 [07:09:03]StoreOFDPacket docnum=49376 [07:09:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 F9 09 20 01 70 85 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 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 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 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 18 00 00 00 F4 03 04 00 12 FB BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E0 C0 00 00 35 04 06 00 63 4E 4A 20 0A EA 49 21 BD B1 34 D0 E0 9B [07:09:03]CheckFolder [07:09:03]dirname=/storage/ofd_packets [07:09:03]CheckFolder done [07:09:03]ProducePacketName [07:09:03]name=ofd_packets/00049376 [07:09:03]NVStorageSaveData ofd_packets/00049376 [07:09:03]File name is /storage/ofd_packets/00049376 [07:09:03]Write 326 bytes [07:09:03]NVStorageSaveData done [07:09:03]OFDSenderStorePacket done [07:09:03]KKMCreateOFDPacket done [07:09:03]NVStorageSaveData kkm_last_timestamp [07:09:03]File name is /storage/kkm_last_timestamp [07:09:03]Write 4 bytes [07:09:03]NVStorageSaveData done [07:09:03]ExternCall_PrintAddStr [07:09:03]wPrintStart [07:09:03]Write to MH i2c: 01 00 00 FB 30 2B [07:09:03]Write i2c OK [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: 01 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: 01 07 00 [07:09:03]MH_I2C_Read... [07:09:03]Read from MH i2c: 01 07 00 FB 30 00 00 00 00 00 FF 0F 40 [07:09:03]RasterBufferAndPrint [07:09:03]line Счет N : (3)189616 [07:09:03]line ИНН: 02508201610067 [07:09:03]line Контрольно-Кассовый Чек [07:09:03]line ПРОДАЖА [07:09:03]line Товар: 2000036230011 [07:09:03]line Кофе Латте XL(GABB TRADE) [07:09:03]line 2.000 * 130.00 [07:09:03]line = 260.00 [07:09:03]line НДС 12% НСП 1% [07:09:03]line > о реализуемом товаре [07:09:03]line ИТОГО: 260.00 [07:09:03]line НСП 1% : 2.30 [07:09:03]line НДС 12% : 27.61 [07:09:03]line Наличными: 260.00 [07:09:03]line Безнал.: 0.00 [07:09:03]line Место: АЗС № 95 "Партнер Нефть" [07:09:03]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [07:09:03]line СНО: Общий режим [07:09:03]line Чек 24 16.08.2024 07:09 [07:09:03]line Смена: 464 ФФД: 1.0 [07:09:03]line ЗНМ: 0300000078 [07:09:03]line РНМ: 0000000000092546 [07:09:03]line Версия ККМ: 001 [07:09:03]line ФМ: 0000000000871800 [07:09:03]line ФД: 49376 [07:09:03]line ФПД: 109187902212842 [07:09:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T070906&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49376&fm=109187902212842&tin=02508201610067®Number=0000000000092546&sum=26000 [07:09:04]OFD Sender: Processing packet 49376 [packets to send 21, broken 20] [07:09:04]ProducePacketName [07:09:04]name=ofd_packets/00049376 [07:09:04]OFD Sender: To server: pG, [07:09:04]CommunicateWithHost lk.salyk.kg:30040 [07:09:04]ConnectInit lk.salyk.kg [07:09:04]line 0 [07:09:04]written 0, free lines is 4095 [07:09:04]Connected sock=10 [07:09:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 F9 09 20 01 70 85 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 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 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 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 18 00 00 00 F4 03 04 00 12 FB BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E0 C0 00 00 35 04 06 00 63 4E 4A 20 0A EA 49 21 BD B1 34 D0 E0 9B [07:09:04]Write to MH i2c: 01 00 00 23 31 54 [07:09:04]Write i2c OK [07:09:04]MH_I2C_Read... [07:09:04]Read from MH i2c: 01 [07:09:04]MH_I2C_Read... [07:09:04]Read from MH i2c: 01 07 00 [07:09:04]MH_I2C_Read... [07:09:04]Read from MH i2c: 01 07 00 23 31 00 00 00 00 00 07 0D 6F [07:09:04]RasterBufferAndPrint [07:09:04]line [07:09:04]line [07:09:04]line [07:09:04]line [07:09:04]line [07:09:04]written 0, free lines is 3341 [07:09:04]MH_Cut [07:09:04]Write to MH i2c: D1 01 00 2A 31 01 2D [07:09:04]Write i2c OK [07:09:04]MH_I2C_Read... [07:09:04]Read from MH i2c: D1 [07:09:04]MH_I2C_Read... [07:09:04]Read from MH i2c: D1 01 00 [07:09:04]MH_I2C_Read... [07:09:04]Read from MH i2c: D1 01 00 2A 31 00 2C [07:09:04]Write to MH i2c: 01 00 00 2B 31 5C [07:09:04]Write i2c OK [07:09:04]MH_I2C_Read... [07:09:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 17 DB 47 00 7B 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 38 37 31 38 30 30 10 04 04 00 E0 C0 00 00 F4 03 04 00 52 A6 BE 66 B6 04 01 00 00 8A 86 20 E5 84 8F C2 34 [07:09:04]CommunicateWithHost err = 0 [07:09:04]CheckOFDResponse [07:09:04]1017 (14) - 77093643461234 [07:09:04]1041 (16) - 0000000000871800 [07:09:04]1040 (4) - 49376 [07:09:04]1012 (4) - 16.08.2024 01:07 [07:09:04]1206 (1) - 0 [07:09:04]OFD Sender: Remove packet 49376 [07:09:04]ProducePacketName [07:09:04]name=ofd_packets/00049376 [07:09:04]NVStorageDeleteData [07:09:05]OFD Sender: No OFD packet to send [07:09:05]*** Cut start [07:09:05]*** Purtial cut [07:09:05]*** CUTSNS_PIN = 0 [07:09:05]*** Stage 1: CUTSNS_PIN = 1 [07:09:07]Read from MH i2c: 01 [07:09:07]MH_I2C_Read... [07:09:07]*** Stop cut motor [07:09:07]*** Cut end [07:09:07]Read from MH i2c: 01 07 00 [07:09:07]MH_I2C_Read... [07:09:07]Read from MH i2c: 01 07 00 2B 31 00 00 00 00 00 FF 0F 71 [07:09:07]process_action close_receipt done [07:09:07]requested_data is exist [07:09:07]produce_requested_data [07:09:07]requested_item fm.sn is exist - process it [07:09:07]wFMCommunicate request_size=4 [07:09:07]MH_SAM_APDU [07:09:07]CAPDU: 80 11 00 00 [07:09:07]Write to MH i2c: E2 08 00 2C 31 80 11 00 00 00 00 00 00 D7 [07:09:07]Write i2c OK [07:09:07]MH_I2C_Read... [07:09:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:09:07]Read from MH i2c: E2 [07:09:07]MH_I2C_Read... [07:09:07]Read from MH i2c: E2 17 00 [07:09:07]MH_I2C_Read... [07:09:07]Read from MH i2c: E2 17 00 2C 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 22 [07:09:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:09:07]wFMCommunicate OK [07:09:07]requested_item fd.num is exist - process it [07:09:07]SAM_PROTO_GetFieldsCounters [07:09:07]wFMCommunicate request_size=4 [07:09:07]MH_SAM_APDU [07:09:07]CAPDU: 80 13 00 00 [07:09:07]Write to MH i2c: E2 08 00 2D 31 80 13 00 00 00 00 00 00 DA [07:09:07]Write i2c OK [07:09:07]MH_I2C_Read... [07:09:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:09:07]Read from MH i2c: E2 [07:09:07]MH_I2C_Read... [07:09:07]Read from MH i2c: E2 62 00 [07:09:07]MH_I2C_Read... [07:09:07]Read from MH i2c: E2 62 00 2D 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E0 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [07:09:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E0 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:09:07]wFMCommunicate OK [07:09:07]SAM_PROTO_GetFieldsCounters done [07:09:07]requested_item shift.num is exist - process it [07:09:07]requested_item shift.opened is exist - process it [07:09:07]req_shift_opened [07:09:07]FM_GetShiftState [07:09:07]SAM_PROTO_GetShiftState [07:09:07]wFMCommunicate request_size=4 [07:09:07]MH_SAM_APDU [07:09:07]CAPDU: 80 13 01 00 [07:09:07]Write to MH i2c: E2 08 00 2E 31 80 13 01 00 00 00 00 00 DC [07:09:07]Write i2c OK [07:09:07]MH_I2C_Read... [07:09:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:09:07]Read from MH i2c: E2 [07:09:07]MH_I2C_Read... [07:09:07]Read from MH i2c: E2 0E 00 [07:09:07]MH_I2C_Read... [07:09:07]Read from MH i2c: E2 0E 00 2E 31 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 52 [07:09:07]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [07:09:07]wFMCommunicate OK [07:09:07]SAM_PROTO_GetShiftState done [07:09:07]FM_GetShiftState done [07:09:07]req_shift_opened done [07:09:07]requested_item shift.open_date is exist - process it [07:09:07]req_shift_open_date [07:09:07]req_shift_open_date done [07:09:07]produce_requested_data done [07:09:07]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49376,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [07:09:07]process_action_free close_receipt [07:09:07]json_value_free [07:09:07]json_value_free done [07:09:07]process_json_proto returns [07:09:07]Send response to host [07:09:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49376,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [07:09:07]free response buf [07:09:07]execute_script done [07:09:07]execute_script returns [07:09:07]free content buf [07:09:07]Sock 7.Close socket [07:09:07]Sock 7.Thread stoped [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:15]OFD Sender: No OFD packet to send [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]OFD Sender: No OFD packet to send [07:12:35]OFD Sender: No OFD packet to send [07:12:40]OFD Sender: No OFD packet to send [07:12:45]OFD Sender: No OFD packet to send [07:12:50]OFD Sender: No OFD packet to send [07:12:55]OFD Sender: No OFD packet to send [07:13:00]OFD Sender: No OFD packet to send [07:13:05]OFD Sender: No OFD packet to send [07:13:10]OFD Sender: No OFD packet to send [07:13:15]OFD Sender: No OFD packet to send [07:13:20]OFD Sender: No OFD packet to send [07:13:25]OFD Sender: No OFD packet to send [07:13:30]OFD Sender: No OFD packet to send [07:13:35]OFD Sender: No OFD packet to send [07:13:40]OFD Sender: No OFD packet to send [07:13:45]OFD Sender: No OFD packet to send [07:13:50]OFD Sender: No OFD packet to send [07:13:55]OFD Sender: No OFD packet to send [07:14:00]OFD Sender: No OFD packet to send [07:14:05]OFD Sender: No OFD packet to send [07:14:10]OFD Sender: No OFD packet to send [07:14:15]OFD Sender: No OFD packet to send [07:14:20]OFD Sender: No OFD packet to send [07:14:25]OFD Sender: No OFD packet to send [07:14:30]OFD Sender: No OFD packet to send [07:14:35]OFD Sender: No OFD packet to send [07:14:40]OFD Sender: No OFD packet to send [07:14:45]OFD Sender: No OFD packet to send [07:14:50]OFD Sender: No OFD packet to send [07:14:55]OFD Sender: No OFD packet to send [07:15:00]OFD Sender: No OFD packet to send [07:15:05]OFD Sender: No OFD packet to send [07:15:10]OFD Sender: No OFD packet to send [07:15:15]OFD Sender: No OFD packet to send [07:15:20]OFD Sender: No OFD packet to send [07:15:25]OFD Sender: No OFD packet to send [07:15:30]OFD Sender: No OFD packet to send [07:15:35]OFD Sender: No OFD packet to send [07:15:40]OFD Sender: No OFD packet to send [07:15:45]OFD Sender: No OFD packet to send [07:15:50]OFD Sender: No OFD packet to send [07:15:55]OFD Sender: No OFD packet to send [07:16:00]OFD Sender: No OFD packet to send [07:16:05]OFD Sender: No OFD packet to send [07:16:10]OFD Sender: No OFD packet to send [07:16:15]OFD Sender: No OFD packet to send [07:16:20]OFD Sender: No OFD packet to send [07:16:25]OFD Sender: No OFD packet to send [07:16:30]OFD Sender: No OFD packet to send [07:16:35]OFD Sender: No OFD packet to send [07:16:40]OFD Sender: No OFD packet to send [07:16:45]OFD Sender: No OFD packet to send [07:16:50]OFD Sender: No OFD packet to send [07:16:55]OFD Sender: No OFD packet to send [07:17:00]OFD Sender: No OFD packet to send [07:17:05]OFD Sender: No OFD packet to send [07:17:10]OFD Sender: No OFD packet to send [07:17:15]OFD Sender: No OFD packet to send [07:17:20]OFD Sender: No OFD packet to send [07:17:25]OFD Sender: No OFD packet to send [07:17:30]OFD Sender: No OFD packet to send [07:17:35]OFD Sender: No OFD packet to send [07:17:40]OFD Sender: No OFD packet to send [07:17:45]OFD Sender: No OFD packet to send [07:17:50]OFD Sender: No OFD packet to send [07:17:55]OFD Sender: No OFD packet to send [07:18:00]OFD Sender: No OFD packet to send [07:18:05]OFD Sender: No OFD packet to send [07:18:10]OFD Sender: No OFD packet to send [07:18:15]OFD Sender: No OFD packet to send [07:18:16]accept exits with 9 [07:18:16]New connection [07:18:16]New thread 3066973540 created [07:18:16]Thread 3066830180 joined [07:18:16]Waiting for new connection... [07:18:16] Sock 9.Parse request [07:18:16]Sock 9.Check first char [07:18:16]Sock 9.First char is OK [07:18:16]request: POST /json_proto HTTP/1.0 [07:18:16]Method: POST [07:18:16]URL: /json_proto [07:18:16]Method is POST - this is cgi request [07:18:16]url: /json_proto [07:18:16]query_string will be loaded in cgi processing [07:18:16]execute_cgi json_proto POST (null) [07:18:16]execute_cgi path=json_proto method=POST [07:18:16]POST find Content-Length [07:18:16]Host: 172.17.46.196:8080 [07:18:16]Content-Length: 666 [07:18:16]Content-Type: application/json [07:18:16] [07:18:16]POST finish read [07:18:16]Found Content-Length = 666 [07:18:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189617", "tax_sys" : 0, "items" : [ { "code": "4870202521292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u044B 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:18:16]execute_script... [07:18:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189617", "tax_sys" : 0, "items" : [ { "code": "4870202521292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u044B 1,2\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:18:16]POST & json_proto [07:18:16]process_json_proto [07:18:16]json parsed OK: [07:18:16]protocol is kg_v1.0 [07:18:16]action value=close_receipt [07:18:16]process_action close_receipt [07:18:16]cmd_close_receipt [07:18:16]MH_GetDate [07:18:16]Write to MH i2c: F0 00 00 2F 31 4F [07:18:16]Write i2c OK [07:18:16]MH_I2C_Read... [07:18:16]Read from MH i2c: F0 [07:18:16]MH_I2C_Read... [07:18:16]Read from MH i2c: F0 09 00 [07:18:16]MH_I2C_Read... [07:18:16]Read from MH i2c: F0 09 00 2F 31 00 3C FD BE 66 07 E8 5D 66 67 [07:18:16]GetLastDocTimeStamp 1723792146 [07:18:16]current date 1723792700 [07:18:16]FM_GetShiftState [07:18:16]SAM_PROTO_GetShiftState [07:18:16]wFMCommunicate request_size=4 [07:18:16]MH_SAM_APDU [07:18:16]CAPDU: 80 13 01 00 [07:18:16]Write to MH i2c: E2 08 00 30 31 80 13 01 00 00 00 00 00 DE [07:18:16]Write i2c OK [07:18:16]MH_I2C_Read... [07:18:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:18:16]Read from MH i2c: E2 [07:18:16]MH_I2C_Read... [07:18:16]Read from MH i2c: E2 0E 00 [07:18:16]MH_I2C_Read... [07:18:16]Read from MH i2c: E2 0E 00 30 31 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 54 [07:18:16]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [07:18:16]wFMCommunicate OK [07:18:16]SAM_PROTO_GetShiftState done [07:18:16]FM_GetShiftState done [07:18:16]opened in 1723766958 [07:18:16]opened+sec_in_day 1723853358 [07:18:16]quantity*price = 12500 [07:18:16]sum+1 = 12501 [07:18:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 25 16.08.2024 07:18 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49377 ФПД: 169101217195658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T071820&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49377&fm=169101217195658&tin=02508201610067®Number=0000000000092546&sum=12500 0 [07:18:17]StoreToDocumentArchive [07:18:17]shift 464 fd 49377 [07:18:17]save to /storage/0464/doc_00049377 [07:18:17]save last doc name /storage/0464/doc_00049377 to /storage/kkm_last_doc_name [07:18:17]save OK [07:18:17]Clear old archive folders... [07:18:17]ProcessDocumentItem done err = 0, tmpTLVsize=282 [07:18:17]tlvbuf is 00ED05D0 [07:18:17]SAM_PROTO_ClearQueue [07:18:17]wFMCommunicate request_size=4 [07:18:17]MH_SAM_APDU [07:18:17]CAPDU: 80 09 00 00 [07:18:17]Write to MH i2c: E2 08 00 3D 31 80 09 00 00 00 00 00 00 E0 [07:18:17]Write i2c OK [07:18:17]MH_I2C_Read... [07:18:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:18:17]Read from MH i2c: E2 [07:18:17]MH_I2C_Read... [07:18:17]Read from MH i2c: E2 03 00 [07:18:17]MH_I2C_Read... [07:18:17]Read from MH i2c: E2 03 00 3D 31 00 90 00 E2 [07:18:17]RAPDU: 90 00 [07:18:17]wFMCommunicate OK [07:18:17]SAM_PROTO_ClearQueue done [07:18:17]KKMCreateOFDPacket [07:18:17]OFDProtocolAddRootSTLVToBuf [07:18:17]FM_MakeSignedData [07:18:17]FM_MakeSignedData [07:18:17]SAM_PROTO_SignData [07:18:17]wFMCommunicate request_size=4 [07:18:17]MH_SAM_APDU [07:18:17]CAPDU: 80 0D 01 02 [07:18:17]Write to MH i2c: E2 08 00 3E 31 80 0D 01 02 00 00 00 00 E8 [07:18:17]Write i2c OK [07:18:17]MH_I2C_Read... [07:18:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:18:17]Read from MH i2c: E2 [07:18:17]MH_I2C_Read... [07:18:17]Read from MH i2c: E2 03 00 [07:18:17]MH_I2C_Read... [07:18:17]Read from MH i2c: E2 03 00 3E 31 00 90 00 E3 [07:18:17]RAPDU: 90 00 [07:18:17]wFMCommunicate OK [07:18:17]wFMCommunicate request_size=255 [07:18:17]MH_SAM_APDU [07:18:17]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 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 3C FD BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 [07:18:17]Write to MH i2c: E2 02 01 3F 31 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 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 3C FD BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 00 00 0E [07:18:17]Write i2c OK [07:18:17]MH_I2C_Read... [07:18:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:18:17]Read from MH i2c: E2 [07:18:17]MH_I2C_Read... [07:18:17]Read from MH i2c: E2 03 00 [07:18:17]MH_I2C_Read... [07:18:17]Read from MH i2c: E2 03 00 3F 31 00 90 00 E4 [07:18:17]RAPDU: 90 00 [07:18:17]wFMCommunicate OK [07:18:17]wFMCommunicate request_size=41 [07:18:17]MH_SAM_APDU [07:18:17]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E1 C0 00 00 35 04 06 00 99 CB F1 FB 66 8A [07:18:17]Write to MH i2c: E2 2C 00 40 31 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E1 C0 00 00 35 04 06 00 99 CB F1 FB 66 8A 00 00 93 [07:18:17]Write i2c OK [07:18:17]MH_I2C_Read... [07:18:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:18:18]Read from MH i2c: E2 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: E2 03 00 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: E2 03 00 40 31 00 90 00 E5 [07:18:18]RAPDU: 90 00 [07:18:18]wFMCommunicate OK [07:18:18]wFMCommunicate request_size=4 [07:18:18]MH_SAM_APDU [07:18:18]CAPDU: 80 0D 03 02 [07:18:18]Write to MH i2c: E2 08 00 41 31 80 0D 03 02 00 00 00 00 ED [07:18:18]Write i2c OK [07:18:18]MH_I2C_Read... [07:18:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:18:18]Read from MH i2c: E2 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: E2 0B 00 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: E2 0B 00 41 31 00 AA B3 5D 25 4C 43 38 62 90 00 F6 [07:18:18]RAPDU: AA B3 5D 25 4C 43 38 62 90 00 [07:18:18]wFMCommunicate OK [07:18:18]SAM_PROTO_SignData done [07:18:18]FM_MakeSignedData done [07:18:18]CreateOFDProtocolMessage [07:18:18]wFMCommunicate request_size=4 [07:18:18]MH_SAM_APDU [07:18:18]CAPDU: 80 11 00 00 [07:18:18]Write to MH i2c: E2 08 00 42 31 80 11 00 00 00 00 00 00 ED [07:18:18]Write i2c OK [07:18:18]MH_I2C_Read... [07:18:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:18:18]Read from MH i2c: E2 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: E2 17 00 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: E2 17 00 42 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 38 [07:18:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:18:18]wFMCommunicate OK [07:18:18]CreateOFDProtocolMessage done [07:18:18]OFDSenderStorePacket 49377 [07:18:18]StoreOFDPacket docnum=49377 [07:18:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 FA C9 26 01 39 FE 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 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 3C FD BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E1 C0 00 00 35 04 06 00 99 CB F1 FB 66 8A AA B3 5D 25 4C 43 38 62 [07:18:18]CheckFolder [07:18:18]dirname=/storage/ofd_packets [07:18:18]CheckFolder done [07:18:18]ProducePacketName [07:18:18]name=ofd_packets/00049377 [07:18:18]NVStorageSaveData ofd_packets/00049377 [07:18:18]File name is /storage/ofd_packets/00049377 [07:18:18]Write 332 bytes [07:18:18]NVStorageSaveData done [07:18:18]OFDSenderStorePacket done [07:18:18]KKMCreateOFDPacket done [07:18:18]NVStorageSaveData kkm_last_timestamp [07:18:18]File name is /storage/kkm_last_timestamp [07:18:18]Write 4 bytes [07:18:18]NVStorageSaveData done [07:18:18]ExternCall_PrintAddStr [07:18:18]wPrintStart [07:18:18]Write to MH i2c: 01 00 00 43 31 74 [07:18:18]Write i2c OK [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: 01 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: 01 07 00 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: 01 07 00 43 31 00 00 00 00 00 FF 0F 89 [07:18:18]RasterBufferAndPrint [07:18:18]line Счет N : (3)189617 [07:18:18]line ИНН: 02508201610067 [07:18:18]line Контрольно-Кассовый Чек [07:18:18]line ПРОДАЖА [07:18:18]line Товар: 4870202521292 [07:18:18]line Напиток Сок березы 1,2л [07:18:18]line 1.000 * 125.00 [07:18:18]line = 125.00 [07:18:18]line НДС 12% НСП 1% [07:18:18]line > о реализуемом товаре [07:18:18]line ИТОГО: 125.00 [07:18:18]line НСП 1% : 1.11 [07:18:18]line НДС 12% : 13.27 [07:18:18]line Наличными: 125.00 [07:18:18]line Безнал.: 0.00 [07:18:18]line Место: АЗС № 95 "Партнер Нефть" [07:18:18]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [07:18:18]line СНО: Общий режим [07:18:18]line Чек 25 16.08.2024 07:18 [07:18:18]line Смена: 464 ФФД: 1.0 [07:18:18]line ЗНМ: 0300000078 [07:18:18]line РНМ: 0000000000092546 [07:18:18]line Версия ККМ: 001 [07:18:18]line ФМ: 0000000000871800 [07:18:18]line ФД: 49377 [07:18:18]line ФПД: 169101217195658 [07:18:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T071820&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49377&fm=169101217195658&tin=02508201610067®Number=0000000000092546&sum=12500 [07:18:18]line 0 [07:18:18]OFD Sender: Processing packet 49377 [packets to send 21, broken 20] [07:18:18]ProducePacketName [07:18:18]name=ofd_packets/00049377 [07:18:18]OFD Sender: To server: pG, [07:18:18]CommunicateWithHost lk.salyk.kg:30040 [07:18:18]ConnectInit lk.salyk.kg [07:18:18]written 0, free lines is 4095 [07:18:18]Connected sock=10 [07:18:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 FA C9 26 01 39 FE 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 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 3C FD BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E1 C0 00 00 35 04 06 00 99 CB F1 FB 66 8A AA B3 5D 25 4C 43 38 62 [07:18:18]Write to MH i2c: 01 00 00 6B 31 9C [07:18:18]Write i2c OK [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: 01 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: 01 07 00 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: 01 07 00 6B 31 00 00 00 00 00 E5 0C 94 [07:18:18]RasterBufferAndPrint [07:18:18]line [07:18:18]line [07:18:18]line [07:18:18]line [07:18:18]line [07:18:18]written 0, free lines is 3306 [07:18:18]MH_Cut [07:18:18]Write to MH i2c: D1 01 00 72 31 01 75 [07:18:18]Write i2c OK [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: D1 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: D1 01 00 [07:18:18]MH_I2C_Read... [07:18:18]Read from MH i2c: D1 01 00 72 31 00 74 [07:18:18]Write to MH i2c: 01 00 00 73 31 A4 [07:18:18]Write i2c OK [07:18:18]MH_I2C_Read... [07:18:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 09 C6 47 00 F0 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 38 37 31 38 30 30 10 04 04 00 E1 C0 00 00 F4 03 04 00 7C A8 BE 66 B6 04 01 00 00 11 E4 A2 4D 51 FF 4C 7C [07:18:18]CommunicateWithHost err = 0 [07:18:18]CheckOFDResponse [07:18:18]1017 (14) - 77093643461234 [07:18:18]1041 (16) - 0000000000871800 [07:18:18]1040 (4) - 49377 [07:18:18]1012 (4) - 16.08.2024 01:16 [07:18:18]1206 (1) - 0 [07:18:18]OFD Sender: Remove packet 49377 [07:18:18]ProducePacketName [07:18:18]name=ofd_packets/00049377 [07:18:18]NVStorageDeleteData [07:18:19]OFD Sender: No OFD packet to send [07:18:19]*** Cut start [07:18:19]*** Purtial cut [07:18:19]*** Stage 1: CUTSNS_PIN = 1 [07:18:19]Read from MH i2c: 01 [07:18:19]MH_I2C_Read... [07:18:19]*** Stop cut motor [07:18:19]*** Cut end [07:18:19]Read from MH i2c: 01 07 00 [07:18:19]MH_I2C_Read... [07:18:19]Read from MH i2c: 01 07 00 73 31 00 00 00 00 00 FF 0F B9 [07:18:19]process_action close_receipt done [07:18:19]requested_data is exist [07:18:19]produce_requested_data [07:18:19]requested_item fm.sn is exist - process it [07:18:19]wFMCommunicate request_size=4 [07:18:19]MH_SAM_APDU [07:18:19]CAPDU: 80 11 00 00 [07:18:19]Write to MH i2c: E2 08 00 74 31 80 11 00 00 00 00 00 00 1F [07:18:19]Write i2c OK [07:18:19]MH_I2C_Read... [07:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:18:20]Read from MH i2c: E2 [07:18:20]MH_I2C_Read... [07:18:20]Read from MH i2c: E2 17 00 [07:18:20]MH_I2C_Read... [07:18:20]Read from MH i2c: E2 17 00 74 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6A [07:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:18:20]wFMCommunicate OK [07:18:20]requested_item fd.num is exist - process it [07:18:20]SAM_PROTO_GetFieldsCounters [07:18:20]wFMCommunicate request_size=4 [07:18:20]MH_SAM_APDU [07:18:20]CAPDU: 80 13 00 00 [07:18:20]Write to MH i2c: E2 08 00 75 31 80 13 00 00 00 00 00 00 22 [07:18:20]Write i2c OK [07:18:20]MH_I2C_Read... [07:18:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:18:20]Read from MH i2c: E2 [07:18:20]MH_I2C_Read... [07:18:20]Read from MH i2c: E2 62 00 [07:18:20]MH_I2C_Read... [07:18:20]Read from MH i2c: E2 62 00 75 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E1 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [07:18:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E1 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:18:20]wFMCommunicate OK [07:18:20]SAM_PROTO_GetFieldsCounters done [07:18:20]requested_item shift.num is exist - process it [07:18:20]requested_item shift.opened is exist - process it [07:18:20]req_shift_opened [07:18:20]FM_GetShiftState [07:18:20]SAM_PROTO_GetShiftState [07:18:20]wFMCommunicate request_size=4 [07:18:20]MH_SAM_APDU [07:18:20]CAPDU: 80 13 01 00 [07:18:20]Write to MH i2c: E2 08 00 76 31 80 13 01 00 00 00 00 00 24 [07:18:20]Write i2c OK [07:18:20]MH_I2C_Read... [07:18:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:18:20]Read from MH i2c: E2 [07:18:20]MH_I2C_Read... [07:18:20]Read from MH i2c: E2 0E 00 [07:18:20]MH_I2C_Read... [07:18:20]Read from MH i2c: E2 0E 00 76 31 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 9A [07:18:20]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [07:18:20]wFMCommunicate OK [07:18:20]SAM_PROTO_GetShiftState done [07:18:20]FM_GetShiftState done [07:18:20]req_shift_opened done [07:18:20]requested_item shift.open_date is exist - process it [07:18:20]req_shift_open_date [07:18:20]req_shift_open_date done [07:18:20]produce_requested_data done [07:18:20]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49377,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [07:18:20]process_action_free close_receipt [07:18:20]json_value_free [07:18:20]json_value_free done [07:18:20]process_json_proto returns [07:18:20]Send response to host [07:18:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49377,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [07:18:20]free response buf [07:18:20]execute_script done [07:18:20]execute_script returns [07:18:20]free content buf [07:18:20]Sock 9.Close socket [07:18:20]Sock 9.Thread stoped [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:24]OFD Sender: No OFD packet to send [07:19:29]OFD Sender: No OFD packet to send [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:54]OFD Sender: No OFD packet to send [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [07:21:14]OFD Sender: No OFD packet to send [07:21:19]OFD Sender: No OFD packet to send [07:21:24]OFD Sender: No OFD packet to send [07:21:29]OFD Sender: No OFD packet to send [07:21:34]OFD Sender: No OFD packet to send [07:21:39]OFD Sender: No OFD packet to send [07:21:44]OFD Sender: No OFD packet to send [07:21:49]OFD Sender: No OFD packet to send [07:21:54]OFD Sender: No OFD packet to send [07:21:59]OFD Sender: No OFD packet to send [07:22:04]OFD Sender: No OFD packet to send [07:22:09]OFD Sender: No OFD packet to send [07:22:14]OFD Sender: No OFD packet to send [07:22:19]OFD Sender: No OFD packet to send [07:22:24]OFD Sender: No OFD packet to send [07:22:29]OFD Sender: No OFD packet to send [07:22:34]OFD Sender: No OFD packet to send [07:22:39]OFD Sender: No OFD packet to send [07:22:44]OFD Sender: No OFD packet to send [07:22:49]OFD Sender: No OFD packet to send [07:22:54]OFD Sender: No OFD packet to send [07:22:59]OFD Sender: No OFD packet to send [07:23:04]OFD Sender: No OFD packet to send [07:23:09]OFD Sender: No OFD packet to send [07:23:14]OFD Sender: No OFD packet to send [07:23:19]OFD Sender: No OFD packet to send [07:23:24]OFD Sender: No OFD packet to send [07:23:29]OFD Sender: No OFD packet to send [07:23:34]OFD Sender: No OFD packet to send [07:23:39]OFD Sender: No OFD packet to send [07:23:43]accept exits with 7 [07:23:43]New connection [07:23:43]New thread 3066830180 created [07:23:43]Thread 3066973540 joined [07:23:43]Waiting for new connection... [07:23:43] Sock 7.Parse request [07:23:43]Sock 7.Check first char [07:23:43]Sock 7.First char is OK [07:23:43]request: POST /json_proto HTTP/1.0 [07:23:43]Method: POST [07:23:43]URL: /json_proto [07:23:43]Method is POST - this is cgi request [07:23:43]url: /json_proto [07:23:43]query_string will be loaded in cgi processing [07:23:43]execute_cgi json_proto POST (null) [07:23:43]execute_cgi path=json_proto method=POST [07:23:43]POST find Content-Length [07:23:43]Host: 172.17.46.196:8080 [07:23:43]Content-Length: 645 [07:23:43]Content-Type: application/json [07:23:43] [07:23:43]POST finish read [07:23:43]Found Content-Length = 645 [07:23:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189618", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:23:43]execute_script... [07:23: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 : (3)189618", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:23:43]POST & json_proto [07:23:43]process_json_proto [07:23:43]json parsed OK: [07:23:43]protocol is kg_v1.0 [07:23:43]action value=close_receipt [07:23:43]process_action close_receipt [07:23:43]cmd_close_receipt [07:23:43]MH_GetDate [07:23:43]Write to MH i2c: F0 00 00 77 31 97 [07:23:43]Write i2c OK [07:23:43]MH_I2C_Read... [07:23:43]Read from MH i2c: F0 [07:23:43]MH_I2C_Read... [07:23:43]Read from MH i2c: F0 09 00 [07:23:43]MH_I2C_Read... [07:23:43]Read from MH i2c: F0 09 00 77 31 00 83 FE BE 66 07 E8 5D 66 F7 [07:23:43]GetLastDocTimeStamp 1723792700 [07:23:43]current date 1723793027 [07:23:43]FM_GetShiftState [07:23:43]SAM_PROTO_GetShiftState [07:23:43]wFMCommunicate request_size=4 [07:23:43]MH_SAM_APDU [07:23:43]CAPDU: 80 13 01 00 [07:23:43]Write to MH i2c: E2 08 00 78 31 80 13 01 00 00 00 00 00 26 [07:23:43]Write i2c OK [07:23:43]MH_I2C_Read... [07:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:23:43]Read from MH i2c: E2 [07:23:43]MH_I2C_Read... [07:23:43]Read from MH i2c: E2 0E 00 [07:23:43]MH_I2C_Read... [07:23:43]Read from MH i2c: E2 0E 00 78 31 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 9C [07:23:43]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [07:23:43]wFMCommunicate OK [07:23:43]SAM_PROTO_GetShiftState done [07:23:43]FM_GetShiftState done [07:23:43]opened in 1723766958 [07:23:43]opened+sec_in_day 1723853358 [07:23:43]quantity*price = 6500 [07:23:43]sum+1 = 6501 [07:23:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 26 16.08.2024 07:23 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49378 ФПД: 146499279044390 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T072347&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49378&fm=146499279044390&tin=02508201610067®Number=0000000000092546&sum=6500 0 [07:23:44]StoreToDocumentArchive [07:23:44]shift 464 fd 49378 [07:23:44]save to /storage/0464/doc_00049378 [07:23:44]save last doc name /storage/0464/doc_00049378 to /storage/kkm_last_doc_name [07:23:44]save OK [07:23:44]Clear old archive folders... [07:23:44]ProcessDocumentItem done err = 0, tmpTLVsize=272 [07:23:44]tlvbuf is 00DEF6D0 [07:23:44]SAM_PROTO_ClearQueue [07:23:44]wFMCommunicate request_size=4 [07:23:44]MH_SAM_APDU [07:23:44]CAPDU: 80 09 00 00 [07:23:44]Write to MH i2c: E2 08 00 85 31 80 09 00 00 00 00 00 00 28 [07:23:44]Write i2c OK [07:23:44]MH_I2C_Read... [07:23:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:23:44]Read from MH i2c: E2 [07:23:44]MH_I2C_Read... [07:23:44]Read from MH i2c: E2 03 00 [07:23:44]MH_I2C_Read... [07:23:44]Read from MH i2c: E2 03 00 85 31 00 90 00 2A [07:23:44]RAPDU: 90 00 [07:23:44]wFMCommunicate OK [07:23:44]SAM_PROTO_ClearQueue done [07:23:44]KKMCreateOFDPacket [07:23:44]OFDProtocolAddRootSTLVToBuf [07:23:44]FM_MakeSignedData [07:23:44]FM_MakeSignedData [07:23:44]SAM_PROTO_SignData [07:23:44]wFMCommunicate request_size=4 [07:23:44]MH_SAM_APDU [07:23:44]CAPDU: 80 0D 01 02 [07:23:44]Write to MH i2c: E2 08 00 86 31 80 0D 01 02 00 00 00 00 30 [07:23:44]Write i2c OK [07:23:44]MH_I2C_Read... [07:23:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:23:44]Read from MH i2c: E2 [07:23:44]MH_I2C_Read... [07:23:44]Read from MH i2c: E2 03 00 [07:23:44]MH_I2C_Read... [07:23:44]Read from MH i2c: E2 03 00 86 31 00 90 00 2B [07:23:44]RAPDU: 90 00 [07:23:44]wFMCommunicate OK [07:23:44]wFMCommunicate request_size=255 [07:23:44]MH_SAM_APDU [07:23:44]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 83 FE BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 [07:23:44]Write to MH i2c: E2 02 01 87 31 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 83 FE BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 0D [07:23:44]Write i2c OK [07:23:44]MH_I2C_Read... [07:23:44]OFD Sender: No OFD packet to send [07:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:23:44]Read from MH i2c: E2 [07:23:44]MH_I2C_Read... [07:23:44]Read from MH i2c: E2 03 00 [07:23:44]MH_I2C_Read... [07:23:44]Read from MH i2c: E2 03 00 87 31 00 90 00 2C [07:23:44]RAPDU: 90 00 [07:23:44]wFMCommunicate OK [07:23:44]wFMCommunicate request_size=31 [07:23:44]MH_SAM_APDU [07:23:44]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 30 30 10 04 04 00 E2 C0 00 00 35 04 06 00 85 3D 85 7C BF 26 [07:23:44]Write to MH i2c: E2 22 00 88 31 80 0D 02 02 1A 00 30 30 38 37 31 38 30 30 10 04 04 00 E2 C0 00 00 35 04 06 00 85 3D 85 7C BF 26 00 00 A0 [07:23:44]Write i2c OK [07:23:44]MH_I2C_Read... [07:23:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:23:45]Read from MH i2c: E2 [07:23:45]MH_I2C_Read... [07:23:45]Read from MH i2c: E2 03 00 [07:23:45]MH_I2C_Read... [07:23:45]Read from MH i2c: E2 03 00 88 31 00 90 00 2D [07:23:45]RAPDU: 90 00 [07:23:45]wFMCommunicate OK [07:23:45]wFMCommunicate request_size=4 [07:23:45]MH_SAM_APDU [07:23:45]CAPDU: 80 0D 03 02 [07:23:45]Write to MH i2c: E2 08 00 89 31 80 0D 03 02 00 00 00 00 35 [07:23:45]Write i2c OK [07:23:45]MH_I2C_Read... [07:23:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:23:45]Read from MH i2c: E2 [07:23:45]MH_I2C_Read... [07:23:45]Read from MH i2c: E2 0B 00 [07:23:45]MH_I2C_Read... [07:23:45]Read from MH i2c: E2 0B 00 89 31 00 F4 23 91 17 38 80 E9 08 90 00 9E [07:23:45]RAPDU: F4 23 91 17 38 80 E9 08 90 00 [07:23:45]wFMCommunicate OK [07:23:45]SAM_PROTO_SignData done [07:23:45]FM_MakeSignedData done [07:23:45]CreateOFDProtocolMessage [07:23:45]wFMCommunicate request_size=4 [07:23:45]MH_SAM_APDU [07:23:45]CAPDU: 80 11 00 00 [07:23:45]Write to MH i2c: E2 08 00 8A 31 80 11 00 00 00 00 00 00 35 [07:23:45]Write i2c OK [07:23:45]MH_I2C_Read... [07:23:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:23:45]Read from MH i2c: E2 [07:23:45]MH_I2C_Read... [07:23:45]Read from MH i2c: E2 17 00 [07:23:45]MH_I2C_Read... [07:23:45]Read from MH i2c: E2 17 00 8A 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 80 [07:23:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:23:45]wFMCommunicate OK [07:23:45]CreateOFDProtocolMessage done [07:23:45]OFDSenderStorePacket 49378 [07:23:45]StoreOFDPacket docnum=49378 [07:23:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 94 46 1C 01 81 12 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 83 FE BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E2 C0 00 00 35 04 06 00 85 3D 85 7C BF 26 F4 23 91 17 38 80 E9 08 [07:23:45]CheckFolder [07:23:45]dirname=/storage/ofd_packets [07:23:45]CheckFolder done [07:23:45]ProducePacketName [07:23:45]name=ofd_packets/00049378 [07:23:45]NVStorageSaveData ofd_packets/00049378 [07:23:45]File name is /storage/ofd_packets/00049378 [07:23:45]Write 322 bytes [07:23:45]NVStorageSaveData done [07:23:45]OFDSenderStorePacket done [07:23:45]KKMCreateOFDPacket done [07:23:45]NVStorageSaveData kkm_last_timestamp [07:23:45]File name is /storage/kkm_last_timestamp [07:23:45]Write 4 bytes [07:23:45]NVStorageSaveData done [07:23:45]ExternCall_PrintAddStr [07:23:45]wPrintStart [07:23:45]Write to MH i2c: 01 00 00 8B 31 BC [07:23:45]Write i2c OK [07:23:45]MH_I2C_Read... [07:23:45]Read from MH i2c: 01 [07:23:45]MH_I2C_Read... [07:23:45]Read from MH i2c: 01 07 00 [07:23:45]MH_I2C_Read... [07:23:45]Read from MH i2c: 01 07 00 8B 31 00 00 00 00 00 FF 0F D1 [07:23:45]RasterBufferAndPrint [07:23:45]line Счет N : (3)189618 [07:23:45]line ИНН: 02508201610067 [07:23:45]line Контрольно-Кассовый Чек [07:23:45]line ПРОДАЖА [07:23:45]line Товар: 47011656 [07:23:45]line Водка Пшеничная 0,1л [07:23:45]line 1.000 * 65.00 [07:23:45]line = 65.00 [07:23:45]line НДС 12% НСП 1% [07:23:45]line > о реализуемом товаре [07:23:45]line ИТОГО: 65.00 [07:23:45]line НСП 1% : 0.57 [07:23:45]line НДС 12% : 6.90 [07:23:45]line Наличными: 65.00 [07:23:45]line Безнал.: 0.00 [07:23:45]line Место: АЗС № 95 "Партнер Нефть" [07:23:45]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [07:23:45]line СНО: Общий режим [07:23:45]line Чек 26 16.08.2024 07:23 [07:23:45]line Смена: 464 ФФД: 1.0 [07:23:45]line ЗНМ: 0300000078 [07:23:45]line РНМ: 0000000000092546 [07:23:45]line Версия ККМ: 001 [07:23:45]line ФМ: 0000000000871800 [07:23:45]line ФД: 49378 [07:23:45]line ФПД: 146499279044390 [07:23:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T072347&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49378&fm=146499279044390&tin=02508201610067®Number=0000000000092546&sum=6500 [07:23:45]OFD Sender: Processing packet 49378 [packets to send 21, broken 20] [07:23:45]ProducePacketName [07:23:45]name=ofd_packets/00049378 [07:23:45]OFD Sender: To server: pG, [07:23:45]CommunicateWithHost lk.salyk.kg:30040 [07:23:45]ConnectInit lk.salyk.kg [07:23:45]line 0 [07:23:45]written 0, free lines is 4095 [07:23:45]Connected sock=10 [07:23:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 94 46 1C 01 81 12 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 83 FE BE 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E2 C0 00 00 35 04 06 00 85 3D 85 7C BF 26 F4 23 91 17 38 80 E9 08 [07:23:45]Write to MH i2c: 01 00 00 B3 31 E4 [07:23:45]Write i2c OK [07:23:45]MH_I2C_Read... [07:23:45]Read from MH i2c: 01 [07:23:45]MH_I2C_Read... [07:23:45]Read from MH i2c: 01 07 00 [07:23:45]MH_I2C_Read... [07:23:45]Read from MH i2c: 01 07 00 B3 31 00 00 00 00 00 EA 0C E1 [07:23:45]RasterBufferAndPrint [07:23:45]line [07:23:45]line [07:23:45]line [07:23:45]line [07:23:45]line [07:23:45]written 0, free lines is 3312 [07:23:45]MH_Cut [07:23:45]Write to MH i2c: D1 01 00 BA 31 01 BD [07:23:45]Write i2c OK [07:23:45]MH_I2C_Read... [07:23:45]Read from MH i2c: D1 [07:23:45]MH_I2C_Read... [07:23:45]Read from MH i2c: D1 01 00 [07:23:45]MH_I2C_Read... [07:23:45]Read from MH i2c: D1 01 00 BA 31 00 BC [07:23:45]Write to MH i2c: 01 00 00 BB 31 EC [07:23:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 5E E6 47 00 70 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 38 37 31 38 30 30 10 04 04 00 E2 C0 00 00 F4 03 04 00 C3 A9 BE 66 B6 04 01 00 00 CF A9 78 C4 60 21 77 5C [07:23:45]CommunicateWithHost err = 0 [07:23:45]CheckOFDResponse [07:23:45]1017 (14) - 77093643461234 [07:23:45]1041 (16) - 0000000000871800 [07:23:45]1040 (4) - 49378 [07:23:45]1012 (4) - 16.08.2024 01:22 [07:23:45]1206 (1) - 0 [07:23:45]OFD Sender: Remove packet 49378 [07:23:45]ProducePacketName [07:23:45]name=ofd_packets/00049378 [07:23:45]NVStorageDeleteData [07:23:45]Write i2c OK [07:23:45]MH_I2C_Read... [07:23:46]OFD Sender: No OFD packet to send [07:23:46]*** Cut start [07:23:46]*** Purtial cut [07:23:46]*** CUTSNS_PIN = 0 [07:23:46]*** Stage 1: CUTSNS_PIN = 1 [07:23:48]Read from MH i2c: 01 [07:23:48]MH_I2C_Read... [07:23:48]*** Stop cut motor [07:23:48]*** Cut end [07:23:48]Read from MH i2c: 01 07 00 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: 01 07 00 BB 31 00 00 00 00 00 FF 0F 01 [07:23:48]process_action close_receipt done [07:23:48]requested_data is exist [07:23:48]produce_requested_data [07:23:48]requested_item fm.sn is exist - process it [07:23:48]wFMCommunicate request_size=4 [07:23:48]MH_SAM_APDU [07:23:48]CAPDU: 80 11 00 00 [07:23:48]Write to MH i2c: E2 08 00 BC 31 80 11 00 00 00 00 00 00 67 [07:23:48]Write i2c OK [07:23:48]MH_I2C_Read... [07:23:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:23:48]Read from MH i2c: E2 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 17 00 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 17 00 BC 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B2 [07:23:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:23:48]wFMCommunicate OK [07:23:48]requested_item fd.num is exist - process it [07:23:48]SAM_PROTO_GetFieldsCounters [07:23:48]wFMCommunicate request_size=4 [07:23:48]MH_SAM_APDU [07:23:48]CAPDU: 80 13 00 00 [07:23:48]Write to MH i2c: E2 08 00 BD 31 80 13 00 00 00 00 00 00 6A [07:23:48]Write i2c OK [07:23:48]MH_I2C_Read... [07:23:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:23:48]Read from MH i2c: E2 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 62 00 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 62 00 BD 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E2 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [07:23:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E2 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:23:48]wFMCommunicate OK [07:23:48]SAM_PROTO_GetFieldsCounters done [07:23:48]requested_item shift.num is exist - process it [07:23:48]requested_item shift.opened is exist - process it [07:23:48]req_shift_opened [07:23:48]FM_GetShiftState [07:23:48]SAM_PROTO_GetShiftState [07:23:48]wFMCommunicate request_size=4 [07:23:48]MH_SAM_APDU [07:23:48]CAPDU: 80 13 01 00 [07:23:48]Write to MH i2c: E2 08 00 BE 31 80 13 01 00 00 00 00 00 6C [07:23:48]Write i2c OK [07:23:48]MH_I2C_Read... [07:23:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:23:48]Read from MH i2c: E2 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 0E 00 [07:23:48]MH_I2C_Read... [07:23:48]Read from MH i2c: E2 0E 00 BE 31 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 E2 [07:23:48]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [07:23:48]wFMCommunicate OK [07:23:48]SAM_PROTO_GetShiftState done [07:23:48]FM_GetShiftState done [07:23:48]req_shift_opened done [07:23:48]requested_item shift.open_date is exist - process it [07:23:48]req_shift_open_date [07:23:48]req_shift_open_date done [07:23:48]produce_requested_data done [07:23:48]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49378,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [07:23:48]process_action_free close_receipt [07:23:48]json_value_free [07:23:48]json_value_free done [07:23:48]process_json_proto returns [07:23:48]Send response to host [07:23:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49378,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [07:23:48]free response buf [07:23:48]execute_script done [07:23:48]execute_script returns [07:23:48]free content buf [07:23:48]Sock 7.Close socket [07:23:48]Sock 7.Thread stoped [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:11]OFD Sender: No OFD packet to send [07:24:16]OFD Sender: No OFD packet to send [07:24:21]OFD Sender: No OFD packet to send [07:24:26]OFD Sender: No OFD packet to send [07:24:31]OFD Sender: No OFD packet to send [07:24:36]OFD Sender: No OFD packet to send [07:24:41]OFD Sender: No OFD packet to send [07:24:46]OFD Sender: No OFD packet to send [07:24:51]OFD Sender: No OFD packet to send [07:24:56]OFD Sender: No OFD packet to send [07:25:01]OFD Sender: No OFD packet to send [07:25:06]OFD Sender: No OFD packet to send [07:25:11]OFD Sender: No OFD packet to send [07:25:16]OFD Sender: No OFD packet to send [07:25:21]OFD Sender: No OFD packet to send [07:25:26]OFD Sender: No OFD packet to send [07:25:31]OFD Sender: No OFD packet to send [07:25:36]OFD Sender: No OFD packet to send [07:25:41]OFD Sender: No OFD packet to send [07:25:46]OFD Sender: No OFD packet to send [07:25:51]OFD Sender: No OFD packet to send [07:25:56]OFD Sender: No OFD packet to send [07:26:01]OFD Sender: No OFD packet to send [07:26:06]OFD Sender: No OFD packet to send [07:26:11]OFD Sender: No OFD packet to send [07:26:16]OFD Sender: No OFD packet to send [07:26:21]OFD Sender: No OFD packet to send [07:26:26]OFD Sender: No OFD packet to send [07:26:31]OFD Sender: No OFD packet to send [07:26:36]OFD Sender: No OFD packet to send [07:26:41]OFD Sender: No OFD packet to send [07:26:46]OFD Sender: No OFD packet to send [07:26:51]OFD Sender: No OFD packet to send [07:26:56]OFD Sender: No OFD packet to send [07:27:01]OFD Sender: No OFD packet to send [07:27:06]OFD Sender: No OFD packet to send [07:27:11]OFD Sender: No OFD packet to send [07:27:16]OFD Sender: No OFD packet to send [07:27:21]OFD Sender: No OFD packet to send [07:27:26]OFD Sender: No OFD packet to send [07:27:31]OFD Sender: No OFD packet to send [07:27:36]OFD Sender: No OFD packet to send [07:27:41]OFD Sender: No OFD packet to send [07:27:46]OFD Sender: No OFD packet to send [07:27:51]OFD Sender: No OFD packet to send [07:27:56]OFD Sender: No OFD packet to send [07:28:01]OFD Sender: No OFD packet to send [07:28:06]OFD Sender: No OFD packet to send [07:28:11]OFD Sender: No OFD packet to send [07:28:16]OFD Sender: No OFD packet to send [07:28:21]OFD Sender: No OFD packet to send [07:28:26]OFD Sender: No OFD packet to send [07:28:31]OFD Sender: No OFD packet to send [07:28:36]OFD Sender: No OFD packet to send [07:28:41]OFD Sender: No OFD packet to send [07:28:46]OFD Sender: No OFD packet to send [07:28:51]OFD Sender: No OFD packet to send [07:28:56]OFD Sender: No OFD packet to send [07:29:01]OFD Sender: No OFD packet to send [07:29:06]OFD Sender: No OFD packet to send [07:29:11]OFD Sender: No OFD packet to send [07:29:16]OFD Sender: No OFD packet to send [07:29:21]OFD Sender: No OFD packet to send [07:29:26]OFD Sender: No OFD packet to send [07:29:31]OFD Sender: No OFD packet to send [07:29:36]OFD Sender: No OFD packet to send [07:29:41]OFD Sender: No OFD packet to send [07:29:46]OFD Sender: No OFD packet to send [07:29:51]OFD Sender: No OFD packet to send [07:29:56]OFD Sender: No OFD packet to send [07:30:01]OFD Sender: No OFD packet to send [07:30:06]OFD Sender: No OFD packet to send [07:30:11]OFD Sender: No OFD packet to send [07:30:16]OFD Sender: No OFD packet to send [07:30:21]OFD Sender: No OFD packet to send [07:30:26]OFD Sender: No OFD packet to send [07:30:31]OFD Sender: No OFD packet to send [07:30:36]OFD Sender: No OFD packet to send [07:30:41]OFD Sender: No OFD packet to send [07:30:46]OFD Sender: No OFD packet to send [07:30:51]OFD Sender: No OFD packet to send [07:30:56]OFD Sender: No OFD packet to send [07:31:01]OFD Sender: No OFD packet to send [07:31:06]OFD Sender: No OFD packet to send [07:31:11]OFD Sender: No OFD packet to send [07:31:16]OFD Sender: No OFD packet to send [07:31:21]OFD Sender: No OFD packet to send [07:31:26]OFD Sender: No OFD packet to send [07:31:31]OFD Sender: No OFD packet to send [07:31:36]OFD Sender: No OFD packet to send [07:31:41]OFD Sender: No OFD packet to send [07:31:46]OFD Sender: No OFD packet to send [07:31:51]OFD Sender: No OFD packet to send [07:31:56]OFD Sender: No OFD packet to send [07:32:01]OFD Sender: No OFD packet to send [07:32:06]OFD Sender: No OFD packet to send [07:32:11]OFD Sender: No OFD packet to send [07:32:16]OFD Sender: No OFD packet to send [07:32:21]OFD Sender: No OFD packet to send [07:32:26]OFD Sender: No OFD packet to send [07:32:31]OFD Sender: No OFD packet to send [07:32:36]OFD Sender: No OFD packet to send [07:32:41]OFD Sender: No OFD packet to send [07:32:46]OFD Sender: No OFD packet to send [07:32:51]OFD Sender: No OFD packet to send [07:32:56]OFD Sender: No OFD packet to send [07:33:01]OFD Sender: No OFD packet to send [07:33:06]OFD Sender: No OFD packet to send [07:33:11]OFD Sender: No OFD packet to send [07:33:16]OFD Sender: No OFD packet to send [07:33:21]OFD Sender: No OFD packet to send [07:33:26]OFD Sender: No OFD packet to send [07:33:31]OFD Sender: No OFD packet to send [07:33:36]OFD Sender: No OFD packet to send [07:33:41]OFD Sender: No OFD packet to send [07:33:46]OFD Sender: No OFD packet to send [07:33:51]OFD Sender: No OFD packet to send [07:33:56]OFD Sender: No OFD packet to send [07:34:01]OFD Sender: No OFD packet to send [07:34:06]OFD Sender: No OFD packet to send [07:34:11]OFD Sender: No OFD packet to send [07:34:16]OFD Sender: No OFD packet to send [07:34:21]OFD Sender: No OFD packet to send [07:34:26]OFD Sender: No OFD packet to send [07:34:31]OFD Sender: No OFD packet to send [07:34:36]OFD Sender: No OFD packet to send [07:34:41]OFD Sender: No OFD packet to send [07:34:46]OFD Sender: No OFD packet to send [07:34:51]OFD Sender: No OFD packet to send [07:34:56]OFD Sender: No OFD packet to send [07:35:01]OFD Sender: No OFD packet to send [07:35:06]OFD Sender: No OFD packet to send [07:35:11]OFD Sender: No OFD packet to send [07:35:14]accept exits with 9 [07:35:14]New connection [07:35:14]New thread 3066973540 created [07:35:14]Thread 3066830180 joined [07:35:14]Waiting for new connection... [07:35:14] Sock 9.Parse request [07:35:14]Sock 9.Check first char [07:35:14]Sock 9.First char is OK [07:35:14]request: POST /json_proto HTTP/1.0 [07:35:14]Method: POST [07:35:14]URL: /json_proto [07:35:14]Method is POST - this is cgi request [07:35:14]url: /json_proto [07:35:14]query_string will be loaded in cgi processing [07:35:14]execute_cgi json_proto POST (null) [07:35:14]execute_cgi path=json_proto method=POST [07:35:14]POST find Content-Length [07:35:14]Host: 172.17.46.196:8080 [07:35:14]Content-Length: 896 [07:35:14]Content-Type: application/json [07:35:14] [07:35:14]POST finish read [07:35:14]Found Content-Length = 896 [07:35:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189619", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:14]execute_script... [07:35: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 : (3)189619", "tax_sys" : 0, "items" : [ { "code": "4870145004982", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 7 \u044D\u043A\u0441\u043F\u043E\u0440\u0442\u043D\u043E\u0435 0,43\u043B \u0436/", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:35:14]POST & json_proto [07:35:14]process_json_proto [07:35:14]json parsed OK: [07:35:14]protocol is kg_v1.0 [07:35:14]action value=close_receipt [07:35:14]process_action close_receipt [07:35:14]cmd_close_receipt [07:35:14]MH_GetDate [07:35:14]Write to MH i2c: F0 00 00 BF 31 DF [07:35:14]Write i2c OK [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: F0 [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: F0 09 00 [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: F0 09 00 BF 31 00 36 01 BF 66 07 E8 5D 66 F6 [07:35:14]GetLastDocTimeStamp 1723793027 [07:35:14]current date 1723793718 [07:35:14]FM_GetShiftState [07:35:14]SAM_PROTO_GetShiftState [07:35:14]wFMCommunicate request_size=4 [07:35:14]MH_SAM_APDU [07:35:14]CAPDU: 80 13 01 00 [07:35:14]Write to MH i2c: E2 08 00 C0 31 80 13 01 00 00 00 00 00 6E [07:35:14]Write i2c OK [07:35:14]MH_I2C_Read... [07:35:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:14]Read from MH i2c: E2 [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: E2 0E 00 [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: E2 0E 00 C0 31 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 E4 [07:35:14]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [07:35:14]wFMCommunicate OK [07:35:14]SAM_PROTO_GetShiftState done [07:35:14]FM_GetShiftState done [07:35:14]opened in 1723766958 [07:35:14]opened+sec_in_day 1723853358 [07:35:14]quantity*price = 9000 [07:35:14]sum+1 = 9001 [07:35:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 0.00 Безнал.: 90.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 27 16.08.2024 07:35 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49379 ФПД: 97115756093500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T073518&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49379&fm=97115756093500&tin=02508201610067®Number=0000000000092546&sum=9000 0 [07:35:15]StoreToDocumentArchive [07:35:15]shift 464 fd 49379 [07:35:15]save to /storage/0464/doc_00049379 [07:35:15]save last doc name /storage/0464/doc_00049379 to /storage/kkm_last_doc_name [07:35:15]save OK [07:35:15]Clear old archive folders... [07:35:15]ProcessDocumentItem done err = 0, tmpTLVsize=310 [07:35:15]tlvbuf is 00EC1E70 [07:35:15]SAM_PROTO_ClearQueue [07:35:15]wFMCommunicate request_size=4 [07:35:15]MH_SAM_APDU [07:35:15]CAPDU: 80 09 00 00 [07:35:15]Write to MH i2c: E2 08 00 CD 31 80 09 00 00 00 00 00 00 70 [07:35:15]Write i2c OK [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: E2 [07:35:15]MH_I2C_Read... [07:35:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:35:15]Read from MH i2c: E2 03 00 [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: E2 03 00 CD 31 00 90 00 72 [07:35:15]RAPDU: 90 00 [07:35:15]wFMCommunicate OK [07:35:15]SAM_PROTO_ClearQueue done [07:35:15]KKMCreateOFDPacket [07:35:15]OFDProtocolAddRootSTLVToBuf [07:35:15]FM_MakeSignedData [07:35:15]FM_MakeSignedData [07:35:15]SAM_PROTO_SignData [07:35:15]wFMCommunicate request_size=4 [07:35:15]MH_SAM_APDU [07:35:15]CAPDU: 80 0D 01 02 [07:35:15]Write to MH i2c: E2 08 00 CE 31 80 0D 01 02 00 00 00 00 78 [07:35:15]Write i2c OK [07:35:15]MH_I2C_Read... [07:35:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:35:15]Read from MH i2c: E2 [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: E2 03 00 [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: E2 03 00 CE 31 00 90 00 73 [07:35:15]RAPDU: 90 00 [07:35:15]wFMCommunicate OK [07:35:15]wFMCommunicate request_size=255 [07:35:15]MH_SAM_APDU [07:35:15]CAPDU: 80 0D 02 02 FA 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 36 01 BF 66 0E 04 04 00 D0 01 00 [07:35:15]Write to MH i2c: E2 02 01 CF 31 80 0D 02 02 FA 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 36 01 BF 66 0E 04 04 00 D0 01 00 00 00 F5 [07:35:15]Write i2c OK [07:35:15]MH_I2C_Read... [07:35:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:15]Read from MH i2c: E2 [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: E2 03 00 [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: E2 03 00 CF 31 00 90 00 74 [07:35:15]RAPDU: 90 00 [07:35:15]wFMCommunicate OK [07:35:15]wFMCommunicate request_size=69 [07:35:15]MH_SAM_APDU [07:35:15]CAPDU: 80 0D 02 02 40 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E3 C0 00 00 35 04 06 00 58 53 86 24 E0 3C [07:35:15]Write to MH i2c: E2 48 00 D0 31 80 0D 02 02 40 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E3 C0 00 00 35 04 06 00 58 53 86 24 E0 3C 00 00 9D [07:35:15]Write i2c OK [07:35:15]MH_I2C_Read... [07:35:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:15]Read from MH i2c: E2 [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: E2 03 00 [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: E2 03 00 D0 31 00 90 00 75 [07:35:15]RAPDU: 90 00 [07:35:15]wFMCommunicate OK [07:35:15]wFMCommunicate request_size=4 [07:35:15]MH_SAM_APDU [07:35:15]CAPDU: 80 0D 03 02 [07:35:15]Write to MH i2c: E2 08 00 D1 31 80 0D 03 02 00 00 00 00 7D [07:35:15]Write i2c OK [07:35:15]MH_I2C_Read... [07:35:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:35:15]Read from MH i2c: E2 [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: E2 0B 00 [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: E2 0B 00 D1 31 00 2C 2E 4E F2 7F EC C6 AE 90 00 F7 [07:35:15]RAPDU: 2C 2E 4E F2 7F EC C6 AE 90 00 [07:35:15]wFMCommunicate OK [07:35:15]SAM_PROTO_SignData done [07:35:15]FM_MakeSignedData done [07:35:15]CreateOFDProtocolMessage [07:35:15]wFMCommunicate request_size=4 [07:35:15]MH_SAM_APDU [07:35:15]CAPDU: 80 11 00 00 [07:35:15]Write to MH i2c: E2 08 00 D2 31 80 11 00 00 00 00 00 00 7D [07:35:15]Write i2c OK [07:35:15]MH_I2C_Read... [07:35:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:15]Read from MH i2c: E2 [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: E2 17 00 [07:35:15]MH_I2C_Read... [07:35:15]Read from MH i2c: E2 17 00 D2 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C8 [07:35:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:35:15]wFMCommunicate OK [07:35:15]CreateOFDProtocolMessage done [07:35:15]OFDSenderStorePacket 49379 [07:35:15]StoreOFDPacket docnum=49379 [07:35:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4A 01 00 00 A3 79 42 01 5F 1E 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 36 01 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E3 C0 00 00 35 04 06 00 58 53 86 24 E0 3C 2C 2E 4E F2 7F EC C6 AE [07:35:15]CheckFolder [07:35:15]dirname=/storage/ofd_packets [07:35:15]CheckFolder done [07:35:15]ProducePacketName [07:35:15]name=ofd_packets/00049379 [07:35:15]NVStorageSaveData ofd_packets/00049379 [07:35:15]File name is /storage/ofd_packets/00049379 [07:35:15]Write 360 bytes [07:35:15]NVStorageSaveData done [07:35:15]OFDSenderStorePacket done [07:35:15]KKMCreateOFDPacket done [07:35:15]NVStorageSaveData kkm_last_timestamp [07:35:15]File name is /storage/kkm_last_timestamp [07:35:15]Write 4 bytes [07:35:15]NVStorageSaveData done [07:35:15]ExternCall_PrintAddStr [07:35:15]wPrintStart [07:35:15]Write to MH i2c: 01 00 00 D3 31 04 [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: 01 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: 01 07 00 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: 01 07 00 D3 31 00 00 00 00 00 FF 0F 19 [07:35:16]RasterBufferAndPrint [07:35:16]line Счет N : (3)189619 [07:35:16]line ИНН: 02508201610067 [07:35:16]line Контрольно-Кассовый Чек [07:35:16]line ПРОДАЖА [07:35:16]line Товар: 4870145004982 [07:35:16]line Пиво Жатецкий Гусь 7 экспортное 0,43л ж/ [07:35:16]line 1.000 * 90.00 [07:35:16]line = 90.00 [07:35:16]line НДС 12% НСП 1% [07:35:16]line > о реализуемом товаре [07:35:16]line ИТОГО: 90.00 [07:35:16]line НСП 1% : 0.80 [07:35:16]line НДС 12% : 9.56 [07:35:16]line Наличными: 0.00 [07:35:16]line Безнал.: 90.00 [07:35:16]line Место: АЗС № 95 "Партнер Нефть" [07:35:16]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [07:35:16]line СНО: Общий режим [07:35:16]line Чек 27 16.08.2024 07:35 [07:35:16]line Смена: 464 ФФД: 1.0 [07:35:16]line ЗНМ: 0300000078 [07:35:16]line РНМ: 0000000000092546 [07:35:16]line Версия ККМ: 001 [07:35:16]line Платежная система: O! деньги [07:35:16]line ФМ: 0000000000871800 [07:35:16]line ФД: 49379 [07:35:16]line ФПД: 97115756093500 [07:35:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T073518&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49379&fm=97115756093500&tin=02508201610067®Number=0000000000092546&sum=9000 [07:35:16]line 0 [07:35:16]OFD Sender: Processing packet 49379 [packets to send 21, broken 20] [07:35:16]ProducePacketName [07:35:16]name=ofd_packets/00049379 [07:35:16]OFD Sender: To server: pG, [07:35:16]CommunicateWithHost lk.salyk.kg:30040 [07:35:16]ConnectInit lk.salyk.kg [07:35:16]written 0, free lines is 4095 [07:35:16]Connected sock=10 [07:35:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4A 01 00 00 A3 79 42 01 5F 1E 5A 03 01 00 03 00 36 01 1E 04 01 00 01 23 04 88 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 38 32 06 04 44 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 37 20 D1 8D D0 BA D1 81 D0 BF D0 BE D1 80 D1 82 D0 BD D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 36 01 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E3 C0 00 00 35 04 06 00 58 53 86 24 E0 3C 2C 2E 4E F2 7F EC C6 AE [07:35:16]Write to MH i2c: 01 00 00 FE 31 2F [07:35:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 B6 02 47 00 4D B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E3 C0 00 00 F4 03 04 00 76 AC BE 66 B6 04 01 00 00 44 39 AC 8C 9C 8F E8 2E [07:35:16]CommunicateWithHost err = 0 [07:35:16]CheckOFDResponse [07:35:16]1017 (14) - 77093643461234 [07:35:16]1041 (16) - 0000000000871800 [07:35:16]1040 (4) - 49379 [07:35:16]1012 (4) - 16.08.2024 01:33 [07:35:16]1206 (1) - 0 [07:35:16]OFD Sender: Remove packet 49379 [07:35:16]ProducePacketName [07:35:16]name=ofd_packets/00049379 [07:35:16]NVStorageDeleteData [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: 01 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: 01 07 00 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: 01 07 00 FE 31 00 00 00 00 00 CE 0C 10 [07:35:16]RasterBufferAndPrint [07:35:16]line [07:35:16]line [07:35:16]line [07:35:16]line [07:35:16]line [07:35:16]written 0, free lines is 3292 [07:35:16]MH_Cut [07:35:16]Write to MH i2c: D1 01 00 05 32 01 09 [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: D1 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: D1 01 00 [07:35:16]MH_I2C_Read... [07:35:16]Read from MH i2c: D1 01 00 05 32 00 08 [07:35:16]Write to MH i2c: 01 00 00 06 32 38 [07:35:16]Write i2c OK [07:35:16]MH_I2C_Read... [07:35:17]OFD Sender: No OFD packet to send [07:35:17]*** Cut start [07:35:17]*** Purtial cut [07:35:17]*** Stage 1: CUTSNS_PIN = 1 [07:35:17]Read from MH i2c: 01 [07:35:17]MH_I2C_Read... [07:35:17]*** Stop cut motor [07:35:17]*** Cut end [07:35:17]Read from MH i2c: 01 07 00 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: 01 07 00 06 32 00 00 00 00 00 FF 0F 4D [07:35:17]process_action close_receipt done [07:35:17]requested_data is exist [07:35:17]produce_requested_data [07:35:17]requested_item fm.sn is exist - process it [07:35:17]wFMCommunicate request_size=4 [07:35:17]MH_SAM_APDU [07:35:17]CAPDU: 80 11 00 00 [07:35:17]Write to MH i2c: E2 08 00 07 32 80 11 00 00 00 00 00 00 B3 [07:35:17]Write i2c OK [07:35:17]MH_I2C_Read... [07:35:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:17]Read from MH i2c: E2 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: E2 17 00 [07:35:17]MH_I2C_Read... [07:35:17]Read from MH i2c: E2 17 00 07 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FE [07:35:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:35:17]wFMCommunicate OK [07:35:17]requested_item fd.num is exist - process it [07:35:17]SAM_PROTO_GetFieldsCounters [07:35:17]wFMCommunicate request_size=4 [07:35:17]MH_SAM_APDU [07:35:17]CAPDU: 80 13 00 00 [07:35:17]Write to MH i2c: E2 08 00 08 32 80 13 00 00 00 00 00 00 B6 [07:35:17]Write i2c OK [07:35:17]MH_I2C_Read... [07:35:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:18]Read from MH i2c: E2 [07:35:18]MH_I2C_Read... [07:35:18]Read from MH i2c: E2 62 00 [07:35:18]MH_I2C_Read... [07:35:18]Read from MH i2c: E2 62 00 08 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E3 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [07:35:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E3 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:35:18]wFMCommunicate OK [07:35:18]SAM_PROTO_GetFieldsCounters done [07:35:18]requested_item shift.num is exist - process it [07:35:18]requested_item shift.opened is exist - process it [07:35:18]req_shift_opened [07:35:18]FM_GetShiftState [07:35:18]SAM_PROTO_GetShiftState [07:35:18]wFMCommunicate request_size=4 [07:35:18]MH_SAM_APDU [07:35:18]CAPDU: 80 13 01 00 [07:35:18]Write to MH i2c: E2 08 00 09 32 80 13 01 00 00 00 00 00 B8 [07:35:18]Write i2c OK [07:35:18]MH_I2C_Read... [07:35:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:18]Read from MH i2c: E2 [07:35:18]MH_I2C_Read... [07:35:18]Read from MH i2c: E2 0E 00 [07:35:18]MH_I2C_Read... [07:35:18]Read from MH i2c: E2 0E 00 09 32 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 2E [07:35:18]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [07:35:18]wFMCommunicate OK [07:35:18]SAM_PROTO_GetShiftState done [07:35:18]FM_GetShiftState done [07:35:18]req_shift_opened done [07:35:18]requested_item shift.open_date is exist - process it [07:35:18]req_shift_open_date [07:35:18]req_shift_open_date done [07:35:18]produce_requested_data done [07:35:18]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49379,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [07:35:18]process_action_free close_receipt [07:35:18]json_value_free [07:35:18]json_value_free done [07:35:18]process_json_proto returns [07:35:18]Send response to host [07:35:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49379,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [07:35:18]free response buf [07:35:18]execute_script done [07:35:18]execute_script returns [07:35:18]free content buf [07:35:18]Sock 9.Close socket [07:35:18]Sock 9.Thread stoped [07:35:22]OFD Sender: No OFD packet to send [07:35:27]OFD Sender: No OFD packet to send [07:35:32]OFD Sender: No OFD packet to send [07:35:37]OFD Sender: No OFD packet to send [07:35:42]OFD Sender: No OFD packet to send [07:35:47]OFD Sender: No OFD packet to send [07:35:52]OFD Sender: No OFD packet to send [07:35:57]OFD Sender: No OFD packet to send [07:36:02]OFD Sender: No OFD packet to send [07:36:07]OFD Sender: No OFD packet to send [07:36:12]OFD Sender: No OFD packet to send [07:36:17]OFD Sender: No OFD packet to send [07:36:22]OFD Sender: No OFD packet to send [07:36:27]OFD Sender: No OFD packet to send [07:36:32]OFD Sender: No OFD packet to send [07:36:37]OFD Sender: No OFD packet to send [07:36:42]OFD Sender: No OFD packet to send [07:36:47]OFD Sender: No OFD packet to send [07:36:52]OFD Sender: No OFD packet to send [07:36:57]OFD Sender: No OFD packet to send [07:37:02]OFD Sender: No OFD packet to send [07:37:07]OFD Sender: No OFD packet to send [07:37:12]OFD Sender: No OFD packet to send [07:37:17]OFD Sender: No OFD packet to send [07:37:22]OFD Sender: No OFD packet to send [07:37:27]OFD Sender: No OFD packet to send [07:37:32]OFD Sender: No OFD packet to send [07:37:37]OFD Sender: No OFD packet to send [07:37:42]OFD Sender: No OFD packet to send [07:37:46]int [07:37:46]Write to MH i2c: 01 00 00 0A 32 3C [07:37:46]*** FLAG_PRN_KEY set [07:37:46]Write i2c OK [07:37:46]MH_I2C_Read... [07:37:46]Read from MH i2c: 01 [07:37:46]MH_I2C_Read... [07:37:46]Read from MH i2c: 01 07 00 [07:37:46]MH_I2C_Read... [07:37:46]Read from MH i2c: 01 07 00 0A 32 00 08 00 00 00 FF 0F 59 [07:37:46]state=0 [07:37:46]Key pressed [07:37:46]Feed [07:37:46]Write to MH i2c: D8 00 00 0B 32 14 [07:37:46]Write i2c OK [07:37:46]MH_I2C_Read... [07:37:46]Read from MH i2c: D8 [07:37:46]MH_I2C_Read... [07:37:46]Read from MH i2c: D8 01 00 [07:37:46]MH_I2C_Read... [07:37:46]Read from MH i2c: D8 01 00 0B 32 00 15 [07:37:46]int [07:37:46]Write to MH i2c: 01 00 00 0C 32 3E [07:37:46]Write i2c OK [07:37:46]MH_I2C_Read... [07:37:46]Read from MH i2c: 01 [07:37:46]MH_I2C_Read... [07:37:46]Read from MH i2c: 01 07 00 [07:37:46]MH_I2C_Read... [07:37:46]Read from MH i2c: 01 07 00 0C 32 00 48 00 00 00 3C 00 C9 [07:37:46]state=2 [07:37:46]Key pressed [07:37:46]int [07:37:46]Write to MH i2c: 01 00 00 0D 32 3F [07:37:46]*** FLAG_PRN_KEY reset [07:37:46]Write i2c OK [07:37:46]MH_I2C_Read... [07:37:46]Read from MH i2c: 01 [07:37:46]MH_I2C_Read... [07:37:46]Read from MH i2c: 01 07 00 [07:37:46]MH_I2C_Read... [07:37:46]Read from MH i2c: 01 07 00 0D 32 00 00 00 00 00 F5 0F 4A [07:37:46]state=2 [07:37:46]Stop feed [07:37:47]OFD Sender: No OFD packet to send [07:37:52]OFD Sender: No OFD packet to send [07:37:57]OFD Sender: No OFD packet to send [07:38:02]OFD Sender: No OFD packet to send [07:38:07]OFD Sender: No OFD packet to send [07:38:12]OFD Sender: No OFD packet to send [07:38:17]OFD Sender: No OFD packet to send [07:38:22]OFD Sender: No OFD packet to send [07:38:27]OFD Sender: No OFD packet to send [07:38:32]OFD Sender: No OFD packet to send [07:38:37]OFD Sender: No OFD packet to send [07:38:42]OFD Sender: No OFD packet to send [07:38:47]OFD Sender: No OFD packet to send [07:38:52]OFD Sender: No OFD packet to send [07:38:57]OFD Sender: No OFD packet to send [07:38:58]accept exits with 7 [07:38:58]New connection [07:38:58]New thread 3066830180 created [07:38:58]Thread 3066973540 joined [07:38:58]Waiting for new connection... [07:38:58] Sock 7.Parse request [07:38:58]Sock 7.Check first char [07:38:58]Sock 7.First char is OK [07:38:58]request: POST /json_proto HTTP/1.0 [07:38:58]Method: POST [07:38:58]URL: /json_proto [07:38:58]Method is POST - this is cgi request [07:38:58]url: /json_proto [07:38:58]query_string will be loaded in cgi processing [07:38:58]execute_cgi json_proto POST (null) [07:38:58]execute_cgi path=json_proto method=POST [07:38:58]POST find Content-Length [07:38:58]Host: 172.17.46.196:8080 [07:38:58]Content-Length: 756 [07:38:58]Content-Type: application/json [07:38:58] [07:38:58]POST finish read [07:38:58]Found Content-Length = 756 [07:38:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30062584", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:38:58]execute_script... [07:38: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)11325124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30062584", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:38:58]POST & json_proto [07:38:58]process_json_proto [07:38:58]json parsed OK: [07:38:58]protocol is kg_v1.0 [07:38:58]action value=close_receipt [07:38:58]process_action close_receipt [07:38:58]cmd_close_receipt [07:38:58]MH_GetDate [07:38:58]Write to MH i2c: F0 00 00 0E 32 2F [07:38:58]Write i2c OK [07:38:58]MH_I2C_Read... [07:38:58]Read from MH i2c: F0 [07:38:58]MH_I2C_Read... [07:38:58]Read from MH i2c: F0 09 00 [07:38:58]MH_I2C_Read... [07:38:58]Read from MH i2c: F0 09 00 0E 32 00 16 02 BF 66 07 E8 5D 66 27 [07:38:58]GetLastDocTimeStamp 1723793718 [07:38:58]current date 1723793942 [07:38:58]FM_GetShiftState [07:38:58]SAM_PROTO_GetShiftState [07:38:58]wFMCommunicate request_size=4 [07:38:58]MH_SAM_APDU [07:38:58]CAPDU: 80 13 01 00 [07:38:58]Write to MH i2c: E2 08 00 0F 32 80 13 01 00 00 00 00 00 BE [07:38:58]Write i2c OK [07:38:58]MH_I2C_Read... [07:38:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:58]Read from MH i2c: E2 [07:38:58]MH_I2C_Read... [07:38:58]Read from MH i2c: E2 0E 00 [07:38:58]MH_I2C_Read... [07:38:58]Read from MH i2c: E2 0E 00 0F 32 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 34 [07:38:58]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [07:38:58]wFMCommunicate OK [07:38:58]SAM_PROTO_GetShiftState done [07:38:58]FM_GetShiftState done [07:38:58]opened in 1723766958 [07:38:58]opened+sec_in_day 1723853358 [07:38:58]quantity*price = 0 [07:38:58]sum+1 = 1 [07:38:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 28 16.08.2024 07:39 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30062584 ФМ: 0000000000871800 ФД: 49380 ФПД: 161155746984542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T073902&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49380&fm=161155746984542&tin=02508201610067®Number=0000000000092546&sum=0 [07:38:59]StoreToDocumentArchive [07:38:59]shift 464 fd 49380 [07:38:59]save to /storage/0464/doc_00049380 [07:38:59]save last doc name /storage/0464/doc_00049380 to /storage/kkm_last_doc_name [07:38:59]save OK [07:38:59]Clear old archive folders... [07:38:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:38:59]tlvbuf is 00E45EA0 [07:38:59]SAM_PROTO_ClearQueue [07:38:59]wFMCommunicate request_size=4 [07:38:59]MH_SAM_APDU [07:38:59]CAPDU: 80 09 00 00 [07:38:59]Write to MH i2c: E2 08 00 1C 32 80 09 00 00 00 00 00 00 C0 [07:38:59]Write i2c OK [07:38:59]MH_I2C_Read... [07:38:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:38:59]Read from MH i2c: E2 [07:38:59]MH_I2C_Read... [07:38:59]Read from MH i2c: E2 03 00 [07:38:59]MH_I2C_Read... [07:38:59]Read from MH i2c: E2 03 00 1C 32 00 90 00 C2 [07:38:59]RAPDU: 90 00 [07:38:59]wFMCommunicate OK [07:38:59]SAM_PROTO_ClearQueue done [07:38:59]KKMCreateOFDPacket [07:38:59]OFDProtocolAddRootSTLVToBuf [07:38:59]FM_MakeSignedData [07:38:59]FM_MakeSignedData [07:38:59]SAM_PROTO_SignData [07:38:59]wFMCommunicate request_size=4 [07:38:59]MH_SAM_APDU [07:38:59]CAPDU: 80 0D 01 02 [07:38:59]Write to MH i2c: E2 08 00 1D 32 80 0D 01 02 00 00 00 00 C8 [07:38:59]Write i2c OK [07:38:59]MH_I2C_Read... [07:38:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:38:59]Read from MH i2c: E2 [07:38:59]MH_I2C_Read... [07:38:59]Read from MH i2c: E2 03 00 [07:38:59]MH_I2C_Read... [07:38:59]Read from MH i2c: E2 03 00 1D 32 00 90 00 C3 [07:38:59]RAPDU: 90 00 [07:38:59]wFMCommunicate OK [07:38:59]wFMCommunicate request_size=255 [07:38:59]MH_SAM_APDU [07:38: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 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 16 02 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E4 C0 00 00 35 04 06 00 92 [07:38:59]Write to MH i2c: E2 02 01 1E 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 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 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 16 02 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E4 C0 00 00 35 04 06 00 92 00 00 6F [07:38:59]Write i2c OK [07:38:59]MH_I2C_Read... [07:38:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:59]Read from MH i2c: E2 [07:38:59]MH_I2C_Read... [07:38:59]Read from MH i2c: E2 03 00 [07:38:59]MH_I2C_Read... [07:38:59]Read from MH i2c: E2 03 00 1E 32 00 90 00 C4 [07:38:59]RAPDU: 90 00 [07:38:59]wFMCommunicate OK [07:38:59]wFMCommunicate request_size=10 [07:38:59]MH_SAM_APDU [07:38:59]CAPDU: 80 0D 02 02 05 91 FF 0D 72 5E [07:38:59]Write to MH i2c: E2 0D 00 1F 32 80 0D 02 02 05 00 91 FF 0D 72 5E 00 00 42 [07:38:59]Write i2c OK [07:38:59]MH_I2C_Read... [07:38:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:59]Read from MH i2c: E2 [07:38:59]MH_I2C_Read... [07:38:59]Read from MH i2c: E2 03 00 [07:38:59]MH_I2C_Read... [07:38:59]Read from MH i2c: E2 03 00 1F 32 00 90 00 C5 [07:38:59]RAPDU: 90 00 [07:38:59]wFMCommunicate OK [07:38:59]wFMCommunicate request_size=4 [07:38:59]MH_SAM_APDU [07:38:59]CAPDU: 80 0D 03 02 [07:38:59]Write to MH i2c: E2 08 00 20 32 80 0D 03 02 00 00 00 00 CD [07:38:59]Write i2c OK [07:38:59]MH_I2C_Read... [07:38:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:38:59]Read from MH i2c: E2 [07:38:59]MH_I2C_Read... [07:38:59]Read from MH i2c: E2 0B 00 [07:38:59]MH_I2C_Read... [07:38:59]Read from MH i2c: E2 0B 00 20 32 00 4F EF 85 8B E3 CC 5A 70 90 00 95 [07:38:59]RAPDU: 4F EF 85 8B E3 CC 5A 70 90 00 [07:38:59]wFMCommunicate OK [07:38:59]SAM_PROTO_SignData done [07:38:59]FM_MakeSignedData done [07:38:59]CreateOFDProtocolMessage [07:38:59]wFMCommunicate request_size=4 [07:38:59]MH_SAM_APDU [07:38:59]CAPDU: 80 11 00 00 [07:38:59]Write to MH i2c: E2 08 00 21 32 80 11 00 00 00 00 00 00 CD [07:38:59]Write i2c OK [07:38:59]MH_I2C_Read... [07:39:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:00]Read from MH i2c: E2 [07:39:00]MH_I2C_Read... [07:39:00]Read from MH i2c: E2 17 00 [07:39:00]MH_I2C_Read... [07:39:00]Read from MH i2c: E2 17 00 21 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 18 [07:39:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:39:00]wFMCommunicate OK [07:39:00]CreateOFDProtocolMessage done [07:39:00]OFDSenderStorePacket 49380 [07:39:00]StoreOFDPacket docnum=49380 [07:39:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 01 B9 07 01 34 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 16 02 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E4 C0 00 00 35 04 06 00 92 91 FF 0D 72 5E 4F EF 85 8B E3 CC 5A 70 [07:39:00]CheckFolder [07:39:00]dirname=/storage/ofd_packets [07:39:00]CheckFolder done [07:39:00]ProducePacketName [07:39:00]name=ofd_packets/00049380 [07:39:00]NVStorageSaveData ofd_packets/00049380 [07:39:00]File name is /storage/ofd_packets/00049380 [07:39:00]Write 301 bytes [07:39:00]NVStorageSaveData done [07:39:00]OFDSenderStorePacket done [07:39:00]KKMCreateOFDPacket done [07:39:00]NVStorageSaveData kkm_last_timestamp [07:39:00]File name is /storage/kkm_last_timestamp [07:39:00]Write 4 bytes [07:39:00]NVStorageSaveData done [07:39:00]ExternCall_PrintAddStr [07:39:00]wPrintStart [07:39:00]Write to MH i2c: 01 00 00 22 32 54 [07:39:00]OFD Sender: Processing packet 49380 [packets to send 21, broken 20] [07:39:00]ProducePacketName [07:39:00]name=ofd_packets/00049380 [07:39:00]OFD Sender: To server: pG, [07:39:00]CommunicateWithHost lk.salyk.kg:30040 [07:39:00]ConnectInit lk.salyk.kg [07:39:00]Write i2c OK [07:39:00]MH_I2C_Read... [07:39:00]Read from MH i2c: 01 [07:39:00]MH_I2C_Read... [07:39:00]Read from MH i2c: 01 07 00 [07:39:00]MH_I2C_Read... [07:39:00]Read from MH i2c: 01 07 00 22 32 00 00 00 00 00 FF 0F 69 [07:39:00]RasterBufferAndPrint [07:39:00]line Счет N : (1)11325124 [07:39:00]line ИНН: 02508201610067 [07:39:00]line Контрольно-Кассовый Чек [07:39:00]line ПРОДАЖА [07:39:00]line ТРК (МРК, ГНК) : 21 [07:39:00]line Товар: 2710124500 [07:39:00]line Аи-95-К-5 [07:39:00]line 35.000 * 0.00 [07:39:00]line = 0.00 [07:39:00]line НДС 12% НСП 1% [07:39:00]line > о реализуемом товаре [07:39:00]line ИТОГО: 0.00 [07:39:00]line НСП 1% : 0.00 [07:39:00]line НДС 12% : 0.00 [07:39:00]line Наличными: 0.00 [07:39:00]line Безнал.: 0.00 [07:39:00]line Место: АЗС № 95 "Партнер Нефть" [07:39:00]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [07:39:00]line СНО: Общий режим [07:39:00]line Чек 28 16.08.2024 07:39 [07:39:00]line Смена: 464 ФФД: 1.0 [07:39:00]line ЗНМ: 0300000078 [07:39:00]line РНМ: 0000000000092546 [07:39:00]line Версия ККМ: 001 [07:39:00]line Талоны: ТК ГПНА Online [07:39:00]line 30062584 [07:39:00]line ФМ: 0000000000871800 [07:39:00]line ФД: 49380 [07:39:00]line ФПД: 161155746984542 [07:39:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T073902&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49380&fm=161155746984542&tin=02508201610067®Number=0000000000092546&sum=0 [07:39:00]written 0, free lines is 4095 [07:39:00]Connected sock=10 [07:39:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 01 B9 07 01 34 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 16 02 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E4 C0 00 00 35 04 06 00 92 91 FF 0D 72 5E 4F EF 85 8B E3 CC 5A 70 [07:39:00]Write to MH i2c: 01 00 00 4C 32 7E [07:39:00]Write i2c OK [07:39:00]MH_I2C_Read... [07:39:00]Read from MH i2c: 01 [07:39:00]MH_I2C_Read... [07:39:00]Read from MH i2c: 01 07 00 [07:39:00]MH_I2C_Read... [07:39:00]Read from MH i2c: 01 07 00 4C 32 00 00 00 00 00 D9 0C 6A [07:39:00]RasterBufferAndPrint [07:39:00]line [07:39:00]line [07:39:00]line [07:39:00]line [07:39:00]line [07:39:00]written 0, free lines is 3298 [07:39:00]MH_Cut [07:39:00]Write to MH i2c: D1 01 00 53 32 01 57 [07:39:00]Write i2c OK [07:39:00]MH_I2C_Read... [07:39:00]Read from MH i2c: D1 [07:39:00]MH_I2C_Read... [07:39:00]Read from MH i2c: D1 01 00 [07:39:00]MH_I2C_Read... [07:39:00]Read from MH i2c: D1 01 00 53 32 00 56 [07:39:00]Write to MH i2c: 01 00 00 54 32 86 [07:39:00]Write i2c OK [07:39:00]MH_I2C_Read... [07:39:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 EC 8C 47 00 C8 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 38 37 31 38 30 30 10 04 04 00 E4 C0 00 00 F4 03 04 00 55 AD BE 66 B6 04 01 00 00 28 16 F7 2C E2 D0 C2 D6 [07:39:00]CommunicateWithHost err = 0 [07:39:00]CheckOFDResponse [07:39:00]1017 (14) - 77093643461234 [07:39:00]1041 (16) - 0000000000871800 [07:39:00]1040 (4) - 49380 [07:39:00]1012 (4) - 16.08.2024 01:37 [07:39:00]1206 (1) - 0 [07:39:00]OFD Sender: Remove packet 49380 [07:39:00]ProducePacketName [07:39:00]name=ofd_packets/00049380 [07:39:00]NVStorageDeleteData [07:39:01]OFD Sender: No OFD packet to send [07:39:01]*** Cut start [07:39:01]*** Purtial cut [07:39:01]*** CUTSNS_PIN = 0 [07:39:01]*** Stage 1: CUTSNS_PIN = 1 [07:39:03]Read from MH i2c: 01 [07:39:03]MH_I2C_Read... [07:39:03]*** Stop cut motor [07:39:03]*** Cut end [07:39:03]Read from MH i2c: 01 07 00 [07:39:03]MH_I2C_Read... [07:39:03]Read from MH i2c: 01 07 00 54 32 00 00 00 00 00 FF 0F 9B [07:39:03]process_action close_receipt done [07:39:03]requested_data is exist [07:39:03]produce_requested_data [07:39:03]requested_item fm.sn is exist - process it [07:39:03]wFMCommunicate request_size=4 [07:39:03]MH_SAM_APDU [07:39:03]CAPDU: 80 11 00 00 [07:39:03]Write to MH i2c: E2 08 00 55 32 80 11 00 00 00 00 00 00 01 [07:39:03]Write i2c OK [07:39:03]MH_I2C_Read... [07:39:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:03]Read from MH i2c: E2 [07:39:03]MH_I2C_Read... [07:39:03]Read from MH i2c: E2 17 00 [07:39:03]MH_I2C_Read... [07:39:03]Read from MH i2c: E2 17 00 55 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4C [07:39:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [07:39:03]wFMCommunicate OK [07:39:03]requested_item fd.num is exist - process it [07:39:03]SAM_PROTO_GetFieldsCounters [07:39:03]wFMCommunicate request_size=4 [07:39:03]MH_SAM_APDU [07:39:03]CAPDU: 80 13 00 00 [07:39:03]Write to MH i2c: E2 08 00 56 32 80 13 00 00 00 00 00 00 04 [07:39:03]Write i2c OK [07:39:03]MH_I2C_Read... [07:39:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:39:03]Read from MH i2c: E2 [07:39:03]MH_I2C_Read... [07:39:03]Read from MH i2c: E2 62 00 [07:39:03]MH_I2C_Read... [07:39:03]Read from MH i2c: E2 62 00 56 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E4 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [07:39:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E4 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:39:03]wFMCommunicate OK [07:39:03]SAM_PROTO_GetFieldsCounters done [07:39:03]requested_item shift.num is exist - process it [07:39:03]requested_item shift.opened is exist - process it [07:39:03]req_shift_opened [07:39:03]FM_GetShiftState [07:39:03]SAM_PROTO_GetShiftState [07:39:03]wFMCommunicate request_size=4 [07:39:03]MH_SAM_APDU [07:39:03]CAPDU: 80 13 01 00 [07:39:03]Write to MH i2c: E2 08 00 57 32 80 13 01 00 00 00 00 00 06 [07:39:03]Write i2c OK [07:39:03]MH_I2C_Read... [07:39:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:03]Read from MH i2c: E2 [07:39:03]MH_I2C_Read... [07:39:03]Read from MH i2c: E2 0E 00 [07:39:03]MH_I2C_Read... [07:39:03]Read from MH i2c: E2 0E 00 57 32 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 7C [07:39:03]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [07:39:03]wFMCommunicate OK [07:39:03]SAM_PROTO_GetShiftState done [07:39:03]FM_GetShiftState done [07:39:03]req_shift_opened done [07:39:03]requested_item shift.open_date is exist - process it [07:39:03]req_shift_open_date [07:39:03]req_shift_open_date done [07:39:03]produce_requested_data done [07:39:03]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49380,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [07:39:03]process_action_free close_receipt [07:39:03]json_value_free [07:39:03]json_value_free done [07:39:03]process_json_proto returns [07:39:03]Send response to host [07:39:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49380,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [07:39:03]free response buf [07:39:03]execute_script done [07:39:03]execute_script returns [07:39:03]free content buf [07:39:03]Sock 7.Close socket [07:39:03]Sock 7.Thread stoped [07:39:06]OFD Sender: No OFD packet to send [07:39:11]OFD Sender: No OFD packet to send [07:39:16]OFD Sender: No OFD packet to send [07:39:21]OFD Sender: No OFD packet to send [07:39:26]OFD Sender: No OFD packet to send [07:39:31]OFD Sender: No OFD packet to send [07:39:36]OFD Sender: No OFD packet to send [07:39:41]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:56]OFD Sender: No OFD packet to send [07:40:01]OFD Sender: No OFD packet to send [07:40:06]OFD Sender: No OFD packet to send [07:40:11]OFD Sender: No OFD packet to send [07:40:16]OFD Sender: No OFD packet to send [07:40:21]OFD Sender: No OFD packet to send [07:40:26]OFD Sender: No OFD packet to send [07:40:31]OFD Sender: No OFD packet to send [07:40:36]OFD Sender: No OFD packet to send [07:40:41]OFD Sender: No OFD packet to send [07:40:46]OFD Sender: No OFD packet to send [07:40:51]OFD Sender: No OFD packet to send [07:40:56]OFD Sender: No OFD packet to send [07:41:01]OFD Sender: No OFD packet to send [07:41:06]OFD Sender: No OFD packet to send [07:41:11]OFD Sender: No OFD packet to send [07:41:16]OFD Sender: No OFD packet to send [07:41:21]OFD Sender: No OFD packet to send [07:41:26]OFD Sender: No OFD packet to send [07:41:31]OFD Sender: No OFD packet to send [07:41:36]OFD Sender: No OFD packet to send [07:41:41]OFD Sender: No OFD packet to send [07:41:46]OFD Sender: No OFD packet to send [07:41:51]OFD Sender: No OFD packet to send [07:41:56]OFD Sender: No OFD packet to send [07:42:01]OFD Sender: No OFD packet to send [07:42:06]OFD Sender: No OFD packet to send [07:42:11]OFD Sender: No OFD packet to send [07:42:16]OFD Sender: No OFD packet to send [07:42:21]OFD Sender: No OFD packet to send [07:42:26]OFD Sender: No OFD packet to send [07:42:31]OFD Sender: No OFD packet to send [07:42:36]OFD Sender: No OFD packet to send [07:42:41]OFD Sender: No OFD packet to send [07:42:46]OFD Sender: No OFD packet to send [07:42:51]OFD Sender: No OFD packet to send [07:42:56]OFD Sender: No OFD packet to send [07:43:01]OFD Sender: No OFD packet to send [07:43:06]OFD Sender: No OFD packet to send [07:43:11]OFD Sender: No OFD packet to send [07:43:16]OFD Sender: No OFD packet to send [07:43:21]OFD Sender: No OFD packet to send [07:43:26]OFD Sender: No OFD packet to send [07:43:31]OFD Sender: No OFD packet to send [07:43:36]OFD Sender: No OFD packet to send [07:43:41]OFD Sender: No OFD packet to send [07:43:46]OFD Sender: No OFD packet to send [07:43:51]OFD Sender: No OFD packet to send [07:43:56]OFD Sender: No OFD packet to send [07:44:01]OFD Sender: No OFD packet to send [07:44:06]OFD Sender: No OFD packet to send [07:44:11]OFD Sender: No OFD packet to send [07:44:16]OFD Sender: No OFD packet to send [07:44:21]OFD Sender: No OFD packet to send [07:44:26]OFD Sender: No OFD packet to send [07:44:31]OFD Sender: No OFD packet to send [07:44:36]OFD Sender: No OFD packet to send [07:44:41]OFD Sender: No OFD packet to send [07:44:46]OFD Sender: No OFD packet to send [07:44:51]OFD Sender: No OFD packet to send [07:44:56]OFD Sender: No OFD packet to send [07:45:01]OFD Sender: No OFD packet to send [07:45:06]OFD Sender: No OFD packet to send [07:45:11]OFD Sender: No OFD packet to send [07:45:16]OFD Sender: No OFD packet to send [07:45:21]OFD Sender: No OFD packet to send [07:45:26]OFD Sender: No OFD packet to send [07:45:31]OFD Sender: No OFD packet to send [07:45:36]OFD Sender: No OFD packet to send [07:45:41]OFD Sender: No OFD packet to send [07:45:46]OFD Sender: No OFD packet to send [07:45:51]OFD Sender: No OFD packet to send [07:45:56]OFD Sender: No OFD packet to send [07:46:01]OFD Sender: No OFD packet to send [07:46:06]OFD Sender: No OFD packet to send [07:46:11]OFD Sender: No OFD packet to send [07:46:16]OFD Sender: No OFD packet to send [07:46:21]OFD Sender: No OFD packet to send [07:46:26]OFD Sender: No OFD packet to send [07:46:31]OFD Sender: No OFD packet to send [07:46:36]OFD Sender: No OFD packet to send [07:46:41]OFD Sender: No OFD packet to send [07:46:46]OFD Sender: No OFD packet to send [07:46:51]OFD Sender: No OFD packet to send [07:46:56]OFD Sender: No OFD packet to send [07:47:01]OFD Sender: No OFD packet to send [07:47:06]OFD Sender: No OFD packet to send [07:47:11]OFD Sender: No OFD packet to send [07:47:16]OFD Sender: No OFD packet to send [07:47:21]OFD Sender: No OFD packet to send [07:47:26]OFD Sender: No OFD packet to send [07:47:31]OFD Sender: No OFD packet to send [07:47:36]OFD Sender: No OFD packet to send [07:47:41]OFD Sender: No OFD packet to send [07:47:46]OFD Sender: No OFD packet to send [07:47:51]OFD Sender: No OFD packet to send [07:47:56]OFD Sender: No OFD packet to send [07:48:01]OFD Sender: No OFD packet to send [07:48:06]OFD Sender: No OFD packet to send [07:48:11]OFD Sender: No OFD packet to send [07:48:16]OFD Sender: No OFD packet to send [07:48:21]OFD Sender: No OFD packet to send [07:48:26]OFD Sender: No OFD packet to send [07:48:31]OFD Sender: No OFD packet to send [07:48:36]OFD Sender: No OFD packet to send [07:48:41]OFD Sender: No OFD packet to send [07:48:46]OFD Sender: No OFD packet to send [07:48:51]OFD Sender: No OFD packet to send [07:48:56]OFD Sender: No OFD packet to send [07:49:01]OFD Sender: No OFD packet to send [07:49:06]OFD Sender: No OFD packet to send [07:49:11]OFD Sender: No OFD packet to send [07:49:16]OFD Sender: No OFD packet to send [07:49:21]OFD Sender: No OFD packet to send [07:49:26]OFD Sender: No OFD packet to send [07:49:31]OFD Sender: No OFD packet to send [07:49:36]OFD Sender: No OFD packet to send [07:49:41]OFD Sender: No OFD packet to send [07:49:46]OFD Sender: No OFD packet to send [07:49:51]OFD Sender: No OFD packet to send [07:49:56]OFD Sender: No OFD packet to send [07:50:01]OFD Sender: No OFD packet to send [07:50:06]OFD Sender: No OFD packet to send [07:50:11]OFD Sender: No OFD packet to send [07:50:16]OFD Sender: No OFD packet to send [07:50:21]OFD Sender: No OFD packet to send [07:50:26]OFD Sender: No OFD packet to send [07:50:31]OFD Sender: No OFD packet to send [07:50: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]OFD Sender: No OFD packet to send [07:52:21]OFD Sender: No OFD packet to send [07:52:26]OFD Sender: No OFD packet to send [07:52:31]OFD Sender: No OFD packet to send [07:52:36]OFD Sender: No OFD packet to send [07:52:41]OFD Sender: No OFD packet to send [07:52:46]OFD Sender: No OFD packet to send [07:52:51]OFD Sender: No OFD packet to send [07:52:56]OFD Sender: No OFD packet to send [07:53:01]OFD Sender: No OFD packet to send [07:53:06]OFD Sender: No OFD packet to send [07:53:11]OFD Sender: No OFD packet to send [07:53:16]OFD Sender: No OFD packet to send [07:53:21]OFD Sender: No OFD packet to send [07:53:26]OFD Sender: No OFD packet to send [07:53:31]OFD Sender: No OFD packet to send [07:53:36]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:46]OFD Sender: No OFD packet to send [07:53:51]OFD Sender: No OFD packet to send [07:53:56]OFD Sender: No OFD packet to send [07:54:01]OFD Sender: No OFD packet to send [07:54:06]OFD Sender: No OFD packet to send [07:54:11]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [07:55:01]OFD Sender: No OFD packet to send [07:55:06]OFD Sender: No OFD packet to send [07:55:11]OFD Sender: No OFD packet to send [07:55:16]OFD Sender: No OFD packet to send [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:21]OFD Sender: No OFD packet to send [07:56:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [07:56:36]OFD Sender: No OFD packet to send [07:56:41]OFD Sender: No OFD packet to send [07:56:46]OFD Sender: No OFD packet to send [07:56:51]OFD Sender: No OFD packet to send [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:37]OFD Sender: No OFD packet to send [07:58:42]OFD Sender: No OFD packet to send [07:58:47]OFD Sender: No OFD packet to send [07:58:52]OFD Sender: No OFD packet to send [07:58:57]OFD Sender: No OFD packet to send [07:59:02]OFD Sender: No OFD packet to send [07:59:07]OFD Sender: No OFD packet to send [07:59:12]OFD Sender: No OFD packet to send [07:59:17]OFD Sender: No OFD packet to send [07:59:22]OFD Sender: No OFD packet to send [07:59:27]OFD Sender: No OFD packet to send [07:59:32]OFD Sender: No OFD packet to send [07:59:37]OFD Sender: No OFD packet to send [07:59:42]OFD Sender: No OFD packet to send [07:59:47]OFD Sender: No OFD packet to send [07:59:52]OFD Sender: No OFD packet to send [07:59:57]OFD Sender: No OFD packet to send [08:00:02]OFD Sender: No OFD packet to send [08:00:07]OFD Sender: No OFD packet to send [08:00:12]OFD Sender: No OFD packet to send [08:00:17]OFD Sender: No OFD packet to send [08:00:22]OFD Sender: No OFD packet to send [08:00:27]OFD Sender: No OFD packet to send [08:00:32]OFD Sender: No OFD packet to send [08:00:37]OFD Sender: No OFD packet to send [08:00:42]OFD Sender: No OFD packet to send [08:00:47]OFD Sender: No OFD packet to send [08:00:52]OFD Sender: No OFD packet to send [08:00:57]OFD Sender: No OFD packet to send [08:01:02]OFD Sender: No OFD packet to send [08:01:07]OFD Sender: No OFD packet to send [08:01:12]OFD Sender: No OFD packet to send [08:01:17]OFD Sender: No OFD packet to send [08:01:22]OFD Sender: No OFD packet to send [08:01:27]OFD Sender: No OFD packet to send [08:01:32]OFD Sender: No OFD packet to send [08:01:37]OFD Sender: No OFD packet to send [08:01:42]OFD Sender: No OFD packet to send [08:01:47]OFD Sender: No OFD packet to send [08:01:52]OFD Sender: No OFD packet to send [08:01:57]OFD Sender: No OFD packet to send [08:02:02]OFD Sender: No OFD packet to send [08:02:07]OFD Sender: No OFD packet to send [08:02:12]OFD Sender: No OFD packet to send [08:02:17]OFD Sender: No OFD packet to send [08:02:22]OFD Sender: No OFD packet to send [08:02:27]OFD Sender: No OFD packet to send [08:02:32]OFD Sender: No OFD packet to send [08:02:37]OFD Sender: No OFD packet to send [08:02:42]OFD Sender: No OFD packet to send [08:02:47]OFD Sender: No OFD packet to send [08:02:49]accept exits with 9 [08:02:49]New connection [08:02:49]New thread 3066973540 created [08:02:49]Thread 3066830180 joined [08:02:49]Waiting for new connection... [08:02:49] Sock 9.Parse request [08:02:49]Sock 9.Check first char [08:02:49]Sock 9.First char is OK [08:02:49]request: POST /json_proto HTTP/1.0 [08:02:49]Method: POST [08:02:49]URL: /json_proto [08:02:49]Method is POST - this is cgi request [08:02:49]url: /json_proto [08:02:49]query_string will be loaded in cgi processing [08:02:49]execute_cgi json_proto POST (null) [08:02:49]execute_cgi path=json_proto method=POST [08:02:49]POST find Content-Length [08:02:49]Host: 172.17.46.196:8080 [08:02:49]Content-Length: 896 [08:02:49]Content-Type: application/json [08:02:49] [08:02:49]POST finish read [08:02:49]Found Content-Length = 896 [08:02:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189620", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 236.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:49]execute_script... [08:02:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189620", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 236.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:02:49]POST & json_proto [08:02:49]process_json_proto [08:02:49]json parsed OK: [08:02:49]protocol is kg_v1.0 [08:02:49]action value=close_receipt [08:02:49]process_action close_receipt [08:02:49]cmd_close_receipt [08:02:49]MH_GetDate [08:02:49]Write to MH i2c: F0 00 00 58 32 79 [08:02:49]Write i2c OK [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: F0 [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: F0 09 00 [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: F0 09 00 58 32 00 AE 07 BF 66 07 E8 5D 66 0E [08:02:49]GetLastDocTimeStamp 1723793942 [08:02:49]current date 1723795374 [08:02:49]FM_GetShiftState [08:02:49]SAM_PROTO_GetShiftState [08:02:49]wFMCommunicate request_size=4 [08:02:49]MH_SAM_APDU [08:02:49]CAPDU: 80 13 01 00 [08:02:49]Write to MH i2c: E2 08 00 59 32 80 13 01 00 00 00 00 00 08 [08:02:49]Write i2c OK [08:02:49]MH_I2C_Read... [08:02:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:49]Read from MH i2c: E2 [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: E2 0E 00 [08:02:49]MH_I2C_Read... [08:02:49]Read from MH i2c: E2 0E 00 59 32 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 7E [08:02:49]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [08:02:49]wFMCommunicate OK [08:02:49]SAM_PROTO_GetShiftState done [08:02:49]FM_GetShiftState done [08:02:49]opened in 1723766958 [08:02:49]opened+sec_in_day 1723853358 [08:02:49]quantity*price = 8500 [08:02:49]sum+1 = 8501 [08:02:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48742245 Сигареты Parliament Silver Blue 1.000 * 151.00 = 151.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 236.00 НСП 1% : 2.09 НДС 12% : 25.06 Наличными: 236.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 29 16.08.2024 08:02 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49381 ФПД: 130919952575402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T080254&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49381&fm=130919952575402&tin=02508201610067®Number=0000000000092546&sum=23600 0 [08:02:50]StoreToDocumentArchive [08:02:50]shift 464 fd 49381 [08:02:50]save to /storage/0464/doc_00049381 [08:02:50]save last doc name /storage/0464/doc_00049381 to /storage/kkm_last_doc_name [08:02:50]save OK [08:02:50]Clear old archive folders... [08:02:50]ProcessDocumentItem done err = 0, tmpTLVsize=400 [08:02:50]tlvbuf is 00EC5D90 [08:02:50]SAM_PROTO_ClearQueue [08:02:50]wFMCommunicate request_size=4 [08:02:50]MH_SAM_APDU [08:02:50]CAPDU: 80 09 00 00 [08:02:50]Write to MH i2c: E2 08 00 66 32 80 09 00 00 00 00 00 00 0A [08:02:50]Write i2c OK [08:02:50]MH_I2C_Read... [08:02:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:02:50]Read from MH i2c: E2 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: E2 03 00 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: E2 03 00 66 32 00 90 00 0C [08:02:50]RAPDU: 90 00 [08:02:50]wFMCommunicate OK [08:02:50]SAM_PROTO_ClearQueue done [08:02:50]KKMCreateOFDPacket [08:02:50]OFDProtocolAddRootSTLVToBuf [08:02:50]FM_MakeSignedData [08:02:50]FM_MakeSignedData [08:02:50]SAM_PROTO_SignData [08:02:50]wFMCommunicate request_size=4 [08:02:50]MH_SAM_APDU [08:02:50]CAPDU: 80 0D 01 02 [08:02:50]Write to MH i2c: E2 08 00 67 32 80 0D 01 02 00 00 00 00 12 [08:02:50]Write i2c OK [08:02:50]MH_I2C_Read... [08:02:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:02:50]Read from MH i2c: E2 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: E2 03 00 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: E2 03 00 67 32 00 90 00 0D [08:02:50]RAPDU: 90 00 [08:02:50]wFMCommunicate OK [08:02:50]wFMCommunicate request_size=255 [08:02:50]MH_SAM_APDU [08:02:50]CAPDU: 80 0D 02 02 FA 03 00 90 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB [08:02:50]Write to MH i2c: E2 02 01 68 32 80 0D 02 02 FA 00 03 00 90 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 00 00 09 [08:02:50]Write i2c OK [08:02:50]MH_I2C_Read... [08:02:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:50]Read from MH i2c: E2 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: E2 03 00 [08:02:50]MH_I2C_Read... [08:02:50]Read from MH i2c: E2 03 00 68 32 00 90 00 0E [08:02:50]RAPDU: 90 00 [08:02:50]wFMCommunicate OK [08:02:50]wFMCommunicate request_size=159 [08:02:50]MH_SAM_APDU [08:02:50]CAPDU: 80 0D 02 02 9A 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 30 5C 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 AE 07 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E5 C0 00 00 35 04 06 00 77 12 2D 44 6B AA [08:02:50]Write to MH i2c: E2 A2 00 69 32 80 0D 02 02 9A 00 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 30 5C 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 AE 07 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E5 C0 00 00 35 04 06 00 77 12 2D 44 6B AA 00 00 40 [08:02:50]Write i2c OK [08:02:50]MH_I2C_Read... [08:02:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:02:51]Read from MH i2c: E2 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: E2 03 00 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: E2 03 00 69 32 00 90 00 0F [08:02:51]RAPDU: 90 00 [08:02:51]wFMCommunicate OK [08:02:51]wFMCommunicate request_size=4 [08:02:51]MH_SAM_APDU [08:02:51]CAPDU: 80 0D 03 02 [08:02:51]Write to MH i2c: E2 08 00 6A 32 80 0D 03 02 00 00 00 00 17 [08:02:51]Write i2c OK [08:02:51]MH_I2C_Read... [08:02:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:02:51]Read from MH i2c: E2 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: E2 0B 00 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: E2 0B 00 6A 32 00 DB E8 DC C3 30 FE 0E F6 90 00 AC [08:02:51]RAPDU: DB E8 DC C3 30 FE 0E F6 90 00 [08:02:51]wFMCommunicate OK [08:02:51]SAM_PROTO_SignData done [08:02:51]FM_MakeSignedData done [08:02:51]CreateOFDProtocolMessage [08:02:51]wFMCommunicate request_size=4 [08:02:51]MH_SAM_APDU [08:02:51]CAPDU: 80 11 00 00 [08:02:51]Write to MH i2c: E2 08 00 6B 32 80 11 00 00 00 00 00 00 17 [08:02:51]Write i2c OK [08:02:51]MH_I2C_Read... [08:02:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:51]Read from MH i2c: E2 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: E2 17 00 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: E2 17 00 6B 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 62 [08:02:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:02:51]wFMCommunicate OK [08:02:51]CreateOFDProtocolMessage done [08:02:51]OFDSenderStorePacket 49381 [08:02:51]StoreOFDPacket docnum=49381 [08:02:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A4 01 00 00 04 33 9C 01 11 38 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 30 5C 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 AE 07 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E5 C0 00 00 35 04 06 00 77 12 2D 44 6B AA DB E8 DC C3 30 FE 0E F6 [08:02:51]CheckFolder [08:02:51]dirname=/storage/ofd_packets [08:02:51]CheckFolder done [08:02:51]ProducePacketName [08:02:51]name=ofd_packets/00049381 [08:02:51]NVStorageSaveData ofd_packets/00049381 [08:02:51]File name is /storage/ofd_packets/00049381 [08:02:51]Write 450 bytes [08:02:51]NVStorageSaveData done [08:02:51]OFDSenderStorePacket done [08:02:51]KKMCreateOFDPacket done [08:02:51]NVStorageSaveData kkm_last_timestamp [08:02:51]File name is /storage/kkm_last_timestamp [08:02:51]Write 4 bytes [08:02:51]NVStorageSaveData done [08:02:51]ExternCall_PrintAddStr [08:02:51]wPrintStart [08:02:51]Write to MH i2c: 01 00 00 6C 32 9E [08:02:51]Write i2c OK [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: 01 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: 01 07 00 [08:02:51]MH_I2C_Read... [08:02:51]Read from MH i2c: 01 07 00 6C 32 00 00 00 00 00 FF 0F B3 [08:02:51]RasterBufferAndPrint [08:02:51]line Счет N : (3)189620 [08:02:51]line ИНН: 02508201610067 [08:02:51]line Контрольно-Кассовый Чек [08:02:51]line ПРОДАЖА [08:02:51]line Товар: 4600682557456 [08:02:51]line Напиток FLash up energy эн ж/б 0,5/0,45л [08:02:51]line 1.000 * 85.00 [08:02:51]line = 85.00 [08:02:51]line НДС 12% НСП 1% [08:02:51]line > о реализуемом товаре [08:02:51]line Товар: 48742245 [08:02:51]line Сигареты Parliament Silver Blue [08:02:51]line 1.000 * 151.00 [08:02:51]line = 151.00 [08:02:51]line НДС 12% НСП 1% [08:02:51]line > о реализуемом товаре [08:02:51]line ИТОГО: 236.00 [08:02:51]line НСП 1% : 2.09 [08:02:51]line НДС 12% : 25.06 [08:02:51]line Наличными: 236.00 [08:02:51]line Безнал.: 0.00 [08:02:51]line Место: АЗС № 95 "Партнер Нефть" [08:02:51]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:02:51]line СНО: Общий режим [08:02:51]line Чек 29 16.08.2024 08:02 [08:02:51]line Смена: 464 ФФД: 1.0 [08:02:51]line ЗНМ: 0300000078 [08:02:51]line РНМ: 0000000000092546 [08:02:51]line Версия ККМ: 001 [08:02:51]line ФМ: 0000000000871800 [08:02:51]line ФД: 49381 [08:02:51]line ФПД: 130919952575402 [08:02:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T080254&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49381&fm=130919952575402&tin=02508201610067®Number=0000000000092546&sum=23600 [08:02:51]line 0 [08:02:51]OFD Sender: Processing packet 49381 [packets to send 21, broken 20] [08:02:51]ProducePacketName [08:02:51]name=ofd_packets/00049381 [08:02:51]OFD Sender: To server: pG, [08:02:51]CommunicateWithHost lk.salyk.kg:30040 [08:02:51]ConnectInit lk.salyk.kg [08:02:51]written 0, free lines is 4095 [08:02:51]Connected sock=10 [08:02:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A4 01 00 00 04 33 9C 01 11 38 5A 03 01 00 03 00 90 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CA 09 00 00 00 00 07 04 06 00 30 5C 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 AE 07 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E5 C0 00 00 35 04 06 00 77 12 2D 44 6B AA DB E8 DC C3 30 FE 0E F6 [08:02:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 81 50 47 00 08 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E5 C0 00 00 F4 03 04 00 ED B2 BE 66 B6 04 01 00 00 96 08 4B BD B2 F0 2F 7B [08:02:52]CommunicateWithHost err = 0 [08:02:52]CheckOFDResponse [08:02:52]1017 (14) - 77093643461234 [08:02:52]1041 (16) - 0000000000871800 [08:02:52]1040 (4) - 49381 [08:02:52]1012 (4) - 16.08.2024 02:01 [08:02:52]1206 (1) - 0 [08:02:52]OFD Sender: Remove packet 49381 [08:02:52]ProducePacketName [08:02:52]name=ofd_packets/00049381 [08:02:52]NVStorageDeleteData [08:02:52]Write to MH i2c: 01 00 00 9C 32 CE [08:02:52]Write i2c OK [08:02:52]MH_I2C_Read... [08:02:52]Read from MH i2c: 01 [08:02:52]MH_I2C_Read... [08:02:52]Read from MH i2c: 01 07 00 [08:02:52]MH_I2C_Read... [08:02:52]Read from MH i2c: 01 07 00 9C 32 00 00 00 00 00 4E 0C 2F [08:02:52]RasterBufferAndPrint [08:02:52]line [08:02:52]line [08:02:52]line [08:02:52]line [08:02:52]line [08:02:52]written 0, free lines is 3156 [08:02:52]MH_Cut [08:02:52]Write to MH i2c: D1 01 00 A3 32 01 A7 [08:02:52]Write i2c OK [08:02:52]MH_I2C_Read... [08:02:52]Read from MH i2c: D1 [08:02:52]MH_I2C_Read... [08:02:52]Read from MH i2c: D1 01 00 [08:02:52]MH_I2C_Read... [08:02:52]Read from MH i2c: D1 01 00 A3 32 00 A6 [08:02:52]Write to MH i2c: 01 00 00 A4 32 D6 [08:02:52]Write i2c OK [08:02:52]MH_I2C_Read... [08:02:52]OFD Sender: No OFD packet to send [08:02:53]*** Cut start [08:02:53]*** Purtial cut [08:02:53]*** Stage 1: CUTSNS_PIN = 1 [08:02:53]Read from MH i2c: 01 [08:02:53]MH_I2C_Read... [08:02:53]*** Stop cut motor [08:02:53]*** Cut end [08:02:53]Read from MH i2c: 01 07 00 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: 01 07 00 A4 32 00 00 00 00 00 FF 0F EB [08:02:53]process_action close_receipt done [08:02:53]requested_data is exist [08:02:53]produce_requested_data [08:02:53]requested_item fm.sn is exist - process it [08:02:53]wFMCommunicate request_size=4 [08:02:53]MH_SAM_APDU [08:02:53]CAPDU: 80 11 00 00 [08:02:53]Write to MH i2c: E2 08 00 A5 32 80 11 00 00 00 00 00 00 51 [08:02:53]Write i2c OK [08:02:53]MH_I2C_Read... [08:02:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:02:53]Read from MH i2c: E2 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: E2 17 00 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: E2 17 00 A5 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9C [08:02:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:02:53]wFMCommunicate OK [08:02:53]requested_item fd.num is exist - process it [08:02:53]SAM_PROTO_GetFieldsCounters [08:02:53]wFMCommunicate request_size=4 [08:02:53]MH_SAM_APDU [08:02:53]CAPDU: 80 13 00 00 [08:02:53]Write to MH i2c: E2 08 00 A6 32 80 13 00 00 00 00 00 00 54 [08:02:53]Write i2c OK [08:02:53]MH_I2C_Read... [08:02:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:02:53]Read from MH i2c: E2 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: E2 62 00 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: E2 62 00 A6 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E5 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [08:02:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E5 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:02:53]wFMCommunicate OK [08:02:53]SAM_PROTO_GetFieldsCounters done [08:02:53]requested_item shift.num is exist - process it [08:02:53]requested_item shift.opened is exist - process it [08:02:53]req_shift_opened [08:02:53]FM_GetShiftState [08:02:53]SAM_PROTO_GetShiftState [08:02:53]wFMCommunicate request_size=4 [08:02:53]MH_SAM_APDU [08:02:53]CAPDU: 80 13 01 00 [08:02:53]Write to MH i2c: E2 08 00 A7 32 80 13 01 00 00 00 00 00 56 [08:02:53]Write i2c OK [08:02:53]MH_I2C_Read... [08:02:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:02:53]Read from MH i2c: E2 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: E2 0E 00 [08:02:53]MH_I2C_Read... [08:02:53]Read from MH i2c: E2 0E 00 A7 32 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 CC [08:02:53]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [08:02:53]wFMCommunicate OK [08:02:53]SAM_PROTO_GetShiftState done [08:02:53]FM_GetShiftState done [08:02:53]req_shift_opened done [08:02:53]requested_item shift.open_date is exist - process it [08:02:53]req_shift_open_date [08:02:53]req_shift_open_date done [08:02:53]produce_requested_data done [08:02:53]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49381,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [08:02:53]process_action_free close_receipt [08:02:53]json_value_free [08:02:53]json_value_free done [08:02:53]process_json_proto returns [08:02:53]Send response to host [08:02:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49381,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [08:02:53]free response buf [08:02:53]execute_script done [08:02:53]execute_script returns [08:02:53]free content buf [08:02:53]Sock 9.Close socket [08:02:53]Sock 9.Thread stoped [08:02:57]OFD Sender: No OFD packet to send [08:03:02]OFD Sender: No OFD packet to send [08:03:07]OFD Sender: No OFD packet to send [08:03:12]OFD Sender: No OFD packet to send [08:03:17]OFD Sender: No OFD packet to send [08:03:22]OFD Sender: No OFD packet to send [08:03:27]OFD Sender: No OFD packet to send [08:03:32]OFD Sender: No OFD packet to send [08:03:37]OFD Sender: No OFD packet to send [08:03:42]OFD Sender: No OFD packet to send [08:03:47]OFD Sender: No OFD packet to send [08:03:52]OFD Sender: No OFD packet to send [08:03:57]OFD Sender: No OFD packet to send [08:04:02]OFD Sender: No OFD packet to send [08:04:07]OFD Sender: No OFD packet to send [08:04:12]OFD Sender: No OFD packet to send [08:04:17]OFD Sender: No OFD packet to send [08:04:22]OFD Sender: No OFD packet to send [08:04:27]OFD Sender: No OFD packet to send [08:04:32]OFD Sender: No OFD packet to send [08:04:37]OFD Sender: No OFD packet to send [08:04:42]OFD Sender: No OFD packet to send [08:04:47]OFD Sender: No OFD packet to send [08:04:48]accept exits with 7 [08:04:48]New connection [08:04:48]New thread 3066830180 created [08:04:48]Thread 3066973540 joined [08:04:48]Waiting for new connection... [08:04:48] Sock 7.Parse request [08:04:48]Sock 7.Check first char [08:04:48]Sock 7.First char is OK [08:04:48]request: POST /json_proto HTTP/1.0 [08:04:48]Method: POST [08:04:48]URL: /json_proto [08:04:48]Method is POST - this is cgi request [08:04:48]url: /json_proto [08:04:48]query_string will be loaded in cgi processing [08:04:48]execute_cgi json_proto POST (null) [08:04:48]execute_cgi path=json_proto method=POST [08:04:48]POST find Content-Length [08:04:48]Host: 172.17.46.196:8080 [08:04:48]Content-Length: 675 [08:04:48]Content-Type: application/json [08:04:48] [08:04:48]POST finish read [08:04:48]Found Content-Length = 675 [08:04:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189621", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:48]execute_script... [08:04:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189621", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:04:48]POST & json_proto [08:04:48]process_json_proto [08:04:48]json parsed OK: [08:04:48]protocol is kg_v1.0 [08:04:48]action value=close_receipt [08:04:48]process_action close_receipt [08:04:48]cmd_close_receipt [08:04:48]MH_GetDate [08:04:48]Write to MH i2c: F0 00 00 A8 32 C9 [08:04:48]Write i2c OK [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: F0 [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: F0 09 00 [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: F0 09 00 A8 32 00 24 08 BF 66 07 E8 5D 66 D5 [08:04:48]GetLastDocTimeStamp 1723795374 [08:04:48]current date 1723795492 [08:04:48]FM_GetShiftState [08:04:48]SAM_PROTO_GetShiftState [08:04:48]wFMCommunicate request_size=4 [08:04:48]MH_SAM_APDU [08:04:48]CAPDU: 80 13 01 00 [08:04:48]Write to MH i2c: E2 08 00 A9 32 80 13 01 00 00 00 00 00 58 [08:04:48]Write i2c OK [08:04:48]MH_I2C_Read... [08:04:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:48]Read from MH i2c: E2 [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: E2 0E 00 [08:04:48]MH_I2C_Read... [08:04:48]Read from MH i2c: E2 0E 00 A9 32 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 CE [08:04:48]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [08:04:48]wFMCommunicate OK [08:04:48]SAM_PROTO_GetShiftState done [08:04:48]FM_GetShiftState done [08:04:48]opened in 1723766958 [08:04:48]opened+sec_in_day 1723853358 [08:04:48]quantity*price = 9000 [08:04:48]sum+1 = 9001 [08:04:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 30 16.08.2024 08:04 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49382 ФПД: 123796921299091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T080452&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49382&fm=123796921299091&tin=02508201610067®Number=0000000000092546&sum=9000 0 [08:04:49]StoreToDocumentArchive [08:04:49]shift 464 fd 49382 [08:04:49]save to /storage/0464/doc_00049382 [08:04:49]save last doc name /storage/0464/doc_00049382 to /storage/kkm_last_doc_name [08:04:49]save OK [08:04:49]Clear old archive folders... [08:04:49]ProcessDocumentItem done err = 0, tmpTLVsize=294 [08:04:49]tlvbuf is 00ECA460 [08:04:49]SAM_PROTO_ClearQueue [08:04:49]wFMCommunicate request_size=4 [08:04:49]MH_SAM_APDU [08:04:49]CAPDU: 80 09 00 00 [08:04:49]Write to MH i2c: E2 08 00 B6 32 80 09 00 00 00 00 00 00 5A [08:04:49]Write i2c OK [08:04:49]MH_I2C_Read... [08:04:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:04:49]Read from MH i2c: E2 [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: E2 03 00 [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: E2 03 00 B6 32 00 90 00 5C [08:04:49]RAPDU: 90 00 [08:04:49]wFMCommunicate OK [08:04:49]SAM_PROTO_ClearQueue done [08:04:49]KKMCreateOFDPacket [08:04:49]OFDProtocolAddRootSTLVToBuf [08:04:49]FM_MakeSignedData [08:04:49]FM_MakeSignedData [08:04:49]SAM_PROTO_SignData [08:04:49]wFMCommunicate request_size=4 [08:04:49]MH_SAM_APDU [08:04:49]CAPDU: 80 0D 01 02 [08:04:49]Write to MH i2c: E2 08 00 B7 32 80 0D 01 02 00 00 00 00 62 [08:04:49]Write i2c OK [08:04:49]MH_I2C_Read... [08:04:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:04:49]Read from MH i2c: E2 [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: E2 03 00 [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: E2 03 00 B7 32 00 90 00 5D [08:04:49]RAPDU: 90 00 [08:04:49]wFMCommunicate OK [08:04:49]wFMCommunicate request_size=255 [08:04:49]MH_SAM_APDU [08:04:49]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 24 08 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [08:04:49]Write to MH i2c: E2 02 01 B8 32 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 24 08 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 40 [08:04:49]Write i2c OK [08:04:49]MH_I2C_Read... [08:04:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:49]Read from MH i2c: E2 [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: E2 03 00 [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: E2 03 00 B8 32 00 90 00 5E [08:04:49]RAPDU: 90 00 [08:04:49]wFMCommunicate OK [08:04:49]wFMCommunicate request_size=53 [08:04:49]MH_SAM_APDU [08:04:49]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E6 C0 00 00 35 04 06 00 70 97 B7 84 B0 93 [08:04:49]Write to MH i2c: E2 38 00 B9 32 80 0D 02 02 30 00 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E6 C0 00 00 35 04 06 00 70 97 B7 84 B0 93 00 00 7E [08:04:49]Write i2c OK [08:04:49]MH_I2C_Read... [08:04:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:04:49]Read from MH i2c: E2 [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: E2 03 00 [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: E2 03 00 B9 32 00 90 00 5F [08:04:49]RAPDU: 90 00 [08:04:49]wFMCommunicate OK [08:04:49]wFMCommunicate request_size=4 [08:04:49]MH_SAM_APDU [08:04:49]CAPDU: 80 0D 03 02 [08:04:49]Write to MH i2c: E2 08 00 BA 32 80 0D 03 02 00 00 00 00 67 [08:04:49]Write i2c OK [08:04:49]MH_I2C_Read... [08:04:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:04:49]Read from MH i2c: E2 [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: E2 0B 00 [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: E2 0B 00 BA 32 00 3A 99 39 61 13 2D C7 5A 90 00 36 [08:04:49]RAPDU: 3A 99 39 61 13 2D C7 5A 90 00 [08:04:49]wFMCommunicate OK [08:04:49]SAM_PROTO_SignData done [08:04:49]FM_MakeSignedData done [08:04:49]CreateOFDProtocolMessage [08:04:49]wFMCommunicate request_size=4 [08:04:49]MH_SAM_APDU [08:04:49]CAPDU: 80 11 00 00 [08:04:49]Write to MH i2c: E2 08 00 BB 32 80 11 00 00 00 00 00 00 67 [08:04:49]Write i2c OK [08:04:49]MH_I2C_Read... [08:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:49]Read from MH i2c: E2 [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: E2 17 00 [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: E2 17 00 BB 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B2 [08:04:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:04:49]wFMCommunicate OK [08:04:49]CreateOFDProtocolMessage done [08:04:49]OFDSenderStorePacket 49382 [08:04:49]StoreOFDPacket docnum=49382 [08:04:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 91 8A 32 01 B7 2F 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 24 08 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E6 C0 00 00 35 04 06 00 70 97 B7 84 B0 93 3A 99 39 61 13 2D C7 5A [08:04:49]CheckFolder [08:04:49]dirname=/storage/ofd_packets [08:04:49]CheckFolder done [08:04:49]ProducePacketName [08:04:49]name=ofd_packets/00049382 [08:04:49]NVStorageSaveData ofd_packets/00049382 [08:04:49]File name is /storage/ofd_packets/00049382 [08:04:49]Write 344 bytes [08:04:49]NVStorageSaveData done [08:04:49]OFDSenderStorePacket done [08:04:49]KKMCreateOFDPacket done [08:04:49]NVStorageSaveData kkm_last_timestamp [08:04:49]File name is /storage/kkm_last_timestamp [08:04:49]Write 4 bytes [08:04:49]NVStorageSaveData done [08:04:49]ExternCall_PrintAddStr [08:04:49]wPrintStart [08:04:49]Write to MH i2c: 01 00 00 BC 32 EE [08:04:49]Write i2c OK [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: 01 [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: 01 07 00 [08:04:49]MH_I2C_Read... [08:04:49]Read from MH i2c: 01 07 00 BC 32 00 00 00 00 00 FF 0F 03 [08:04:49]RasterBufferAndPrint [08:04:49]line Счет N : (3)189621 [08:04:49]line ИНН: 02508201610067 [08:04:49]line Контрольно-Кассовый Чек [08:04:49]line ПРОДАЖА [08:04:49]line Товар: 4650243871828 [08:04:49]line Gorilla эн нап манго-кокос 0,45 ж/б [08:04:49]line 1.000 * 90.00 [08:04:49]line = 90.00 [08:04:49]line НДС 12% НСП 1% [08:04:49]line > о реализуемом товаре [08:04:49]line ИТОГО: 90.00 [08:04:49]line НСП 1% : 0.80 [08:04:49]line НДС 12% : 9.56 [08:04:49]line Наличными: 90.00 [08:04:49]line Безнал.: 0.00 [08:04:49]line Место: АЗС № 95 "Партнер Нефть" [08:04:49]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:04:49]line СНО: Общий режим [08:04:49]line Чек 30 16.08.2024 08:04 [08:04:49]line Смена: 464 ФФД: 1.0 [08:04:49]line ЗНМ: 0300000078 [08:04:49]line РНМ: 0000000000092546 [08:04:49]line Версия ККМ: 001 [08:04:49]line ФМ: 0000000000871800 [08:04:49]line ФД: 49382 [08:04:49]line ФПД: 123796921299091 [08:04:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T080452&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49382&fm=123796921299091&tin=02508201610067®Number=0000000000092546&sum=9000 [08:04:50]line 0 [08:04:50]OFD Sender: Processing packet 49382 [packets to send 21, broken 20] [08:04:50]ProducePacketName [08:04:50]name=ofd_packets/00049382 [08:04:50]OFD Sender: To server: pG, [08:04:50]CommunicateWithHost lk.salyk.kg:30040 [08:04:50]ConnectInit lk.salyk.kg [08:04:50]written 0, free lines is 4095 [08:04:50]Connected sock=10 [08:04:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 91 8A 32 01 B7 2F 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 24 08 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E6 C0 00 00 35 04 06 00 70 97 B7 84 B0 93 3A 99 39 61 13 2D C7 5A [08:04:50]Write to MH i2c: 01 00 00 E5 32 17 [08:04:50]Write i2c OK [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: 01 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: 01 07 00 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: 01 07 00 E5 32 00 00 00 00 00 EE 0C 18 [08:04:50]RasterBufferAndPrint [08:04:50]line [08:04:50]line [08:04:50]line [08:04:50]line [08:04:50]line [08:04:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 48 E2 47 00 E5 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E6 C0 00 00 F4 03 04 00 64 B3 BE 66 B6 04 01 00 00 C8 87 87 B0 31 EE EB E7 [08:04:50]CommunicateWithHost err = 0 [08:04:50]CheckOFDResponse [08:04:50]1017 (14) - 77093643461234 [08:04:50]1041 (16) - 0000000000871800 [08:04:50]1040 (4) - 49382 [08:04:50]1012 (4) - 16.08.2024 02:03 [08:04:50]1206 (1) - 0 [08:04:50]OFD Sender: Remove packet 49382 [08:04:50]ProducePacketName [08:04:50]name=ofd_packets/00049382 [08:04:50]NVStorageDeleteData [08:04:50]written 0, free lines is 3331 [08:04:50]MH_Cut [08:04:50]Write to MH i2c: D1 01 00 EC 32 01 F0 [08:04:50]Write i2c OK [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: D1 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: D1 01 00 [08:04:50]MH_I2C_Read... [08:04:50]Read from MH i2c: D1 01 00 EC 32 00 EF [08:04:50]Write to MH i2c: 01 00 00 ED 32 1F [08:04:50]Write i2c OK [08:04:50]MH_I2C_Read... [08:04:51]OFD Sender: No OFD packet to send [08:04:51]*** Cut start [08:04:51]*** Purtial cut [08:04:51]*** CUTSNS_PIN = 0 [08:04:51]*** Stage 1: CUTSNS_PIN = 1 [08:04:53]Read from MH i2c: 01 [08:04:53]MH_I2C_Read... [08:04:53]*** Stop cut motor [08:04:53]*** Cut end [08:04:53]Read from MH i2c: 01 07 00 [08:04:53]MH_I2C_Read... [08:04:53]Read from MH i2c: 01 07 00 ED 32 00 00 00 00 00 FF 0F 34 [08:04:53]process_action close_receipt done [08:04:53]requested_data is exist [08:04:53]produce_requested_data [08:04:53]requested_item fm.sn is exist - process it [08:04:53]wFMCommunicate request_size=4 [08:04:53]MH_SAM_APDU [08:04:53]CAPDU: 80 11 00 00 [08:04:53]Write to MH i2c: E2 08 00 EE 32 80 11 00 00 00 00 00 00 9A [08:04:53]Write i2c OK [08:04:53]MH_I2C_Read... [08:04:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:04:53]Read from MH i2c: E2 [08:04:53]MH_I2C_Read... [08:04:53]Read from MH i2c: E2 17 00 [08:04:53]MH_I2C_Read... [08:04:53]Read from MH i2c: E2 17 00 EE 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E5 [08:04:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:04:53]wFMCommunicate OK [08:04:53]requested_item fd.num is exist - process it [08:04:53]SAM_PROTO_GetFieldsCounters [08:04:53]wFMCommunicate request_size=4 [08:04:53]MH_SAM_APDU [08:04:53]CAPDU: 80 13 00 00 [08:04:53]Write to MH i2c: E2 08 00 EF 32 80 13 00 00 00 00 00 00 9D [08:04:53]Write i2c OK [08:04:53]MH_I2C_Read... [08:04:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:04:53]Read from MH i2c: E2 [08:04:53]MH_I2C_Read... [08:04:53]Read from MH i2c: E2 62 00 [08:04:53]MH_I2C_Read... [08:04:53]Read from MH i2c: E2 62 00 EF 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E6 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 88 [08:04:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E6 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:04:53]wFMCommunicate OK [08:04:53]SAM_PROTO_GetFieldsCounters done [08:04:53]requested_item shift.num is exist - process it [08:04:53]requested_item shift.opened is exist - process it [08:04:53]req_shift_opened [08:04:53]FM_GetShiftState [08:04:53]SAM_PROTO_GetShiftState [08:04:53]wFMCommunicate request_size=4 [08:04:53]MH_SAM_APDU [08:04:53]CAPDU: 80 13 01 00 [08:04:53]Write to MH i2c: E2 08 00 F0 32 80 13 01 00 00 00 00 00 9F [08:04:53]Write i2c OK [08:04:53]MH_I2C_Read... [08:04:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:04:53]Read from MH i2c: E2 [08:04:53]MH_I2C_Read... [08:04:53]Read from MH i2c: E2 0E 00 [08:04:53]MH_I2C_Read... [08:04:53]Read from MH i2c: E2 0E 00 F0 32 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 15 [08:04:53]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [08:04:53]wFMCommunicate OK [08:04:53]SAM_PROTO_GetShiftState done [08:04:53]FM_GetShiftState done [08:04:53]req_shift_opened done [08:04:53]requested_item shift.open_date is exist - process it [08:04:53]req_shift_open_date [08:04:53]req_shift_open_date done [08:04:53]produce_requested_data done [08:04:53]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49382,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [08:04:53]process_action_free close_receipt [08:04:53]json_value_free [08:04:53]json_value_free done [08:04:53]process_json_proto returns [08:04:53]Send response to host [08:04:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49382,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [08:04:53]free response buf [08:04:53]execute_script done [08:04:53]execute_script returns [08:04:53]free content buf [08:04:53]Sock 7.Close socket [08:04:53]Sock 7.Thread stoped [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:09]accept exits with 9 [08:07:09]New connection [08:07:09]New thread 3066973540 created [08:07:09]Thread 3066830180 joined [08:07:09]Waiting for new connection... [08:07:09] Sock 9.Parse request [08:07:09]Sock 9.Check first char [08:07:09]Sock 9.First char is OK [08:07:09]request: POST /json_proto HTTP/1.0 [08:07:09]Method: POST [08:07:09]URL: /json_proto [08:07:09]Method is POST - this is cgi request [08:07:09]url: /json_proto [08:07:09]query_string will be loaded in cgi processing [08:07:09]execute_cgi json_proto POST (null) [08:07:09]execute_cgi path=json_proto method=POST [08:07:09]POST find Content-Length [08:07:09]Host: 172.17.46.196:8080 [08:07:09]Content-Length: 645 [08:07:09]Content-Type: application/json [08:07:09] [08:07:09]POST finish read [08:07:09]Found Content-Length = 645 [08:07:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189622", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:09]execute_script... [08:07: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 : (3)189622", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:09]POST & json_proto [08:07:09]process_json_proto [08:07:09]json parsed OK: [08:07:09]protocol is kg_v1.0 [08:07:09]action value=close_receipt [08:07:09]process_action close_receipt [08:07:09]cmd_close_receipt [08:07:09]MH_GetDate [08:07:09]Write to MH i2c: F0 00 00 F1 32 12 [08:07:09]Write i2c OK [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: F0 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: F0 09 00 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: F0 09 00 F1 32 00 B1 08 BF 66 07 E8 5D 66 AB [08:07:09]GetLastDocTimeStamp 1723795492 [08:07:09]current date 1723795633 [08:07:09]FM_GetShiftState [08:07:09]SAM_PROTO_GetShiftState [08:07:09]wFMCommunicate request_size=4 [08:07:09]MH_SAM_APDU [08:07:09]CAPDU: 80 13 01 00 [08:07:09]Write to MH i2c: E2 08 00 F2 32 80 13 01 00 00 00 00 00 A1 [08:07:09]Write i2c OK [08:07:09]MH_I2C_Read... [08:07:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:09]Read from MH i2c: E2 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: E2 0E 00 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: E2 0E 00 F2 32 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 17 [08:07:09]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [08:07:09]wFMCommunicate OK [08:07:09]SAM_PROTO_GetShiftState done [08:07:09]FM_GetShiftState done [08:07:09]opened in 1723766958 [08:07:09]opened+sec_in_day 1723853358 [08:07:09]quantity*price = 6000 [08:07:09]sum+1 = 6001 [08:07:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 31 16.08.2024 08:07 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49383 ФПД: 199018933910282 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T080713&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49383&fm=199018933910282&tin=02508201610067®Number=0000000000092546&sum=6000 0 [08:07:10]StoreToDocumentArchive [08:07:10]shift 464 fd 49383 [08:07:10]save to /storage/0464/doc_00049383 [08:07:10]save last doc name /storage/0464/doc_00049383 to /storage/kkm_last_doc_name [08:07:10]save OK [08:07:10]Clear old archive folders... [08:07:10]ProcessDocumentItem done err = 0, tmpTLVsize=276 [08:07:10]tlvbuf is B6EDF3D0 [08:07:10]SAM_PROTO_ClearQueue [08:07:10]wFMCommunicate request_size=4 [08:07:10]MH_SAM_APDU [08:07:10]CAPDU: 80 09 00 00 [08:07:10]Write to MH i2c: E2 08 00 FF 32 80 09 00 00 00 00 00 00 A3 [08:07:10]Write i2c OK [08:07:10]MH_I2C_Read... [08:07:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:10]Read from MH i2c: E2 [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: E2 03 00 [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: E2 03 00 FF 32 00 90 00 A5 [08:07:10]RAPDU: 90 00 [08:07:10]wFMCommunicate OK [08:07:10]SAM_PROTO_ClearQueue done [08:07:10]KKMCreateOFDPacket [08:07:10]OFDProtocolAddRootSTLVToBuf [08:07:10]FM_MakeSignedData [08:07:10]FM_MakeSignedData [08:07:10]SAM_PROTO_SignData [08:07:10]wFMCommunicate request_size=4 [08:07:10]MH_SAM_APDU [08:07:10]CAPDU: 80 0D 01 02 [08:07:10]Write to MH i2c: E2 08 00 00 33 80 0D 01 02 00 00 00 00 AC [08:07:10]Write i2c OK [08:07:10]MH_I2C_Read... [08:07:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:10]Read from MH i2c: E2 [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: E2 03 00 [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: E2 03 00 00 33 00 90 00 A7 [08:07:10]RAPDU: 90 00 [08:07:10]wFMCommunicate OK [08:07:10]wFMCommunicate request_size=255 [08:07:10]MH_SAM_APDU [08:07:10]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 70 17 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 B1 08 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 [08:07:10]Write to MH i2c: E2 02 01 01 33 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 70 17 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 B1 08 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 00 00 B6 [08:07:10]Write i2c OK [08:07:10]MH_I2C_Read... [08:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:10]Read from MH i2c: E2 [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: E2 03 00 [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: E2 03 00 01 33 00 90 00 A8 [08:07:10]RAPDU: 90 00 [08:07:10]wFMCommunicate OK [08:07:10]wFMCommunicate request_size=35 [08:07:10]MH_SAM_APDU [08:07:10]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E7 C0 00 00 35 04 06 00 B5 01 B4 DB FB 0A [08:07:10]Write to MH i2c: E2 26 00 02 33 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E7 C0 00 00 35 04 06 00 B5 01 B4 DB FB 0A 00 00 8B [08:07:10]Write i2c OK [08:07:10]MH_I2C_Read... [08:07:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:10]Read from MH i2c: E2 [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: E2 03 00 [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: E2 03 00 02 33 00 90 00 A9 [08:07:10]RAPDU: 90 00 [08:07:10]wFMCommunicate OK [08:07:10]wFMCommunicate request_size=4 [08:07:10]MH_SAM_APDU [08:07:10]CAPDU: 80 0D 03 02 [08:07:10]Write to MH i2c: E2 08 00 03 33 80 0D 03 02 00 00 00 00 B1 [08:07:10]Write i2c OK [08:07:10]MH_I2C_Read... [08:07:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:10]Read from MH i2c: E2 [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: E2 0B 00 [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: E2 0B 00 03 33 00 5B 3E F2 9C E6 F4 54 92 90 00 99 [08:07:10]RAPDU: 5B 3E F2 9C E6 F4 54 92 90 00 [08:07:10]wFMCommunicate OK [08:07:10]SAM_PROTO_SignData done [08:07:10]FM_MakeSignedData done [08:07:10]CreateOFDProtocolMessage [08:07:10]wFMCommunicate request_size=4 [08:07:10]MH_SAM_APDU [08:07:10]CAPDU: 80 11 00 00 [08:07:10]Write to MH i2c: E2 08 00 04 33 80 11 00 00 00 00 00 00 B1 [08:07:10]Write i2c OK [08:07:10]MH_I2C_Read... [08:07:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:10]Read from MH i2c: E2 [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: E2 17 00 [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: E2 17 00 04 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FC [08:07:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:07:10]wFMCommunicate OK [08:07:10]CreateOFDProtocolMessage done [08:07:10]OFDSenderStorePacket 49383 [08:07:10]StoreOFDPacket docnum=49383 [08:07:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 2A 7A 20 01 A4 B2 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 70 17 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 B1 08 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E7 C0 00 00 35 04 06 00 B5 01 B4 DB FB 0A 5B 3E F2 9C E6 F4 54 92 [08:07:10]CheckFolder [08:07:10]dirname=/storage/ofd_packets [08:07:10]CheckFolder done [08:07:10]ProducePacketName [08:07:10]name=ofd_packets/00049383 [08:07:10]NVStorageSaveData ofd_packets/00049383 [08:07:10]File name is /storage/ofd_packets/00049383 [08:07:10]Write 326 bytes [08:07:10]NVStorageSaveData done [08:07:10]OFDSenderStorePacket done [08:07:10]KKMCreateOFDPacket done [08:07:10]NVStorageSaveData kkm_last_timestamp [08:07:10]File name is /storage/kkm_last_timestamp [08:07:10]Write 4 bytes [08:07:10]NVStorageSaveData done [08:07:10]ExternCall_PrintAddStr [08:07:10]wPrintStart [08:07:10]Write to MH i2c: 01 00 00 05 33 38 [08:07:10]Write i2c OK [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: 01 [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: 01 07 00 [08:07:10]MH_I2C_Read... [08:07:10]Read from MH i2c: 01 07 00 05 33 00 00 00 00 00 FF 0F 4D [08:07:10]RasterBufferAndPrint [08:07:10]line Счет N : (3)189622 [08:07:10]line ИНН: 02508201610067 [08:07:10]line Контрольно-Кассовый Чек [08:07:10]line ПРОДАЖА [08:07:10]line Товар: 4700000310043 [08:07:10]line Вода Жалалабат 27 1л [08:07:10]line 1.000 * 60.00 [08:07:10]line = 60.00 [08:07:10]line НДС 12% НСП 1% [08:07:10]line > о реализуемом товаре [08:07:10]line ИТОГО: 60.00 [08:07:10]line НСП 1% : 0.53 [08:07:10]line НДС 12% : 6.37 [08:07:10]line Наличными: 60.00 [08:07:10]line Безнал.: 0.00 [08:07:10]line Место: АЗС № 95 "Партнер Нефть" [08:07:10]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:07:10]line СНО: Общий режим [08:07:10]line Чек 31 16.08.2024 08:07 [08:07:10]line Смена: 464 ФФД: 1.0 [08:07:10]line ЗНМ: 0300000078 [08:07:10]line РНМ: 0000000000092546 [08:07:10]line Версия ККМ: 001 [08:07:10]line ФМ: 0000000000871800 [08:07:10]line ФД: 49383 [08:07:10]line ФПД: 199018933910282 [08:07:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T080713&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49383&fm=199018933910282&tin=02508201610067®Number=0000000000092546&sum=6000 [08:07:11]OFD Sender: Processing packet 49383 [packets to send 21, broken 20] [08:07:11]ProducePacketName [08:07:11]name=ofd_packets/00049383 [08:07:11]OFD Sender: To server: pG, [08:07:11]CommunicateWithHost lk.salyk.kg:30040 [08:07:11]ConnectInit lk.salyk.kg [08:07:11]line 0 [08:07:11]written 0, free lines is 4095 [08:07:11]Connected sock=10 [08:07:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 2A 7A 20 01 A4 B2 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 70 17 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 B1 08 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E7 C0 00 00 35 04 06 00 B5 01 B4 DB FB 0A 5B 3E F2 9C E6 F4 54 92 [08:07:11]Write to MH i2c: 01 00 00 2D 33 60 [08:07:11]Write i2c OK [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: 01 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: 01 07 00 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: 01 07 00 2D 33 00 00 00 00 00 EB 0C 5E [08:07:11]RasterBufferAndPrint [08:07:11]line [08:07:11]line [08:07:11]line [08:07:11]line [08:07:11]line [08:07:11]written 0, free lines is 3313 [08:07:11]MH_Cut [08:07:11]Write to MH i2c: D1 01 00 34 33 01 39 [08:07:11]Write i2c OK [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: D1 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: D1 01 00 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: D1 01 00 34 33 00 38 [08:07:11]Write to MH i2c: 01 00 00 35 33 68 [08:07:11]Write i2c OK [08:07:11]MH_I2C_Read... [08:07:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 BD C9 47 00 C4 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E7 C0 00 00 F4 03 04 00 F1 B3 BE 66 B6 04 01 00 00 FA 9E 8F 05 29 2E 63 1A [08:07:11]CommunicateWithHost err = 0 [08:07:11]CheckOFDResponse [08:07:11]1017 (14) - 77093643461234 [08:07:11]1041 (16) - 0000000000871800 [08:07:11]1040 (4) - 49383 [08:07:11]1012 (4) - 16.08.2024 02:05 [08:07:11]1206 (1) - 0 [08:07:11]OFD Sender: Remove packet 49383 [08:07:11]ProducePacketName [08:07:11]name=ofd_packets/00049383 [08:07:11]NVStorageDeleteData [08:07:12]OFD Sender: No OFD packet to send [08:07:12]*** Cut start [08:07:12]*** Purtial cut [08:07:12]*** Stage 1: CUTSNS_PIN = 1 [08:07:12]Read from MH i2c: 01 [08:07:12]MH_I2C_Read... [08:07:12]*** Stop cut motor [08:07:12]*** Cut end [08:07:12]Read from MH i2c: 01 07 00 [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: 01 07 00 35 33 00 00 00 00 00 FF 0F 7D [08:07:12]process_action close_receipt done [08:07:12]requested_data is exist [08:07:12]produce_requested_data [08:07:12]requested_item fm.sn is exist - process it [08:07:12]wFMCommunicate request_size=4 [08:07:12]MH_SAM_APDU [08:07:12]CAPDU: 80 11 00 00 [08:07:12]Write to MH i2c: E2 08 00 36 33 80 11 00 00 00 00 00 00 E3 [08:07:12]Write i2c OK [08:07:12]MH_I2C_Read... [08:07:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:12]Read from MH i2c: E2 [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: E2 17 00 [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: E2 17 00 36 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2E [08:07:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:07:12]wFMCommunicate OK [08:07:12]requested_item fd.num is exist - process it [08:07:12]SAM_PROTO_GetFieldsCounters [08:07:12]wFMCommunicate request_size=4 [08:07:12]MH_SAM_APDU [08:07:12]CAPDU: 80 13 00 00 [08:07:12]Write to MH i2c: E2 08 00 37 33 80 13 00 00 00 00 00 00 E6 [08:07:12]Write i2c OK [08:07:12]MH_I2C_Read... [08:07:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:12]Read from MH i2c: E2 [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: E2 62 00 [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: E2 62 00 37 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E7 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [08:07:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E7 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:07:12]wFMCommunicate OK [08:07:12]SAM_PROTO_GetFieldsCounters done [08:07:12]requested_item shift.num is exist - process it [08:07:12]requested_item shift.opened is exist - process it [08:07:12]req_shift_opened [08:07:12]FM_GetShiftState [08:07:12]SAM_PROTO_GetShiftState [08:07:12]wFMCommunicate request_size=4 [08:07:12]MH_SAM_APDU [08:07:12]CAPDU: 80 13 01 00 [08:07:12]Write to MH i2c: E2 08 00 38 33 80 13 01 00 00 00 00 00 E8 [08:07:12]Write i2c OK [08:07:12]MH_I2C_Read... [08:07:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:13]Read from MH i2c: E2 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: E2 0E 00 [08:07:13]MH_I2C_Read... [08:07:13]Read from MH i2c: E2 0E 00 38 33 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 5E [08:07:13]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [08:07:13]wFMCommunicate OK [08:07:13]SAM_PROTO_GetShiftState done [08:07:13]FM_GetShiftState done [08:07:13]req_shift_opened done [08:07:13]requested_item shift.open_date is exist - process it [08:07:13]req_shift_open_date [08:07:13]req_shift_open_date done [08:07:13]produce_requested_data done [08:07:13]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49383,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [08:07:13]process_action_free close_receipt [08:07:13]json_value_free [08:07:13]json_value_free done [08:07:13]process_json_proto returns [08:07:13]Send response to host [08:07:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49383,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [08:07:13]free response buf [08:07:13]execute_script done [08:07:13]execute_script returns [08:07:13]free content buf [08:07:13]Sock 9.Close socket [08:07:13]Sock 9.Thread stoped [08:07:17]OFD Sender: No OFD packet to send [08:07:22]OFD Sender: No OFD packet to send [08:07:27]OFD Sender: No OFD packet to send [08:07:32]OFD Sender: No OFD packet to send [08:07:37]OFD Sender: No OFD packet to send [08:07:42]OFD Sender: No OFD packet to send [08:07:47]OFD Sender: No OFD packet to send [08:07:52]OFD Sender: No OFD packet to send [08:07:57]OFD Sender: No OFD packet to send [08:08:02]OFD Sender: No OFD packet to send [08:08:07]OFD Sender: No OFD packet to send [08:08:12]OFD Sender: No OFD packet to send [08:08:17]OFD Sender: No OFD packet to send [08:08:22]OFD Sender: No OFD packet to send [08:08:27]OFD Sender: No OFD packet to send [08:08:32]OFD Sender: No OFD packet to send [08:08:37]OFD Sender: No OFD packet to send [08:08:42]OFD Sender: No OFD packet to send [08:08:47]OFD Sender: No OFD packet to send [08:08:52]OFD Sender: No OFD packet to send [08:08:57]OFD Sender: No OFD packet to send [08:09:02]OFD Sender: No OFD packet to send [08:09:07]OFD Sender: No OFD packet to send [08:09:12]OFD Sender: No OFD packet to send [08:09:17]OFD Sender: No OFD packet to send [08:09:22]OFD Sender: No OFD packet to send [08:09:27]OFD Sender: No OFD packet to send [08:09:29]accept exits with 7 [08:09:29]New connection [08:09:29]New thread 3066830180 created [08:09:29]Thread 3066973540 joined [08:09:29]Waiting for new connection... [08:09:29] Sock 7.Parse request [08:09:29]Sock 7.Check first char [08:09:29]Sock 7.First char is OK [08:09:29]request: POST /json_proto HTTP/1.0 [08:09:29]Method: POST [08:09:29]URL: /json_proto [08:09:29]Method is POST - this is cgi request [08:09:29]url: /json_proto [08:09:29]query_string will be loaded in cgi processing [08:09:29]execute_cgi json_proto POST (null) [08:09:29]execute_cgi path=json_proto method=POST [08:09:29]POST find Content-Length [08:09:29]Host: 172.17.46.196:8080 [08:09:29]Content-Length: 644 [08:09:29]Content-Type: application/json [08:09:29] [08:09:29]POST finish read [08:09:29]Found Content-Length = 644 [08:09:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189623", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:29]execute_script... [08: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 : (3)189623", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:29]POST & json_proto [08:09:29]process_json_proto [08:09:29]json parsed OK: [08:09:29]protocol is kg_v1.0 [08:09:29]action value=close_receipt [08:09:29]process_action close_receipt [08:09:29]cmd_close_receipt [08:09:29]MH_GetDate [08:09:29]Write to MH i2c: F0 00 00 39 33 5B [08:09:29]Write i2c OK [08:09:29]MH_I2C_Read... [08:09:29]Read from MH i2c: F0 [08:09:29]MH_I2C_Read... [08:09:29]Read from MH i2c: F0 09 00 [08:09:29]MH_I2C_Read... [08:09:29]Read from MH i2c: F0 09 00 39 33 00 3D 09 BF 66 07 E8 5D 66 81 [08:09:29]GetLastDocTimeStamp 1723795633 [08:09:29]current date 1723795773 [08:09:29]FM_GetShiftState [08:09:29]SAM_PROTO_GetShiftState [08:09:29]wFMCommunicate request_size=4 [08:09:29]MH_SAM_APDU [08:09:29]CAPDU: 80 13 01 00 [08:09:29]Write to MH i2c: E2 08 00 3A 33 80 13 01 00 00 00 00 00 EA [08:09:29]Write i2c OK [08:09:29]MH_I2C_Read... [08:09:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:29]Read from MH i2c: E2 [08:09:29]MH_I2C_Read... [08:09:29]Read from MH i2c: E2 0E 00 [08:09:29]MH_I2C_Read... [08:09:29]Read from MH i2c: E2 0E 00 3A 33 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 60 [08:09:29]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [08:09:29]wFMCommunicate OK [08:09:29]SAM_PROTO_GetShiftState done [08:09:29]FM_GetShiftState done [08:09:29]opened in 1723766958 [08:09:29]opened+sec_in_day 1723853358 [08:09:29]quantity*price = 3500 [08:09:29]sum+1 = 3501 [08:09:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 32 16.08.2024 08:09 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49384 ФПД: 184713506694732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T080933&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49384&fm=184713506694732&tin=02508201610067®Number=0000000000092546&sum=3500 0 [08:09:30]StoreToDocumentArchive [08:09:30]shift 464 fd 49384 [08:09:30]save to /storage/0464/doc_00049384 [08:09:30]save last doc name /storage/0464/doc_00049384 to /storage/kkm_last_doc_name [08:09:30]save OK [08:09:30]Clear old archive folders... [08:09:30]ProcessDocumentItem done err = 0, tmpTLVsize=275 [08:09:30]tlvbuf is 00ECA750 [08:09:30]SAM_PROTO_ClearQueue [08:09:30]wFMCommunicate request_size=4 [08:09:30]MH_SAM_APDU [08:09:30]CAPDU: 80 09 00 00 [08:09:30]Write to MH i2c: E2 08 00 47 33 80 09 00 00 00 00 00 00 EC [08:09:30]Write i2c OK [08:09:30]MH_I2C_Read... [08:09:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:30]Read from MH i2c: E2 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 03 00 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 03 00 47 33 00 90 00 EE [08:09:30]RAPDU: 90 00 [08:09:30]wFMCommunicate OK [08:09:30]SAM_PROTO_ClearQueue done [08:09:30]KKMCreateOFDPacket [08:09:30]OFDProtocolAddRootSTLVToBuf [08:09:30]FM_MakeSignedData [08:09:30]FM_MakeSignedData [08:09:30]SAM_PROTO_SignData [08:09:30]wFMCommunicate request_size=4 [08:09:30]MH_SAM_APDU [08:09:30]CAPDU: 80 0D 01 02 [08:09:30]Write to MH i2c: E2 08 00 48 33 80 0D 01 02 00 00 00 00 F4 [08:09:30]Write i2c OK [08:09:30]MH_I2C_Read... [08:09:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:30]Read from MH i2c: E2 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 03 00 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 03 00 48 33 00 90 00 EF [08:09:30]RAPDU: 90 00 [08:09:30]wFMCommunicate OK [08:09:30]wFMCommunicate request_size=255 [08:09:30]MH_SAM_APDU [08:09:30]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 3D 09 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [08:09:30]Write to MH i2c: E2 02 01 49 33 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 3D 09 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 39 [08:09:30]Write i2c OK [08:09:30]MH_I2C_Read... [08:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:30]Read from MH i2c: E2 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 03 00 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 03 00 49 33 00 90 00 F0 [08:09:30]RAPDU: 90 00 [08:09:30]wFMCommunicate OK [08:09:30]wFMCommunicate request_size=34 [08:09:30]MH_SAM_APDU [08:09:30]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E8 C0 00 00 35 04 06 00 A7 FE F6 F3 A6 4C [08:09:30]Write to MH i2c: E2 25 00 4A 33 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E8 C0 00 00 35 04 06 00 A7 FE F6 F3 A6 4C 00 00 D8 [08:09:30]Write i2c OK [08:09:30]MH_I2C_Read... [08:09:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:30]Read from MH i2c: E2 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 03 00 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 03 00 4A 33 00 90 00 F1 [08:09:30]RAPDU: 90 00 [08:09:30]wFMCommunicate OK [08:09:30]wFMCommunicate request_size=4 [08:09:30]MH_SAM_APDU [08:09:30]CAPDU: 80 0D 03 02 [08:09:30]Write to MH i2c: E2 08 00 4B 33 80 0D 03 02 00 00 00 00 F9 [08:09:30]Write i2c OK [08:09:30]MH_I2C_Read... [08:09:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:30]Read from MH i2c: E2 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 0B 00 [08:09:30]MH_I2C_Read... [08:09:30]Read from MH i2c: E2 0B 00 4B 33 00 14 35 84 BA 66 7B A5 35 90 00 3C [08:09:30]RAPDU: 14 35 84 BA 66 7B A5 35 90 00 [08:09:30]wFMCommunicate OK [08:09:30]SAM_PROTO_SignData done [08:09:30]FM_MakeSignedData done [08:09:30]CreateOFDProtocolMessage [08:09:30]wFMCommunicate request_size=4 [08:09:30]MH_SAM_APDU [08:09:30]CAPDU: 80 11 00 00 [08:09:30]Write to MH i2c: E2 08 00 4C 33 80 11 00 00 00 00 00 00 F9 [08:09:30]Write i2c OK [08:09:30]MH_I2C_Read... [08:09:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:31]Read from MH i2c: E2 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: E2 17 00 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: E2 17 00 4C 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 44 [08:09:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:09:31]wFMCommunicate OK [08:09:31]CreateOFDProtocolMessage done [08:09:31]OFDSenderStorePacket 49384 [08:09:31]StoreOFDPacket docnum=49384 [08:09:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 9E 0E 1F 01 D5 F1 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 3D 09 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E8 C0 00 00 35 04 06 00 A7 FE F6 F3 A6 4C 14 35 84 BA 66 7B A5 35 [08:09:31]CheckFolder [08:09:31]dirname=/storage/ofd_packets [08:09:31]CheckFolder done [08:09:31]ProducePacketName [08:09:31]name=ofd_packets/00049384 [08:09:31]NVStorageSaveData ofd_packets/00049384 [08:09:31]File name is /storage/ofd_packets/00049384 [08:09:31]Write 325 bytes [08:09:31]NVStorageSaveData done [08:09:31]OFDSenderStorePacket done [08:09:31]KKMCreateOFDPacket done [08:09:31]NVStorageSaveData kkm_last_timestamp [08:09:31]File name is /storage/kkm_last_timestamp [08:09:31]Write 4 bytes [08:09:31]NVStorageSaveData done [08:09:31]ExternCall_PrintAddStr [08:09:31]wPrintStart [08:09:31]Write to MH i2c: 01 00 00 4D 33 80 [08:09:31]Write i2c OK [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: 01 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: 01 07 00 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: 01 07 00 4D 33 00 00 00 00 00 FF 0F 95 [08:09:31]RasterBufferAndPrint [08:09:31]line Счет N : (3)189623 [08:09:31]line ИНН: 02508201610067 [08:09:31]line Контрольно-Кассовый Чек [08:09:31]line ПРОДАЖА [08:09:31]line Товар: 4700000310326 [08:09:31]line Вода Адыгене 1л б/г [08:09:31]line 1.000 * 35.00 [08:09:31]line = 35.00 [08:09:31]line НДС 12% НСП 1% [08:09:31]line > о реализуемом товаре [08:09:31]line ИТОГО: 35.00 [08:09:31]line НСП 1% : 0.31 [08:09:31]line НДС 12% : 3.72 [08:09:31]line Наличными: 35.00 [08:09:31]line Безнал.: 0.00 [08:09:31]line Место: АЗС № 95 "Партнер Нефть" [08:09:31]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:09:31]line СНО: Общий режим [08:09:31]line Чек 32 16.08.2024 08:09 [08:09:31]line Смена: 464 ФФД: 1.0 [08:09:31]line ЗНМ: 0300000078 [08:09:31]line РНМ: 0000000000092546 [08:09:31]line Версия ККМ: 001 [08:09:31]line ФМ: 0000000000871800 [08:09:31]line ФД: 49384 [08:09:31]line ФПД: 184713506694732 [08:09:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T080933&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49384&fm=184713506694732&tin=02508201610067®Number=0000000000092546&sum=3500 [08:09:31]line 0 [08:09:31]OFD Sender: Processing packet 49384 [packets to send 21, broken 20] [08:09:31]ProducePacketName [08:09:31]name=ofd_packets/00049384 [08:09:31]OFD Sender: To server: pG, [08:09:31]CommunicateWithHost lk.salyk.kg:30040 [08:09:31]ConnectInit lk.salyk.kg [08:09:31]written 0, free lines is 4095 [08:09:31]Connected sock=10 [08:09:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 9E 0E 1F 01 D5 F1 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 3D 09 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E8 C0 00 00 35 04 06 00 A7 FE F6 F3 A6 4C 14 35 84 BA 66 7B A5 35 [08:09:31]Write to MH i2c: 01 00 00 75 33 A8 [08:09:31]Write i2c OK [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: 01 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: 01 07 00 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: 01 07 00 75 33 00 00 00 00 00 E7 0C A2 [08:09:31]RasterBufferAndPrint [08:09:31]line [08:09:31]line [08:09:31]line [08:09:31]line [08:09:31]line [08:09:31]written 0, free lines is 3312 [08:09:31]MH_Cut [08:09:31]Write to MH i2c: D1 01 00 7C 33 01 81 [08:09:31]Write i2c OK [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: D1 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: D1 01 00 [08:09:31]MH_I2C_Read... [08:09:31]Read from MH i2c: D1 01 00 7C 33 00 80 [08:09:31]Write to MH i2c: 01 00 00 7D 33 B0 [08:09:31]Write i2c OK [08:09:31]MH_I2C_Read... [08:09:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E3 DA 47 00 A1 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E8 C0 00 00 F4 03 04 00 7D B4 BE 66 B6 04 01 00 00 07 42 BE 00 C0 74 F8 82 [08:09:31]CommunicateWithHost err = 0 [08:09:31]CheckOFDResponse [08:09:31]1017 (14) - 77093643461234 [08:09:31]1041 (16) - 0000000000871800 [08:09:31]1040 (4) - 49384 [08:09:31]1012 (4) - 16.08.2024 02:07 [08:09:31]1206 (1) - 0 [08:09:31]OFD Sender: Remove packet 49384 [08:09:31]ProducePacketName [08:09:31]name=ofd_packets/00049384 [08:09:31]NVStorageDeleteData [08:09:32]OFD Sender: No OFD packet to send [08:09:32]*** Cut start [08:09:32]*** Purtial cut [08:09:32]*** CUTSNS_PIN = 0 [08:09:32]*** Stage 1: CUTSNS_PIN = 1 [08:09:34]Read from MH i2c: 01 [08:09:34]MH_I2C_Read... [08:09:34]*** Stop cut motor [08:09:34]*** Cut end [08:09:34]Read from MH i2c: 01 07 00 [08:09:34]MH_I2C_Read... [08:09:34]Read from MH i2c: 01 07 00 7D 33 00 00 00 00 00 FF 0F C5 [08:09:34]process_action close_receipt done [08:09:34]requested_data is exist [08:09:34]produce_requested_data [08:09:34]requested_item fm.sn is exist - process it [08:09:34]wFMCommunicate request_size=4 [08:09:34]MH_SAM_APDU [08:09:34]CAPDU: 80 11 00 00 [08:09:34]Write to MH i2c: E2 08 00 7E 33 80 11 00 00 00 00 00 00 2B [08:09:34]Write i2c OK [08:09:34]MH_I2C_Read... [08:09:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:34]Read from MH i2c: E2 [08:09:34]MH_I2C_Read... [08:09:34]Read from MH i2c: E2 17 00 [08:09:34]MH_I2C_Read... [08:09:34]Read from MH i2c: E2 17 00 7E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 76 [08:09:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:09:34]wFMCommunicate OK [08:09:34]requested_item fd.num is exist - process it [08:09:34]SAM_PROTO_GetFieldsCounters [08:09:34]wFMCommunicate request_size=4 [08:09:34]MH_SAM_APDU [08:09:34]CAPDU: 80 13 00 00 [08:09:34]Write to MH i2c: E2 08 00 7F 33 80 13 00 00 00 00 00 00 2E [08:09:34]Write i2c OK [08:09:34]MH_I2C_Read... [08:09:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:34]Read from MH i2c: E2 [08:09:34]MH_I2C_Read... [08:09:34]Read from MH i2c: E2 62 00 [08:09:34]MH_I2C_Read... [08:09:34]Read from MH i2c: E2 62 00 7F 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E8 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [08:09:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E8 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:09:34]wFMCommunicate OK [08:09:34]SAM_PROTO_GetFieldsCounters done [08:09:34]requested_item shift.num is exist - process it [08:09:34]requested_item shift.opened is exist - process it [08:09:34]req_shift_opened [08:09:34]FM_GetShiftState [08:09:34]SAM_PROTO_GetShiftState [08:09:34]wFMCommunicate request_size=4 [08:09:34]MH_SAM_APDU [08:09:34]CAPDU: 80 13 01 00 [08:09:34]Write to MH i2c: E2 08 00 80 33 80 13 01 00 00 00 00 00 30 [08:09:34]Write i2c OK [08:09:34]MH_I2C_Read... [08:09:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:34]Read from MH i2c: E2 [08:09:34]MH_I2C_Read... [08:09:34]Read from MH i2c: E2 0E 00 [08:09:34]MH_I2C_Read... [08:09:34]Read from MH i2c: E2 0E 00 80 33 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 A6 [08:09:34]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [08:09:34]wFMCommunicate OK [08:09:34]SAM_PROTO_GetShiftState done [08:09:34]FM_GetShiftState done [08:09:34]req_shift_opened done [08:09:34]requested_item shift.open_date is exist - process it [08:09:34]req_shift_open_date [08:09:34]req_shift_open_date done [08:09:34]produce_requested_data done [08:09:34]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49384,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [08:09:34]process_action_free close_receipt [08:09:34]json_value_free [08:09:34]json_value_free done [08:09:34]process_json_proto returns [08:09:34]Send response to host [08:09:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49384,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [08:09:34]free response buf [08:09:34]execute_script done [08:09:34]execute_script returns [08:09:34]free content buf [08:09:34]Sock 7.Close socket [08:09:34]Sock 7.Thread stoped [08:09:37]OFD Sender: No OFD packet to send [08:09:42]OFD Sender: No OFD packet to send [08:09:47]OFD Sender: No OFD packet to send [08:09:52]OFD Sender: No OFD packet to send [08:09:57]OFD Sender: No OFD packet to send [08:10:02]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:17]OFD Sender: No OFD packet to send [08:10:22]OFD Sender: No OFD packet to send [08:10:27]OFD Sender: No OFD packet to send [08:10:32]OFD Sender: No OFD packet to send [08:10:37]OFD Sender: No OFD packet to send [08:10:42]OFD Sender: No OFD packet to send [08:10:47]OFD Sender: No OFD packet to send [08:10:52]OFD Sender: No OFD packet to send [08:10:57]OFD Sender: No OFD packet to send [08:11:02]OFD Sender: No OFD packet to send [08:11:07]OFD Sender: No OFD packet to send [08:11:12]OFD Sender: No OFD packet to send [08:11:17]OFD Sender: No OFD packet to send [08:11:22]OFD Sender: No OFD packet to send [08:11:27]OFD Sender: No OFD packet to send [08:11:32]OFD Sender: No OFD packet to send [08:11:37]OFD Sender: No OFD packet to send [08:11:42]OFD Sender: No OFD packet to send [08:11:47]OFD Sender: No OFD packet to send [08:11:52]OFD Sender: No OFD packet to send [08:11:57]OFD Sender: No OFD packet to send [08:12:02]OFD Sender: No OFD packet to send [08:12:07]OFD Sender: No OFD packet to send [08:12:12]OFD Sender: No OFD packet to send [08:12:17]OFD Sender: No OFD packet to send [08:12:22]OFD Sender: No OFD packet to send [08:12:27]OFD Sender: No OFD packet to send [08:12:32]OFD Sender: No OFD packet to send [08:12:37]OFD Sender: No OFD packet to send [08:12:42]OFD Sender: No OFD packet to send [08:12:47]OFD Sender: No OFD packet to send [08:12:52]OFD Sender: No OFD packet to send [08:12:57]OFD Sender: No OFD packet to send [08:13:02]OFD Sender: No OFD packet to send [08:13:07]OFD Sender: No OFD packet to send [08:13:12]OFD Sender: No OFD packet to send [08:13:17]OFD Sender: No OFD packet to send [08:13:22]OFD Sender: No OFD packet to send [08:13:27]OFD Sender: No OFD packet to send [08:13:32]OFD Sender: No OFD packet to send [08:13:37]OFD Sender: No OFD packet to send [08:13:42]OFD Sender: No OFD packet to send [08:13:47]OFD Sender: No OFD packet to send [08:13:52]accept exits with 9 [08:13:52]New connection [08:13:52]New thread 3066973540 created [08:13:52]Thread 3066830180 joined [08:13:52]Waiting for new connection... [08:13:52] Sock 9.Parse request [08:13:52]Sock 9.Check first char [08:13:52]Sock 9.First char is OK [08:13:52]request: POST /json_proto HTTP/1.0 [08:13:52]Method: POST [08:13:52]URL: /json_proto [08:13:52]Method is POST - this is cgi request [08:13:52]url: /json_proto [08:13:52]query_string will be loaded in cgi processing [08:13:52]execute_cgi json_proto POST (null) [08:13:52]execute_cgi path=json_proto method=POST [08:13:52]POST find Content-Length [08:13:52]Host: 172.17.46.196:8080 [08:13:52]Content-Length: 623 [08:13:52]Content-Type: application/json [08:13:52] [08:13:52]POST finish read [08:13:52]Found Content-Length = 623 [08:13:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189624", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:52]execute_script... [08:13: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 : (3)189624", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:13:52]POST & json_proto [08:13:52]process_json_proto [08:13:52]json parsed OK: [08:13:52]protocol is kg_v1.0 [08:13:52]action value=close_receipt [08:13:52]process_action close_receipt [08:13:52]cmd_close_receipt [08:13:52]MH_GetDate [08:13:52]Write to MH i2c: F0 00 00 81 33 A3 [08:13:52]Write i2c OK [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: F0 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: F0 09 00 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: F0 09 00 81 33 00 44 0A BF 66 07 E8 5D 66 D1 [08:13:52]GetLastDocTimeStamp 1723795773 [08:13:52]current date 1723796036 [08:13:52]FM_GetShiftState [08:13:52]SAM_PROTO_GetShiftState [08:13:52]wFMCommunicate request_size=4 [08:13:52]MH_SAM_APDU [08:13:52]CAPDU: 80 13 01 00 [08:13:52]Write to MH i2c: E2 08 00 82 33 80 13 01 00 00 00 00 00 32 [08:13:52]Write i2c OK [08:13:52]MH_I2C_Read... [08:13:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:52]Read from MH i2c: E2 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: E2 0E 00 [08:13:52]MH_I2C_Read... [08:13:52]Read from MH i2c: E2 0E 00 82 33 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 A8 [08:13:52]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [08:13:52]wFMCommunicate OK [08:13:52]SAM_PROTO_GetShiftState done [08:13:52]FM_GetShiftState done [08:13:52]opened in 1723766958 [08:13:52]opened+sec_in_day 1723853358 [08:13:52]quantity*price = 14000 [08:13:52]sum+1 = 14001 [08:13:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 33 16.08.2024 08:13 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49385 ФПД: 99617803737196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T081356&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49385&fm=99617803737196&tin=02508201610067®Number=0000000000092546&sum=14000 0 [08:13:53]StoreToDocumentArchive [08:13:53]shift 464 fd 49385 [08:13:53]save to /storage/0464/doc_00049385 [08:13:53]save last doc name /storage/0464/doc_00049385 to /storage/kkm_last_doc_name [08:13:53]save OK [08:13:53]Clear old archive folders... [08:13:53]ProcessDocumentItem done err = 0, tmpTLVsize=275 [08:13:53]tlvbuf is 00E1E780 [08:13:53]SAM_PROTO_ClearQueue [08:13:53]wFMCommunicate request_size=4 [08:13:53]MH_SAM_APDU [08:13:53]CAPDU: 80 09 00 00 [08:13:53]Write to MH i2c: E2 08 00 8F 33 80 09 00 00 00 00 00 00 34 [08:13:53]Write i2c OK [08:13:53]MH_I2C_Read... [08:13:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:13:53]Read from MH i2c: E2 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 03 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 03 00 8F 33 00 90 00 36 [08:13:53]RAPDU: 90 00 [08:13:53]wFMCommunicate OK [08:13:53]SAM_PROTO_ClearQueue done [08:13:53]KKMCreateOFDPacket [08:13:53]OFDProtocolAddRootSTLVToBuf [08:13:53]FM_MakeSignedData [08:13:53]FM_MakeSignedData [08:13:53]SAM_PROTO_SignData [08:13:53]wFMCommunicate request_size=4 [08:13:53]MH_SAM_APDU [08:13:53]CAPDU: 80 0D 01 02 [08:13:53]Write to MH i2c: E2 08 00 90 33 80 0D 01 02 00 00 00 00 3C [08:13:53]Write i2c OK [08:13:53]MH_I2C_Read... [08:13:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:13:53]Read from MH i2c: E2 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 03 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 03 00 90 33 00 90 00 37 [08:13:53]RAPDU: 90 00 [08:13:53]wFMCommunicate OK [08:13:53]wFMCommunicate request_size=255 [08:13:53]MH_SAM_APDU [08:13:53]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 44 0A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [08:13:53]Write to MH i2c: E2 02 01 91 33 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 44 0A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 32 [08:13:53]Write i2c OK [08:13:53]MH_I2C_Read... [08:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:53]Read from MH i2c: E2 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 03 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 03 00 91 33 00 90 00 38 [08:13:53]RAPDU: 90 00 [08:13:53]wFMCommunicate OK [08:13:53]wFMCommunicate request_size=34 [08:13:53]MH_SAM_APDU [08:13:53]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E9 C0 00 00 35 04 06 00 5A 9A 13 CE 18 6C [08:13:53]Write to MH i2c: E2 25 00 92 33 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E9 C0 00 00 35 04 06 00 5A 9A 13 CE 18 6C 00 00 FA [08:13:53]Write i2c OK [08:13:53]MH_I2C_Read... [08:13:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:13:53]Read from MH i2c: E2 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 03 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 03 00 92 33 00 90 00 39 [08:13:53]RAPDU: 90 00 [08:13:53]wFMCommunicate OK [08:13:53]wFMCommunicate request_size=4 [08:13:53]MH_SAM_APDU [08:13:53]CAPDU: 80 0D 03 02 [08:13:53]Write to MH i2c: E2 08 00 93 33 80 0D 03 02 00 00 00 00 41 [08:13:53]Write i2c OK [08:13:53]MH_I2C_Read... [08:13:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:13:53]Read from MH i2c: E2 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 0B 00 [08:13:53]MH_I2C_Read... [08:13:53]Read from MH i2c: E2 0B 00 93 33 00 0C AC BD 81 81 8E 99 C1 90 00 A1 [08:13:53]RAPDU: 0C AC BD 81 81 8E 99 C1 90 00 [08:13:53]wFMCommunicate OK [08:13:53]SAM_PROTO_SignData done [08:13:53]FM_MakeSignedData done [08:13:53]CreateOFDProtocolMessage [08:13:53]wFMCommunicate request_size=4 [08:13:53]MH_SAM_APDU [08:13:53]CAPDU: 80 11 00 00 [08:13:53]Write to MH i2c: E2 08 00 94 33 80 11 00 00 00 00 00 00 41 [08:13:53]Write i2c OK [08:13:53]MH_I2C_Read... [08:13:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:54]Read from MH i2c: E2 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 17 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: E2 17 00 94 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 8C [08:13:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:13:54]wFMCommunicate OK [08:13:54]CreateOFDProtocolMessage done [08:13:54]OFDSenderStorePacket 49385 [08:13:54]StoreOFDPacket docnum=49385 [08:13:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 2D 63 1F 01 4D C5 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 44 0A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E9 C0 00 00 35 04 06 00 5A 9A 13 CE 18 6C 0C AC BD 81 81 8E 99 C1 [08:13:54]CheckFolder [08:13:54]dirname=/storage/ofd_packets [08:13:54]CheckFolder done [08:13:54]ProducePacketName [08:13:54]name=ofd_packets/00049385 [08:13:54]NVStorageSaveData ofd_packets/00049385 [08:13:54]File name is /storage/ofd_packets/00049385 [08:13:54]Write 325 bytes [08:13:54]NVStorageSaveData done [08:13:54]OFDSenderStorePacket done [08:13:54]KKMCreateOFDPacket done [08:13:54]NVStorageSaveData kkm_last_timestamp [08:13:54]File name is /storage/kkm_last_timestamp [08:13:54]Write 4 bytes [08:13:54]NVStorageSaveData done [08:13:54]ExternCall_PrintAddStr [08:13:54]wPrintStart [08:13:54]Write to MH i2c: 01 00 00 95 33 C8 [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: 01 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: 01 07 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: 01 07 00 95 33 00 00 00 00 00 FF 0F DD [08:13:54]RasterBufferAndPrint [08:13:54]line Счет N : (3)189624 [08:13:54]line ИНН: 02508201610067 [08:13:54]line Контрольно-Кассовый Чек [08:13:54]line ПРОДАЖА [08:13:54]line Товар: 48743587 [08:13:54]line Сигареты Winston XStyle Silver [08:13:54]line 1.000 * 140.00 [08:13:54]line = 140.00 [08:13:54]line НДС 12% НСП 1% [08:13:54]line > о реализуемом товаре [08:13:54]line ИТОГО: 140.00 [08:13:54]line НСП 1% : 1.24 [08:13:54]line НДС 12% : 14.87 [08:13:54]line Наличными: 140.00 [08:13:54]line Безнал.: 0.00 [08:13:54]line Место: АЗС № 95 "Партнер Нефть" [08:13:54]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:13:54]line СНО: Общий режим [08:13:54]line Чек 33 16.08.2024 08:13 [08:13:54]line Смена: 464 ФФД: 1.0 [08:13:54]line ЗНМ: 0300000078 [08:13:54]line РНМ: 0000000000092546 [08:13:54]line Версия ККМ: 001 [08:13:54]line ФМ: 0000000000871800 [08:13:54]line ФД: 49385 [08:13:54]line ФПД: 99617803737196 [08:13:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T081356&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49385&fm=99617803737196&tin=02508201610067®Number=0000000000092546&sum=14000 [08:13:54]line 0 [08:13:54]OFD Sender: Processing packet 49385 [packets to send 21, broken 20] [08:13:54]ProducePacketName [08:13:54]name=ofd_packets/00049385 [08:13:54]OFD Sender: To server: pG, [08:13:54]CommunicateWithHost lk.salyk.kg:30040 [08:13:54]ConnectInit lk.salyk.kg [08:13:54]written 0, free lines is 4095 [08:13:54]Connected sock=10 [08:13:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 2D 63 1F 01 4D C5 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 44 0A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 E9 C0 00 00 35 04 06 00 5A 9A 13 CE 18 6C 0C AC BD 81 81 8E 99 C1 [08:13:54]Write to MH i2c: 01 00 00 BE 33 F1 [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: 01 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: 01 07 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: 01 07 00 BE 33 00 00 00 00 00 D8 0C DC [08:13:54]RasterBufferAndPrint [08:13:54]line [08:13:54]line [08:13:54]line [08:13:54]line [08:13:54]line [08:13:54]written 0, free lines is 3294 [08:13:54]MH_Cut [08:13:54]Write to MH i2c: D1 01 00 C5 33 01 CA [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: D1 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: D1 01 00 [08:13:54]MH_I2C_Read... [08:13:54]Read from MH i2c: D1 01 00 C5 33 00 C9 [08:13:54]Write to MH i2c: 01 00 00 C6 33 F9 [08:13:54]Write i2c OK [08:13:54]MH_I2C_Read... [08:13:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 9D 4F 47 00 A5 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 38 37 31 38 30 30 10 04 04 00 E9 C0 00 00 F4 03 04 00 84 B5 BE 66 B6 04 01 00 00 7F 36 81 1D 96 AE 78 57 [08:13:54]CommunicateWithHost err = 0 [08:13:54]CheckOFDResponse [08:13:54]1017 (14) - 77093643461234 [08:13:54]1041 (16) - 0000000000871800 [08:13:54]1040 (4) - 49385 [08:13:54]1012 (4) - 16.08.2024 02:12 [08:13:54]1206 (1) - 0 [08:13:54]OFD Sender: Remove packet 49385 [08:13:54]ProducePacketName [08:13:54]name=ofd_packets/00049385 [08:13:54]NVStorageDeleteData [08:13:55]OFD Sender: No OFD packet to send [08:13:55]*** Cut start [08:13:55]*** Purtial cut [08:13:55]*** Stage 1: CUTSNS_PIN = 1 [08:13:55]Read from MH i2c: 01 [08:13:55]MH_I2C_Read... [08:13:55]*** Stop cut motor [08:13:55]*** Cut end [08:13:55]Read from MH i2c: 01 07 00 [08:13:55]MH_I2C_Read... [08:13:55]Read from MH i2c: 01 07 00 C6 33 00 00 00 00 00 FF 0F 0E [08:13:55]process_action close_receipt done [08:13:55]requested_data is exist [08:13:55]produce_requested_data [08:13:55]requested_item fm.sn is exist - process it [08:13:55]wFMCommunicate request_size=4 [08:13:55]MH_SAM_APDU [08:13:55]CAPDU: 80 11 00 00 [08:13:55]Write to MH i2c: E2 08 00 C7 33 80 11 00 00 00 00 00 00 74 [08:13:55]Write i2c OK [08:13:55]MH_I2C_Read... [08:13:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:13:55]Read from MH i2c: E2 [08:13:55]MH_I2C_Read... [08:13:55]Read from MH i2c: E2 17 00 [08:13:55]MH_I2C_Read... [08:13:55]Read from MH i2c: E2 17 00 C7 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BF [08:13:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:13:55]wFMCommunicate OK [08:13:55]requested_item fd.num is exist - process it [08:13:55]SAM_PROTO_GetFieldsCounters [08:13:55]wFMCommunicate request_size=4 [08:13:55]MH_SAM_APDU [08:13:55]CAPDU: 80 13 00 00 [08:13:55]Write to MH i2c: E2 08 00 C8 33 80 13 00 00 00 00 00 00 77 [08:13:55]Write i2c OK [08:13:55]MH_I2C_Read... [08:13:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:13:56]Read from MH i2c: E2 [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: E2 62 00 [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: E2 62 00 C8 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E9 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [08:13:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 E9 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:13:56]wFMCommunicate OK [08:13:56]SAM_PROTO_GetFieldsCounters done [08:13:56]requested_item shift.num is exist - process it [08:13:56]requested_item shift.opened is exist - process it [08:13:56]req_shift_opened [08:13:56]FM_GetShiftState [08:13:56]SAM_PROTO_GetShiftState [08:13:56]wFMCommunicate request_size=4 [08:13:56]MH_SAM_APDU [08:13:56]CAPDU: 80 13 01 00 [08:13:56]Write to MH i2c: E2 08 00 C9 33 80 13 01 00 00 00 00 00 79 [08:13:56]Write i2c OK [08:13:56]MH_I2C_Read... [08:13:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:13:56]Read from MH i2c: E2 [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: E2 0E 00 [08:13:56]MH_I2C_Read... [08:13:56]Read from MH i2c: E2 0E 00 C9 33 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 EF [08:13:56]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [08:13:56]wFMCommunicate OK [08:13:56]SAM_PROTO_GetShiftState done [08:13:56]FM_GetShiftState done [08:13:56]req_shift_opened done [08:13:56]requested_item shift.open_date is exist - process it [08:13:56]req_shift_open_date [08:13:56]req_shift_open_date done [08:13:56]produce_requested_data done [08:13:56]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49385,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [08:13:56]process_action_free close_receipt [08:13:56]json_value_free [08:13:56]json_value_free done [08:13:56]process_json_proto returns [08:13:56]Send response to host [08:13:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49385,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [08:13:56]free response buf [08:13:56]execute_script done [08:13:56]execute_script returns [08:13:56]free content buf [08:13:56]Sock 9.Close socket [08:13:56]Sock 9.Thread stoped [08:14:00]OFD Sender: No OFD packet to send [08:14:05]OFD Sender: No OFD packet to send [08:14:10]OFD Sender: No OFD packet to send [08:14:15]OFD Sender: No OFD packet to send [08:14:20]OFD Sender: No OFD packet to send [08:14:25]OFD Sender: No OFD packet to send [08:14:30]OFD Sender: No OFD packet to send [08:14:35]OFD Sender: No OFD packet to send [08:14:40]OFD Sender: No OFD packet to send [08:14:45]OFD Sender: No OFD packet to send [08:14:50]OFD Sender: No OFD packet to send [08:14:55]OFD Sender: No OFD packet to send [08:15:00]OFD Sender: No OFD packet to send [08:15:05]OFD Sender: No OFD packet to send [08:15:10]OFD Sender: No OFD packet to send [08:15:15]OFD Sender: No OFD packet to send [08:15:20]OFD Sender: No OFD packet to send [08:15:25]OFD Sender: No OFD packet to send [08:15:30]OFD Sender: No OFD packet to send [08:15:35]OFD Sender: No OFD packet to send [08:15:40]OFD Sender: No OFD packet to send [08:15:45]OFD Sender: No OFD packet to send [08:15:50]OFD Sender: No OFD packet to send [08:15:55]OFD Sender: No OFD packet to send [08:16:00]OFD Sender: No OFD packet to send [08:16:05]OFD Sender: No OFD packet to send [08:16:10]OFD Sender: No OFD packet to send [08:16:15]OFD Sender: No OFD packet to send [08:16:20]OFD Sender: No OFD packet to send [08:16:25]OFD Sender: No OFD packet to send [08:16:30]OFD Sender: No OFD packet to send [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:15]OFD Sender: No OFD packet to send [08:26:20]OFD Sender: No OFD packet to send [08:26:25]OFD Sender: No OFD packet to send [08:26:30]OFD Sender: No OFD packet to send [08:26:35]OFD Sender: No OFD packet to send [08:26:40]OFD Sender: No OFD packet to send [08:26:45]OFD Sender: No OFD packet to send [08:26:50]OFD Sender: No OFD packet to send [08:26:55]OFD Sender: No OFD packet to send [08:27:00]OFD Sender: No OFD packet to send [08:27:05]OFD Sender: No OFD packet to send [08:27:10]OFD Sender: No OFD packet to send [08:27:15]OFD Sender: No OFD packet to send [08:27:20]OFD Sender: No OFD packet to send [08:27:25]OFD Sender: No OFD packet to send [08:27:30]OFD Sender: No OFD packet to send [08:27:35]OFD Sender: No OFD packet to send [08:27:41]OFD Sender: No OFD packet to send [08:27:46]OFD Sender: No OFD packet to send [08:27:51]OFD Sender: No OFD packet to send [08:27:56]OFD Sender: No OFD packet to send [08:28:01]OFD Sender: No OFD packet to send [08:28:06]OFD Sender: No OFD packet to send [08:28:11]OFD Sender: No OFD packet to send [08:28:16]OFD Sender: No OFD packet to send [08:28:21]OFD Sender: No OFD packet to send [08:28:26]OFD Sender: No OFD packet to send [08:28:31]OFD Sender: No OFD packet to send [08:28:36]OFD Sender: No OFD packet to send [08:28:41]OFD Sender: No OFD packet to send [08:28:46]OFD Sender: No OFD packet to send [08:28:51]OFD Sender: No OFD packet to send [08:28:56]OFD Sender: No OFD packet to send [08:29:01]OFD Sender: No OFD packet to send [08:29:06]OFD Sender: No OFD packet to send [08:29:11]OFD Sender: No OFD packet to send [08:29:16]OFD Sender: No OFD packet to send [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:46]OFD Sender: No OFD packet to send [08:29:51]OFD Sender: No OFD packet to send [08:29:56]OFD Sender: No OFD packet to send [08:30:01]OFD Sender: No OFD packet to send [08:30:06]OFD Sender: No OFD packet to send [08:30:11]OFD Sender: No OFD packet to send [08:30:16]OFD Sender: No OFD packet to send [08:30:21]OFD Sender: No OFD packet to send [08:30:26]OFD Sender: No OFD packet to send [08:30:31]OFD Sender: No OFD packet to send [08:30:36]OFD Sender: No OFD packet to send [08:30:41]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:21]OFD Sender: No OFD packet to send [08:33:26]OFD Sender: No OFD packet to send [08:33:31]OFD Sender: No OFD packet to send [08:33:36]OFD Sender: No OFD packet to send [08:33:41]OFD Sender: No OFD packet to send [08:33:46]OFD Sender: No OFD packet to send [08:33:51]OFD Sender: No OFD packet to send [08:33:56]OFD Sender: No OFD packet to send [08:34:01]OFD Sender: No OFD packet to send [08:34:06]OFD Sender: No OFD packet to send [08:34:11]OFD Sender: No OFD packet to send [08:34:16]OFD Sender: No OFD packet to send [08:34:21]OFD Sender: No OFD packet to send [08:34:26]OFD Sender: No OFD packet to send [08:34:31]OFD Sender: No OFD packet to send [08:34:36]OFD Sender: No OFD packet to send [08:34:41]OFD Sender: No OFD packet to send [08:34:46]OFD Sender: No OFD packet to send [08:34:51]OFD Sender: No OFD packet to send [08:34:56]OFD Sender: No OFD packet to send [08:35:01]OFD Sender: No OFD packet to send [08:35:06]OFD Sender: No OFD packet to send [08:35:11]OFD Sender: No OFD packet to send [08:35:16]OFD Sender: No OFD packet to send [08:35:21]OFD Sender: No OFD packet to send [08:35:26]OFD Sender: No OFD packet to send [08:35:31]OFD Sender: No OFD packet to send [08:35:36]OFD Sender: No OFD packet to send [08:35:41]OFD Sender: No OFD packet to send [08:35:46]OFD Sender: No OFD packet to send [08:35:51]OFD Sender: No OFD packet to send [08:35:56]OFD Sender: No OFD packet to send [08:36:01]OFD Sender: No OFD packet to send [08:36:06]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:38]accept exits with 7 [08:36:38]New connection [08:36:38]New thread 3066830180 created [08:36:38]Thread 3066973540 joined [08:36:38]Waiting for new connection... [08:36:38] Sock 7.Parse request [08:36:38]Sock 7.Check first char [08:36:38]Sock 7.First char is OK [08:36:38]request: POST /json_proto HTTP/1.0 [08:36:38]Method: POST [08:36:38]URL: /json_proto [08:36:38]Method is POST - this is cgi request [08:36:38]url: /json_proto [08:36:38]query_string will be loaded in cgi processing [08:36:38]execute_cgi json_proto POST (null) [08:36:38]execute_cgi path=json_proto method=POST [08:36:38]POST find Content-Length [08:36:38]Host: 172.17.46.196:8080 [08:36:38]Content-Length: 669 [08:36:38]Content-Type: application/json [08:36:38] [08:36:38]POST finish read [08:36:38]Found Content-Length = 669 [08:36:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189625", "tax_sys" : 0, "items" : [ { "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 93.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:38]execute_script... [08:36: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 : (3)189625", "tax_sys" : 0, "items" : [ { "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 93.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:36:38]POST & json_proto [08:36:38]process_json_proto [08:36:38]json parsed OK: [08:36:38]protocol is kg_v1.0 [08:36:38]action value=close_receipt [08:36:38]process_action close_receipt [08:36:38]cmd_close_receipt [08:36:38]MH_GetDate [08:36:38]Write to MH i2c: F0 00 00 CA 33 EC [08:36:38]Write i2c OK [08:36:38]MH_I2C_Read... [08:36:38]Read from MH i2c: F0 [08:36:38]MH_I2C_Read... [08:36:38]Read from MH i2c: F0 09 00 [08:36:38]MH_I2C_Read... [08:36:38]Read from MH i2c: F0 09 00 CA 33 00 9A 0F BF 66 07 E8 5D 66 75 [08:36:38]GetLastDocTimeStamp 1723796036 [08:36:38]current date 1723797402 [08:36:38]FM_GetShiftState [08:36:38]SAM_PROTO_GetShiftState [08:36:38]wFMCommunicate request_size=4 [08:36:38]MH_SAM_APDU [08:36:38]CAPDU: 80 13 01 00 [08:36:38]Write to MH i2c: E2 08 00 CB 33 80 13 01 00 00 00 00 00 7B [08:36:38]Write i2c OK [08:36:38]MH_I2C_Read... [08:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:38]Read from MH i2c: E2 [08:36:38]MH_I2C_Read... [08:36:38]Read from MH i2c: E2 0E 00 [08:36:38]MH_I2C_Read... [08:36:38]Read from MH i2c: E2 0E 00 CB 33 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 F1 [08:36:38]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [08:36:38]wFMCommunicate OK [08:36:38]SAM_PROTO_GetShiftState done [08:36:38]FM_GetShiftState done [08:36:38]opened in 1723766958 [08:36:38]opened+sec_in_day 1723853358 [08:36:38]quantity*price = 9300 [08:36:38]sum+1 = 9301 [08:36:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 93.00 НСП 1% : 0.82 НДС 12% : 9.88 Наличными: 93.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 34 16.08.2024 08:36 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49386 ФПД: 196576663403786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T083642&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49386&fm=196576663403786&tin=02508201610067®Number=0000000000092546&sum=9300 0 [08:36:39]StoreToDocumentArchive [08:36:39]shift 464 fd 49386 [08:36:39]save to /storage/0464/doc_00049386 [08:36:39]save last doc name /storage/0464/doc_00049386 to /storage/kkm_last_doc_name [08:36:39]save OK [08:36:39]Clear old archive folders... [08:36:39]ProcessDocumentItem done err = 0, tmpTLVsize=288 [08:36:39]tlvbuf is 00EFB7E0 [08:36:39]SAM_PROTO_ClearQueue [08:36:39]wFMCommunicate request_size=4 [08:36:39]MH_SAM_APDU [08:36:39]CAPDU: 80 09 00 00 [08:36:39]Write to MH i2c: E2 08 00 D8 33 80 09 00 00 00 00 00 00 7D [08:36:39]Write i2c OK [08:36:39]MH_I2C_Read... [08:36:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:36:39]Read from MH i2c: E2 [08:36:39]MH_I2C_Read... [08:36:39]Read from MH i2c: E2 03 00 [08:36:39]MH_I2C_Read... [08:36:39]Read from MH i2c: E2 03 00 D8 33 00 90 00 7F [08:36:39]RAPDU: 90 00 [08:36:39]wFMCommunicate OK [08:36:39]SAM_PROTO_ClearQueue done [08:36:39]KKMCreateOFDPacket [08:36:39]OFDProtocolAddRootSTLVToBuf [08:36:39]FM_MakeSignedData [08:36:39]FM_MakeSignedData [08:36:39]SAM_PROTO_SignData [08:36:39]wFMCommunicate request_size=4 [08:36:39]MH_SAM_APDU [08:36:39]CAPDU: 80 0D 01 02 [08:36:39]Write to MH i2c: E2 08 00 D9 33 80 0D 01 02 00 00 00 00 85 [08:36:39]Write i2c OK [08:36:39]MH_I2C_Read... [08:36:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:36:39]Read from MH i2c: E2 [08:36:39]MH_I2C_Read... [08:36:39]Read from MH i2c: E2 03 00 [08:36:39]MH_I2C_Read... [08:36:39]Read from MH i2c: E2 03 00 D9 33 00 90 00 80 [08:36:39]RAPDU: 90 00 [08:36:39]wFMCommunicate OK [08:36:39]wFMCommunicate request_size=255 [08:36:39]MH_SAM_APDU [08:36:39]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 24 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 03 00 00 00 00 07 04 06 00 54 24 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 9A 0F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [08:36:39]Write to MH i2c: E2 02 01 DA 33 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 24 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 03 00 00 00 00 07 04 06 00 54 24 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 9A 0F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 5C [08:36:39]Write i2c OK [08:36:39]MH_I2C_Read... [08:36:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:39]Read from MH i2c: E2 [08:36:39]MH_I2C_Read... [08:36:39]Read from MH i2c: E2 03 00 [08:36:39]MH_I2C_Read... [08:36:39]Read from MH i2c: E2 03 00 DA 33 00 90 00 81 [08:36:39]RAPDU: 90 00 [08:36:39]wFMCommunicate OK [08:36:39]wFMCommunicate request_size=47 [08:36:39]MH_SAM_APDU [08:36:39]CAPDU: 80 0D 02 02 2A 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EA C0 00 00 35 04 06 00 B2 C9 12 31 7D 0A [08:36:39]Write to MH i2c: E2 32 00 DB 33 80 0D 02 02 2A 00 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EA C0 00 00 35 04 06 00 B2 C9 12 31 7D 0A 00 00 30 [08:36:39]Write i2c OK [08:36:39]MH_I2C_Read... [08:36:39]Read from MH i2c: E2 [08:36:39]MH_I2C_Read... [08:36:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:36:39]Read from MH i2c: E2 03 00 [08:36:39]MH_I2C_Read... [08:36:39]Read from MH i2c: E2 03 00 DB 33 00 90 00 82 [08:36:39]RAPDU: 90 00 [08:36:39]wFMCommunicate OK [08:36:39]wFMCommunicate request_size=4 [08:36:39]MH_SAM_APDU [08:36:39]CAPDU: 80 0D 03 02 [08:36:39]Write to MH i2c: E2 08 00 DC 33 80 0D 03 02 00 00 00 00 8A [08:36:39]Write i2c OK [08:36:39]MH_I2C_Read... [08:36:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:36:39]Read from MH i2c: E2 [08:36:39]MH_I2C_Read... [08:36:39]Read from MH i2c: E2 0B 00 [08:36:39]MH_I2C_Read... [08:36:39]Read from MH i2c: E2 0B 00 DC 33 00 89 B8 67 20 FF CB F1 20 90 00 2E [08:36:39]RAPDU: 89 B8 67 20 FF CB F1 20 90 00 [08:36:39]wFMCommunicate OK [08:36:39]SAM_PROTO_SignData done [08:36:39]FM_MakeSignedData done [08:36:39]CreateOFDProtocolMessage [08:36:39]wFMCommunicate request_size=4 [08:36:39]MH_SAM_APDU [08:36:39]CAPDU: 80 11 00 00 [08:36:39]Write to MH i2c: E2 08 00 DD 33 80 11 00 00 00 00 00 00 8A [08:36:39]Write i2c OK [08:36:39]MH_I2C_Read... [08:36:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:39]Read from MH i2c: E2 [08:36:39]MH_I2C_Read... [08:36:39]Read from MH i2c: E2 17 00 [08:36:39]MH_I2C_Read... [08:36:39]Read from MH i2c: E2 17 00 DD 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D5 [08:36:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:36:39]wFMCommunicate OK [08:36:39]CreateOFDProtocolMessage done [08:36:39]OFDSenderStorePacket 49386 [08:36:39]StoreOFDPacket docnum=49386 [08:36:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 34 01 00 00 29 77 2C 01 73 C3 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 24 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 03 00 00 00 00 07 04 06 00 54 24 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 9A 0F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EA C0 00 00 35 04 06 00 B2 C9 12 31 7D 0A 89 B8 67 20 FF CB F1 20 [08:36:39]CheckFolder [08:36:39]dirname=/storage/ofd_packets [08:36:39]CheckFolder done [08:36:39]ProducePacketName [08:36:39]name=ofd_packets/00049386 [08:36:39]NVStorageSaveData ofd_packets/00049386 [08:36:39]File name is /storage/ofd_packets/00049386 [08:36:39]Write 338 bytes [08:36:39]NVStorageSaveData done [08:36:39]OFDSenderStorePacket done [08:36:39]KKMCreateOFDPacket done [08:36:39]NVStorageSaveData kkm_last_timestamp [08:36:39]File name is /storage/kkm_last_timestamp [08:36:39]Write 4 bytes [08:36:39]NVStorageSaveData done [08:36:39]ExternCall_PrintAddStr [08:36:39]wPrintStart [08:36:39]Write to MH i2c: 01 00 00 DE 33 11 [08:36:39]Write i2c OK [08:36:39]MH_I2C_Read... [08:36:39]Read from MH i2c: 01 [08:36:39]MH_I2C_Read... [08:36:39]Read from MH i2c: 01 07 00 [08:36:39]MH_I2C_Read... [08:36:39]Read from MH i2c: 01 07 00 DE 33 00 00 00 00 00 FF 0F 26 [08:36:39]RasterBufferAndPrint [08:36:39]line Счет N : (3)189625 [08:36:39]line ИНН: 02508201610067 [08:36:39]line Контрольно-Кассовый Чек [08:36:39]line ПРОДАЖА [08:36:39]line Товар: 4603290004879 [08:36:39]line Печ.сах.FORSITE Сэнд.кокос.вк [08:36:39]line 1.000 * 93.00 [08:36:39]line = 93.00 [08:36:39]line НДС 12% НСП 1% [08:36:39]line > о реализуемом товаре [08:36:39]line ИТОГО: 93.00 [08:36:39]line НСП 1% : 0.82 [08:36:39]line НДС 12% : 9.88 [08:36:39]line Наличными: 93.00 [08:36:39]line Безнал.: 0.00 [08:36:39]line Место: АЗС № 95 "Партнер Нефть" [08:36:39]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:36:39]line СНО: Общий режим [08:36:39]line Чек 34 16.08.2024 08:36 [08:36:39]line Смена: 464 ФФД: 1.0 [08:36:39]line ЗНМ: 0300000078 [08:36:39]line РНМ: 0000000000092546 [08:36:39]line Версия ККМ: 001 [08:36:39]line ФМ: 0000000000871800 [08:36:39]line ФД: 49386 [08:36:39]line ФПД: 196576663403786 [08:36:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T083642&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49386&fm=196576663403786&tin=02508201610067®Number=0000000000092546&sum=9300 [08:36:39]line 0 [08:36:40]written 0, free lines is 4095 [08:36:40]OFD Sender: Processing packet 49386 [packets to send 21, broken 20] [08:36:40]ProducePacketName [08:36:40]name=ofd_packets/00049386 [08:36:40]OFD Sender: To server: pG, [08:36:40]CommunicateWithHost lk.salyk.kg:30040 [08:36:40]ConnectInit lk.salyk.kg [08:36:40]Connected sock=10 [08:36:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 34 01 00 00 29 77 2C 01 73 C3 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 24 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 52 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 03 00 00 00 00 07 04 06 00 54 24 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 9A 0F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EA C0 00 00 35 04 06 00 B2 C9 12 31 7D 0A 89 B8 67 20 FF CB F1 20 [08:36:40]Write to MH i2c: 01 00 00 06 34 3A [08:36:40]Write i2c OK [08:36:40]MH_I2C_Read... [08:36:40]Read from MH i2c: 01 [08:36:40]MH_I2C_Read... [08:36:40]Read from MH i2c: 01 07 00 [08:36:40]MH_I2C_Read... [08:36:40]Read from MH i2c: 01 07 00 06 34 00 00 00 00 00 E7 0C 34 [08:36:40]RasterBufferAndPrint [08:36:40]line [08:36:40]line [08:36:40]line [08:36:40]line [08:36:40]line [08:36:40]written 0, free lines is 3309 [08:36:40]MH_Cut [08:36:40]Write to MH i2c: D1 01 00 0D 34 01 13 [08:36:40]Write i2c OK [08:36:40]MH_I2C_Read... [08:36:40]Read from MH i2c: D1 [08:36:40]MH_I2C_Read... [08:36:40]Read from MH i2c: D1 01 00 [08:36:40]MH_I2C_Read... [08:36:40]Read from MH i2c: D1 01 00 0D 34 00 12 [08:36:40]Write to MH i2c: 01 00 00 0E 34 42 [08:36:40]Write i2c OK [08:36:40]MH_I2C_Read... [08:36:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 15 4C 47 00 45 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EA C0 00 00 F4 03 04 00 DA BA BE 66 B6 04 01 00 00 61 6E 6F 22 CF C9 F8 76 [08:36:40]CommunicateWithHost err = 0 [08:36:40]CheckOFDResponse [08:36:40]1017 (14) - 77093643461234 [08:36:40]1041 (16) - 0000000000871800 [08:36:40]1040 (4) - 49386 [08:36:40]1012 (4) - 16.08.2024 02:35 [08:36:40]1206 (1) - 0 [08:36:40]OFD Sender: Remove packet 49386 [08:36:40]ProducePacketName [08:36:40]name=ofd_packets/00049386 [08:36:40]NVStorageDeleteData [08:36:41]OFD Sender: No OFD packet to send [08:36:41]*** Cut start [08:36:41]*** Purtial cut [08:36:41]*** CUTSNS_PIN = 0 [08:36:41]*** Stage 1: CUTSNS_PIN = 1 [08:36:43]Read from MH i2c: 01 [08:36:43]MH_I2C_Read... [08:36:43]*** Stop cut motor [08:36:43]*** Cut end [08:36:43]Read from MH i2c: 01 07 00 [08:36:43]MH_I2C_Read... [08:36:43]Read from MH i2c: 01 07 00 0E 34 00 00 00 00 00 FF 0F 57 [08:36:43]process_action close_receipt done [08:36:43]requested_data is exist [08:36:43]produce_requested_data [08:36:43]requested_item fm.sn is exist - process it [08:36:43]wFMCommunicate request_size=4 [08:36:43]MH_SAM_APDU [08:36:43]CAPDU: 80 11 00 00 [08:36:43]Write to MH i2c: E2 08 00 0F 34 80 11 00 00 00 00 00 00 BD [08:36:43]Write i2c OK [08:36:43]MH_I2C_Read... [08:36:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:36:43]Read from MH i2c: E2 [08:36:43]MH_I2C_Read... [08:36:43]Read from MH i2c: E2 17 00 [08:36:43]MH_I2C_Read... [08:36:43]Read from MH i2c: E2 17 00 0F 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 08 [08:36:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:36:43]wFMCommunicate OK [08:36:43]requested_item fd.num is exist - process it [08:36:43]SAM_PROTO_GetFieldsCounters [08:36:43]wFMCommunicate request_size=4 [08:36:43]MH_SAM_APDU [08:36:43]CAPDU: 80 13 00 00 [08:36:43]Write to MH i2c: E2 08 00 10 34 80 13 00 00 00 00 00 00 C0 [08:36:43]Write i2c OK [08:36:43]MH_I2C_Read... [08:36:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:36:43]Read from MH i2c: E2 [08:36:43]MH_I2C_Read... [08:36:43]Read from MH i2c: E2 62 00 [08:36:43]MH_I2C_Read... [08:36:43]Read from MH i2c: E2 62 00 10 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EA C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [08:36:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EA C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:36:43]wFMCommunicate OK [08:36:43]SAM_PROTO_GetFieldsCounters done [08:36:43]requested_item shift.num is exist - process it [08:36:43]requested_item shift.opened is exist - process it [08:36:43]req_shift_opened [08:36:43]FM_GetShiftState [08:36:43]SAM_PROTO_GetShiftState [08:36:43]wFMCommunicate request_size=4 [08:36:43]MH_SAM_APDU [08:36:43]CAPDU: 80 13 01 00 [08:36:43]Write to MH i2c: E2 08 00 11 34 80 13 01 00 00 00 00 00 C2 [08:36:43]Write i2c OK [08:36:43]MH_I2C_Read... [08:36:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:36:43]Read from MH i2c: E2 [08:36:43]MH_I2C_Read... [08:36:43]Read from MH i2c: E2 0E 00 [08:36:43]MH_I2C_Read... [08:36:43]Read from MH i2c: E2 0E 00 11 34 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 38 [08:36:43]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [08:36:43]wFMCommunicate OK [08:36:43]SAM_PROTO_GetShiftState done [08:36:43]FM_GetShiftState done [08:36:43]req_shift_opened done [08:36:43]requested_item shift.open_date is exist - process it [08:36:43]req_shift_open_date [08:36:43]req_shift_open_date done [08:36:43]produce_requested_data done [08:36:43]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49386,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [08:36:43]process_action_free close_receipt [08:36:43]json_value_free [08:36:43]json_value_free done [08:36:43]process_json_proto returns [08:36:43]Send response to host [08:36:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49386,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [08:36:43]free response buf [08:36:43]execute_script done [08:36:43]execute_script returns [08:36:43]free content buf [08:36:43]Sock 7.Close socket [08:36:43]Sock 7.Thread stoped [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:51]OFD Sender: No OFD packet to send [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]accept exits with 9 [08:48:51]New connection [08:48:51]New thread 3066973540 created [08:48:51]Thread 3066830180 joined [08:48:51]Waiting for new connection... [08:48:51] Sock 9.Parse request [08:48:51]Sock 9.Check first char [08:48:51]Sock 9.First char is OK [08:48:51]request: POST /json_proto HTTP/1.0 [08:48:51]Method: POST [08:48:51]URL: /json_proto [08:48:51]Method is POST - this is cgi request [08:48:51]url: /json_proto [08:48:51]query_string will be loaded in cgi processing [08:48:51]execute_cgi json_proto POST (null) [08:48:51]execute_cgi path=json_proto method=POST [08:48:51]POST find Content-Length [08:48:51]Host: 172.17.46.196:8080 [08:48:51]Content-Length: 642 [08:48:51]Content-Type: application/json [08:48:51] [08:48:51]POST finish read [08:48:51]Found Content-Length = 642 [08:48:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189626", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:51]execute_script... [08:48: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 : (3)189626", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:51]POST & json_proto [08:48:51]process_json_proto [08:48:51]json parsed OK: [08:48:51]protocol is kg_v1.0 [08:48:51]action value=close_receipt [08:48:51]process_action close_receipt [08:48:51]cmd_close_receipt [08:48:51]MH_GetDate [08:48:51]Write to MH i2c: F0 00 00 12 34 35 [08:48:51]Write i2c OK [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: F0 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: F0 09 00 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: F0 09 00 12 34 00 77 12 BF 66 07 E8 5D 66 9E [08:48:51]GetLastDocTimeStamp 1723797402 [08:48:51]current date 1723798135 [08:48:51]FM_GetShiftState [08:48:51]SAM_PROTO_GetShiftState [08:48:51]wFMCommunicate request_size=4 [08:48:51]MH_SAM_APDU [08:48:51]CAPDU: 80 13 01 00 [08:48:51]Write to MH i2c: E2 08 00 13 34 80 13 01 00 00 00 00 00 C4 [08:48:51]Write i2c OK [08:48:51]MH_I2C_Read... [08:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:51]Read from MH i2c: E2 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: E2 0E 00 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: E2 0E 00 13 34 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 3A [08:48:51]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [08:48:51]wFMCommunicate OK [08:48:51]SAM_PROTO_GetShiftState done [08:48:51]FM_GetShiftState done [08:48:51]opened in 1723766958 [08:48:51]opened+sec_in_day 1723853358 [08:48:51]quantity*price = 5900 [08:48:51]sum+1 = 5901 [08:48:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 59.00 НСП 1% : 0.52 НДС 12% : 6.26 Наличными: 59.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 35 16.08.2024 08:48 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49387 ФПД: 250167699642099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T084856&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49387&fm=250167699642099&tin=02508201610067®Number=0000000000092546&sum=5900 0 [08:48:52]StoreToDocumentArchive [08:48:52]shift 464 fd 49387 [08:48:52]save to /storage/0464/doc_00049387 [08:48:52]save last doc name /storage/0464/doc_00049387 to /storage/kkm_last_doc_name [08:48:52]save OK [08:48:52]Clear old archive folders... [08:48:52]ProcessDocumentItem done err = 0, tmpTLVsize=281 [08:48:52]tlvbuf is 00DF57C0 [08:48:52]SAM_PROTO_ClearQueue [08:48:52]wFMCommunicate request_size=4 [08:48:52]MH_SAM_APDU [08:48:52]CAPDU: 80 09 00 00 [08:48:52]Write to MH i2c: E2 08 00 20 34 80 09 00 00 00 00 00 00 C6 [08:48:52]Write i2c OK [08:48:52]MH_I2C_Read... [08:48:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:52]Read from MH i2c: E2 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 03 00 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 03 00 20 34 00 90 00 C8 [08:48:52]RAPDU: 90 00 [08:48:52]wFMCommunicate OK [08:48:52]SAM_PROTO_ClearQueue done [08:48:52]KKMCreateOFDPacket [08:48:52]OFDProtocolAddRootSTLVToBuf [08:48:52]FM_MakeSignedData [08:48:52]FM_MakeSignedData [08:48:52]SAM_PROTO_SignData [08:48:52]wFMCommunicate request_size=4 [08:48:52]MH_SAM_APDU [08:48:52]CAPDU: 80 0D 01 02 [08:48:52]Write to MH i2c: E2 08 00 21 34 80 0D 01 02 00 00 00 00 CE [08:48:52]Write i2c OK [08:48:52]MH_I2C_Read... [08:48:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:52]Read from MH i2c: E2 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 03 00 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 03 00 21 34 00 90 00 C9 [08:48:52]RAPDU: 90 00 [08:48:52]wFMCommunicate OK [08:48:52]wFMCommunicate request_size=255 [08:48:52]MH_SAM_APDU [08:48:52]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 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 78 12 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 [08:48:52]Write to MH i2c: E2 02 01 22 34 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 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 78 12 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 FF [08:48:52]Write i2c OK [08:48:52]MH_I2C_Read... [08:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:52]Read from MH i2c: E2 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 03 00 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 03 00 22 34 00 90 00 CA [08:48:52]RAPDU: 90 00 [08:48:52]wFMCommunicate OK [08:48:52]wFMCommunicate request_size=40 [08:48:52]MH_SAM_APDU [08:48:52]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EB C0 00 00 35 04 06 00 E3 86 B4 DF 16 F3 [08:48:52]Write to MH i2c: E2 2B 00 23 34 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EB C0 00 00 35 04 06 00 E3 86 B4 DF 16 F3 00 00 36 [08:48:52]Write i2c OK [08:48:52]MH_I2C_Read... [08:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:52]Read from MH i2c: E2 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 03 00 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 03 00 23 34 00 90 00 CB [08:48:52]RAPDU: 90 00 [08:48:52]wFMCommunicate OK [08:48:52]wFMCommunicate request_size=4 [08:48:52]MH_SAM_APDU [08:48:52]CAPDU: 80 0D 03 02 [08:48:52]Write to MH i2c: E2 08 00 24 34 80 0D 03 02 00 00 00 00 D3 [08:48:52]Write i2c OK [08:48:52]MH_I2C_Read... [08:48:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:52]Read from MH i2c: E2 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 0B 00 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 0B 00 24 34 00 25 C8 95 13 C5 DE C9 F8 90 00 CD [08:48:52]RAPDU: 25 C8 95 13 C5 DE C9 F8 90 00 [08:48:52]wFMCommunicate OK [08:48:52]SAM_PROTO_SignData done [08:48:52]FM_MakeSignedData done [08:48:52]CreateOFDProtocolMessage [08:48:52]wFMCommunicate request_size=4 [08:48:52]MH_SAM_APDU [08:48:52]CAPDU: 80 11 00 00 [08:48:52]Write to MH i2c: E2 08 00 25 34 80 11 00 00 00 00 00 00 D3 [08:48:52]Write i2c OK [08:48:52]MH_I2C_Read... [08:48:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:52]Read from MH i2c: E2 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 17 00 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 17 00 25 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1E [08:48:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:48:52]wFMCommunicate OK [08:48:52]CreateOFDProtocolMessage done [08:48:52]OFDSenderStorePacket 49387 [08:48:52]StoreOFDPacket docnum=49387 [08:48:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2D 01 00 00 E8 41 25 01 96 F8 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 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 78 12 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EB C0 00 00 35 04 06 00 E3 86 B4 DF 16 F3 25 C8 95 13 C5 DE C9 F8 [08:48:52]CheckFolder [08:48:52]dirname=/storage/ofd_packets [08:48:52]CheckFolder done [08:48:52]ProducePacketName [08:48:52]name=ofd_packets/00049387 [08:48:52]NVStorageSaveData ofd_packets/00049387 [08:48:52]File name is /storage/ofd_packets/00049387 [08:48:52]Write 331 bytes [08:48:52]NVStorageSaveData done [08:48:52]OFDSenderStorePacket done [08:48:52]KKMCreateOFDPacket done [08:48:52]NVStorageSaveData kkm_last_timestamp [08:48:52]File name is /storage/kkm_last_timestamp [08:48:52]Write 4 bytes [08:48:52]NVStorageSaveData done [08:48:52]ExternCall_PrintAddStr [08:48:52]wPrintStart [08:48:52]Write to MH i2c: 01 00 00 26 34 5A [08:48:52]Write i2c OK [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: 01 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: 01 07 00 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: 01 07 00 26 34 00 00 00 00 00 FF 0F 6F [08:48:52]RasterBufferAndPrint [08:48:52]line Счет N : (3)189626 [08:48:52]line ИНН: 02508201610067 [08:48:52]line Контрольно-Кассовый Чек [08:48:52]line ПРОДАЖА [08:48:52]line Товар: 4607065001445 [08:48:52]line Шок батончик Snickers 50,5г [08:48:52]line 1.000 * 59.00 [08:48:52]line = 59.00 [08:48:52]line НДС 12% НСП 1% [08:48:52]line > о реализуемом товаре [08:48:52]line ИТОГО: 59.00 [08:48:52]line НСП 1% : 0.52 [08:48:52]line НДС 12% : 6.26 [08:48:52]line Наличными: 59.00 [08:48:52]line Безнал.: 0.00 [08:48:52]line Место: АЗС № 95 "Партнер Нефть" [08:48:52]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:48:52]line СНО: Общий режим [08:48:52]line Чек 35 16.08.2024 08:48 [08:48:52]line Смена: 464 ФФД: 1.0 [08:48:52]line ЗНМ: 0300000078 [08:48:52]line РНМ: 0000000000092546 [08:48:52]line Версия ККМ: 001 [08:48:52]line ФМ: 0000000000871800 [08:48:52]line ФД: 49387 [08:48:52]line ФПД: 250167699642099 [08:48:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T084856&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49387&fm=250167699642099&tin=02508201610067®Number=0000000000092546&sum=5900 [08:48:53]line 0 [08:48:53]OFD Sender: Processing packet 49387 [packets to send 21, broken 20] [08:48:53]ProducePacketName [08:48:53]name=ofd_packets/00049387 [08:48:53]OFD Sender: To server: pG, [08:48:53]CommunicateWithHost lk.salyk.kg:30040 [08:48:53]ConnectInit lk.salyk.kg [08:48:53]written 0, free lines is 4095 [08:48:53]Connected sock=11 [08:48:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2D 01 00 00 E8 41 25 01 96 F8 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 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 78 12 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EB C0 00 00 35 04 06 00 E3 86 B4 DF 16 F3 25 C8 95 13 C5 DE C9 F8 [08:48:53]Write to MH i2c: 01 00 00 4E 34 82 [08:48:53]Write i2c OK [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: 01 [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: 01 07 00 [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: 01 07 00 4E 34 00 00 00 00 00 02 0D 98 [08:48:53]RasterBufferAndPrint [08:48:53]line [08:48:53]line [08:48:53]line [08:48:53]line [08:48:53]line [08:48:53]written 0, free lines is 3336 [08:48:53]MH_Cut [08:48:53]Write to MH i2c: D1 01 00 55 34 01 5B [08:48:53]Write i2c OK [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: D1 [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: D1 01 00 [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: D1 01 00 55 34 00 5A [08:48:53]Write to MH i2c: 01 00 00 56 34 8A [08:48:53]Write i2c OK [08:48:53]MH_I2C_Read... [08:48:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 43 B3 47 00 FE 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 38 37 31 38 30 30 10 04 04 00 EB C0 00 00 F4 03 04 00 B7 BD BE 66 B6 04 01 00 00 D6 1E FD 52 9D 56 2F 11 [08:48:53]CommunicateWithHost err = 0 [08:48:53]CheckOFDResponse [08:48:53]1017 (14) - 77093643461234 [08:48:53]1041 (16) - 0000000000871800 [08:48:53]1040 (4) - 49387 [08:48:53]1012 (4) - 16.08.2024 02:47 [08:48:53]1206 (1) - 0 [08:48:53]OFD Sender: Remove packet 49387 [08:48:53]ProducePacketName [08:48:53]name=ofd_packets/00049387 [08:48:53]NVStorageDeleteData [08:48:54]OFD Sender: No OFD packet to send [08:48:54]*** Cut start [08:48:54]*** Purtial cut [08:48:54]*** Stage 1: CUTSNS_PIN = 1 [08:48:54]Read from MH i2c: 01 [08:48:54]MH_I2C_Read... [08:48:54]*** Stop cut motor [08:48:54]*** Cut end [08:48:54]Read from MH i2c: 01 07 00 [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: 01 07 00 56 34 00 00 00 00 00 FF 0F 9F [08:48:54]process_action close_receipt done [08:48:54]requested_data is exist [08:48:54]produce_requested_data [08:48:54]requested_item fm.sn is exist - process it [08:48:54]wFMCommunicate request_size=4 [08:48:54]MH_SAM_APDU [08:48:54]CAPDU: 80 11 00 00 [08:48:54]Write to MH i2c: E2 08 00 57 34 80 11 00 00 00 00 00 00 05 [08:48:54]Write i2c OK [08:48:54]MH_I2C_Read... [08:48:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:54]Read from MH i2c: E2 [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: E2 17 00 [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: E2 17 00 57 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 50 [08:48:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:48:54]wFMCommunicate OK [08:48:54]requested_item fd.num is exist - process it [08:48:54]SAM_PROTO_GetFieldsCounters [08:48:54]wFMCommunicate request_size=4 [08:48:54]MH_SAM_APDU [08:48:54]CAPDU: 80 13 00 00 [08:48:54]Write to MH i2c: E2 08 00 58 34 80 13 00 00 00 00 00 00 08 [08:48:54]Write i2c OK [08:48:54]MH_I2C_Read... [08:48:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:54]Read from MH i2c: E2 [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: E2 62 00 [08:48:54]MH_I2C_Read... [08:48:54]Read from MH i2c: E2 62 00 58 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EB C0 00 00 0E 04 04 00 D0 01 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 [08:48:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EB C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:48:54]wFMCommunicate OK [08:48:54]SAM_PROTO_GetFieldsCounters done [08:48:54]requested_item shift.num is exist - process it [08:48:54]requested_item shift.opened is exist - process it [08:48:54]req_shift_opened [08:48:54]FM_GetShiftState [08:48:54]SAM_PROTO_GetShiftState [08:48:54]wFMCommunicate request_size=4 [08:48:54]MH_SAM_APDU [08:48:54]CAPDU: 80 13 01 00 [08:48:54]Write to MH i2c: E2 08 00 59 34 80 13 01 00 00 00 00 00 0A [08:48:54]Write i2c OK [08:48:54]MH_I2C_Read... [08:48:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:55]Read from MH i2c: E2 [08:48:55]MH_I2C_Read... [08:48:55]Read from MH i2c: E2 0E 00 [08:48:55]MH_I2C_Read... [08:48:55]Read from MH i2c: E2 0E 00 59 34 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 80 [08:48:55]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [08:48:55]wFMCommunicate OK [08:48:55]SAM_PROTO_GetShiftState done [08:48:55]FM_GetShiftState done [08:48:55]req_shift_opened done [08:48:55]requested_item shift.open_date is exist - process it [08:48:55]req_shift_open_date [08:48:55]req_shift_open_date done [08:48:55]produce_requested_data done [08:48:55]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49387,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [08:48:55]process_action_free close_receipt [08:48:55]json_value_free [08:48:55]json_value_free done [08:48:55]process_json_proto returns [08:48:55]Send response to host [08:48:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49387,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [08:48:55]free response buf [08:48:55]execute_script done [08:48:55]execute_script returns [08:48:55]free content buf [08:48:55]Sock 9.Close socket [08:48:55]Sock 9.Thread stoped [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:54]OFD Sender: No OFD packet to send [08:51:59]OFD Sender: No OFD packet to send [08:52:04]OFD Sender: No OFD packet to send [08:52:09]OFD Sender: No OFD packet to send [08:52:14]OFD Sender: No OFD packet to send [08:52:19]OFD Sender: No OFD packet to send [08:52:24]OFD Sender: No OFD packet to send [08:52:29]OFD Sender: No OFD packet to send [08:52:34]OFD Sender: No OFD packet to send [08:52:39]OFD Sender: No OFD packet to send [08:52:44]OFD Sender: No OFD packet to send [08:52:49]OFD Sender: No OFD packet to send [08:52:54]OFD Sender: No OFD packet to send [08:52:59]OFD Sender: No OFD packet to send [08:53:04]OFD Sender: No OFD packet to send [08:53:09]OFD Sender: No OFD packet to send [08:53:14]OFD Sender: No OFD packet to send [08:53:19]OFD Sender: No OFD packet to send [08:53:24]OFD Sender: No OFD packet to send [08:53:29]OFD Sender: No OFD packet to send [08:53:34]OFD Sender: No OFD packet to send [08:53:39]OFD Sender: No OFD packet to send [08:53:44]OFD Sender: No OFD packet to send [08:53:49]OFD Sender: No OFD packet to send [08:53:54]OFD Sender: No OFD packet to send [08:53:59]OFD Sender: No OFD packet to send [08:54:04]OFD Sender: No OFD packet to send [08:54:09]OFD Sender: No OFD packet to send [08:54:14]OFD Sender: No OFD packet to send [08:54:19]OFD Sender: No OFD packet to send [08:54:24]OFD Sender: No OFD packet to send [08:54:29]OFD Sender: No OFD packet to send [08:54:34]OFD Sender: No OFD packet to send [08:54:39]OFD Sender: No OFD packet to send [08:54:44]OFD Sender: No OFD packet to send [08:54:49]OFD Sender: No OFD packet to send [08:54:54]OFD Sender: No OFD packet to send [08:54:59]OFD Sender: No OFD packet to send [08:55:04]OFD Sender: No OFD packet to send [08:55:09]OFD Sender: No OFD packet to send [08:55:14]OFD Sender: No OFD packet to send [08:55:19]OFD Sender: No OFD packet to send [08:55:24]OFD Sender: No OFD packet to send [08:55:29]OFD Sender: No OFD packet to send [08:55:34]OFD Sender: No OFD packet to send [08:55:39]OFD Sender: No OFD packet to send [08:55:44]OFD Sender: No OFD packet to send [08:55:49]OFD Sender: No OFD packet to send [08:55:54]OFD Sender: No OFD packet to send [08:55:59]OFD Sender: No OFD packet to send [08:56:04]OFD Sender: No OFD packet to send [08:56:09]OFD Sender: No OFD packet to send [08:56:14]OFD Sender: No OFD packet to send [08:56:19]OFD Sender: No OFD packet to send [08:56:24]OFD Sender: No OFD packet to send [08:56:29]OFD Sender: No OFD packet to send [08:56:34]OFD Sender: No OFD packet to send [08:56:39]OFD Sender: No OFD packet to send [08:56:44]OFD Sender: No OFD packet to send [08:56:49]OFD Sender: No OFD packet to send [08:56:54]OFD Sender: No OFD packet to send [08:56:59]OFD Sender: No OFD packet to send [08:57:04]OFD Sender: No OFD packet to send [08:57:09]OFD Sender: No OFD packet to send [08:57:14]OFD Sender: No OFD packet to send [08:57:19]OFD Sender: No OFD packet to send [08:57:24]OFD Sender: No OFD packet to send [08:57:29]OFD Sender: No OFD packet to send [08:57:34]OFD Sender: No OFD packet to send [08:57:39]OFD Sender: No OFD packet to send [08:57:44]OFD Sender: No OFD packet to send [08:57:49]OFD Sender: No OFD packet to send [08:57:54]OFD Sender: No OFD packet to send [08:57:59]OFD Sender: No OFD packet to send [08:58:04]OFD Sender: No OFD packet to send [08:58:09]OFD Sender: No OFD packet to send [08:58:14]OFD Sender: No OFD packet to send [08:58:19]OFD Sender: No OFD packet to send [08:58:24]OFD Sender: No OFD packet to send [08:58:29]OFD Sender: No OFD packet to send [08:58:32]accept exits with 7 [08:58:32]New connection [08:58:32]New thread 3066830180 created [08:58:32]Thread 3066973540 joined [08:58:32]Waiting for new connection... [08:58:32] Sock 7.Parse request [08:58:32]Sock 7.Check first char [08:58:32]Sock 7.First char is OK [08:58:32]request: POST /json_proto HTTP/1.0 [08:58:32]Method: POST [08:58:32]URL: /json_proto [08:58:32]Method is POST - this is cgi request [08:58:32]url: /json_proto [08:58:32]query_string will be loaded in cgi processing [08:58:32]execute_cgi json_proto POST (null) [08:58:32]execute_cgi path=json_proto method=POST [08:58:32]POST find Content-Length [08:58:32]Host: 172.17.46.196:8080 [08:58:32]Content-Length: 623 [08:58:32]Content-Type: application/json [08:58:32] [08:58:32]POST finish read [08:58:32]Found Content-Length = 623 [08:58:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189627", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:32]execute_script... [08:58:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189627", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:58:32]POST & json_proto [08:58:32]process_json_proto [08:58:32]json parsed OK: [08:58:32]protocol is kg_v1.0 [08:58:32]action value=close_receipt [08:58:32]process_action close_receipt [08:58:32]cmd_close_receipt [08:58:32]MH_GetDate [08:58:32]Write to MH i2c: F0 00 00 5A 34 7D [08:58:32]Write i2c OK [08:58:32]MH_I2C_Read... [08:58:32]Read from MH i2c: F0 [08:58:32]MH_I2C_Read... [08:58:32]Read from MH i2c: F0 09 00 [08:58:32]MH_I2C_Read... [08:58:32]Read from MH i2c: F0 09 00 5A 34 00 BC 14 BF 66 07 E8 5D 66 2D [08:58:32]GetLastDocTimeStamp 1723798136 [08:58:32]current date 1723798716 [08:58:32]FM_GetShiftState [08:58:32]SAM_PROTO_GetShiftState [08:58:32]wFMCommunicate request_size=4 [08:58:32]MH_SAM_APDU [08:58:32]CAPDU: 80 13 01 00 [08:58:32]Write to MH i2c: E2 08 00 5B 34 80 13 01 00 00 00 00 00 0C [08:58:32]Write i2c OK [08:58:32]MH_I2C_Read... [08:58:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:32]Read from MH i2c: E2 [08:58:32]MH_I2C_Read... [08:58:32]Read from MH i2c: E2 0E 00 [08:58:32]MH_I2C_Read... [08:58:32]Read from MH i2c: E2 0E 00 5B 34 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 82 [08:58:32]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [08:58:32]wFMCommunicate OK [08:58:32]SAM_PROTO_GetShiftState done [08:58:32]FM_GetShiftState done [08:58:32]opened in 1723766958 [08:58:32]opened+sec_in_day 1723853358 [08:58:32]quantity*price = 14000 [08:58:32]sum+1 = 14001 [08:58:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 36 16.08.2024 08:58 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49388 ФПД: 267954760529309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T085836&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49388&fm=267954760529309&tin=02508201610067®Number=0000000000092546&sum=14000 0 [08:58:33]StoreToDocumentArchive [08:58:33]shift 464 fd 49388 [08:58:33]save to /storage/0464/doc_00049388 [08:58:33]save last doc name /storage/0464/doc_00049388 to /storage/kkm_last_doc_name [08:58:33]save OK [08:58:33]Clear old archive folders... [08:58:33]ProcessDocumentItem done err = 0, tmpTLVsize=275 [08:58:33]tlvbuf is 00E207B0 [08:58:33]SAM_PROTO_ClearQueue [08:58:33]wFMCommunicate request_size=4 [08:58:33]MH_SAM_APDU [08:58:33]CAPDU: 80 09 00 00 [08:58:33]Write to MH i2c: E2 08 00 68 34 80 09 00 00 00 00 00 00 0E [08:58:33]Write i2c OK [08:58:33]MH_I2C_Read... [08:58:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:33]Read from MH i2c: E2 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 68 34 00 90 00 10 [08:58:33]RAPDU: 90 00 [08:58:33]wFMCommunicate OK [08:58:33]SAM_PROTO_ClearQueue done [08:58:33]KKMCreateOFDPacket [08:58:33]OFDProtocolAddRootSTLVToBuf [08:58:33]FM_MakeSignedData [08:58:33]FM_MakeSignedData [08:58:33]SAM_PROTO_SignData [08:58:33]wFMCommunicate request_size=4 [08:58:33]MH_SAM_APDU [08:58:33]CAPDU: 80 0D 01 02 [08:58:33]Write to MH i2c: E2 08 00 69 34 80 0D 01 02 00 00 00 00 16 [08:58:33]Write i2c OK [08:58:33]MH_I2C_Read... [08:58:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:33]Read from MH i2c: E2 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 69 34 00 90 00 11 [08:58:33]RAPDU: 90 00 [08:58:33]wFMCommunicate OK [08:58:33]wFMCommunicate request_size=255 [08:58:33]MH_SAM_APDU [08:58:33]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 BC 14 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [08:58:33]Write to MH i2c: E2 02 01 6A 34 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 BC 14 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 91 [08:58:33]Write i2c OK [08:58:33]MH_I2C_Read... [08:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:33]Read from MH i2c: E2 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 6A 34 00 90 00 12 [08:58:33]RAPDU: 90 00 [08:58:33]wFMCommunicate OK [08:58:33]wFMCommunicate request_size=34 [08:58:33]MH_SAM_APDU [08:58:33]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EC C0 00 00 35 04 06 00 F3 B4 14 51 35 9D [08:58:33]Write to MH i2c: E2 25 00 6B 34 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EC C0 00 00 35 04 06 00 F3 B4 14 51 35 9D 00 00 5C [08:58:33]Write i2c OK [08:58:33]MH_I2C_Read... [08:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:33]Read from MH i2c: E2 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 03 00 6B 34 00 90 00 13 [08:58:33]RAPDU: 90 00 [08:58:33]wFMCommunicate OK [08:58:33]wFMCommunicate request_size=4 [08:58:33]MH_SAM_APDU [08:58:33]CAPDU: 80 0D 03 02 [08:58:33]Write to MH i2c: E2 08 00 6C 34 80 0D 03 02 00 00 00 00 1B [08:58:33]Write i2c OK [08:58:33]MH_I2C_Read... [08:58:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:33]Read from MH i2c: E2 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 0B 00 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 0B 00 6C 34 00 AF 12 80 CE 05 19 4A D3 90 00 66 [08:58:33]RAPDU: AF 12 80 CE 05 19 4A D3 90 00 [08:58:33]wFMCommunicate OK [08:58:33]SAM_PROTO_SignData done [08:58:33]FM_MakeSignedData done [08:58:33]CreateOFDProtocolMessage [08:58:33]wFMCommunicate request_size=4 [08:58:33]MH_SAM_APDU [08:58:33]CAPDU: 80 11 00 00 [08:58:33]Write to MH i2c: E2 08 00 6D 34 80 11 00 00 00 00 00 00 1B [08:58:33]Write i2c OK [08:58:33]MH_I2C_Read... [08:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:33]Read from MH i2c: E2 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 17 00 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: E2 17 00 6D 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 66 [08:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:58:33]wFMCommunicate OK [08:58:33]CreateOFDProtocolMessage done [08:58:33]OFDSenderStorePacket 49388 [08:58:33]StoreOFDPacket docnum=49388 [08:58:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 C0 42 1F 01 8B C4 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 BC 14 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EC C0 00 00 35 04 06 00 F3 B4 14 51 35 9D AF 12 80 CE 05 19 4A D3 [08:58:33]CheckFolder [08:58:33]dirname=/storage/ofd_packets [08:58:33]CheckFolder done [08:58:33]ProducePacketName [08:58:33]name=ofd_packets/00049388 [08:58:33]NVStorageSaveData ofd_packets/00049388 [08:58:33]File name is /storage/ofd_packets/00049388 [08:58:33]Write 325 bytes [08:58:33]NVStorageSaveData done [08:58:33]OFDSenderStorePacket done [08:58:33]KKMCreateOFDPacket done [08:58:33]NVStorageSaveData kkm_last_timestamp [08:58:33]File name is /storage/kkm_last_timestamp [08:58:33]Write 4 bytes [08:58:33]NVStorageSaveData done [08:58:33]ExternCall_PrintAddStr [08:58:33]wPrintStart [08:58:33]Write to MH i2c: 01 00 00 6E 34 A2 [08:58:33]Write i2c OK [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: 01 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: 01 07 00 [08:58:33]MH_I2C_Read... [08:58:33]Read from MH i2c: 01 07 00 6E 34 00 00 00 00 00 FF 0F B7 [08:58:33]RasterBufferAndPrint [08:58:33]line Счет N : (3)189627 [08:58:33]line ИНН: 02508201610067 [08:58:33]line Контрольно-Кассовый Чек [08:58:33]line ПРОДАЖА [08:58:33]line Товар: 48743587 [08:58:33]line Сигареты Winston XStyle Silver [08:58:33]line 1.000 * 140.00 [08:58:33]line = 140.00 [08:58:33]line НДС 12% НСП 1% [08:58:33]line > о реализуемом товаре [08:58:33]line ИТОГО: 140.00 [08:58:33]line НСП 1% : 1.24 [08:58:33]line НДС 12% : 14.87 [08:58:33]line Наличными: 140.00 [08:58:33]line Безнал.: 0.00 [08:58:33]line Место: АЗС № 95 "Партнер Нефть" [08:58:33]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [08:58:33]line СНО: Общий режим [08:58:33]line Чек 36 16.08.2024 08:58 [08:58:33]line Смена: 464 ФФД: 1.0 [08:58:33]line ЗНМ: 0300000078 [08:58:33]line РНМ: 0000000000092546 [08:58:33]line Версия ККМ: 001 [08:58:33]line ФМ: 0000000000871800 [08:58:33]line ФД: 49388 [08:58:33]line ФПД: 267954760529309 [08:58:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T085836&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49388&fm=267954760529309&tin=02508201610067®Number=0000000000092546&sum=14000 [08:58:34]OFD Sender: Processing packet 49388 [packets to send 21, broken 20] [08:58:34]ProducePacketName [08:58:34]name=ofd_packets/00049388 [08:58:34]OFD Sender: To server: pG, [08:58:34]CommunicateWithHost lk.salyk.kg:30040 [08:58:34]ConnectInit lk.salyk.kg [08:58:34]line 0 [08:58:34]written 0, free lines is 4095 [08:58:34]Connected sock=10 [08:58:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 C0 42 1F 01 8B C4 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 BC 14 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EC C0 00 00 35 04 06 00 F3 B4 14 51 35 9D AF 12 80 CE 05 19 4A D3 [08:58:34]Write to MH i2c: 01 00 00 97 34 CB [08:58:34]Write i2c OK [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: 01 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: 01 07 00 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: 01 07 00 97 34 00 00 00 00 00 D5 0C B3 [08:58:34]RasterBufferAndPrint [08:58:34]line [08:58:34]line [08:58:34]line [08:58:34]line [08:58:34]line [08:58:34]written 0, free lines is 3292 [08:58:34]MH_Cut [08:58:34]Write to MH i2c: D1 01 00 9E 34 01 A4 [08:58:34]Write i2c OK [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: D1 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: D1 01 00 [08:58:34]MH_I2C_Read... [08:58:34]Read from MH i2c: D1 01 00 9E 34 00 A3 [08:58:34]Write to MH i2c: 01 00 00 9F 34 D3 [08:58:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 4C 0B 47 00 F0 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 38 37 31 38 30 30 10 04 04 00 EC C0 00 00 F4 03 04 00 FC BF BE 66 B6 04 01 00 00 91 AF 69 A7 1F 20 A5 5F [08:58:34]CommunicateWithHost err = 0 [08:58:34]CheckOFDResponse [08:58:34]1017 (14) - 77093643461234 [08:58:34]1041 (16) - 0000000000871800 [08:58:34]1040 (4) - 49388 [08:58:34]1012 (4) - 16.08.2024 02:57 [08:58:34]1206 (1) - 0 [08:58:34]OFD Sender: Remove packet 49388 [08:58:34]ProducePacketName [08:58:34]name=ofd_packets/00049388 [08:58:34]NVStorageDeleteData [08:58:34]Write i2c OK [08:58:34]MH_I2C_Read... [08:58:35]OFD Sender: No OFD packet to send [08:58:35]*** Cut start [08:58:35]*** Purtial cut [08:58:35]*** CUTSNS_PIN = 0 [08:58:35]*** Stage 1: CUTSNS_PIN = 1 [08:58:37]Read from MH i2c: 01 [08:58:37]MH_I2C_Read... [08:58:37]*** Stop cut motor [08:58:37]*** Cut end [08:58:37]Read from MH i2c: 01 07 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: 01 07 00 9F 34 00 00 00 00 00 FF 0F E8 [08:58:37]process_action close_receipt done [08:58:37]requested_data is exist [08:58:37]produce_requested_data [08:58:37]requested_item fm.sn is exist - process it [08:58:37]wFMCommunicate request_size=4 [08:58:37]MH_SAM_APDU [08:58:37]CAPDU: 80 11 00 00 [08:58:37]Write to MH i2c: E2 08 00 A0 34 80 11 00 00 00 00 00 00 4E [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:37]Read from MH i2c: E2 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 17 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 17 00 A0 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 99 [08:58:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [08:58:37]wFMCommunicate OK [08:58:37]requested_item fd.num is exist - process it [08:58:37]SAM_PROTO_GetFieldsCounters [08:58:37]wFMCommunicate request_size=4 [08:58:37]MH_SAM_APDU [08:58:37]CAPDU: 80 13 00 00 [08:58:37]Write to MH i2c: E2 08 00 A1 34 80 13 00 00 00 00 00 00 51 [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:37]Read from MH i2c: E2 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 62 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 62 00 A1 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EC C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 54 [08:58:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EC C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:58:37]wFMCommunicate OK [08:58:37]SAM_PROTO_GetFieldsCounters done [08:58:37]requested_item shift.num is exist - process it [08:58:37]requested_item shift.opened is exist - process it [08:58:37]req_shift_opened [08:58:37]FM_GetShiftState [08:58:37]SAM_PROTO_GetShiftState [08:58:37]wFMCommunicate request_size=4 [08:58:37]MH_SAM_APDU [08:58:37]CAPDU: 80 13 01 00 [08:58:37]Write to MH i2c: E2 08 00 A2 34 80 13 01 00 00 00 00 00 53 [08:58:37]Write i2c OK [08:58:37]MH_I2C_Read... [08:58:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:37]Read from MH i2c: E2 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 0E 00 [08:58:37]MH_I2C_Read... [08:58:37]Read from MH i2c: E2 0E 00 A2 34 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 C9 [08:58:37]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [08:58:37]wFMCommunicate OK [08:58:37]SAM_PROTO_GetShiftState done [08:58:37]FM_GetShiftState done [08:58:37]req_shift_opened done [08:58:37]requested_item shift.open_date is exist - process it [08:58:37]req_shift_open_date [08:58:37]req_shift_open_date done [08:58:37]produce_requested_data done [08:58:37]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49388,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [08:58:37]process_action_free close_receipt [08:58:37]json_value_free [08:58:37]json_value_free done [08:58:37]process_json_proto returns [08:58:37]Send response to host [08:58:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49388,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [08:58:37]free response buf [08:58:37]execute_script done [08:58:37]execute_script returns [08:58:37]free content buf [08:58:37]Sock 7.Close socket [08:58:37]Sock 7.Thread stoped [08:58:40]OFD Sender: No OFD packet to send [08:58:45]OFD Sender: No OFD packet to send [08:58:50]OFD Sender: No OFD packet to send [08:58:55]OFD Sender: No OFD packet to send [08:59:00]OFD Sender: No OFD packet to send [08:59:05]OFD Sender: No OFD packet to send [08:59:10]OFD Sender: No OFD packet to send [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:50]OFD Sender: No OFD packet to send [08:59:55]OFD Sender: No OFD packet to send [09:00:00]OFD Sender: No OFD packet to send [09:00:05]OFD Sender: No OFD packet to send [09:00:10]OFD Sender: No OFD packet to send [09:00:15]OFD Sender: No OFD packet to send [09:00:20]OFD Sender: No OFD packet to send [09:00:25]OFD Sender: No OFD packet to send [09:00:30]OFD Sender: No OFD packet to send [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:50]OFD Sender: No OFD packet to send [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [09:02:15]OFD Sender: No OFD packet to send [09:02:20]OFD Sender: No OFD packet to send [09:02:25]OFD Sender: No OFD packet to send [09:02:30]OFD Sender: No OFD packet to send [09:02:35]OFD Sender: No OFD packet to send [09:02:40]OFD Sender: No OFD packet to send [09:02:45]OFD Sender: No OFD packet to send [09:02:50]OFD Sender: No OFD packet to send [09:02:55]OFD Sender: No OFD packet to send [09:03:00]OFD Sender: No OFD packet to send [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:47]accept exits with 9 [09:03:47]New connection [09:03:47]New thread 3066973540 created [09:03:47]Thread 3066830180 joined [09:03:47]Waiting for new connection... [09:03:47] Sock 9.Parse request [09:03:47]Sock 9.Check first char [09:03:47]Sock 9.First char is OK [09:03:47]request: POST /json_proto HTTP/1.0 [09:03:47]Method: POST [09:03:47]URL: /json_proto [09:03:47]Method is POST - this is cgi request [09:03:47]url: /json_proto [09:03:47]query_string will be loaded in cgi processing [09:03:47]execute_cgi json_proto POST (null) [09:03:47]execute_cgi path=json_proto method=POST [09:03:47]POST find Content-Length [09:03:47]Host: 172.17.46.196:8080 [09:03:47]Content-Length: 675 [09:03:47]Content-Type: application/json [09:03:47] [09:03:47]POST finish read [09:03:47]Found Content-Length = 675 [09:03:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189628", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:47]execute_script... [09:03:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189628", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:47]POST & json_proto [09:03:47]process_json_proto [09:03:47]json parsed OK: [09:03:47]protocol is kg_v1.0 [09:03:47]action value=close_receipt [09:03:47]process_action close_receipt [09:03:47]cmd_close_receipt [09:03:47]MH_GetDate [09:03:47]Write to MH i2c: F0 00 00 A3 34 C6 [09:03:47]Write i2c OK [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: F0 [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: F0 09 00 [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: F0 09 00 A3 34 00 F7 15 BF 66 07 E8 5D 66 B2 [09:03:47]GetLastDocTimeStamp 1723798716 [09:03:47]current date 1723799031 [09:03:47]FM_GetShiftState [09:03:47]SAM_PROTO_GetShiftState [09:03:47]wFMCommunicate request_size=4 [09:03:47]MH_SAM_APDU [09:03:47]CAPDU: 80 13 01 00 [09:03:47]Write to MH i2c: E2 08 00 A4 34 80 13 01 00 00 00 00 00 55 [09:03:47]Write i2c OK [09:03:47]MH_I2C_Read... [09:03:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:47]Read from MH i2c: E2 [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: E2 0E 00 [09:03:47]MH_I2C_Read... [09:03:47]Read from MH i2c: E2 0E 00 A4 34 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 CB [09:03:47]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:03:47]wFMCommunicate OK [09:03:47]SAM_PROTO_GetShiftState done [09:03:47]FM_GetShiftState done [09:03:47]opened in 1723766958 [09:03:47]opened+sec_in_day 1723853358 [09:03:47]quantity*price = 6500 [09:03:47]sum+1 = 6501 [09:03:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 37 16.08.2024 09:03 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49389 ФПД: 124670083961339 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T090351&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49389&fm=124670083961339&tin=02508201610067®Number=0000000000092546&sum=6500 0 [09:03:48]StoreToDocumentArchive [09:03:48]shift 464 fd 49389 [09:03:48]save to /storage/0464/doc_00049389 [09:03:48]save last doc name /storage/0464/doc_00049389 to /storage/kkm_last_doc_name [09:03:48]save OK [09:03:48]Clear old archive folders... [09:03:48]ProcessDocumentItem done err = 0, tmpTLVsize=286 [09:03:48]tlvbuf is 00E14EF0 [09:03:48]SAM_PROTO_ClearQueue [09:03:48]wFMCommunicate request_size=4 [09:03:48]MH_SAM_APDU [09:03:48]CAPDU: 80 09 00 00 [09:03:48]Write to MH i2c: E2 08 00 B1 34 80 09 00 00 00 00 00 00 57 [09:03:48]Write i2c OK [09:03:48]MH_I2C_Read... [09:03:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:48]Read from MH i2c: E2 [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: E2 03 00 [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: E2 03 00 B1 34 00 90 00 59 [09:03:48]RAPDU: 90 00 [09:03:48]wFMCommunicate OK [09:03:48]SAM_PROTO_ClearQueue done [09:03:48]KKMCreateOFDPacket [09:03:48]OFDProtocolAddRootSTLVToBuf [09:03:48]FM_MakeSignedData [09:03:48]FM_MakeSignedData [09:03:48]SAM_PROTO_SignData [09:03:48]wFMCommunicate request_size=4 [09:03:48]MH_SAM_APDU [09:03:48]CAPDU: 80 0D 01 02 [09:03:48]Write to MH i2c: E2 08 00 B2 34 80 0D 01 02 00 00 00 00 5F [09:03:48]Write i2c OK [09:03:48]MH_I2C_Read... [09:03:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:48]Read from MH i2c: E2 [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: E2 03 00 [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: E2 03 00 B2 34 00 90 00 5A [09:03:48]RAPDU: 90 00 [09:03:48]wFMCommunicate OK [09:03:48]wFMCommunicate request_size=255 [09:03:48]MH_SAM_APDU [09:03:48]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F7 15 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 [09:03:48]Write to MH i2c: E2 02 01 B3 34 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F7 15 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 00 00 4D [09:03:48]Write i2c OK [09:03:48]MH_I2C_Read... [09:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:48]Read from MH i2c: E2 [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: E2 03 00 [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: E2 03 00 B3 34 00 90 00 5B [09:03:48]RAPDU: 90 00 [09:03:48]wFMCommunicate OK [09:03:48]wFMCommunicate request_size=45 [09:03:48]MH_SAM_APDU [09:03:48]CAPDU: 80 0D 02 02 28 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 ED C0 00 00 35 04 06 00 71 63 04 11 91 FB [09:03:48]Write to MH i2c: E2 30 00 B4 34 80 0D 02 02 28 00 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 ED C0 00 00 35 04 06 00 71 63 04 11 91 FB 00 00 D2 [09:03:48]Write i2c OK [09:03:48]MH_I2C_Read... [09:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:48]Read from MH i2c: E2 [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: E2 03 00 [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: E2 03 00 B4 34 00 90 00 5C [09:03:48]RAPDU: 90 00 [09:03:48]wFMCommunicate OK [09:03:48]wFMCommunicate request_size=4 [09:03:48]MH_SAM_APDU [09:03:48]CAPDU: 80 0D 03 02 [09:03:48]Write to MH i2c: E2 08 00 B5 34 80 0D 03 02 00 00 00 00 64 [09:03:48]Write i2c OK [09:03:48]MH_I2C_Read... [09:03:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:48]Read from MH i2c: E2 [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: E2 0B 00 [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: E2 0B 00 B5 34 00 AA C5 B4 74 4D 14 F7 19 90 00 6D [09:03:48]RAPDU: AA C5 B4 74 4D 14 F7 19 90 00 [09:03:48]wFMCommunicate OK [09:03:48]SAM_PROTO_SignData done [09:03:48]FM_MakeSignedData done [09:03:48]CreateOFDProtocolMessage [09:03:48]wFMCommunicate request_size=4 [09:03:48]MH_SAM_APDU [09:03:48]CAPDU: 80 11 00 00 [09:03:48]Write to MH i2c: E2 08 00 B6 34 80 11 00 00 00 00 00 00 64 [09:03:48]Write i2c OK [09:03:48]MH_I2C_Read... [09:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:48]Read from MH i2c: E2 [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: E2 17 00 [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: E2 17 00 B6 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AF [09:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:03:48]wFMCommunicate OK [09:03:48]CreateOFDProtocolMessage done [09:03:48]OFDSenderStorePacket 49389 [09:03:48]StoreOFDPacket docnum=49389 [09:03:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 32 01 00 00 C2 00 2A 01 42 ED 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F7 15 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 ED C0 00 00 35 04 06 00 71 63 04 11 91 FB AA C5 B4 74 4D 14 F7 19 [09:03:48]CheckFolder [09:03:48]dirname=/storage/ofd_packets [09:03:48]CheckFolder done [09:03:48]ProducePacketName [09:03:48]name=ofd_packets/00049389 [09:03:48]NVStorageSaveData ofd_packets/00049389 [09:03:48]File name is /storage/ofd_packets/00049389 [09:03:48]Write 336 bytes [09:03:48]NVStorageSaveData done [09:03:48]OFDSenderStorePacket done [09:03:48]KKMCreateOFDPacket done [09:03:48]NVStorageSaveData kkm_last_timestamp [09:03:48]File name is /storage/kkm_last_timestamp [09:03:48]Write 4 bytes [09:03:48]NVStorageSaveData done [09:03:48]ExternCall_PrintAddStr [09:03:48]wPrintStart [09:03:48]Write to MH i2c: 01 00 00 B7 34 EB [09:03:48]Write i2c OK [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: 01 [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: 01 07 00 [09:03:48]MH_I2C_Read... [09:03:48]Read from MH i2c: 01 07 00 B7 34 00 00 00 00 00 FF 0F 00 [09:03:48]RasterBufferAndPrint [09:03:48]line Счет N : (3)189628 [09:03:48]line ИНН: 02508201610067 [09:03:48]line Контрольно-Кассовый Чек [09:03:48]line ПРОДАЖА [09:03:48]line Товар: 4700040114120 [09:03:48]line Султан чай 1л. чер персик [09:03:48]line 1.000 * 65.00 [09:03:48]line = 65.00 [09:03:48]line НДС 12% НСП 1% [09:03:48]line > о реализуемом товаре [09:03:48]line ИТОГО: 65.00 [09:03:48]line НСП 1% : 0.57 [09:03:48]line НДС 12% : 6.90 [09:03:48]line Наличными: 65.00 [09:03:48]line Безнал.: 0.00 [09:03:48]line Место: АЗС № 95 "Партнер Нефть" [09:03:48]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:03:48]line СНО: Общий режим [09:03:48]line Чек 37 16.08.2024 09:03 [09:03:48]line Смена: 464 ФФД: 1.0 [09:03:48]line ЗНМ: 0300000078 [09:03:48]line РНМ: 0000000000092546 [09:03:48]line Версия ККМ: 001 [09:03:48]line ФМ: 0000000000871800 [09:03:48]line ФД: 49389 [09:03:48]line ФПД: 124670083961339 [09:03:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T090351&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49389&fm=124670083961339&tin=02508201610067®Number=0000000000092546&sum=6500 [09:03:49]line 0 [09:03:49]OFD Sender: Processing packet 49389 [packets to send 21, broken 20] [09:03:49]ProducePacketName [09:03:49]name=ofd_packets/00049389 [09:03:49]OFD Sender: To server: pG, [09:03:49]CommunicateWithHost lk.salyk.kg:30040 [09:03:49]ConnectInit lk.salyk.kg [09:03:49]written 0, free lines is 4095 [09:03:49]Connected sock=10 [09:03:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 32 01 00 00 C2 00 2A 01 42 ED 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 F7 15 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 ED C0 00 00 35 04 06 00 71 63 04 11 91 FB AA C5 B4 74 4D 14 F7 19 [09:03:49]Write to MH i2c: 01 00 00 DF 34 13 [09:03:49]Write i2c OK [09:03:49]MH_I2C_Read... [09:03:49]Read from MH i2c: 01 [09:03:49]MH_I2C_Read... [09:03:49]Read from MH i2c: 01 07 00 [09:03:49]MH_I2C_Read... [09:03:49]Read from MH i2c: 01 07 00 DF 34 00 00 00 00 00 01 0D 28 [09:03:49]RasterBufferAndPrint [09:03:49]line [09:03:49]line [09:03:49]line [09:03:49]line [09:03:49]line [09:03:49]written 0, free lines is 3338 [09:03:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 15 E9 47 00 77 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 38 37 31 38 30 30 10 04 04 00 ED C0 00 00 F4 03 04 00 37 C1 BE 66 B6 04 01 00 00 6D 07 B5 9A 60 4E C2 84 [09:03:49]CommunicateWithHost err = 0 [09:03:49]CheckOFDResponse [09:03:49]1017 (14) - 77093643461234 [09:03:49]1041 (16) - 0000000000871800 [09:03:49]1040 (4) - 49389 [09:03:49]1012 (4) - 16.08.2024 03:02 [09:03:49]1206 (1) - 0 [09:03:49]OFD Sender: Remove packet 49389 [09:03:49]ProducePacketName [09:03:49]name=ofd_packets/00049389 [09:03:49]NVStorageDeleteData [09:03:49]MH_Cut [09:03:49]Write to MH i2c: D1 01 00 E6 34 01 EC [09:03:49]Write i2c OK [09:03:49]MH_I2C_Read... [09:03:49]Read from MH i2c: D1 [09:03:49]MH_I2C_Read... [09:03:49]Read from MH i2c: D1 01 00 [09:03:49]MH_I2C_Read... [09:03:49]Read from MH i2c: D1 01 00 E6 34 00 EB [09:03:49]Write to MH i2c: 01 00 00 E7 34 1B [09:03:49]Write i2c OK [09:03:49]MH_I2C_Read... [09:03:50]OFD Sender: No OFD packet to send [09:03:50]*** Cut start [09:03:50]*** Purtial cut [09:03:50]*** Stage 1: CUTSNS_PIN = 1 [09:03:50]Read from MH i2c: 01 [09:03:50]MH_I2C_Read... [09:03:50]*** Stop cut motor [09:03:50]*** Cut end [09:03:50]Read from MH i2c: 01 07 00 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: 01 07 00 E7 34 00 00 00 00 00 FF 0F 30 [09:03:50]process_action close_receipt done [09:03:50]requested_data is exist [09:03:50]produce_requested_data [09:03:50]requested_item fm.sn is exist - process it [09:03:50]wFMCommunicate request_size=4 [09:03:50]MH_SAM_APDU [09:03:50]CAPDU: 80 11 00 00 [09:03:50]Write to MH i2c: E2 08 00 E8 34 80 11 00 00 00 00 00 00 96 [09:03:50]Write i2c OK [09:03:50]MH_I2C_Read... [09:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:50]Read from MH i2c: E2 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: E2 17 00 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: E2 17 00 E8 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E1 [09:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:03:50]wFMCommunicate OK [09:03:50]requested_item fd.num is exist - process it [09:03:50]SAM_PROTO_GetFieldsCounters [09:03:50]wFMCommunicate request_size=4 [09:03:50]MH_SAM_APDU [09:03:50]CAPDU: 80 13 00 00 [09:03:50]Write to MH i2c: E2 08 00 E9 34 80 13 00 00 00 00 00 00 99 [09:03:50]Write i2c OK [09:03:50]MH_I2C_Read... [09:03:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:03:50]Read from MH i2c: E2 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: E2 62 00 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: E2 62 00 E9 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 ED C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [09:03:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 ED C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:03:50]wFMCommunicate OK [09:03:50]SAM_PROTO_GetFieldsCounters done [09:03:50]requested_item shift.num is exist - process it [09:03:50]requested_item shift.opened is exist - process it [09:03:50]req_shift_opened [09:03:50]FM_GetShiftState [09:03:50]SAM_PROTO_GetShiftState [09:03:50]wFMCommunicate request_size=4 [09:03:50]MH_SAM_APDU [09:03:50]CAPDU: 80 13 01 00 [09:03:50]Write to MH i2c: E2 08 00 EA 34 80 13 01 00 00 00 00 00 9B [09:03:50]Write i2c OK [09:03:50]MH_I2C_Read... [09:03:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:50]Read from MH i2c: E2 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: E2 0E 00 [09:03:50]MH_I2C_Read... [09:03:50]Read from MH i2c: E2 0E 00 EA 34 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 11 [09:03:50]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:03:50]wFMCommunicate OK [09:03:50]SAM_PROTO_GetShiftState done [09:03:50]FM_GetShiftState done [09:03:50]req_shift_opened done [09:03:50]requested_item shift.open_date is exist - process it [09:03:50]req_shift_open_date [09:03:50]req_shift_open_date done [09:03:50]produce_requested_data done [09:03:50]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49389,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [09:03:50]process_action_free close_receipt [09:03:50]json_value_free [09:03:50]json_value_free done [09:03:50]process_json_proto returns [09:03:50]Send response to host [09:03:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49389,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [09:03:50]free response buf [09:03:50]execute_script done [09:03:50]execute_script returns [09:03:50]free content buf [09:03:50]Sock 9.Close socket [09:03:50]Sock 9.Thread stoped [09:03:55]OFD Sender: No OFD packet to send [09:03:56]accept exits with 7 [09:03:56]New connection [09:03:56]New thread 3066830180 created [09:03:56]Thread 3066973540 joined [09:03:56]Waiting for new connection... [09:03:56] Sock 7.Parse request [09:03:56]Sock 7.Check first char [09:03:56]Sock 7.First char is OK [09:03:56]request: POST /json_proto HTTP/1.0 [09:03:56]Method: POST [09:03:56]URL: /json_proto [09:03:56]Method is POST - this is cgi request [09:03:56]url: /json_proto [09:03:56]query_string will be loaded in cgi processing [09:03:56]execute_cgi json_proto POST (null) [09:03:56]execute_cgi path=json_proto method=POST [09:03:56]POST find Content-Length [09:03:56]Host: 172.17.46.196:8080 [09:03:56]Content-Length: 628 [09:03:56]Content-Type: application/json [09:03:56] [09:03:56]POST finish read [09:03:56]Found Content-Length = 628 [09:03:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189629", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:56]execute_script... [09:03: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 : (3)189629", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:03:56]POST & json_proto [09:03:56]process_json_proto [09:03:56]json parsed OK: [09:03:56]protocol is kg_v1.0 [09:03:56]action value=close_receipt [09:03:56]process_action close_receipt [09:03:56]cmd_close_receipt [09:03:56]MH_GetDate [09:03:56]Write to MH i2c: F0 00 00 EB 34 0E [09:03:56]Write i2c OK [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: F0 [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: F0 09 00 [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: F0 09 00 EB 34 00 00 16 BF 66 07 E8 5D 66 04 [09:03:56]GetLastDocTimeStamp 1723799031 [09:03:56]current date 1723799040 [09:03:56]FM_GetShiftState [09:03:56]SAM_PROTO_GetShiftState [09:03:56]wFMCommunicate request_size=4 [09:03:56]MH_SAM_APDU [09:03:56]CAPDU: 80 13 01 00 [09:03:56]Write to MH i2c: E2 08 00 EC 34 80 13 01 00 00 00 00 00 9D [09:03:56]Write i2c OK [09:03:56]MH_I2C_Read... [09:03:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:03:56]Read from MH i2c: E2 [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: E2 0E 00 [09:03:56]MH_I2C_Read... [09:03:56]Read from MH i2c: E2 0E 00 EC 34 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 13 [09:03:56]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:03:56]wFMCommunicate OK [09:03:56]SAM_PROTO_GetShiftState done [09:03:56]FM_GetShiftState done [09:03:56]opened in 1723766958 [09:03:56]opened+sec_in_day 1723853358 [09:03:56]quantity*price = 26000 [09:03:56]sum+1 = 26001 [09:03:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 38 16.08.2024 09:04 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49390 ФПД: 94268154693042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T090401&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49390&fm=94268154693042&tin=02508201610067®Number=0000000000092546&sum=26000 0 [09:03:57]StoreToDocumentArchive [09:03:57]shift 464 fd 49390 [09:03:57]save to /storage/0464/doc_00049390 [09:03:57]save last doc name /storage/0464/doc_00049390 to /storage/kkm_last_doc_name [09:03:57]save OK [09:03:57]Clear old archive folders... [09:03:57]ProcessDocumentItem done err = 0, tmpTLVsize=276 [09:03:57]tlvbuf is 00EACFA0 [09:03:57]SAM_PROTO_ClearQueue [09:03:57]wFMCommunicate request_size=4 [09:03:57]MH_SAM_APDU [09:03:57]CAPDU: 80 09 00 00 [09:03:57]Write to MH i2c: E2 08 00 F9 34 80 09 00 00 00 00 00 00 9F [09:03:57]Write i2c OK [09:03:57]MH_I2C_Read... [09:03:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:03:57]Read from MH i2c: E2 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 03 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 03 00 F9 34 00 90 00 A1 [09:03:57]RAPDU: 90 00 [09:03:57]wFMCommunicate OK [09:03:57]SAM_PROTO_ClearQueue done [09:03:57]KKMCreateOFDPacket [09:03:57]OFDProtocolAddRootSTLVToBuf [09:03:57]FM_MakeSignedData [09:03:57]FM_MakeSignedData [09:03:57]SAM_PROTO_SignData [09:03:57]wFMCommunicate request_size=4 [09:03:57]MH_SAM_APDU [09:03:57]CAPDU: 80 0D 01 02 [09:03:57]Write to MH i2c: E2 08 00 FA 34 80 0D 01 02 00 00 00 00 A7 [09:03:57]Write i2c OK [09:03:57]MH_I2C_Read... [09:03:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:03:57]Read from MH i2c: E2 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 03 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 03 00 FA 34 00 90 00 A2 [09:03:57]RAPDU: 90 00 [09:03:57]wFMCommunicate OK [09:03:57]wFMCommunicate request_size=255 [09:03:57]MH_SAM_APDU [09:03:57]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 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 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 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 26 00 00 00 F4 03 04 00 01 16 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 [09:03:57]Write to MH i2c: E2 02 01 FB 34 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 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 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 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 26 00 00 00 F4 03 04 00 01 16 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 00 00 B0 [09:03:57]Write i2c OK [09:03:57]MH_I2C_Read... [09:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:57]Read from MH i2c: E2 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 03 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 03 00 FB 34 00 90 00 A3 [09:03:57]RAPDU: 90 00 [09:03:57]wFMCommunicate OK [09:03:57]wFMCommunicate request_size=35 [09:03:57]MH_SAM_APDU [09:03:57]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EE C0 00 00 35 04 06 00 55 BC 83 DF C5 B2 [09:03:57]Write to MH i2c: E2 26 00 FC 34 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EE C0 00 00 35 04 06 00 55 BC 83 DF C5 B2 00 00 2D [09:03:57]Write i2c OK [09:03:57]MH_I2C_Read... [09:03:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:03:57]Read from MH i2c: E2 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 03 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 03 00 FC 34 00 90 00 A4 [09:03:57]RAPDU: 90 00 [09:03:57]wFMCommunicate OK [09:03:57]wFMCommunicate request_size=4 [09:03:57]MH_SAM_APDU [09:03:57]CAPDU: 80 0D 03 02 [09:03:57]Write to MH i2c: E2 08 00 FD 34 80 0D 03 02 00 00 00 00 AC [09:03:57]Write i2c OK [09:03:57]MH_I2C_Read... [09:03:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:03:57]Read from MH i2c: E2 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 0B 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 0B 00 FD 34 00 99 BD FC BE 51 B5 7F ED 90 00 2F [09:03:57]RAPDU: 99 BD FC BE 51 B5 7F ED 90 00 [09:03:57]wFMCommunicate OK [09:03:57]SAM_PROTO_SignData done [09:03:57]FM_MakeSignedData done [09:03:57]CreateOFDProtocolMessage [09:03:57]wFMCommunicate request_size=4 [09:03:57]MH_SAM_APDU [09:03:57]CAPDU: 80 11 00 00 [09:03:57]Write to MH i2c: E2 08 00 FE 34 80 11 00 00 00 00 00 00 AC [09:03:57]Write i2c OK [09:03:57]MH_I2C_Read... [09:03:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:03:57]Read from MH i2c: E2 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 17 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: E2 17 00 FE 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F7 [09:03:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:03:57]wFMCommunicate OK [09:03:57]CreateOFDProtocolMessage done [09:03:57]OFDSenderStorePacket 49390 [09:03:57]StoreOFDPacket docnum=49390 [09:03:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 1A 0B 20 01 DA EC 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 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 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 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 26 00 00 00 F4 03 04 00 01 16 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EE C0 00 00 35 04 06 00 55 BC 83 DF C5 B2 99 BD FC BE 51 B5 7F ED [09:03:57]CheckFolder [09:03:57]dirname=/storage/ofd_packets [09:03:57]CheckFolder done [09:03:57]ProducePacketName [09:03:57]name=ofd_packets/00049390 [09:03:57]NVStorageSaveData ofd_packets/00049390 [09:03:57]File name is /storage/ofd_packets/00049390 [09:03:57]Write 326 bytes [09:03:57]NVStorageSaveData done [09:03:57]OFDSenderStorePacket done [09:03:57]KKMCreateOFDPacket done [09:03:57]NVStorageSaveData kkm_last_timestamp [09:03:57]File name is /storage/kkm_last_timestamp [09:03:57]Write 4 bytes [09:03:57]NVStorageSaveData done [09:03:57]ExternCall_PrintAddStr [09:03:57]wPrintStart [09:03:57]Write to MH i2c: 01 00 00 FF 34 33 [09:03:57]Write i2c OK [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: 01 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: 01 07 00 [09:03:57]MH_I2C_Read... [09:03:57]Read from MH i2c: 01 07 00 FF 34 00 00 00 00 00 FF 0F 48 [09:03:58]RasterBufferAndPrint [09:03:58]line Счет N : (3)189629 [09:03:58]line ИНН: 02508201610067 [09:03:58]line Контрольно-Кассовый Чек [09:03:58]line ПРОДАЖА [09:03:58]line Товар: 2000036230011 [09:03:58]line Кофе Латте XL(GABB TRADE) [09:03:58]line 2.000 * 130.00 [09:03:58]line = 260.00 [09:03:58]line НДС 12% НСП 1% [09:03:58]line > о реализуемом товаре [09:03:58]line ИТОГО: 260.00 [09:03:58]line НСП 1% : 2.30 [09:03:58]line НДС 12% : 27.61 [09:03:58]line Наличными: 260.00 [09:03:58]line Безнал.: 0.00 [09:03:58]line Место: АЗС № 95 "Партнер Нефть" [09:03:58]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:03:58]line СНО: Общий режим [09:03:58]line Чек 38 16.08.2024 09:04 [09:03:58]line Смена: 464 ФФД: 1.0 [09:03:58]line ЗНМ: 0300000078 [09:03:58]line РНМ: 0000000000092546 [09:03:58]line Версия ККМ: 001 [09:03:58]line ФМ: 0000000000871800 [09:03:58]line ФД: 49390 [09:03:58]line ФПД: 94268154693042 [09:03:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T090401&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49390&fm=94268154693042&tin=02508201610067®Number=0000000000092546&sum=26000 [09:03:58]line 0 [09:03:58]written 0, free lines is 4095 [09:03:58]OFD Sender: Processing packet 49390 [packets to send 21, broken 20] [09:03:58]ProducePacketName [09:03:58]name=ofd_packets/00049390 [09:03:58]OFD Sender: To server: pG, [09:03:58]CommunicateWithHost lk.salyk.kg:30040 [09:03:58]ConnectInit lk.salyk.kg [09:03:58]Connected sock=10 [09:03:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 1A 0B 20 01 DA EC 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 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 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 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 26 00 00 00 F4 03 04 00 01 16 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EE C0 00 00 35 04 06 00 55 BC 83 DF C5 B2 99 BD FC BE 51 B5 7F ED [09:03:58]Write to MH i2c: 01 00 00 27 35 5C [09:03:58]Write i2c OK [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: 01 [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: 01 07 00 [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: 01 07 00 27 35 00 00 00 00 00 FF 0C 6E [09:03:58]RasterBufferAndPrint [09:03:58]line [09:03:58]line [09:03:58]line [09:03:58]line [09:03:58]line [09:03:58]written 0, free lines is 3338 [09:03:58]MH_Cut [09:03:58]Write to MH i2c: D1 01 00 2E 35 01 35 [09:03:58]Write i2c OK [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: D1 [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: D1 01 00 [09:03:58]MH_I2C_Read... [09:03:58]Read from MH i2c: D1 01 00 2E 35 00 34 [09:03:58]Write to MH i2c: 01 00 00 2F 35 64 [09:03:58]Write i2c OK [09:03:58]MH_I2C_Read... [09:03:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 FB 4F 47 00 16 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EE C0 00 00 F4 03 04 00 40 C1 BE 66 B6 04 01 00 00 32 07 10 26 0B F7 99 EA [09:03:58]CommunicateWithHost err = 0 [09:03:58]CheckOFDResponse [09:03:58]1017 (14) - 77093643461234 [09:03:58]1041 (16) - 0000000000871800 [09:03:58]1040 (4) - 49390 [09:03:58]1012 (4) - 16.08.2024 03:02 [09:03:58]1206 (1) - 0 [09:03:58]OFD Sender: Remove packet 49390 [09:03:58]ProducePacketName [09:03:58]name=ofd_packets/00049390 [09:03:58]NVStorageDeleteData [09:03:59]OFD Sender: No OFD packet to send [09:03:59]*** Cut start [09:03:59]*** Purtial cut [09:03:59]*** CUTSNS_PIN = 0 [09:03:59]*** Stage 1: CUTSNS_PIN = 1 [09:04:01]Read from MH i2c: 01 [09:04:01]MH_I2C_Read... [09:04:01]*** Stop cut motor [09:04:01]*** Cut end [09:04:01]Read from MH i2c: 01 07 00 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: 01 07 00 2F 35 00 00 00 00 00 FF 0F 79 [09:04:01]process_action close_receipt done [09:04:01]requested_data is exist [09:04:01]produce_requested_data [09:04:01]requested_item fm.sn is exist - process it [09:04:01]wFMCommunicate request_size=4 [09:04:01]MH_SAM_APDU [09:04:01]CAPDU: 80 11 00 00 [09:04:01]Write to MH i2c: E2 08 00 30 35 80 11 00 00 00 00 00 00 DF [09:04:01]Write i2c OK [09:04:01]MH_I2C_Read... [09:04:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:01]Read from MH i2c: E2 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: E2 17 00 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: E2 17 00 30 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2A [09:04:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:04:01]wFMCommunicate OK [09:04:01]requested_item fd.num is exist - process it [09:04:01]SAM_PROTO_GetFieldsCounters [09:04:01]wFMCommunicate request_size=4 [09:04:01]MH_SAM_APDU [09:04:01]CAPDU: 80 13 00 00 [09:04:01]Write to MH i2c: E2 08 00 31 35 80 13 00 00 00 00 00 00 E2 [09:04:01]Write i2c OK [09:04:01]MH_I2C_Read... [09:04:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:01]Read from MH i2c: E2 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: E2 62 00 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: E2 62 00 31 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EE C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [09:04:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EE C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:04:01]wFMCommunicate OK [09:04:01]SAM_PROTO_GetFieldsCounters done [09:04:01]requested_item shift.num is exist - process it [09:04:01]requested_item shift.opened is exist - process it [09:04:01]req_shift_opened [09:04:01]FM_GetShiftState [09:04:01]SAM_PROTO_GetShiftState [09:04:01]wFMCommunicate request_size=4 [09:04:01]MH_SAM_APDU [09:04:01]CAPDU: 80 13 01 00 [09:04:01]Write to MH i2c: E2 08 00 32 35 80 13 01 00 00 00 00 00 E4 [09:04:01]Write i2c OK [09:04:01]MH_I2C_Read... [09:04:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:01]Read from MH i2c: E2 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: E2 0E 00 [09:04:01]MH_I2C_Read... [09:04:01]Read from MH i2c: E2 0E 00 32 35 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 5A [09:04:01]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:04:01]wFMCommunicate OK [09:04:01]SAM_PROTO_GetShiftState done [09:04:01]FM_GetShiftState done [09:04:01]req_shift_opened done [09:04:01]requested_item shift.open_date is exist - process it [09:04:01]req_shift_open_date [09:04:01]req_shift_open_date done [09:04:01]produce_requested_data done [09:04:01]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49390,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [09:04:01]process_action_free close_receipt [09:04:01]json_value_free [09:04:01]json_value_free done [09:04:01]process_json_proto returns [09:04:01]Send response to host [09:04:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49390,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [09:04:01]free response buf [09:04:01]execute_script done [09:04:01]execute_script returns [09:04:01]free content buf [09:04:01]Sock 7.Close socket [09:04:01]Sock 7.Thread stoped [09:04:04]OFD Sender: No OFD packet to send [09:04:09]OFD Sender: No OFD packet to send [09:04:14]OFD Sender: No OFD packet to send [09:04:19]OFD Sender: No OFD packet to send [09:04:24]OFD Sender: No OFD packet to send [09:04:29]OFD Sender: No OFD packet to send [09:04:34]OFD Sender: No OFD packet to send [09:04:39]OFD Sender: No OFD packet to send [09:04:44]OFD Sender: No OFD packet to send [09:04:49]OFD Sender: No OFD packet to send [09:04:54]OFD Sender: No OFD packet to send [09:04:59]OFD Sender: No OFD packet to send [09:05:04]OFD Sender: No OFD packet to send [09:05:09]OFD Sender: No OFD packet to send [09:05:14]OFD Sender: No OFD packet to send [09:05:19]OFD Sender: No OFD packet to send [09:05:24]OFD Sender: No OFD packet to send [09:05:29]OFD Sender: No OFD packet to send [09:05:34]OFD Sender: No OFD packet to send [09:05:39]OFD Sender: No OFD packet to send [09:05:44]OFD Sender: No OFD packet to send [09:05:49]OFD Sender: No OFD packet to send [09:05:54]OFD Sender: No OFD packet to send [09:05:59]OFD Sender: No OFD packet to send [09:06:04]OFD Sender: No OFD packet to send [09:06:09]OFD Sender: No OFD packet to send [09:06:14]OFD Sender: No OFD packet to send [09:06:19]OFD Sender: No OFD packet to send [09:06:24]OFD Sender: No OFD packet to send [09:06:29]OFD Sender: No OFD packet to send [09:06:34]OFD Sender: No OFD packet to send [09:06:39]OFD Sender: No OFD packet to send [09:06:44]OFD Sender: No OFD packet to send [09:06:49]OFD Sender: No OFD packet to send [09:06:54]OFD Sender: No OFD packet to send [09:06:59]OFD Sender: No OFD packet to send [09:07:04]OFD Sender: No OFD packet to send [09:07:09]OFD Sender: No OFD packet to send [09:07:14]OFD Sender: No OFD packet to send [09:07:19]OFD Sender: No OFD packet to send [09:07:24]OFD Sender: No OFD packet to send [09:07:25]accept exits with 9 [09:07:25]New connection [09:07:25]New thread 3066973540 created [09:07:25]Thread 3066830180 joined [09:07:25]Waiting for new connection... [09:07:25] Sock 9.Parse request [09:07:25]Sock 9.Check first char [09:07:25]Sock 9.First char is OK [09:07:25]request: POST /json_proto HTTP/1.0 [09:07:25]Method: POST [09:07:25]URL: /json_proto [09:07:25]Method is POST - this is cgi request [09:07:25]url: /json_proto [09:07:25]query_string will be loaded in cgi processing [09:07:25]execute_cgi json_proto POST (null) [09:07:25]execute_cgi path=json_proto method=POST [09:07:25]POST find Content-Length [09:07:25]Host: 172.17.46.196:8080 [09:07:25]Content-Length: 823 [09:07:25]Content-Type: application/json [09:07:25] [09:07:25]POST finish read [09:07:25]Found Content-Length = 823 [09:07:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189630", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:25]execute_script... [09:07: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 : (3)189630", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:07:25]POST & json_proto [09:07:25]process_json_proto [09:07:25]json parsed OK: [09:07:25]protocol is kg_v1.0 [09:07:25]action value=close_receipt [09:07:25]process_action close_receipt [09:07:25]cmd_close_receipt [09:07:25]MH_GetDate [09:07:25]Write to MH i2c: F0 00 00 33 35 57 [09:07:25]Write i2c OK [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: F0 [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: F0 09 00 [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: F0 09 00 33 35 00 D2 16 BF 66 07 E8 5D 66 1F [09:07:25]GetLastDocTimeStamp 1723799041 [09:07:25]current date 1723799250 [09:07:25]FM_GetShiftState [09:07:25]SAM_PROTO_GetShiftState [09:07:25]wFMCommunicate request_size=4 [09:07:25]MH_SAM_APDU [09:07:25]CAPDU: 80 13 01 00 [09:07:25]Write to MH i2c: E2 08 00 34 35 80 13 01 00 00 00 00 00 E6 [09:07:25]Write i2c OK [09:07:25]MH_I2C_Read... [09:07:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:25]Read from MH i2c: E2 [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: E2 0E 00 [09:07:25]MH_I2C_Read... [09:07:25]Read from MH i2c: E2 0E 00 34 35 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 5C [09:07:25]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:07:25]wFMCommunicate OK [09:07:25]SAM_PROTO_GetShiftState done [09:07:25]FM_GetShiftState done [09:07:25]opened in 1723766958 [09:07:25]opened+sec_in_day 1723853358 [09:07:25]quantity*price = 13000 [09:07:25]sum+1 = 13001 [09:07:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 0.00 Безнал.: 130.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 39 16.08.2024 09:07 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 49391 ФПД: 105138544727123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T090730&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49391&fm=105138544727123&tin=02508201610067®Number=0000000000092546&sum=13000 0 [09:07:26]StoreToDocumentArchive [09:07:26]shift 464 fd 49391 [09:07:26]save to /storage/0464/doc_00049391 [09:07:26]save last doc name /storage/0464/doc_00049391 to /storage/kkm_last_doc_name [09:07:26]save OK [09:07:26]Clear old archive folders... [09:07:26]ProcessDocumentItem done err = 0, tmpTLVsize=282 [09:07:26]tlvbuf is 00E28460 [09:07:26]SAM_PROTO_ClearQueue [09:07:26]wFMCommunicate request_size=4 [09:07:26]MH_SAM_APDU [09:07:26]CAPDU: 80 09 00 00 [09:07:26]Write to MH i2c: E2 08 00 41 35 80 09 00 00 00 00 00 00 E8 [09:07:26]Write i2c OK [09:07:26]MH_I2C_Read... [09:07:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:07:26]Read from MH i2c: E2 [09:07:26]MH_I2C_Read... [09:07:26]Read from MH i2c: E2 03 00 [09:07:26]MH_I2C_Read... [09:07:26]Read from MH i2c: E2 03 00 41 35 00 90 00 EA [09:07:26]RAPDU: 90 00 [09:07:26]wFMCommunicate OK [09:07:26]SAM_PROTO_ClearQueue done [09:07:26]KKMCreateOFDPacket [09:07:26]OFDProtocolAddRootSTLVToBuf [09:07:26]FM_MakeSignedData [09:07:26]FM_MakeSignedData [09:07:26]SAM_PROTO_SignData [09:07:26]wFMCommunicate request_size=4 [09:07:26]MH_SAM_APDU [09:07:26]CAPDU: 80 0D 01 02 [09:07:26]Write to MH i2c: E2 08 00 42 35 80 0D 01 02 00 00 00 00 F0 [09:07:26]Write i2c OK [09:07:26]MH_I2C_Read... [09:07:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:07:26]Read from MH i2c: E2 [09:07:26]MH_I2C_Read... [09:07:26]Read from MH i2c: E2 03 00 [09:07:26]MH_I2C_Read... [09:07:26]Read from MH i2c: E2 03 00 42 35 00 90 00 EB [09:07:26]RAPDU: 90 00 [09:07:26]wFMCommunicate OK [09:07:26]wFMCommunicate request_size=255 [09:07:26]MH_SAM_APDU [09:07:26]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D2 16 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 [09:07:26]Write to MH i2c: E2 02 01 43 35 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D2 16 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 00 00 05 [09:07:26]Write i2c OK [09:07:26]MH_I2C_Read... [09:07:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:26]Read from MH i2c: E2 [09:07:26]MH_I2C_Read... [09:07:26]Read from MH i2c: E2 03 00 [09:07:26]MH_I2C_Read... [09:07:26]Read from MH i2c: E2 03 00 43 35 00 90 00 EC [09:07:26]RAPDU: 90 00 [09:07:26]wFMCommunicate OK [09:07:26]wFMCommunicate request_size=41 [09:07:26]MH_SAM_APDU [09:07:26]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EF C0 00 00 35 04 06 00 5F 9F 79 9C 54 53 [09:07:26]Write to MH i2c: E2 2C 00 44 35 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EF C0 00 00 35 04 06 00 5F 9F 79 9C 54 53 00 00 23 [09:07:26]Write i2c OK [09:07:26]MH_I2C_Read... [09:07:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:07:26]Read from MH i2c: E2 [09:07:26]MH_I2C_Read... [09:07:26]Read from MH i2c: E2 03 00 [09:07:26]MH_I2C_Read... [09:07:26]Read from MH i2c: E2 03 00 44 35 00 90 00 ED [09:07:26]RAPDU: 90 00 [09:07:26]wFMCommunicate OK [09:07:26]wFMCommunicate request_size=4 [09:07:26]MH_SAM_APDU [09:07:26]CAPDU: 80 0D 03 02 [09:07:26]Write to MH i2c: E2 08 00 45 35 80 0D 03 02 00 00 00 00 F5 [09:07:26]Write i2c OK [09:07:26]MH_I2C_Read... [09:07:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:07:26]Read from MH i2c: E2 [09:07:26]MH_I2C_Read... [09:07:26]Read from MH i2c: E2 0B 00 [09:07:26]MH_I2C_Read... [09:07:26]Read from MH i2c: E2 0B 00 45 35 00 31 20 B2 53 25 E7 52 64 90 00 0E [09:07:26]RAPDU: 31 20 B2 53 25 E7 52 64 90 00 [09:07:26]wFMCommunicate OK [09:07:26]SAM_PROTO_SignData done [09:07:26]FM_MakeSignedData done [09:07:26]CreateOFDProtocolMessage [09:07:26]wFMCommunicate request_size=4 [09:07:26]MH_SAM_APDU [09:07:26]CAPDU: 80 11 00 00 [09:07:26]Write to MH i2c: E2 08 00 46 35 80 11 00 00 00 00 00 00 F5 [09:07:26]Write i2c OK [09:07:26]MH_I2C_Read... [09:07:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:27]Read from MH i2c: E2 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: E2 17 00 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: E2 17 00 46 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 40 [09:07:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:07:27]wFMCommunicate OK [09:07:27]CreateOFDProtocolMessage done [09:07:27]OFDSenderStorePacket 49391 [09:07:27]StoreOFDPacket docnum=49391 [09:07:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 A3 1E 26 01 5E D5 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D2 16 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EF C0 00 00 35 04 06 00 5F 9F 79 9C 54 53 31 20 B2 53 25 E7 52 64 [09:07:27]CheckFolder [09:07:27]dirname=/storage/ofd_packets [09:07:27]CheckFolder done [09:07:27]ProducePacketName [09:07:27]name=ofd_packets/00049391 [09:07:27]NVStorageSaveData ofd_packets/00049391 [09:07:27]File name is /storage/ofd_packets/00049391 [09:07:27]Write 332 bytes [09:07:27]NVStorageSaveData done [09:07:27]OFDSenderStorePacket done [09:07:27]KKMCreateOFDPacket done [09:07:27]NVStorageSaveData kkm_last_timestamp [09:07:27]File name is /storage/kkm_last_timestamp [09:07:27]Write 4 bytes [09:07:27]NVStorageSaveData done [09:07:27]ExternCall_PrintAddStr [09:07:27]wPrintStart [09:07:27]Write to MH i2c: 01 00 00 47 35 7C [09:07:27]Write i2c OK [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: 01 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: 01 07 00 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: 01 07 00 47 35 00 00 00 00 00 FF 0F 91 [09:07:27]RasterBufferAndPrint [09:07:27]line Счет N : (3)189630 [09:07:27]line ИНН: 02508201610067 [09:07:27]line Контрольно-Кассовый Чек [09:07:27]line ПРОДАЖА [09:07:27]line Товар: 2000036220012 [09:07:27]line Кофе Капучино XL(GABB TRADE) [09:07:27]line 1.000 * 130.00 [09:07:27]line = 130.00 [09:07:27]line НДС 12% НСП 1% [09:07:27]line > о реализуемом товаре [09:07:27]line ИТОГО: 130.00 [09:07:27]line НСП 1% : 1.15 [09:07:27]line НДС 12% : 13.80 [09:07:27]line Наличными: 0.00 [09:07:27]line Безнал.: 130.00 [09:07:27]line Место: АЗС № 95 "Партнер Нефть" [09:07:27]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:07:27]line СНО: Общий режим [09:07:27]line Чек 39 16.08.2024 09:07 [09:07:27]line Смена: 464 ФФД: 1.0 [09:07:27]line ЗНМ: 0300000078 [09:07:27]line РНМ: 0000000000092546 [09:07:27]line Версия ККМ: 001 [09:07:27]line Платежная система: Бакай Банк [09:07:27]line ФМ: 0000000000871800 [09:07:27]line ФД: 49391 [09:07:27]line ФПД: 105138544727123 [09:07:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T090730&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49391&fm=105138544727123&tin=02508201610067®Number=0000000000092546&sum=13000 [09:07:27]line 0 [09:07:27]OFD Sender: Processing packet 49391 [packets to send 21, broken 20] [09:07:27]ProducePacketName [09:07:27]name=ofd_packets/00049391 [09:07:27]OFD Sender: To server: pG, [09:07:27]CommunicateWithHost lk.salyk.kg:30040 [09:07:27]ConnectInit lk.salyk.kg [09:07:27]written 0, free lines is 4095 [09:07:27]Connected sock=10 [09:07:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 A3 1E 26 01 5E D5 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 D2 16 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EF C0 00 00 35 04 06 00 5F 9F 79 9C 54 53 31 20 B2 53 25 E7 52 64 [09:07:27]Write to MH i2c: 01 00 00 72 35 A7 [09:07:27]Write i2c OK [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: 01 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: 01 07 00 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: 01 07 00 72 35 00 00 00 00 00 CB 0C 85 [09:07:27]RasterBufferAndPrint [09:07:27]line [09:07:27]line [09:07:27]line [09:07:27]line [09:07:27]line [09:07:27]written 0, free lines is 3281 [09:07:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 33 72 47 00 32 75 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 EF C0 00 00 F4 03 04 00 11 C2 BE 66 B6 04 01 00 00 CD 8E EC 06 77 9A C4 76 [09:07:27]CommunicateWithHost err = 0 [09:07:27]CheckOFDResponse [09:07:27]1017 (14) - 77093643461234 [09:07:27]1041 (16) - 0000000000871800 [09:07:27]1040 (4) - 49391 [09:07:27]1012 (4) - 16.08.2024 03:05 [09:07:27]1206 (1) - 0 [09:07:27]OFD Sender: Remove packet 49391 [09:07:27]ProducePacketName [09:07:27]name=ofd_packets/00049391 [09:07:27]NVStorageDeleteData [09:07:27]MH_Cut [09:07:27]Write to MH i2c: D1 01 00 79 35 01 80 [09:07:27]Write i2c OK [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: D1 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: D1 01 00 [09:07:27]MH_I2C_Read... [09:07:27]Read from MH i2c: D1 01 00 79 35 00 7F [09:07:27]Write to MH i2c: 01 00 00 7A 35 AF [09:07:27]Write i2c OK [09:07:27]MH_I2C_Read... [09:07:28]OFD Sender: No OFD packet to send [09:07:28]*** Cut start [09:07:28]*** Purtial cut [09:07:28]*** Stage 1: CUTSNS_PIN = 1 [09:07:28]Read from MH i2c: 01 [09:07:28]MH_I2C_Read... [09:07:28]*** Stop cut motor [09:07:28]*** Cut end [09:07:28]Read from MH i2c: 01 07 00 [09:07:28]MH_I2C_Read... [09:07:28]Read from MH i2c: 01 07 00 7A 35 00 00 00 00 00 FF 0F C4 [09:07:28]process_action close_receipt done [09:07:28]requested_data is exist [09:07:28]produce_requested_data [09:07:28]requested_item fm.sn is exist - process it [09:07:28]wFMCommunicate request_size=4 [09:07:28]MH_SAM_APDU [09:07:28]CAPDU: 80 11 00 00 [09:07:28]Write to MH i2c: E2 08 00 7B 35 80 11 00 00 00 00 00 00 2A [09:07:28]Write i2c OK [09:07:28]MH_I2C_Read... [09:07:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:07:28]Read from MH i2c: E2 [09:07:28]MH_I2C_Read... [09:07:28]Read from MH i2c: E2 17 00 [09:07:28]MH_I2C_Read... [09:07:28]Read from MH i2c: E2 17 00 7B 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 75 [09:07:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:07:28]wFMCommunicate OK [09:07:28]requested_item fd.num is exist - process it [09:07:28]SAM_PROTO_GetFieldsCounters [09:07:28]wFMCommunicate request_size=4 [09:07:28]MH_SAM_APDU [09:07:28]CAPDU: 80 13 00 00 [09:07:28]Write to MH i2c: E2 08 00 7C 35 80 13 00 00 00 00 00 00 2D [09:07:28]Write i2c OK [09:07:28]MH_I2C_Read... [09:07:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:07:29]Read from MH i2c: E2 [09:07:29]MH_I2C_Read... [09:07:29]Read from MH i2c: E2 62 00 [09:07:29]MH_I2C_Read... [09:07:29]Read from MH i2c: E2 62 00 7C 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EF C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 3C [09:07:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 EF C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:07:29]wFMCommunicate OK [09:07:29]SAM_PROTO_GetFieldsCounters done [09:07:29]requested_item shift.num is exist - process it [09:07:29]requested_item shift.opened is exist - process it [09:07:29]req_shift_opened [09:07:29]FM_GetShiftState [09:07:29]SAM_PROTO_GetShiftState [09:07:29]wFMCommunicate request_size=4 [09:07:29]MH_SAM_APDU [09:07:29]CAPDU: 80 13 01 00 [09:07:29]Write to MH i2c: E2 08 00 7D 35 80 13 01 00 00 00 00 00 2F [09:07:29]Write i2c OK [09:07:29]MH_I2C_Read... [09:07:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:07:29]Read from MH i2c: E2 [09:07:29]MH_I2C_Read... [09:07:29]Read from MH i2c: E2 0E 00 [09:07:29]MH_I2C_Read... [09:07:29]Read from MH i2c: E2 0E 00 7D 35 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 A5 [09:07:29]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:07:29]wFMCommunicate OK [09:07:29]SAM_PROTO_GetShiftState done [09:07:29]FM_GetShiftState done [09:07:29]req_shift_opened done [09:07:29]requested_item shift.open_date is exist - process it [09:07:29]req_shift_open_date [09:07:29]req_shift_open_date done [09:07:29]produce_requested_data done [09:07:29]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49391,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [09:07:29]process_action_free close_receipt [09:07:29]json_value_free [09:07:29]json_value_free done [09:07:29]process_json_proto returns [09:07:29]Send response to host [09:07:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49391,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [09:07:29]free response buf [09:07:29]execute_script done [09:07:29]execute_script returns [09:07:29]free content buf [09:07:29]Sock 9.Close socket [09:07:29]Sock 9.Thread stoped [09:07:33]OFD Sender: No OFD packet to send [09:07:38]OFD Sender: No OFD packet to send [09:07:43]OFD Sender: No OFD packet to send [09:07:48]OFD Sender: No OFD packet to send [09:07:53]OFD Sender: No OFD packet to send [09:07:58]OFD Sender: No OFD packet to send [09:08:03]OFD Sender: No OFD packet to send [09:08:08]OFD Sender: No OFD packet to send [09:08:13]OFD Sender: No OFD packet to send [09:08:18]OFD Sender: No OFD packet to send [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:08]OFD Sender: No OFD packet to send [09:11:13]OFD Sender: No OFD packet to send [09:11:18]OFD Sender: No OFD packet to send [09:11:23]OFD Sender: No OFD packet to send [09:11:28]OFD Sender: No OFD packet to send [09:11:33]OFD Sender: No OFD packet to send [09:11:38]OFD Sender: No OFD packet to send [09:11:43]OFD Sender: No OFD packet to send [09:11:48]OFD Sender: No OFD packet to send [09:11:53]OFD Sender: No OFD packet to send [09:11:58]OFD Sender: No OFD packet to send [09:12:03]OFD Sender: No OFD packet to send [09:12:08]OFD Sender: No OFD packet to send [09:12:13]OFD Sender: No OFD packet to send [09:12:18]OFD Sender: No OFD packet to send [09:12:23]OFD Sender: No OFD packet to send [09:12:28]OFD Sender: No OFD packet to send [09:12:33]OFD Sender: No OFD packet to send [09:12:36]accept exits with 7 [09:12:36]New connection [09:12:36]New thread 3066830180 created [09:12:36]Thread 3066973540 joined [09:12:36]Waiting for new connection... [09:12:36] Sock 7.Parse request [09:12:36]Sock 7.Check first char [09:12:36]Sock 7.First char is OK [09:12:36]request: POST /json_proto HTTP/1.0 [09:12:36]Method: POST [09:12:36]URL: /json_proto [09:12:36]Method is POST - this is cgi request [09:12:36]url: /json_proto [09:12:36]query_string will be loaded in cgi processing [09:12:36]execute_cgi json_proto POST (null) [09:12:36]execute_cgi path=json_proto method=POST [09:12:36]POST find Content-Length [09:12:36]Host: 172.17.46.196:8080 [09:12:36]Content-Length: 753 [09:12:36]Content-Type: application/json [09:12:36] [09:12:36]POST finish read [09:12:36]Found Content-Length = 753 [09:12:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30137998", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:36]execute_script... [09:12: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)11325194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30137998", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:12:36]POST & json_proto [09:12:36]process_json_proto [09:12:36]json parsed OK: [09:12:36]protocol is kg_v1.0 [09:12:36]action value=close_receipt [09:12:36]process_action close_receipt [09:12:36]cmd_close_receipt [09:12:36]MH_GetDate [09:12:36]Write to MH i2c: F0 00 00 7E 35 A2 [09:12:36]Write i2c OK [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: F0 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: F0 09 00 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: F0 09 00 7E 35 00 09 18 BF 66 07 E8 5D 66 A3 [09:12:36]GetLastDocTimeStamp 1723799250 [09:12:36]current date 1723799561 [09:12:36]FM_GetShiftState [09:12:36]SAM_PROTO_GetShiftState [09:12:36]wFMCommunicate request_size=4 [09:12:36]MH_SAM_APDU [09:12:36]CAPDU: 80 13 01 00 [09:12:36]Write to MH i2c: E2 08 00 7F 35 80 13 01 00 00 00 00 00 31 [09:12:36]Write i2c OK [09:12:36]MH_I2C_Read... [09:12:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:36]Read from MH i2c: E2 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 0E 00 [09:12:36]MH_I2C_Read... [09:12:36]Read from MH i2c: E2 0E 00 7F 35 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 A7 [09:12:36]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:12:36]wFMCommunicate OK [09:12:36]SAM_PROTO_GetShiftState done [09:12:36]FM_GetShiftState done [09:12:36]opened in 1723766958 [09:12:36]opened+sec_in_day 1723853358 [09:12:36]quantity*price = 0 [09:12:36]sum+1 = 1 [09:12:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 40 16.08.2024 09:12 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30137998 ФМ: 0000000000871800 ФД: 49392 ФПД: 239011911893786 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T091241&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49392&fm=239011911893786&tin=02508201610067®Number=0000000000092546&sum=0 [09:12:37]StoreToDocumentArchive [09:12:37]shift 464 fd 49392 [09:12:37]save to /storage/0464/doc_00049392 [09:12:37]save last doc name /storage/0464/doc_00049392 to /storage/kkm_last_doc_name [09:12:37]save OK [09:12:37]Clear old archive folders... [09:12:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:12:37]tlvbuf is 00EBF580 [09:12:37]SAM_PROTO_ClearQueue [09:12:37]wFMCommunicate request_size=4 [09:12:37]MH_SAM_APDU [09:12:37]CAPDU: 80 09 00 00 [09:12:37]Write to MH i2c: E2 08 00 8C 35 80 09 00 00 00 00 00 00 33 [09:12:37]Write i2c OK [09:12:37]MH_I2C_Read... [09:12:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:12:37]Read from MH i2c: E2 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 03 00 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 03 00 8C 35 00 90 00 35 [09:12:37]RAPDU: 90 00 [09:12:37]wFMCommunicate OK [09:12:37]SAM_PROTO_ClearQueue done [09:12:37]KKMCreateOFDPacket [09:12:37]OFDProtocolAddRootSTLVToBuf [09:12:37]FM_MakeSignedData [09:12:37]FM_MakeSignedData [09:12:37]SAM_PROTO_SignData [09:12:37]wFMCommunicate request_size=4 [09:12:37]MH_SAM_APDU [09:12:37]CAPDU: 80 0D 01 02 [09:12:37]Write to MH i2c: E2 08 00 8D 35 80 0D 01 02 00 00 00 00 3B [09:12:37]Write i2c OK [09:12:37]MH_I2C_Read... [09:12:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:12:37]Read from MH i2c: E2 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 03 00 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 03 00 8D 35 00 90 00 36 [09:12:37]RAPDU: 90 00 [09:12:37]wFMCommunicate OK [09:12:37]wFMCommunicate request_size=255 [09:12:37]MH_SAM_APDU [09:12: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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 09 18 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F0 C0 00 00 35 04 06 00 D9 61 4C 1B [09:12:37]Write to MH i2c: E2 02 01 8E 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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 09 18 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F0 C0 00 00 35 04 06 00 D9 61 4C 1B 00 00 FD [09:12:37]Write i2c OK [09:12:37]MH_I2C_Read... [09:12:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:37]Read from MH i2c: E2 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 03 00 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 03 00 8E 35 00 90 00 37 [09:12:37]RAPDU: 90 00 [09:12:37]wFMCommunicate OK [09:12:37]wFMCommunicate request_size=7 [09:12:37]MH_SAM_APDU [09:12:37]CAPDU: 80 0D 02 02 02 03 1A [09:12:37]Write to MH i2c: E2 0A 00 8F 35 80 0D 02 02 02 00 03 1A 00 00 5F [09:12:37]Write i2c OK [09:12:37]MH_I2C_Read... [09:12:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:12:37]Read from MH i2c: E2 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 03 00 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 03 00 8F 35 00 90 00 38 [09:12:37]RAPDU: 90 00 [09:12:37]wFMCommunicate OK [09:12:37]wFMCommunicate request_size=4 [09:12:37]MH_SAM_APDU [09:12:37]CAPDU: 80 0D 03 02 [09:12:37]Write to MH i2c: E2 08 00 90 35 80 0D 03 02 00 00 00 00 40 [09:12:37]Write i2c OK [09:12:37]MH_I2C_Read... [09:12:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:12:37]Read from MH i2c: E2 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 0B 00 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 0B 00 90 35 00 4F 44 73 4C B3 93 66 BD 90 00 FC [09:12:37]RAPDU: 4F 44 73 4C B3 93 66 BD 90 00 [09:12:37]wFMCommunicate OK [09:12:37]SAM_PROTO_SignData done [09:12:37]FM_MakeSignedData done [09:12:37]CreateOFDProtocolMessage [09:12:37]wFMCommunicate request_size=4 [09:12:37]MH_SAM_APDU [09:12:37]CAPDU: 80 11 00 00 [09:12:37]Write to MH i2c: E2 08 00 91 35 80 11 00 00 00 00 00 00 40 [09:12:37]Write i2c OK [09:12:37]MH_I2C_Read... [09:12:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:37]Read from MH i2c: E2 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 17 00 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: E2 17 00 91 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 8B [09:12:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:12:37]wFMCommunicate OK [09:12:37]CreateOFDProtocolMessage done [09:12:37]OFDSenderStorePacket 49392 [09:12:37]StoreOFDPacket docnum=49392 [09:12:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 DE 3F 04 01 E1 5A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 09 18 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F0 C0 00 00 35 04 06 00 D9 61 4C 1B 03 1A 4F 44 73 4C B3 93 66 BD [09:12:37]CheckFolder [09:12:37]dirname=/storage/ofd_packets [09:12:37]CheckFolder done [09:12:37]ProducePacketName [09:12:37]name=ofd_packets/00049392 [09:12:37]NVStorageSaveData ofd_packets/00049392 [09:12:37]File name is /storage/ofd_packets/00049392 [09:12:37]Write 298 bytes [09:12:37]NVStorageSaveData done [09:12:37]OFDSenderStorePacket done [09:12:37]KKMCreateOFDPacket done [09:12:37]NVStorageSaveData kkm_last_timestamp [09:12:37]File name is /storage/kkm_last_timestamp [09:12:37]Write 4 bytes [09:12:37]NVStorageSaveData done [09:12:37]ExternCall_PrintAddStr [09:12:37]wPrintStart [09:12:37]Write to MH i2c: 01 00 00 92 35 C7 [09:12:37]Write i2c OK [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: 01 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: 01 07 00 [09:12:37]MH_I2C_Read... [09:12:37]Read from MH i2c: 01 07 00 92 35 00 00 00 00 00 FF 0F DC [09:12:37]RasterBufferAndPrint [09:12:37]line Счет N : (1)11325194 [09:12:37]line ИНН: 02508201610067 [09:12:37]line Контрольно-Кассовый Чек [09:12:37]line ПРОДАЖА [09:12:37]line ТРК (МРК, ГНК) : 61 [09:12:37]line Товар: 2710194210 [09:12:37]line ДТ-К-5 [09:12:37]line 40.000 * 0.00 [09:12:37]line = 0.00 [09:12:37]line НДС 12% НСП 1% [09:12:37]line > о реализуемом товаре [09:12:37]line ИТОГО: 0.00 [09:12:37]line НСП 1% : 0.00 [09:12:37]line НДС 12% : 0.00 [09:12:37]line Наличными: 0.00 [09:12:37]line Безнал.: 0.00 [09:12:37]line Место: АЗС № 95 "Партнер Нефть" [09:12:37]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:12:37]line СНО: Общий режим [09:12:37]line Чек 40 16.08.2024 09:12 [09:12:37]line Смена: 464 ФФД: 1.0 [09:12:37]line ЗНМ: 0300000078 [09:12:37]line РНМ: 0000000000092546 [09:12:37]line Версия ККМ: 001 [09:12:37]line Талоны: ТК ГПНА Online [09:12:37]line 30137998 [09:12:37]line ФМ: 0000000000871800 [09:12:37]line ФД: 49392 [09:12:37]line ФПД: 239011911893786 [09:12:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T091241&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49392&fm=239011911893786&tin=02508201610067®Number=0000000000092546&sum=0 [09:12:38]OFD Sender: Processing packet 49392 [packets to send 21, broken 20] [09:12:38]ProducePacketName [09:12:38]name=ofd_packets/00049392 [09:12:38]OFD Sender: To server: pG, [09:12:38]CommunicateWithHost lk.salyk.kg:30040 [09:12:38]ConnectInit lk.salyk.kg [09:12:38]written 0, free lines is 4095 [09:12:38]Write to MH i2c: 01 00 00 BC 35 F1 [09:12:38]Write i2c OK [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: 01 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: 01 07 00 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: 01 07 00 BC 35 00 00 00 00 00 CF 0C D3 [09:12:38]RasterBufferAndPrint [09:12:38]line [09:12:38]line [09:12:38]line [09:12:38]line [09:12:38]line [09:12:38]written 0, free lines is 3282 [09:12:38]MH_Cut [09:12:38]Write to MH i2c: D1 01 00 C3 35 01 CA [09:12:38]Write i2c OK [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: D1 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: D1 01 00 [09:12:38]MH_I2C_Read... [09:12:38]Read from MH i2c: D1 01 00 C3 35 00 C9 [09:12:38]Write to MH i2c: 01 00 00 C4 35 F9 [09:12:38]Write i2c OK [09:12:38]MH_I2C_Read... [09:12:38]Connected sock=11 [09:12:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 DE 3F 04 01 E1 5A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 09 18 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F0 C0 00 00 35 04 06 00 D9 61 4C 1B 03 1A 4F 44 73 4C B3 93 66 BD [09:12:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 CD B9 47 00 72 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 38 37 31 38 30 30 10 04 04 00 F0 C0 00 00 F4 03 04 00 48 C3 BE 66 B6 04 01 00 00 FE 42 6E F0 5F 2E 4E C0 [09:12:38]CommunicateWithHost err = 0 [09:12:38]CheckOFDResponse [09:12:38]1017 (14) - 77093643461234 [09:12:38]1041 (16) - 0000000000871800 [09:12:38]1040 (4) - 49392 [09:12:38]1012 (4) - 16.08.2024 03:11 [09:12:38]1206 (1) - 0 [09:12:38]OFD Sender: Remove packet 49392 [09:12:38]ProducePacketName [09:12:38]name=ofd_packets/00049392 [09:12:38]NVStorageDeleteData [09:12:39]*** Cut start [09:12:39]*** Purtial cut [09:12:39]*** CUTSNS_PIN = 0 [09:12:39]OFD Sender: No OFD packet to send [09:12:39]*** Stage 1: CUTSNS_PIN = 1 [09:12:41]Read from MH i2c: 01 [09:12:41]MH_I2C_Read... [09:12:41]*** Stop cut motor [09:12:41]*** Cut end [09:12:41]Read from MH i2c: 01 07 00 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: 01 07 00 C4 35 00 00 00 00 00 FF 0F 0E [09:12:41]process_action close_receipt done [09:12:41]requested_data is exist [09:12:41]produce_requested_data [09:12:41]requested_item fm.sn is exist - process it [09:12:41]wFMCommunicate request_size=4 [09:12:41]MH_SAM_APDU [09:12:41]CAPDU: 80 11 00 00 [09:12:41]Write to MH i2c: E2 08 00 C5 35 80 11 00 00 00 00 00 00 74 [09:12:41]Write i2c OK [09:12:41]MH_I2C_Read... [09:12:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:12:41]Read from MH i2c: E2 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: E2 17 00 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: E2 17 00 C5 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BF [09:12:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:12:41]wFMCommunicate OK [09:12:41]requested_item fd.num is exist - process it [09:12:41]SAM_PROTO_GetFieldsCounters [09:12:41]wFMCommunicate request_size=4 [09:12:41]MH_SAM_APDU [09:12:41]CAPDU: 80 13 00 00 [09:12:41]Write to MH i2c: E2 08 00 C6 35 80 13 00 00 00 00 00 00 77 [09:12:41]Write i2c OK [09:12:41]MH_I2C_Read... [09:12:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:12:41]Read from MH i2c: E2 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: E2 62 00 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: E2 62 00 C6 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F0 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 8A [09:12:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F0 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:12:41]wFMCommunicate OK [09:12:41]SAM_PROTO_GetFieldsCounters done [09:12:41]requested_item shift.num is exist - process it [09:12:41]requested_item shift.opened is exist - process it [09:12:41]req_shift_opened [09:12:41]FM_GetShiftState [09:12:41]SAM_PROTO_GetShiftState [09:12:41]wFMCommunicate request_size=4 [09:12:41]MH_SAM_APDU [09:12:41]CAPDU: 80 13 01 00 [09:12:41]Write to MH i2c: E2 08 00 C7 35 80 13 01 00 00 00 00 00 79 [09:12:41]Write i2c OK [09:12:41]MH_I2C_Read... [09:12:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:12:41]Read from MH i2c: E2 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: E2 0E 00 [09:12:41]MH_I2C_Read... [09:12:41]Read from MH i2c: E2 0E 00 C7 35 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 EF [09:12:41]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:12:41]wFMCommunicate OK [09:12:41]SAM_PROTO_GetShiftState done [09:12:41]FM_GetShiftState done [09:12:41]req_shift_opened done [09:12:41]requested_item shift.open_date is exist - process it [09:12:41]req_shift_open_date [09:12:41]req_shift_open_date done [09:12:41]produce_requested_data done [09:12:41]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49392,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [09:12:41]process_action_free close_receipt [09:12:41]json_value_free [09:12:41]json_value_free done [09:12:41]process_json_proto returns [09:12:41]Send response to host [09:12:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49392,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [09:12:41]free response buf [09:12:41]execute_script done [09:12:41]execute_script returns [09:12:41]free content buf [09:12:41]Sock 7.Close socket [09:12:41]Sock 7.Thread stoped [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]OFD Sender: No OFD packet to send [09:14:49]OFD Sender: No OFD packet to send [09:14:54]OFD Sender: No OFD packet to send [09:14:59]OFD Sender: No OFD packet to send [09:15:04]OFD Sender: No OFD packet to send [09:15:09]OFD Sender: No OFD packet to send [09:15:14]OFD Sender: No OFD packet to send [09:15:19]OFD Sender: No OFD packet to send [09:15:24]OFD Sender: No OFD packet to send [09:15:29]OFD Sender: No OFD packet to send [09:15:34]OFD Sender: No OFD packet to send [09:15:39]OFD Sender: No OFD packet to send [09:15:44]OFD Sender: No OFD packet to send [09:15:49]OFD Sender: No OFD packet to send [09:15:54]OFD Sender: No OFD packet to send [09:15:59]OFD Sender: No OFD packet to send [09:16:04]OFD Sender: No OFD packet to send [09:16:09]OFD Sender: No OFD packet to send [09:16:14]OFD Sender: No OFD packet to send [09:16:19]OFD Sender: No OFD packet to send [09:16:24]OFD Sender: No OFD packet to send [09:16:29]OFD Sender: No OFD packet to send [09:16:34]OFD Sender: No OFD packet to send [09:16:39]OFD Sender: No OFD packet to send [09:16:44]OFD Sender: No OFD packet to send [09:16:49]OFD Sender: No OFD packet to send [09:16:54]OFD Sender: No OFD packet to send [09:16:59]OFD Sender: No OFD packet to send [09:17:04]OFD Sender: No OFD packet to send [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:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:24]OFD Sender: No OFD packet to send [09:22:29]OFD Sender: No OFD packet to send [09:22:34]OFD Sender: No OFD packet to send [09:22:39]OFD Sender: No OFD packet to send [09:22:44]OFD Sender: No OFD packet to send [09:22:49]OFD Sender: No OFD packet to send [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:24]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23:39]OFD Sender: No OFD packet to send [09:23:44]OFD Sender: No OFD packet to send [09:23:49]OFD Sender: No OFD packet to send [09:23:54]OFD Sender: No OFD packet to send [09:23:59]OFD Sender: No OFD packet to send [09:24:04]OFD Sender: No OFD packet to send [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:19]OFD Sender: No OFD packet to send [09:24:24]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:34]accept exits with 9 [09:24:34]New connection [09:24:34]New thread 3066973540 created [09:24:34]Thread 3066830180 joined [09:24:34]Waiting for new connection... [09:24:34] Sock 9.Parse request [09:24:34]Sock 9.Check first char [09:24:34]Sock 9.First char is OK [09:24:34]request: POST /json_proto HTTP/1.0 [09:24:34]Method: POST [09:24:34]URL: /json_proto [09:24:34]Method is POST - this is cgi request [09:24:34]url: /json_proto [09:24:34]query_string will be loaded in cgi processing [09:24:34]execute_cgi json_proto POST (null) [09:24:34]execute_cgi path=json_proto method=POST [09:24:34]POST find Content-Length [09:24:34]Host: 172.17.46.196:8080 [09:24:34]Content-Length: 613 [09:24:34]Content-Type: application/json [09:24:34] [09:24:34]POST finish read [09:24:34]Found Content-Length = 613 [09:24:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189631", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:34]execute_script... [09:24: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 : (3)189631", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:34]POST & json_proto [09:24:34]process_json_proto [09:24:34]json parsed OK: [09:24:34]protocol is kg_v1.0 [09:24:34]action value=close_receipt [09:24:34]process_action close_receipt [09:24:34]cmd_close_receipt [09:24:34]MH_GetDate [09:24:34]Write to MH i2c: F0 00 00 C8 35 EC [09:24:34]Write i2c OK [09:24:34]MH_I2C_Read... [09:24:34]Read from MH i2c: F0 [09:24:34]MH_I2C_Read... [09:24:34]Read from MH i2c: F0 09 00 [09:24:34]MH_I2C_Read... [09:24:34]Read from MH i2c: F0 09 00 C8 35 00 D7 1A BF 66 07 E8 5D 66 BD [09:24:34]GetLastDocTimeStamp 1723799561 [09:24:34]current date 1723800279 [09:24:34]FM_GetShiftState [09:24:34]SAM_PROTO_GetShiftState [09:24:34]wFMCommunicate request_size=4 [09:24:34]MH_SAM_APDU [09:24:34]CAPDU: 80 13 01 00 [09:24:34]Write to MH i2c: E2 08 00 C9 35 80 13 01 00 00 00 00 00 7B [09:24:34]Write i2c OK [09:24:34]MH_I2C_Read... [09:24:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:34]Read from MH i2c: E2 [09:24:34]MH_I2C_Read... [09:24:34]Read from MH i2c: E2 0E 00 [09:24:34]MH_I2C_Read... [09:24:34]Read from MH i2c: E2 0E 00 C9 35 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 F1 [09:24:34]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:24:34]wFMCommunicate OK [09:24:34]SAM_PROTO_GetShiftState done [09:24:34]FM_GetShiftState done [09:24:34]opened in 1723766958 [09:24:34]opened+sec_in_day 1723853358 [09:24:34]quantity*price = 15500 [09:24:34]sum+1 = 15501 [09:24:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 41 16.08.2024 09:24 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49393 ФПД: 48869944360605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T092439&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49393&fm=48869944360605&tin=02508201610067®Number=0000000000092546&sum=15500 0 [09:24:35]StoreToDocumentArchive [09:24:35]shift 464 fd 49393 [09:24:35]save to /storage/0464/doc_00049393 [09:24:35]save last doc name /storage/0464/doc_00049393 to /storage/kkm_last_doc_name [09:24:35]save OK [09:24:35]Clear old archive folders... [09:24:35]ProcessDocumentItem done err = 0, tmpTLVsize=265 [09:24:35]tlvbuf is 00E41460 [09:24:35]SAM_PROTO_ClearQueue [09:24:35]wFMCommunicate request_size=4 [09:24:35]MH_SAM_APDU [09:24:35]CAPDU: 80 09 00 00 [09:24:35]Write to MH i2c: E2 08 00 D6 35 80 09 00 00 00 00 00 00 7D [09:24:35]Write i2c OK [09:24:35]MH_I2C_Read... [09:24:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:35]Read from MH i2c: E2 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: E2 03 00 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: E2 03 00 D6 35 00 90 00 7F [09:24:35]RAPDU: 90 00 [09:24:35]wFMCommunicate OK [09:24:35]SAM_PROTO_ClearQueue done [09:24:35]KKMCreateOFDPacket [09:24:35]OFDProtocolAddRootSTLVToBuf [09:24:35]FM_MakeSignedData [09:24:35]FM_MakeSignedData [09:24:35]SAM_PROTO_SignData [09:24:35]wFMCommunicate request_size=4 [09:24:35]MH_SAM_APDU [09:24:35]CAPDU: 80 0D 01 02 [09:24:35]Write to MH i2c: E2 08 00 D7 35 80 0D 01 02 00 00 00 00 85 [09:24:35]Write i2c OK [09:24:35]MH_I2C_Read... [09:24:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:35]Read from MH i2c: E2 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: E2 03 00 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: E2 03 00 D7 35 00 90 00 80 [09:24:35]RAPDU: 90 00 [09:24:35]wFMCommunicate OK [09:24:35]wFMCommunicate request_size=255 [09:24:35]MH_SAM_APDU [09:24:35]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 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 D7 1A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 [09:24:35]Write to MH i2c: E2 02 01 D8 35 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 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 D7 1A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 00 00 4A [09:24:35]Write i2c OK [09:24:35]MH_I2C_Read... [09:24:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:35]Read from MH i2c: E2 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: E2 03 00 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: E2 03 00 D8 35 00 90 00 81 [09:24:35]RAPDU: 90 00 [09:24:35]wFMCommunicate OK [09:24:35]wFMCommunicate request_size=24 [09:24:35]MH_SAM_APDU [09:24:35]CAPDU: 80 0D 02 02 13 30 10 04 04 00 F1 C0 00 00 35 04 06 00 2C 72 6B AC 7E 9D [09:24:35]Write to MH i2c: E2 1B 00 D9 35 80 0D 02 02 13 00 30 10 04 04 00 F1 C0 00 00 35 04 06 00 2C 72 6B AC 7E 9D 00 00 B6 [09:24:35]Write i2c OK [09:24:35]MH_I2C_Read... [09:24:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:35]Read from MH i2c: E2 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: E2 03 00 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: E2 03 00 D9 35 00 90 00 82 [09:24:35]RAPDU: 90 00 [09:24:35]wFMCommunicate OK [09:24:35]wFMCommunicate request_size=4 [09:24:35]MH_SAM_APDU [09:24:35]CAPDU: 80 0D 03 02 [09:24:35]Write to MH i2c: E2 08 00 DA 35 80 0D 03 02 00 00 00 00 8A [09:24:35]Write i2c OK [09:24:35]MH_I2C_Read... [09:24:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:35]Read from MH i2c: E2 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: E2 0B 00 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: E2 0B 00 DA 35 00 6F 29 A8 62 0E AD E6 83 90 00 51 [09:24:35]RAPDU: 6F 29 A8 62 0E AD E6 83 90 00 [09:24:35]wFMCommunicate OK [09:24:35]SAM_PROTO_SignData done [09:24:35]FM_MakeSignedData done [09:24:35]CreateOFDProtocolMessage [09:24:35]wFMCommunicate request_size=4 [09:24:35]MH_SAM_APDU [09:24:35]CAPDU: 80 11 00 00 [09:24:35]Write to MH i2c: E2 08 00 DB 35 80 11 00 00 00 00 00 00 8A [09:24:35]Write i2c OK [09:24:35]MH_I2C_Read... [09:24:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:35]Read from MH i2c: E2 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: E2 17 00 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: E2 17 00 DB 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D5 [09:24:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:24:35]wFMCommunicate OK [09:24:35]CreateOFDProtocolMessage done [09:24:35]OFDSenderStorePacket 49393 [09:24:35]StoreOFDPacket docnum=49393 [09:24:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1D 01 00 00 C5 8D 15 01 0C 3A 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 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 D7 1A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F1 C0 00 00 35 04 06 00 2C 72 6B AC 7E 9D 6F 29 A8 62 0E AD E6 83 [09:24:35]CheckFolder [09:24:35]dirname=/storage/ofd_packets [09:24:35]CheckFolder done [09:24:35]ProducePacketName [09:24:35]name=ofd_packets/00049393 [09:24:35]NVStorageSaveData ofd_packets/00049393 [09:24:35]File name is /storage/ofd_packets/00049393 [09:24:35]Write 315 bytes [09:24:35]NVStorageSaveData done [09:24:35]OFDSenderStorePacket done [09:24:35]KKMCreateOFDPacket done [09:24:35]NVStorageSaveData kkm_last_timestamp [09:24:35]File name is /storage/kkm_last_timestamp [09:24:35]Write 4 bytes [09:24:35]NVStorageSaveData done [09:24:35]ExternCall_PrintAddStr [09:24:35]wPrintStart [09:24:35]Write to MH i2c: 01 00 00 DC 35 11 [09:24:35]Write i2c OK [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: 01 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: 01 07 00 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: 01 07 00 DC 35 00 00 00 00 00 FF 0F 26 [09:24:35]RasterBufferAndPrint [09:24:35]line Счет N : (3)189631 [09:24:35]line ИНН: 02508201610067 [09:24:35]line Контрольно-Кассовый Чек [09:24:35]line ПРОДАЖА [09:24:35]line Товар: 47803152 [09:24:35]line Сигареты Mevius Revo [09:24:35]line 1.000 * 155.00 [09:24:35]line = 155.00 [09:24:35]line НДС 12% НСП 1% [09:24:35]line > о реализуемом товаре [09:24:35]line ИТОГО: 155.00 [09:24:35]line НСП 1% : 1.37 [09:24:35]line НДС 12% : 16.46 [09:24:35]line Наличными: 155.00 [09:24:35]line Безнал.: 0.00 [09:24:35]line Место: АЗС № 95 "Партнер Нефть" [09:24:35]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:24:35]line СНО: Общий режим [09:24:35]line Чек 41 16.08.2024 09:24 [09:24:35]line Смена: 464 ФФД: 1.0 [09:24:35]line ЗНМ: 0300000078 [09:24:35]line РНМ: 0000000000092546 [09:24:35]line Версия ККМ: 001 [09:24:35]line ФМ: 0000000000871800 [09:24:35]line ФД: 49393 [09:24:35]line ФПД: 48869944360605 [09:24:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T092439&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49393&fm=48869944360605&tin=02508201610067®Number=0000000000092546&sum=15500 [09:24:36]OFD Sender: Processing packet 49393 [packets to send 21, broken 20] [09:24:36]ProducePacketName [09:24:36]name=ofd_packets/00049393 [09:24:36]OFD Sender: To server: pG, [09:24:36]CommunicateWithHost lk.salyk.kg:30040 [09:24:36]ConnectInit lk.salyk.kg [09:24:36]line 0 [09:24:36]written 0, free lines is 4095 [09:24:36]Connected sock=10 [09:24:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1D 01 00 00 C5 8D 15 01 0C 3A 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 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 D7 1A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F1 C0 00 00 35 04 06 00 2C 72 6B AC 7E 9D 6F 29 A8 62 0E AD E6 83 [09:24:36]Write to MH i2c: 01 00 00 04 36 3A [09:24:36]Write i2c OK [09:24:36]MH_I2C_Read... [09:24:36]Read from MH i2c: 01 [09:24:36]MH_I2C_Read... [09:24:36]Read from MH i2c: 01 07 00 [09:24:36]MH_I2C_Read... [09:24:36]Read from MH i2c: 01 07 00 04 36 00 00 00 00 00 FD 0C 4A [09:24:36]RasterBufferAndPrint [09:24:36]line [09:24:36]line [09:24:36]line [09:24:36]line [09:24:36]line [09:24:36]written 0, free lines is 3331 [09:24:36]MH_Cut [09:24:36]Write to MH i2c: D1 01 00 0B 36 01 13 [09:24:36]Write i2c OK [09:24:36]MH_I2C_Read... [09:24:36]Read from MH i2c: D1 [09:24:36]MH_I2C_Read... [09:24:36]Read from MH i2c: D1 01 00 [09:24:36]MH_I2C_Read... [09:24:36]Read from MH i2c: D1 01 00 0B 36 00 12 [09:24:36]Write to MH i2c: 01 00 00 0C 36 42 [09:24:36]Write i2c OK [09:24:36]MH_I2C_Read... [09:24:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 37 3D 47 00 A7 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 38 37 31 38 30 30 10 04 04 00 F1 C0 00 00 F4 03 04 00 16 C6 BE 66 B6 04 01 00 00 D5 18 F1 9E C8 FB FF 05 [09:24:36]CommunicateWithHost err = 0 [09:24:36]CheckOFDResponse [09:24:36]1017 (14) - 77093643461234 [09:24:36]1041 (16) - 0000000000871800 [09:24:36]1040 (4) - 49393 [09:24:36]1012 (4) - 16.08.2024 03:23 [09:24:36]1206 (1) - 0 [09:24:36]OFD Sender: Remove packet 49393 [09:24:36]ProducePacketName [09:24:36]name=ofd_packets/00049393 [09:24:36]NVStorageDeleteData [09:24:37]OFD Sender: No OFD packet to send [09:24:37]*** Cut start [09:24:37]*** Purtial cut [09:24:37]*** Stage 1: CUTSNS_PIN = 1 [09:24:37]Read from MH i2c: 01 [09:24:37]MH_I2C_Read... [09:24:37]*** Stop cut motor [09:24:37]*** Cut end [09:24:37]Read from MH i2c: 01 07 00 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: 01 07 00 0C 36 00 00 00 00 00 FF 0F 57 [09:24:37]process_action close_receipt done [09:24:37]requested_data is exist [09:24:37]produce_requested_data [09:24:37]requested_item fm.sn is exist - process it [09:24:37]wFMCommunicate request_size=4 [09:24:37]MH_SAM_APDU [09:24:37]CAPDU: 80 11 00 00 [09:24:37]Write to MH i2c: E2 08 00 0D 36 80 11 00 00 00 00 00 00 BD [09:24:37]Write i2c OK [09:24:37]MH_I2C_Read... [09:24:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:37]Read from MH i2c: E2 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 17 00 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 17 00 0D 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 08 [09:24:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:24:37]wFMCommunicate OK [09:24:37]requested_item fd.num is exist - process it [09:24:37]SAM_PROTO_GetFieldsCounters [09:24:37]wFMCommunicate request_size=4 [09:24:37]MH_SAM_APDU [09:24:37]CAPDU: 80 13 00 00 [09:24:37]Write to MH i2c: E2 08 00 0E 36 80 13 00 00 00 00 00 00 C0 [09:24:37]Write i2c OK [09:24:37]MH_I2C_Read... [09:24:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:37]Read from MH i2c: E2 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 62 00 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 62 00 0E 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F1 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [09:24:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F1 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:24:37]wFMCommunicate OK [09:24:37]SAM_PROTO_GetFieldsCounters done [09:24:37]requested_item shift.num is exist - process it [09:24:37]requested_item shift.opened is exist - process it [09:24:37]req_shift_opened [09:24:37]FM_GetShiftState [09:24:37]SAM_PROTO_GetShiftState [09:24:37]wFMCommunicate request_size=4 [09:24:37]MH_SAM_APDU [09:24:37]CAPDU: 80 13 01 00 [09:24:37]Write to MH i2c: E2 08 00 0F 36 80 13 01 00 00 00 00 00 C2 [09:24:37]Write i2c OK [09:24:37]MH_I2C_Read... [09:24:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:37]Read from MH i2c: E2 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 0E 00 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 0E 00 0F 36 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 38 [09:24:37]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:24:37]wFMCommunicate OK [09:24:37]SAM_PROTO_GetShiftState done [09:24:37]FM_GetShiftState done [09:24:37]req_shift_opened done [09:24:37]requested_item shift.open_date is exist - process it [09:24:37]req_shift_open_date [09:24:37]req_shift_open_date done [09:24:37]produce_requested_data done [09:24:37]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49393,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [09:24:37]process_action_free close_receipt [09:24:37]json_value_free [09:24:37]json_value_free done [09:24:37]process_json_proto returns [09:24:37]Send response to host [09:24:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49393,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [09:24:37]free response buf [09:24:37]execute_script done [09:24:37]execute_script returns [09:24:37]free content buf [09:24:37]Sock 9.Close socket [09:24:37]Sock 9.Thread stoped [09:24:42]OFD Sender: No OFD packet to send [09:24:47]OFD Sender: No OFD packet to send [09:24:52]OFD Sender: No OFD packet to send [09:24:57]OFD Sender: No OFD packet to send [09:25:02]OFD Sender: No OFD packet to send [09:25:07]OFD Sender: No OFD packet to send [09:25:12]OFD Sender: No OFD packet to send [09:25:17]OFD Sender: No OFD packet to send [09:25:22]OFD Sender: No OFD packet to send [09:25:27]OFD Sender: No OFD packet to send [09:25:32]OFD Sender: No OFD packet to send [09:25:37]OFD Sender: No OFD packet to send [09:25:42]OFD Sender: No OFD packet to send [09:25:47]OFD Sender: No OFD packet to send [09:25:52]OFD Sender: No OFD packet to send [09:25:57]OFD Sender: No OFD packet to send [09:26:02]OFD Sender: No OFD packet to send [09:26:07]OFD Sender: No OFD packet to send [09:26:12]OFD Sender: No OFD packet to send [09:26:17]OFD Sender: No OFD packet to send [09:26:22]OFD Sender: No OFD packet to send [09:26:27]OFD Sender: No OFD packet to send [09:26:32]OFD Sender: No OFD packet to send [09:26:37]OFD Sender: No OFD packet to send [09:26:42]OFD Sender: No OFD packet to send [09:26:47]OFD Sender: No OFD packet to send [09:26:52]OFD Sender: No OFD packet to send [09:26:57]OFD Sender: No OFD packet to send [09:27:02]OFD Sender: No OFD packet to send [09:27:07]accept exits with 7 [09:27:07]New connection [09:27:07]New thread 3066830180 created [09:27:07]Thread 3066973540 joined [09:27:07]Waiting for new connection... [09:27:07] Sock 7.Parse request [09:27:07]Sock 7.Check first char [09:27:07]Sock 7.First char is OK [09:27:07]request: POST /json_proto HTTP/1.0 [09:27:07]Method: POST [09:27:07]URL: /json_proto [09:27:07]Method is POST - this is cgi request [09:27:07]url: /json_proto [09:27:07]query_string will be loaded in cgi processing [09:27:07]execute_cgi json_proto POST (null) [09:27:07]execute_cgi path=json_proto method=POST [09:27:07]POST find Content-Length [09:27:07]Host: 172.17.46.196:8080 [09:27:07]Content-Length: 941 [09:27:07]Content-Type: application/json [09:27:07] [09:27:07]POST finish read [09:27:07]Found Content-Length = 941 [09:27:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189632", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 1.000, "sum" : 17.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 187.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:07]execute_script... [09:27: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 : (3)189632", "tax_sys" : 0, "items" : [ { "code": "8901086040008", "name": "\u0416\u0438\u0434/\u0441\u0442 \u041F\u041D \u043B\u0435\u0442\u043D\u044F\u044F 4,5\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620017451303", "name": "\u041A\u0430\u0440.\u0441 \u0436\u0435\u0432.\u043A\u043E\u043D\u0444.\u0421\u0442\u0440\u0430\u0439\u043A 11.3\u0433/50", "price" : 17.00, "quantity" : 1.000, "sum" : 17.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 187.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:27:07]POST & json_proto [09:27:07]process_json_proto [09:27:07]json parsed OK: [09:27:07]protocol is kg_v1.0 [09:27:07]action value=close_receipt [09:27:07]process_action close_receipt [09:27:07]cmd_close_receipt [09:27:07]MH_GetDate [09:27:07]Write to MH i2c: F0 00 00 10 36 35 [09:27:07]Write i2c OK [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: F0 [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: F0 09 00 [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: F0 09 00 10 36 00 70 1B BF 66 07 E8 5D 66 A0 [09:27:07]GetLastDocTimeStamp 1723800279 [09:27:07]current date 1723800432 [09:27:07]FM_GetShiftState [09:27:07]SAM_PROTO_GetShiftState [09:27:07]wFMCommunicate request_size=4 [09:27:07]MH_SAM_APDU [09:27:07]CAPDU: 80 13 01 00 [09:27:07]Write to MH i2c: E2 08 00 11 36 80 13 01 00 00 00 00 00 C4 [09:27:07]Write i2c OK [09:27:07]MH_I2C_Read... [09:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:07]OFD Sender: No OFD packet to send [09:27:07]Read from MH i2c: E2 [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: E2 0E 00 [09:27:07]MH_I2C_Read... [09:27:07]Read from MH i2c: E2 0E 00 11 36 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 3A [09:27:07]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:27:07]wFMCommunicate OK [09:27:07]SAM_PROTO_GetShiftState done [09:27:07]FM_GetShiftState done [09:27:07]opened in 1723766958 [09:27:07]opened+sec_in_day 1723853358 [09:27:07]quantity*price = 17000 [09:27:07]sum+1 = 17001 [09:27:07]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4620017451303 Кар.с жев.конф.Страйк 11.3г/50 1.000 * 17.00 = 17.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 187.00 НСП 1% : 1.65 НДС 12% : 19.85 Наличными: 187.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 42 16.08.2024 09:27 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49394 ФПД: 230147701628341 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T092712&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49394&fm=230147701628341&tin=02508201610067®Number=0000000000092546&sum=18700 0 [09:27:08]StoreToDocumentArchive [09:27:08]shift 464 fd 49394 [09:27:08]save to /storage/0464/doc_00049394 [09:27:08]save last doc name /storage/0464/doc_00049394 to /storage/kkm_last_doc_name [09:27:08]save OK [09:27:08]Clear old archive folders... [09:27:08]ProcessDocumentItem done err = 0, tmpTLVsize=397 [09:27:08]tlvbuf is 00DE9FA0 [09:27:08]SAM_PROTO_ClearQueue [09:27:08]wFMCommunicate request_size=4 [09:27:08]MH_SAM_APDU [09:27:08]CAPDU: 80 09 00 00 [09:27:08]Write to MH i2c: E2 08 00 1E 36 80 09 00 00 00 00 00 00 C6 [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:27:08]Read from MH i2c: E2 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 1E 36 00 90 00 C8 [09:27:08]RAPDU: 90 00 [09:27:08]wFMCommunicate OK [09:27:08]SAM_PROTO_ClearQueue done [09:27:08]KKMCreateOFDPacket [09:27:08]OFDProtocolAddRootSTLVToBuf [09:27:08]FM_MakeSignedData [09:27:08]FM_MakeSignedData [09:27:08]SAM_PROTO_SignData [09:27:08]wFMCommunicate request_size=4 [09:27:08]MH_SAM_APDU [09:27:08]CAPDU: 80 0D 01 02 [09:27:08]Write to MH i2c: E2 08 00 1F 36 80 0D 01 02 00 00 00 00 CE [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:27:08]Read from MH i2c: E2 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 1F 36 00 90 00 C9 [09:27:08]RAPDU: 90 00 [09:27:08]wFMCommunicate OK [09:27:08]wFMCommunicate request_size=255 [09:27:08]MH_SAM_APDU [09:27:08]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 49 00 00 00 00 EB 03 26 00 [09:27:08]Write to MH i2c: E2 02 01 20 36 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 49 00 00 00 00 EB 03 26 00 00 00 4C [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:08]Read from MH i2c: E2 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 20 36 00 90 00 CA [09:27:08]RAPDU: 90 00 [09:27:08]wFMCommunicate OK [09:27:08]wFMCommunicate request_size=156 [09:27:08]MH_SAM_APDU [09:27:08]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 07 00 00 00 00 07 04 06 00 0C 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 70 1B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F2 C0 00 00 35 04 06 00 D1 51 70 00 5D B5 [09:27:08]Write to MH i2c: E2 9F 00 21 36 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 07 00 00 00 00 07 04 06 00 0C 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 70 1B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F2 C0 00 00 35 04 06 00 D1 51 70 00 5D B5 00 00 E4 [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:27:08]Read from MH i2c: E2 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 03 00 21 36 00 90 00 CB [09:27:08]RAPDU: 90 00 [09:27:08]wFMCommunicate OK [09:27:08]wFMCommunicate request_size=4 [09:27:08]MH_SAM_APDU [09:27:08]CAPDU: 80 0D 03 02 [09:27:08]Write to MH i2c: E2 08 00 22 36 80 0D 03 02 00 00 00 00 D3 [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:27:08]Read from MH i2c: E2 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 0B 00 [09:27:08]MH_I2C_Read... [09:27:08]Read from MH i2c: E2 0B 00 22 36 00 08 25 D2 BB 23 69 FA 7D 90 00 91 [09:27:08]RAPDU: 08 25 D2 BB 23 69 FA 7D 90 00 [09:27:08]wFMCommunicate OK [09:27:08]SAM_PROTO_SignData done [09:27:08]FM_MakeSignedData done [09:27:08]CreateOFDProtocolMessage [09:27:08]wFMCommunicate request_size=4 [09:27:08]MH_SAM_APDU [09:27:08]CAPDU: 80 11 00 00 [09:27:08]Write to MH i2c: E2 08 00 23 36 80 11 00 00 00 00 00 00 D3 [09:27:08]Write i2c OK [09:27:08]MH_I2C_Read... [09:27:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:09]Read from MH i2c: E2 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: E2 17 00 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: E2 17 00 23 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1E [09:27:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:27:09]wFMCommunicate OK [09:27:09]CreateOFDProtocolMessage done [09:27:09]OFDSenderStorePacket 49394 [09:27:09]StoreOFDPacket docnum=49394 [09:27:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A1 01 00 00 A2 E4 99 01 1D F2 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 07 00 00 00 00 07 04 06 00 0C 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 70 1B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F2 C0 00 00 35 04 06 00 D1 51 70 00 5D B5 08 25 D2 BB 23 69 FA 7D [09:27:09]CheckFolder [09:27:09]dirname=/storage/ofd_packets [09:27:09]CheckFolder done [09:27:09]ProducePacketName [09:27:09]name=ofd_packets/00049394 [09:27:09]NVStorageSaveData ofd_packets/00049394 [09:27:09]File name is /storage/ofd_packets/00049394 [09:27:09]Write 447 bytes [09:27:09]NVStorageSaveData done [09:27:09]OFDSenderStorePacket done [09:27:09]KKMCreateOFDPacket done [09:27:09]NVStorageSaveData kkm_last_timestamp [09:27:09]File name is /storage/kkm_last_timestamp [09:27:09]Write 4 bytes [09:27:09]NVStorageSaveData done [09:27:09]ExternCall_PrintAddStr [09:27:09]wPrintStart [09:27:09]Write to MH i2c: 01 00 00 24 36 5A [09:27:09]Write i2c OK [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: 01 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: 01 07 00 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: 01 07 00 24 36 00 00 00 00 00 FF 0F 6F [09:27:09]RasterBufferAndPrint [09:27:09]line Счет N : (3)189632 [09:27:09]line ИНН: 02508201610067 [09:27:09]line Контрольно-Кассовый Чек [09:27:09]line ПРОДАЖА [09:27:09]line Товар: 8901086040008 [09:27:09]line Жид/ст ПН летняя 4,5л [09:27:09]line 1.000 * 170.00 [09:27:09]line = 170.00 [09:27:09]line НДС 12% НСП 1% [09:27:09]line > о реализуемом товаре [09:27:09]line Товар: 4620017451303 [09:27:09]line Кар.с жев.конф.Страйк 11.3г/50 [09:27:09]line 1.000 * 17.00 [09:27:09]line = 17.00 [09:27:09]line НДС 12% НСП 1% [09:27:09]line > о реализуемом товаре [09:27:09]line ИТОГО: 187.00 [09:27:09]line НСП 1% : 1.65 [09:27:09]line НДС 12% : 19.85 [09:27:09]line Наличными: 187.00 [09:27:09]line Безнал.: 0.00 [09:27:09]line Место: АЗС № 95 "Партнер Нефть" [09:27:09]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:27:09]line СНО: Общий режим [09:27:09]line Чек 42 16.08.2024 09:27 [09:27:09]line Смена: 464 ФФД: 1.0 [09:27:09]line ЗНМ: 0300000078 [09:27:09]line РНМ: 0000000000092546 [09:27:09]line Версия ККМ: 001 [09:27:09]line ФМ: 0000000000871800 [09:27:09]line ФД: 49394 [09:27:09]line ФПД: 230147701628341 [09:27:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T092712&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49394&fm=230147701628341&tin=02508201610067®Number=0000000000092546&sum=18700 [09:27:09]line 0 [09:27:09]OFD Sender: Processing packet 49394 [packets to send 21, broken 20] [09:27:09]ProducePacketName [09:27:09]name=ofd_packets/00049394 [09:27:09]OFD Sender: To server: pG, [09:27:09]CommunicateWithHost lk.salyk.kg:30040 [09:27:09]ConnectInit lk.salyk.kg [09:27:09]written 0, free lines is 4095 [09:27:09]Connected sock=10 [09:27:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A1 01 00 00 A2 E4 99 01 1D F2 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 32 30 30 31 37 34 35 31 33 30 33 06 04 30 00 D0 9A D0 B0 D1 80 2E D1 81 20 D0 B6 D0 B5 D0 B2 2E D0 BA D0 BE D0 BD D1 84 2E D0 A1 D1 82 D1 80 D0 B0 D0 B9 D0 BA 20 31 31 2E 33 D0 B3 2F 35 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 06 00 00 00 00 13 04 06 00 A4 06 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 07 00 00 00 00 07 04 06 00 0C 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 70 1B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F2 C0 00 00 35 04 06 00 D1 51 70 00 5D B5 08 25 D2 BB 23 69 FA 7D [09:27:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 26 02 47 00 F6 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F2 C0 00 00 F4 03 04 00 AF C6 BE 66 B6 04 01 00 00 C5 CC 9A BD 34 A0 E3 A5 [09:27:09]CommunicateWithHost err = 0 [09:27:09]CheckOFDResponse [09:27:09]1017 (14) - 77093643461234 [09:27:09]1041 (16) - 0000000000871800 [09:27:09]1040 (4) - 49394 [09:27:09]1012 (4) - 16.08.2024 03:25 [09:27:09]1206 (1) - 0 [09:27:09]OFD Sender: Remove packet 49394 [09:27:09]ProducePacketName [09:27:09]name=ofd_packets/00049394 [09:27:09]NVStorageDeleteData [09:27:09]Write to MH i2c: 01 00 00 53 36 89 [09:27:09]Write i2c OK [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: 01 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: 01 07 00 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: 01 07 00 53 36 00 00 00 00 00 8E 0C 2A [09:27:09]RasterBufferAndPrint [09:27:09]line [09:27:09]line [09:27:09]line [09:27:09]line [09:27:09]line [09:27:09]written 0, free lines is 3220 [09:27:09]MH_Cut [09:27:09]Write to MH i2c: D1 01 00 5A 36 01 62 [09:27:09]Write i2c OK [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: D1 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: D1 01 00 [09:27:09]MH_I2C_Read... [09:27:09]Read from MH i2c: D1 01 00 5A 36 00 61 [09:27:09]Write to MH i2c: 01 00 00 5B 36 91 [09:27:09]Write i2c OK [09:27:09]MH_I2C_Read... [09:27:10]OFD Sender: No OFD packet to send [09:27:10]*** Cut start [09:27:10]*** Purtial cut [09:27:10]*** CUTSNS_PIN = 0 [09:27:10]*** Stage 1: CUTSNS_PIN = 1 [09:27:12]Read from MH i2c: 01 [09:27:12]MH_I2C_Read... [09:27:12]*** Stop cut motor [09:27:12]*** Cut end [09:27:12]Read from MH i2c: 01 07 00 [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: 01 07 00 5B 36 00 00 00 00 00 FF 0F A6 [09:27:12]process_action close_receipt done [09:27:12]requested_data is exist [09:27:12]produce_requested_data [09:27:12]requested_item fm.sn is exist - process it [09:27:12]wFMCommunicate request_size=4 [09:27:12]MH_SAM_APDU [09:27:12]CAPDU: 80 11 00 00 [09:27:12]Write to MH i2c: E2 08 00 5C 36 80 11 00 00 00 00 00 00 0C [09:27:12]Write i2c OK [09:27:12]MH_I2C_Read... [09:27:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:27:12]Read from MH i2c: E2 [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: E2 17 00 [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: E2 17 00 5C 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 57 [09:27:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:27:12]wFMCommunicate OK [09:27:12]requested_item fd.num is exist - process it [09:27:12]SAM_PROTO_GetFieldsCounters [09:27:12]wFMCommunicate request_size=4 [09:27:12]MH_SAM_APDU [09:27:12]CAPDU: 80 13 00 00 [09:27:12]Write to MH i2c: E2 08 00 5D 36 80 13 00 00 00 00 00 00 0F [09:27:12]Write i2c OK [09:27:12]MH_I2C_Read... [09:27:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:27:12]Read from MH i2c: E2 [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: E2 62 00 [09:27:12]MH_I2C_Read... [09:27:12]Read from MH i2c: E2 62 00 5D 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F2 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [09:27:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F2 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:27:12]wFMCommunicate OK [09:27:12]SAM_PROTO_GetFieldsCounters done [09:27:12]requested_item shift.num is exist - process it [09:27:12]requested_item shift.opened is exist - process it [09:27:12]req_shift_opened [09:27:12]FM_GetShiftState [09:27:12]SAM_PROTO_GetShiftState [09:27:12]wFMCommunicate request_size=4 [09:27:12]MH_SAM_APDU [09:27:12]CAPDU: 80 13 01 00 [09:27:12]Write to MH i2c: E2 08 00 5E 36 80 13 01 00 00 00 00 00 11 [09:27:12]Write i2c OK [09:27:12]MH_I2C_Read... [09:27:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:27:13]Read from MH i2c: E2 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 0E 00 [09:27:13]MH_I2C_Read... [09:27:13]Read from MH i2c: E2 0E 00 5E 36 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 87 [09:27:13]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:27:13]wFMCommunicate OK [09:27:13]SAM_PROTO_GetShiftState done [09:27:13]FM_GetShiftState done [09:27:13]req_shift_opened done [09:27:13]requested_item shift.open_date is exist - process it [09:27:13]req_shift_open_date [09:27:13]req_shift_open_date done [09:27:13]produce_requested_data done [09:27:13]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49394,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [09:27:13]process_action_free close_receipt [09:27:13]json_value_free [09:27:13]json_value_free done [09:27:13]process_json_proto returns [09:27:13]Send response to host [09:27:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49394,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [09:27:13]free response buf [09:27:13]execute_script done [09:27:13]execute_script returns [09:27:13]free content buf [09:27:13]Sock 7.Close socket [09:27:13]Sock 7.Thread stoped [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:22]accept exits with 9 [09:33:22]New connection [09:33:22]New thread 3066973540 created [09:33:22]Thread 3066830180 joined [09:33:22]Waiting for new connection... [09:33:22] Sock 9.Parse request [09:33:22]Sock 9.Check first char [09:33:22]Sock 9.First char is OK [09:33:22]request: POST /json_proto HTTP/1.0 [09:33:22]Method: POST [09:33:22]URL: /json_proto [09:33:22]Method is POST - this is cgi request [09:33:22]url: /json_proto [09:33:22]query_string will be loaded in cgi processing [09:33:22]execute_cgi json_proto POST (null) [09:33:22]execute_cgi path=json_proto method=POST [09:33:22]POST find Content-Length [09:33:22]Host: 172.17.46.196:8080 [09:33:22]Content-Length: 756 [09:33:22]Content-Type: application/json [09:33:22] [09:33:22]POST finish read [09:33:22]Found Content-Length = 756 [09:33:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115887", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:22]execute_script... [09:33: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)11325209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115887", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:33:22]POST & json_proto [09:33:22]process_json_proto [09:33:22]json parsed OK: [09:33:22]protocol is kg_v1.0 [09:33:22]action value=close_receipt [09:33:22]process_action close_receipt [09:33:22]cmd_close_receipt [09:33:22]MH_GetDate [09:33:22]Write to MH i2c: F0 00 00 5F 36 84 [09:33:22]Write i2c OK [09:33:22]MH_I2C_Read... [09:33:22]Read from MH i2c: F0 [09:33:22]MH_I2C_Read... [09:33:22]Read from MH i2c: F0 09 00 [09:33:22]MH_I2C_Read... [09:33:22]Read from MH i2c: F0 09 00 5F 36 00 E7 1C BF 66 07 E8 5D 66 67 [09:33:22]GetLastDocTimeStamp 1723800432 [09:33:22]current date 1723800807 [09:33:22]FM_GetShiftState [09:33:22]SAM_PROTO_GetShiftState [09:33:22]wFMCommunicate request_size=4 [09:33:22]MH_SAM_APDU [09:33:22]CAPDU: 80 13 01 00 [09:33:22]Write to MH i2c: E2 08 00 60 36 80 13 01 00 00 00 00 00 13 [09:33:22]Write i2c OK [09:33:22]MH_I2C_Read... [09:33:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:22]Read from MH i2c: E2 [09:33:22]MH_I2C_Read... [09:33:22]Read from MH i2c: E2 0E 00 [09:33:22]MH_I2C_Read... [09:33:22]Read from MH i2c: E2 0E 00 60 36 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 89 [09:33:22]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:33:22]wFMCommunicate OK [09:33:22]SAM_PROTO_GetShiftState done [09:33:22]FM_GetShiftState done [09:33:22]opened in 1723766958 [09:33:22]opened+sec_in_day 1723853358 [09:33:22]quantity*price = 0 [09:33:22]sum+1 = 1 [09:33:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 43 16.08.2024 09:33 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30115887 ФМ: 0000000000871800 ФД: 49395 ФПД: 220809677162481 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T093327&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49395&fm=220809677162481&tin=02508201610067®Number=0000000000092546&sum=0 [09:33:23]StoreToDocumentArchive [09:33:23]shift 464 fd 49395 [09:33:23]save to /storage/0464/doc_00049395 [09:33:23]save last doc name /storage/0464/doc_00049395 to /storage/kkm_last_doc_name [09:33:23]save OK [09:33:23]Clear old archive folders... [09:33:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:33:23]tlvbuf is 00E41930 [09:33:23]SAM_PROTO_ClearQueue [09:33:23]wFMCommunicate request_size=4 [09:33:23]MH_SAM_APDU [09:33:23]CAPDU: 80 09 00 00 [09:33:23]Write to MH i2c: E2 08 00 6D 36 80 09 00 00 00 00 00 00 15 [09:33:23]Write i2c OK [09:33:23]MH_I2C_Read... [09:33:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:33:23]Read from MH i2c: E2 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 03 00 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 03 00 6D 36 00 90 00 17 [09:33:23]RAPDU: 90 00 [09:33:23]wFMCommunicate OK [09:33:23]SAM_PROTO_ClearQueue done [09:33:23]KKMCreateOFDPacket [09:33:23]OFDProtocolAddRootSTLVToBuf [09:33:23]FM_MakeSignedData [09:33:23]FM_MakeSignedData [09:33:23]SAM_PROTO_SignData [09:33:23]wFMCommunicate request_size=4 [09:33:23]MH_SAM_APDU [09:33:23]CAPDU: 80 0D 01 02 [09:33:23]Write to MH i2c: E2 08 00 6E 36 80 0D 01 02 00 00 00 00 1D [09:33:23]Write i2c OK [09:33:23]MH_I2C_Read... [09:33:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:33:23]Read from MH i2c: E2 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 03 00 [09:33:23]MH_I2C_Read... [09:33:23]Read from MH i2c: E2 03 00 6E 36 00 90 00 18 [09:33:23]RAPDU: 90 00 [09:33:23]wFMCommunicate OK [09:33:23]wFMCommunicate request_size=255 [09:33:23]MH_SAM_APDU [09:33: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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 E7 1C BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F3 C0 00 00 35 04 06 00 C8 [09:33:23]Write to MH i2c: E2 02 01 6F 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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 E7 1C BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F3 C0 00 00 35 04 06 00 C8 00 00 2C [09:33:23]Write i2c OK [09:33:23]MH_I2C_Read... [09:33:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:24]Read from MH i2c: E2 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: E2 03 00 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: E2 03 00 6F 36 00 90 00 19 [09:33:24]RAPDU: 90 00 [09:33:24]wFMCommunicate OK [09:33:24]wFMCommunicate request_size=10 [09:33:24]MH_SAM_APDU [09:33:24]CAPDU: 80 0D 02 02 05 D3 42 5E C7 F1 [09:33:24]Write to MH i2c: E2 0D 00 70 36 80 0D 02 02 05 00 D3 42 5E C7 F1 00 00 55 [09:33:24]Write i2c OK [09:33:24]MH_I2C_Read... [09:33:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:33:24]Read from MH i2c: E2 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: E2 03 00 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: E2 03 00 70 36 00 90 00 1A [09:33:24]RAPDU: 90 00 [09:33:24]wFMCommunicate OK [09:33:24]wFMCommunicate request_size=4 [09:33:24]MH_SAM_APDU [09:33:24]CAPDU: 80 0D 03 02 [09:33:24]Write to MH i2c: E2 08 00 71 36 80 0D 03 02 00 00 00 00 22 [09:33:24]Write i2c OK [09:33:24]MH_I2C_Read... [09:33:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:33:24]Read from MH i2c: E2 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: E2 0B 00 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: E2 0B 00 71 36 00 2E CA 2D B5 92 32 F7 B9 90 00 71 [09:33:24]RAPDU: 2E CA 2D B5 92 32 F7 B9 90 00 [09:33:24]wFMCommunicate OK [09:33:24]SAM_PROTO_SignData done [09:33:24]FM_MakeSignedData done [09:33:24]CreateOFDProtocolMessage [09:33:24]wFMCommunicate request_size=4 [09:33:24]MH_SAM_APDU [09:33:24]CAPDU: 80 11 00 00 [09:33:24]Write to MH i2c: E2 08 00 72 36 80 11 00 00 00 00 00 00 22 [09:33:24]Write i2c OK [09:33:24]MH_I2C_Read... [09:33:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:24]Read from MH i2c: E2 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: E2 17 00 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: E2 17 00 72 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6D [09:33:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:33:24]wFMCommunicate OK [09:33:24]CreateOFDProtocolMessage done [09:33:24]OFDSenderStorePacket 49395 [09:33:24]StoreOFDPacket docnum=49395 [09:33:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 F1 83 07 01 3D F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 E7 1C BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F3 C0 00 00 35 04 06 00 C8 D3 42 5E C7 F1 2E CA 2D B5 92 32 F7 B9 [09:33:24]CheckFolder [09:33:24]dirname=/storage/ofd_packets [09:33:24]CheckFolder done [09:33:24]ProducePacketName [09:33:24]name=ofd_packets/00049395 [09:33:24]NVStorageSaveData ofd_packets/00049395 [09:33:24]File name is /storage/ofd_packets/00049395 [09:33:24]Write 301 bytes [09:33:24]NVStorageSaveData done [09:33:24]OFDSenderStorePacket done [09:33:24]KKMCreateOFDPacket done [09:33:24]NVStorageSaveData kkm_last_timestamp [09:33:24]File name is /storage/kkm_last_timestamp [09:33:24]Write 4 bytes [09:33:24]NVStorageSaveData done [09:33:24]ExternCall_PrintAddStr [09:33:24]wPrintStart [09:33:24]Write to MH i2c: 01 00 00 73 36 A9 [09:33:24]Write i2c OK [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: 01 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: 01 07 00 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: 01 07 00 73 36 00 00 00 00 00 FF 0F BE [09:33:24]RasterBufferAndPrint [09:33:24]line Счет N : (1)11325209 [09:33:24]line ИНН: 02508201610067 [09:33:24]line Контрольно-Кассовый Чек [09:33:24]line ПРОДАЖА [09:33:24]line ТРК (МРК, ГНК) : 12 [09:33:24]line Товар: 2710124130 [09:33:24]line Аи-92-К-4 [09:33:24]line 20.000 * 0.00 [09:33:24]line = 0.00 [09:33:24]line НДС 12% НСП 1% [09:33:24]line > о реализуемом товаре [09:33:24]line ИТОГО: 0.00 [09:33:24]line НСП 1% : 0.00 [09:33:24]line НДС 12% : 0.00 [09:33:24]line Наличными: 0.00 [09:33:24]line Безнал.: 0.00 [09:33:24]line Место: АЗС № 95 "Партнер Нефть" [09:33:24]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:33:24]line СНО: Общий режим [09:33:24]line Чек 43 16.08.2024 09:33 [09:33:24]line Смена: 464 ФФД: 1.0 [09:33:24]line ЗНМ: 0300000078 [09:33:24]line РНМ: 0000000000092546 [09:33:24]line Версия ККМ: 001 [09:33:24]line Талоны: ТК ГПНА Online [09:33:24]line 30115887 [09:33:24]line ФМ: 0000000000871800 [09:33:24]line ФД: 49395 [09:33:24]line ФПД: 220809677162481 [09:33:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T093327&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49395&fm=220809677162481&tin=02508201610067®Number=0000000000092546&sum=0 [09:33:24]written 0, free lines is 4095 [09:33:24]OFD Sender: Processing packet 49395 [packets to send 21, broken 20] [09:33:24]ProducePacketName [09:33:24]name=ofd_packets/00049395 [09:33:24]OFD Sender: To server: pG, [09:33:24]CommunicateWithHost lk.salyk.kg:30040 [09:33:24]ConnectInit lk.salyk.kg [09:33:24]Write to MH i2c: 01 00 00 9D 36 D3 [09:33:24]Write i2c OK [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: 01 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: 01 07 00 [09:33:24]MH_I2C_Read... [09:33:24]Read from MH i2c: 01 07 00 9D 36 00 00 00 00 00 DC 0C C2 [09:33:24]RasterBufferAndPrint [09:33:24]line [09:33:24]line [09:33:24]line [09:33:24]line [09:33:24]line [09:33:24]written 0, free lines is 3298 [09:33:25]MH_Cut [09:33:25]Write to MH i2c: D1 01 00 A4 36 01 AC [09:33:25]Write i2c OK [09:33:25]MH_I2C_Read... [09:33:25]Read from MH i2c: D1 [09:33:25]MH_I2C_Read... [09:33:25]Read from MH i2c: D1 01 00 [09:33:25]MH_I2C_Read... [09:33:25]Read from MH i2c: D1 01 00 A4 36 00 AB [09:33:25]Write to MH i2c: 01 00 00 A5 36 DB [09:33:25]Write i2c OK [09:33:25]MH_I2C_Read... [09:33:25]*** Cut start [09:33:25]*** Purtial cut [09:33:25]*** Stage 1: CUTSNS_PIN = 1 [09:33:26]Read from MH i2c: 01 [09:33:26]MH_I2C_Read... [09:33:26]*** Stop cut motor [09:33:26]*** Cut end [09:33:26]Read from MH i2c: 01 07 00 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: 01 07 00 A5 36 00 00 00 00 00 FF 0F F0 [09:33:26]process_action close_receipt done [09:33:26]requested_data is exist [09:33:26]produce_requested_data [09:33:26]requested_item fm.sn is exist - process it [09:33:26]wFMCommunicate request_size=4 [09:33:26]MH_SAM_APDU [09:33:26]CAPDU: 80 11 00 00 [09:33:26]Write to MH i2c: E2 08 00 A6 36 80 11 00 00 00 00 00 00 56 [09:33:26]Write i2c OK [09:33:26]MH_I2C_Read... [09:33:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:33:26]Read from MH i2c: E2 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 17 00 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 17 00 A6 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A1 [09:33:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:33:26]wFMCommunicate OK [09:33:26]requested_item fd.num is exist - process it [09:33:26]SAM_PROTO_GetFieldsCounters [09:33:26]wFMCommunicate request_size=4 [09:33:26]MH_SAM_APDU [09:33:26]CAPDU: 80 13 00 00 [09:33:26]Write to MH i2c: E2 08 00 A7 36 80 13 00 00 00 00 00 00 59 [09:33:26]Write i2c OK [09:33:26]MH_I2C_Read... [09:33:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:33:26]Read from MH i2c: E2 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 62 00 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 62 00 A7 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F3 C0 00 00 0E 04 04 00 D0 01 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 78 [09:33:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F3 C0 00 00 0E 04 04 00 D0 01 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 [09:33:26]wFMCommunicate OK [09:33:26]SAM_PROTO_GetFieldsCounters done [09:33:26]requested_item shift.num is exist - process it [09:33:26]requested_item shift.opened is exist - process it [09:33:26]req_shift_opened [09:33:26]FM_GetShiftState [09:33:26]SAM_PROTO_GetShiftState [09:33:26]wFMCommunicate request_size=4 [09:33:26]MH_SAM_APDU [09:33:26]CAPDU: 80 13 01 00 [09:33:26]Write to MH i2c: E2 08 00 A8 36 80 13 01 00 00 00 00 00 5B [09:33:26]Write i2c OK [09:33:26]MH_I2C_Read... [09:33:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:33:26]Read from MH i2c: E2 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 0E 00 [09:33:26]MH_I2C_Read... [09:33:26]Read from MH i2c: E2 0E 00 A8 36 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 D1 [09:33:26]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:33:26]wFMCommunicate OK [09:33:26]SAM_PROTO_GetShiftState done [09:33:26]FM_GetShiftState done [09:33:26]req_shift_opened done [09:33:26]requested_item shift.open_date is exist - process it [09:33:26]req_shift_open_date [09:33:26]req_shift_open_date done [09:33:26]produce_requested_data done [09:33:26]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49395,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [09:33:26]process_action_free close_receipt [09:33:26]json_value_free [09:33:26]json_value_free done [09:33:26]process_json_proto returns [09:33:26]Send response to host [09:33:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49395,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [09:33:26]free response buf [09:33:26]execute_script done [09:33:26]execute_script returns [09:33:26]free content buf [09:33:26]Sock 9.Close socket [09:33:26]Sock 9.Thread stoped [09:35:36]ConnectInit Can't connect to host [09:35:36]CommunicateWithHost connect error [09:35:36]CommunicateWithHost err = -1 [09:35:36]OFD Sender: Server communicate error [09:35:41]OFD Sender: Processing packet 49395 [packets to send 21, broken 20] [09:35:41]ProducePacketName [09:35:41]name=ofd_packets/00049395 [09:35:41]OFD Sender: To server: pG, [09:35:41]CommunicateWithHost lk.salyk.kg:30040 [09:35:41]ConnectInit lk.salyk.kg [09:35:41]Connected sock=9 [09:35:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 F1 83 07 01 3D F7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 E7 1C BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F3 C0 00 00 35 04 06 00 C8 D3 42 5E C7 F1 2E CA 2D B5 92 32 F7 B9 [09:35:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 48 5C 47 00 15 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F3 C0 00 00 F4 03 04 00 AF C8 BE 66 B6 04 01 00 00 05 57 86 A5 D0 69 C1 56 [09:35:41]CommunicateWithHost err = 0 [09:35:41]CheckOFDResponse [09:35:41]1017 (14) - 77093643461234 [09:35:41]1041 (16) - 0000000000871800 [09:35:41]1040 (4) - 49395 [09:35:41]1012 (4) - 16.08.2024 03:34 [09:35:41]1206 (1) - 0 [09:35:41]OFD Sender: Remove packet 49395 [09:35:41]ProducePacketName [09:35:41]name=ofd_packets/00049395 [09:35:41]NVStorageDeleteData [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:32]OFD Sender: No OFD packet to send [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:06]accept exits with 7 [09:37:06]New connection [09:37:06]New thread 3066830180 created [09:37:06] Sock 7.Parse request [09:37:06]Thread 3066973540 joined [09:37:06]Sock 7.Check first char [09:37:06]Waiting for new connection... [09:37:06]Sock 7.First char is OK [09:37:06]request: POST /json_proto HTTP/1.0 [09:37:06]Method: POST [09:37:06]URL: /json_proto [09:37:06]Method is POST - this is cgi request [09:37:06]url: /json_proto [09:37:06]query_string will be loaded in cgi processing [09:37:06]execute_cgi json_proto POST (null) [09:37:06]execute_cgi path=json_proto method=POST [09:37:06]POST find Content-Length [09:37:06]Host: 172.17.46.196:8080 [09:37:06]Content-Length: 652 [09:37:06]Content-Type: application/json [09:37:06] [09:37:06]POST finish read [09:37:06]Found Content-Length = 652 [09:37:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189633", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:06]execute_script... [09:37:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189633", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:06]POST & json_proto [09:37:06]process_json_proto [09:37:06]json parsed OK: [09:37:06]protocol is kg_v1.0 [09:37:06]action value=close_receipt [09:37:06]process_action close_receipt [09:37:06]cmd_close_receipt [09:37:06]MH_GetDate [09:37:06]Write to MH i2c: F0 00 00 A9 36 CE [09:37:06]Write i2c OK [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: F0 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: F0 09 00 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: F0 09 00 A9 36 00 C7 1D BF 66 07 E8 5D 66 92 [09:37:06]GetLastDocTimeStamp 1723800807 [09:37:06]current date 1723801031 [09:37:06]FM_GetShiftState [09:37:06]SAM_PROTO_GetShiftState [09:37:06]wFMCommunicate request_size=4 [09:37:06]MH_SAM_APDU [09:37:06]CAPDU: 80 13 01 00 [09:37:06]Write to MH i2c: E2 08 00 AA 36 80 13 01 00 00 00 00 00 5D [09:37:06]Write i2c OK [09:37:06]MH_I2C_Read... [09:37:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:06]Read from MH i2c: E2 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: E2 0E 00 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: E2 0E 00 AA 36 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 D3 [09:37:06]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:37:06]wFMCommunicate OK [09:37:06]SAM_PROTO_GetShiftState done [09:37:06]FM_GetShiftState done [09:37:06]opened in 1723766958 [09:37:06]opened+sec_in_day 1723853358 [09:37:06]quantity*price = 12500 [09:37:06]sum+1 = 12501 [09:37:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 44 16.08.2024 09:37 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49396 ФПД: 203881141990134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T093711&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49396&fm=203881141990134&tin=02508201610067®Number=0000000000092546&sum=12500 0 [09:37:07]StoreToDocumentArchive [09:37:07]shift 464 fd 49396 [09:37:07]save to /storage/0464/doc_00049396 [09:37:07]save last doc name /storage/0464/doc_00049396 to /storage/kkm_last_doc_name [09:37:07]save OK [09:37:07]Clear old archive folders... [09:37:07]ProcessDocumentItem done err = 0, tmpTLVsize=284 [09:37:07]tlvbuf is 00E20E30 [09:37:07]SAM_PROTO_ClearQueue [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 09 00 00 [09:37:07]Write to MH i2c: E2 08 00 B7 36 80 09 00 00 00 00 00 00 5F [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 B7 36 00 90 00 61 [09:37:07]RAPDU: 90 00 [09:37:07]wFMCommunicate OK [09:37:07]SAM_PROTO_ClearQueue done [09:37:07]KKMCreateOFDPacket [09:37:07]OFDProtocolAddRootSTLVToBuf [09:37:07]FM_MakeSignedData [09:37:07]FM_MakeSignedData [09:37:07]SAM_PROTO_SignData [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 0D 01 02 [09:37:07]Write to MH i2c: E2 08 00 B8 36 80 0D 01 02 00 00 00 00 67 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 B8 36 00 90 00 62 [09:37:07]RAPDU: 90 00 [09:37:07]wFMCommunicate OK [09:37:07]wFMCommunicate request_size=255 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C7 1D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 [09:37:07]Write to MH i2c: E2 02 01 B9 36 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C7 1D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 00 00 10 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 B9 36 00 90 00 63 [09:37:07]RAPDU: 90 00 [09:37:07]wFMCommunicate OK [09:37:07]wFMCommunicate request_size=43 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F4 C0 00 00 35 04 06 00 B9 6D C7 0B 72 F6 [09:37:07]Write to MH i2c: E2 2E 00 BA 36 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F4 C0 00 00 35 04 06 00 B9 6D C7 0B 72 F6 00 00 5E [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 BA 36 00 90 00 64 [09:37:07]RAPDU: 90 00 [09:37:07]wFMCommunicate OK [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 0D 03 02 [09:37:07]Write to MH i2c: E2 08 00 BB 36 80 0D 03 02 00 00 00 00 6C [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 0B 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 0B 00 BB 36 00 CA B0 45 C8 8A 04 E4 7D 90 00 E3 [09:37:07]RAPDU: CA B0 45 C8 8A 04 E4 7D 90 00 [09:37:07]wFMCommunicate OK [09:37:07]SAM_PROTO_SignData done [09:37:07]FM_MakeSignedData done [09:37:07]CreateOFDProtocolMessage [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 11 00 00 [09:37:07]Write to MH i2c: E2 08 00 BC 36 80 11 00 00 00 00 00 00 6C [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 17 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 17 00 BC 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B7 [09:37:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:37:07]wFMCommunicate OK [09:37:07]CreateOFDProtocolMessage done [09:37:07]OFDSenderStorePacket 49396 [09:37:07]StoreOFDPacket docnum=49396 [09:37:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 30 01 00 00 CF 5A 28 01 4D 33 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C7 1D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F4 C0 00 00 35 04 06 00 B9 6D C7 0B 72 F6 CA B0 45 C8 8A 04 E4 7D [09:37:07]CheckFolder [09:37:07]dirname=/storage/ofd_packets [09:37:07]CheckFolder done [09:37:07]ProducePacketName [09:37:07]name=ofd_packets/00049396 [09:37:07]NVStorageSaveData ofd_packets/00049396 [09:37:07]File name is /storage/ofd_packets/00049396 [09:37:07]Write 334 bytes [09:37:07]NVStorageSaveData done [09:37:07]OFDSenderStorePacket done [09:37:07]KKMCreateOFDPacket done [09:37:07]NVStorageSaveData kkm_last_timestamp [09:37:07]File name is /storage/kkm_last_timestamp [09:37:07]Write 4 bytes [09:37:07]NVStorageSaveData done [09:37:07]ExternCall_PrintAddStr [09:37:07]wPrintStart [09:37:07]Write to MH i2c: 01 00 00 BD 36 F3 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: 01 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: 01 07 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: 01 07 00 BD 36 00 00 00 00 00 FF 0F 08 [09:37:07]RasterBufferAndPrint [09:37:07]line Счет N : (3)189633 [09:37:07]line ИНН: 02508201610067 [09:37:07]line Контрольно-Кассовый Чек [09:37:07]line ПРОДАЖА [09:37:07]line Товар: 2000036190018 [09:37:07]line Кофе Американо XL(GABB TRADE) [09:37:07]line 1.000 * 125.00 [09:37:07]line = 125.00 [09:37:07]line НДС 12% НСП 1% [09:37:07]line > о реализуемом товаре [09:37:07]line ИТОГО: 125.00 [09:37:07]line НСП 1% : 1.11 [09:37:07]line НДС 12% : 13.27 [09:37:07]line Наличными: 125.00 [09:37:07]line Безнал.: 0.00 [09:37:07]line Место: АЗС № 95 "Партнер Нефть" [09:37:07]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:37:07]line СНО: Общий режим [09:37:07]line Чек 44 16.08.2024 09:37 [09:37:07]line Смена: 464 ФФД: 1.0 [09:37:07]line ЗНМ: 0300000078 [09:37:07]line РНМ: 0000000000092546 [09:37:07]line Версия ККМ: 001 [09:37:07]line ФМ: 0000000000871800 [09:37:07]line ФД: 49396 [09:37:07]line ФПД: 203881141990134 [09:37:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T093711&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49396&fm=203881141990134&tin=02508201610067®Number=0000000000092546&sum=12500 [09:37:07]line 0 [09:37:07]written 0, free lines is 4095 [09:37:07]OFD Sender: Processing packet 49396 [packets to send 21, broken 20] [09:37:07]ProducePacketName [09:37:07]name=ofd_packets/00049396 [09:37:07]OFD Sender: To server: pG, [09:37:08]CommunicateWithHost lk.salyk.kg:30040 [09:37:08]ConnectInit lk.salyk.kg [09:37:08]Write to MH i2c: 01 00 00 E6 36 1C [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 07 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 07 00 E6 36 00 00 00 00 00 E5 0C 14 [09:37:08]RasterBufferAndPrint [09:37:08]line [09:37:08]line [09:37:08]line [09:37:08]line [09:37:08]line [09:37:08]written 0, free lines is 3306 [09:37:08]MH_Cut [09:37:08]Write to MH i2c: D1 01 00 ED 36 01 F5 [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: D1 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: D1 01 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: D1 01 00 ED 36 00 F4 [09:37:08]Write to MH i2c: 01 00 00 EE 36 24 [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]Connected sock=10 [09:37:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 30 01 00 00 CF 5A 28 01 4D 33 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 C7 1D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F4 C0 00 00 35 04 06 00 B9 6D C7 0B 72 F6 CA B0 45 C8 8A 04 E4 7D [09:37:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A3 11 47 00 A5 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 38 37 31 38 30 30 10 04 04 00 F4 C0 00 00 F4 03 04 00 06 C9 BE 66 B6 04 01 00 00 EE 80 4F 19 7B 41 2F F5 [09:37:08]CommunicateWithHost err = 0 [09:37:08]CheckOFDResponse [09:37:08]1017 (14) - 77093643461234 [09:37:08]1041 (16) - 0000000000871800 [09:37:08]1040 (4) - 49396 [09:37:08]1012 (4) - 16.08.2024 03:35 [09:37:08]1206 (1) - 0 [09:37:08]OFD Sender: Remove packet 49396 [09:37:08]ProducePacketName [09:37:08]name=ofd_packets/00049396 [09:37:08]NVStorageDeleteData [09:37:09]*** Cut start [09:37:09]*** Purtial cut [09:37:09]*** CUTSNS_PIN = 0 [09:37:09]OFD Sender: No OFD packet to send [09:37:09]*** Stage 1: CUTSNS_PIN = 1 [09:37:11]Read from MH i2c: 01 [09:37:11]MH_I2C_Read... [09:37:11]*** Stop cut motor [09:37:11]*** Cut end [09:37:11]Read from MH i2c: 01 07 00 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: 01 07 00 EE 36 00 00 00 00 00 FF 0F 39 [09:37:11]process_action close_receipt done [09:37:11]requested_data is exist [09:37:11]produce_requested_data [09:37:11]requested_item fm.sn is exist - process it [09:37:11]wFMCommunicate request_size=4 [09:37:11]MH_SAM_APDU [09:37:11]CAPDU: 80 11 00 00 [09:37:11]Write to MH i2c: E2 08 00 EF 36 80 11 00 00 00 00 00 00 9F [09:37:11]Write i2c OK [09:37:11]MH_I2C_Read... [09:37:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:11]Read from MH i2c: E2 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: E2 17 00 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: E2 17 00 EF 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 EA [09:37:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:37:11]wFMCommunicate OK [09:37:11]requested_item fd.num is exist - process it [09:37:11]SAM_PROTO_GetFieldsCounters [09:37:11]wFMCommunicate request_size=4 [09:37:11]MH_SAM_APDU [09:37:11]CAPDU: 80 13 00 00 [09:37:11]Write to MH i2c: E2 08 00 F0 36 80 13 00 00 00 00 00 00 A2 [09:37:11]Write i2c OK [09:37:11]MH_I2C_Read... [09:37:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:11]Read from MH i2c: E2 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: E2 62 00 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: E2 62 00 F0 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F4 C0 00 00 0E 04 04 00 D0 01 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 C5 [09:37:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F4 C0 00 00 0E 04 04 00 D0 01 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 [09:37:11]wFMCommunicate OK [09:37:11]SAM_PROTO_GetFieldsCounters done [09:37:11]requested_item shift.num is exist - process it [09:37:11]requested_item shift.opened is exist - process it [09:37:11]req_shift_opened [09:37:11]FM_GetShiftState [09:37:11]SAM_PROTO_GetShiftState [09:37:11]wFMCommunicate request_size=4 [09:37:11]MH_SAM_APDU [09:37:11]CAPDU: 80 13 01 00 [09:37:11]Write to MH i2c: E2 08 00 F1 36 80 13 01 00 00 00 00 00 A4 [09:37:11]Write i2c OK [09:37:11]MH_I2C_Read... [09:37:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:11]Read from MH i2c: E2 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: E2 0E 00 [09:37:11]MH_I2C_Read... [09:37:11]Read from MH i2c: E2 0E 00 F1 36 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 1A [09:37:11]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:37:11]wFMCommunicate OK [09:37:11]SAM_PROTO_GetShiftState done [09:37:11]FM_GetShiftState done [09:37:11]req_shift_opened done [09:37:11]requested_item shift.open_date is exist - process it [09:37:11]req_shift_open_date [09:37:11]req_shift_open_date done [09:37:11]produce_requested_data done [09:37:11]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49396,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [09:37:11]process_action_free close_receipt [09:37:11]json_value_free [09:37:11]json_value_free done [09:37:11]process_json_proto returns [09:37:11]Send response to host [09:37:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49396,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [09:37:11]free response buf [09:37:11]execute_script done [09:37:11]execute_script returns [09:37:11]free content buf [09:37:11]Sock 7.Close socket [09:37:11]Sock 7.Thread stoped [09:37:14]OFD Sender: No OFD packet to send [09:37:19]OFD Sender: No OFD packet to send [09:37:24]OFD Sender: No OFD packet to send [09:37:29]OFD Sender: No OFD packet to send [09:37:34]OFD Sender: No OFD packet to send [09:37:39]OFD Sender: No OFD packet to send [09:37:44]OFD Sender: No OFD packet to send [09:37:49]OFD Sender: No OFD packet to send [09:37:54]OFD Sender: No OFD packet to send [09:37:59]OFD Sender: No OFD packet to send [09:38:04]OFD Sender: No OFD packet to send [09:38:09]OFD Sender: No OFD packet to send [09:38:14]OFD Sender: No OFD packet to send [09:38:19]OFD Sender: No OFD packet to send [09:38:24]OFD Sender: No OFD packet to send [09:38:29]OFD Sender: No OFD packet to send [09:38:34]OFD Sender: No OFD packet to send [09:38:39]OFD Sender: No OFD packet to send [09:38:44]OFD Sender: No OFD packet to send [09:38:49]OFD Sender: No OFD packet to send [09:38:54]OFD Sender: No OFD packet to send [09:38:59]OFD Sender: No OFD packet to send [09:39:04]OFD Sender: No OFD packet to send [09:39:08]accept exits with 9 [09:39:08]New connection [09:39:08]New thread 3066973540 created [09:39:08]Thread 3066830180 joined [09:39:08]Waiting for new connection... [09:39:08] Sock 9.Parse request [09:39:08]Sock 9.Check first char [09:39:08]Sock 9.First char is OK [09:39:08]request: POST /json_proto HTTP/1.0 [09:39:08]Method: POST [09:39:08]URL: /json_proto [09:39:08]Method is POST - this is cgi request [09:39:08]url: /json_proto [09:39:08]query_string will be loaded in cgi processing [09:39:08]execute_cgi json_proto POST (null) [09:39:08]execute_cgi path=json_proto method=POST [09:39:08]POST find Content-Length [09:39:08]Host: 172.17.46.196:8080 [09:39:08]Content-Length: 756 [09:39:08]Content-Type: application/json [09:39:08] [09:39:08]POST finish read [09:39:08]Found Content-Length = 756 [09:39:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30029047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:08]execute_script... [09:39: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)11325216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30029047", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:08]POST & json_proto [09:39:08]process_json_proto [09:39:08]json parsed OK: [09:39:08]protocol is kg_v1.0 [09:39:08]action value=close_receipt [09:39:08]process_action close_receipt [09:39:08]cmd_close_receipt [09:39:08]MH_GetDate [09:39:08]Write to MH i2c: F0 00 00 F2 36 17 [09:39:08]Write i2c OK [09:39:08]MH_I2C_Read... [09:39:08]Read from MH i2c: F0 [09:39:08]MH_I2C_Read... [09:39:08]Read from MH i2c: F0 09 00 [09:39:08]MH_I2C_Read... [09:39:08]Read from MH i2c: F0 09 00 F2 36 00 41 1E BF 66 07 E8 5D 66 56 [09:39:08]GetLastDocTimeStamp 1723801031 [09:39:08]current date 1723801153 [09:39:08]FM_GetShiftState [09:39:08]SAM_PROTO_GetShiftState [09:39:08]wFMCommunicate request_size=4 [09:39:08]MH_SAM_APDU [09:39:08]CAPDU: 80 13 01 00 [09:39:08]Write to MH i2c: E2 08 00 F3 36 80 13 01 00 00 00 00 00 A6 [09:39:08]Write i2c OK [09:39:08]MH_I2C_Read... [09:39:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:08]Read from MH i2c: E2 [09:39:08]MH_I2C_Read... [09:39:08]Read from MH i2c: E2 0E 00 [09:39:08]MH_I2C_Read... [09:39:08]Read from MH i2c: E2 0E 00 F3 36 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 1C [09:39:08]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:39:08]wFMCommunicate OK [09:39:08]SAM_PROTO_GetShiftState done [09:39:08]FM_GetShiftState done [09:39:08]opened in 1723766958 [09:39:08]opened+sec_in_day 1723853358 [09:39:08]quantity*price = 0 [09:39:08]sum+1 = 1 [09:39:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 45 16.08.2024 09:39 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30029047 ФМ: 0000000000871800 ФД: 49397 ФПД: 20135128387172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T093913&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49397&fm=20135128387172&tin=02508201610067®Number=0000000000092546&sum=0 [09:39:10]StoreToDocumentArchive [09:39:10]shift 464 fd 49397 [09:39:10]save to /storage/0464/doc_00049397 [09:39:10]save last doc name /storage/0464/doc_00049397 to /storage/kkm_last_doc_name [09:39:10]save OK [09:39:10]Clear old archive folders... [09:39:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:10]tlvbuf is B6DAD7E0 [09:39:10]SAM_PROTO_ClearQueue [09:39:10]wFMCommunicate request_size=4 [09:39:10]MH_SAM_APDU [09:39:10]CAPDU: 80 09 00 00 [09:39:10]Write to MH i2c: E2 08 00 00 37 80 09 00 00 00 00 00 00 A9 [09:39:10]Write i2c OK [09:39:10]MH_I2C_Read... [09:39:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:10]Read from MH i2c: E2 [09:39:10]MH_I2C_Read... [09:39:10]Read from MH i2c: E2 03 00 [09:39:10]MH_I2C_Read... [09:39:10]Read from MH i2c: E2 03 00 00 37 00 90 00 AB [09:39:10]RAPDU: 90 00 [09:39:10]wFMCommunicate OK [09:39:10]SAM_PROTO_ClearQueue done [09:39:10]KKMCreateOFDPacket [09:39:10]OFDProtocolAddRootSTLVToBuf [09:39:10]FM_MakeSignedData [09:39:10]FM_MakeSignedData [09:39:10]SAM_PROTO_SignData [09:39:10]wFMCommunicate request_size=4 [09:39:10]MH_SAM_APDU [09:39:10]CAPDU: 80 0D 01 02 [09:39:10]Write to MH i2c: E2 08 00 01 37 80 0D 01 02 00 00 00 00 B1 [09:39:10]Write i2c OK [09:39:10]MH_I2C_Read... [09:39:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:10]Read from MH i2c: E2 [09:39:10]MH_I2C_Read... [09:39:10]Read from MH i2c: E2 03 00 [09:39:10]MH_I2C_Read... [09:39:10]Read from MH i2c: E2 03 00 01 37 00 90 00 AC [09:39:10]RAPDU: 90 00 [09:39:10]wFMCommunicate OK [09:39:10]wFMCommunicate request_size=255 [09:39:10]MH_SAM_APDU [09:39:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 41 1E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F5 C0 00 00 35 04 06 00 12 [09:39:10]Write to MH i2c: E2 02 01 02 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 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 41 1E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F5 C0 00 00 35 04 06 00 12 00 00 A1 [09:39:10]Write i2c OK [09:39:10]MH_I2C_Read... [09:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:10]Read from MH i2c: E2 [09:39:10]MH_I2C_Read... [09:39:10]Read from MH i2c: E2 03 00 [09:39:10]MH_I2C_Read... [09:39:10]Read from MH i2c: E2 03 00 02 37 00 90 00 AD [09:39:10]RAPDU: 90 00 [09:39:10]wFMCommunicate OK [09:39:10]wFMCommunicate request_size=10 [09:39:10]MH_SAM_APDU [09:39:10]CAPDU: 80 0D 02 02 05 50 13 2C CE 64 [09:39:10]Write to MH i2c: E2 0D 00 03 37 80 0D 02 02 05 00 50 13 2C CE 64 00 00 7F [09:39:10]Write i2c OK [09:39:10]MH_I2C_Read... [09:39:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:10]Read from MH i2c: E2 [09:39:10]MH_I2C_Read... [09:39:10]Read from MH i2c: E2 03 00 [09:39:10]MH_I2C_Read... [09:39:10]Read from MH i2c: E2 03 00 03 37 00 90 00 AE [09:39:10]RAPDU: 90 00 [09:39:10]wFMCommunicate OK [09:39:10]wFMCommunicate request_size=4 [09:39:10]MH_SAM_APDU [09:39:10]CAPDU: 80 0D 03 02 [09:39:10]Write to MH i2c: E2 08 00 04 37 80 0D 03 02 00 00 00 00 B6 [09:39:10]Write i2c OK [09:39:10]MH_I2C_Read... [09:39:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:10]Read from MH i2c: E2 [09:39:10]MH_I2C_Read... [09:39:10]Read from MH i2c: E2 0B 00 [09:39:10]MH_I2C_Read... [09:39:10]Read from MH i2c: E2 0B 00 04 37 00 63 7F C0 41 E7 65 94 AF 90 00 29 [09:39:10]RAPDU: 63 7F C0 41 E7 65 94 AF 90 00 [09:39:10]wFMCommunicate OK [09:39:10]SAM_PROTO_SignData done [09:39:10]FM_MakeSignedData done [09:39:10]CreateOFDProtocolMessage [09:39:10]wFMCommunicate request_size=4 [09:39:10]MH_SAM_APDU [09:39:10]CAPDU: 80 11 00 00 [09:39:10]Write to MH i2c: E2 08 00 05 37 80 11 00 00 00 00 00 00 B6 [09:39:10]Write i2c OK [09:39:10]MH_I2C_Read... [09:39:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:10]Read from MH i2c: E2 [09:39:10]MH_I2C_Read... [09:39:10]Read from MH i2c: E2 17 00 [09:39:10]MH_I2C_Read... [09:39:10]Read from MH i2c: E2 17 00 05 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 01 [09:39:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:39:10]wFMCommunicate OK [09:39:10]CreateOFDProtocolMessage done [09:39:10]OFDSenderStorePacket 49397 [09:39:10]StoreOFDPacket docnum=49397 [09:39:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 12 72 07 01 A7 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 41 1E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F5 C0 00 00 35 04 06 00 12 50 13 2C CE 64 63 7F C0 41 E7 65 94 AF [09:39:10]CheckFolder [09:39:10]dirname=/storage/ofd_packets [09:39:10]CheckFolder done [09:39:10]ProducePacketName [09:39:10]name=ofd_packets/00049397 [09:39:10]NVStorageSaveData ofd_packets/00049397 [09:39:10]File name is /storage/ofd_packets/00049397 [09:39:10]Write 301 bytes [09:39:10]NVStorageSaveData done [09:39:10]OFDSenderStorePacket done [09:39:10]KKMCreateOFDPacket done [09:39:10]NVStorageSaveData kkm_last_timestamp [09:39:10]File name is /storage/kkm_last_timestamp [09:39:10]Write 4 bytes [09:39:10]NVStorageSaveData done [09:39:10]ExternCall_PrintAddStr [09:39:10]wPrintStart [09:39:10]Write to MH i2c: 01 00 00 06 37 3D [09:39:10]Write i2c OK [09:39:10]MH_I2C_Read... [09:39:10]Read from MH i2c: 01 [09:39:10]MH_I2C_Read... [09:39:10]Read from MH i2c: 01 07 00 [09:39:10]MH_I2C_Read... [09:39:10]Read from MH i2c: 01 07 00 06 37 00 00 00 00 00 FF 0F 52 [09:39:10]RasterBufferAndPrint [09:39:10]line Счет N : (1)11325216 [09:39:10]line ИНН: 02508201610067 [09:39:10]line Контрольно-Кассовый Чек [09:39:10]line ПРОДАЖА [09:39:10]line ТРК (МРК, ГНК) : 42 [09:39:10]line Товар: 2710124130 [09:39:10]line Аи-92-К-4 [09:39:10]line 30.000 * 0.00 [09:39:10]line = 0.00 [09:39:10]line НДС 12% НСП 1% [09:39:10]line > о реализуемом товаре [09:39:10]line ИТОГО: 0.00 [09:39:10]line НСП 1% : 0.00 [09:39:10]line НДС 12% : 0.00 [09:39:10]line Наличными: 0.00 [09:39:10]line Безнал.: 0.00 [09:39:10]line Место: АЗС № 95 "Партнер Нефть" [09:39:10]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:39:10]line СНО: Общий режим [09:39:10]line Чек 45 16.08.2024 09:39 [09:39:10]line Смена: 464 ФФД: 1.0 [09:39:10]line ЗНМ: 0300000078 [09:39:10]line РНМ: 0000000000092546 [09:39:10]line Версия ККМ: 001 [09:39:10]line Талоны: ТК ГПНА Online [09:39:10]line 30029047 [09:39:10]line ФМ: 0000000000871800 [09:39:10]line ФД: 49397 [09:39:10]line ФПД: 20135128387172 [09:39:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T093913&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49397&fm=20135128387172&tin=02508201610067®Number=0000000000092546&sum=0 [09:39:10]written 0, free lines is 4095 [09:39:10]OFD Sender: Processing packet 49397 [packets to send 21, broken 20] [09:39:10]ProducePacketName [09:39:10]name=ofd_packets/00049397 [09:39:10]OFD Sender: To server: pG, [09:39:10]CommunicateWithHost lk.salyk.kg:30040 [09:39:10]ConnectInit lk.salyk.kg [09:39:10]Write to MH i2c: 01 00 00 30 37 67 [09:39:10]Write i2c OK [09:39:10]MH_I2C_Read... [09:39:10]Read from MH i2c: 01 [09:39:10]MH_I2C_Read... [09:39:10]Read from MH i2c: 01 07 00 [09:39:10]MH_I2C_Read... [09:39:10]Read from MH i2c: 01 07 00 30 37 00 00 00 00 00 D8 0C 52 [09:39:10]RasterBufferAndPrint [09:39:10]line [09:39:10]line [09:39:10]line [09:39:10]line [09:39:10]line [09:39:10]written 0, free lines is 3294 [09:39:11]MH_Cut [09:39:11]Write to MH i2c: D1 01 00 37 37 01 40 [09:39:11]Write i2c OK [09:39:11]MH_I2C_Read... [09:39:11]Read from MH i2c: D1 [09:39:11]MH_I2C_Read... [09:39:11]Read from MH i2c: D1 01 00 [09:39:11]MH_I2C_Read... [09:39:11]Read from MH i2c: D1 01 00 37 37 00 3F [09:39:11]Write to MH i2c: 01 00 00 38 37 6F [09:39:11]Write i2c OK [09:39:11]MH_I2C_Read... [09:39:11]Connected sock=10 [09:39:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 12 72 07 01 A7 E2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 00 00 00 F4 03 04 00 41 1E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F5 C0 00 00 35 04 06 00 12 50 13 2C CE 64 63 7F C0 41 E7 65 94 AF [09:39:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C8 BC 47 00 A1 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F5 C0 00 00 F4 03 04 00 80 C9 BE 66 B6 04 01 00 00 9A 3B F1 81 BE D4 2A 23 [09:39:11]CommunicateWithHost err = 0 [09:39:11]CheckOFDResponse [09:39:11]1017 (14) - 77093643461234 [09:39:11]1041 (16) - 0000000000871800 [09:39:11]1040 (4) - 49397 [09:39:11]1012 (4) - 16.08.2024 03:37 [09:39:11]1206 (1) - 0 [09:39:11]OFD Sender: Remove packet 49397 [09:39:11]ProducePacketName [09:39:11]name=ofd_packets/00049397 [09:39:11]NVStorageDeleteData [09:39:11]*** Cut start [09:39:11]*** Purtial cut [09:39:11]*** Stage 1: CUTSNS_PIN = 1 [09:39:11]OFD Sender: No OFD packet to send [09:39:12]Read from MH i2c: 01 [09:39:12]MH_I2C_Read... [09:39:12]*** Stop cut motor [09:39:12]*** Cut end [09:39:12]Read from MH i2c: 01 07 00 [09:39:12]MH_I2C_Read... [09:39:12]Read from MH i2c: 01 07 00 38 37 00 00 00 00 00 FF 0F 84 [09:39:12]process_action close_receipt done [09:39:12]requested_data is exist [09:39:12]produce_requested_data [09:39:12]requested_item fm.sn is exist - process it [09:39:12]wFMCommunicate request_size=4 [09:39:12]MH_SAM_APDU [09:39:12]CAPDU: 80 11 00 00 [09:39:12]Write to MH i2c: E2 08 00 39 37 80 11 00 00 00 00 00 00 EA [09:39:12]Write i2c OK [09:39:12]MH_I2C_Read... [09:39:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:12]Read from MH i2c: E2 [09:39:12]MH_I2C_Read... [09:39:12]Read from MH i2c: E2 17 00 [09:39:12]MH_I2C_Read... [09:39:12]Read from MH i2c: E2 17 00 39 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 35 [09:39:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:39:12]wFMCommunicate OK [09:39:12]requested_item fd.num is exist - process it [09:39:12]SAM_PROTO_GetFieldsCounters [09:39:12]wFMCommunicate request_size=4 [09:39:12]MH_SAM_APDU [09:39:12]CAPDU: 80 13 00 00 [09:39:12]Write to MH i2c: E2 08 00 3A 37 80 13 00 00 00 00 00 00 ED [09:39:12]Write i2c OK [09:39:12]MH_I2C_Read... [09:39:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:12]Read from MH i2c: E2 [09:39:12]MH_I2C_Read... [09:39:12]Read from MH i2c: E2 62 00 [09:39:12]MH_I2C_Read... [09:39:12]Read from MH i2c: E2 62 00 3A 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F5 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [09:39:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F5 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:12]wFMCommunicate OK [09:39:12]SAM_PROTO_GetFieldsCounters done [09:39:12]requested_item shift.num is exist - process it [09:39:12]requested_item shift.opened is exist - process it [09:39:12]req_shift_opened [09:39:12]FM_GetShiftState [09:39:12]SAM_PROTO_GetShiftState [09:39:12]wFMCommunicate request_size=4 [09:39:12]MH_SAM_APDU [09:39:12]CAPDU: 80 13 01 00 [09:39:12]Write to MH i2c: E2 08 00 3B 37 80 13 01 00 00 00 00 00 EF [09:39:12]Write i2c OK [09:39:12]MH_I2C_Read... [09:39:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:12]Read from MH i2c: E2 [09:39:12]MH_I2C_Read... [09:39:12]Read from MH i2c: E2 0E 00 [09:39:12]MH_I2C_Read... [09:39:12]Read from MH i2c: E2 0E 00 3B 37 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 65 [09:39:12]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:39:12]wFMCommunicate OK [09:39:12]SAM_PROTO_GetShiftState done [09:39:12]FM_GetShiftState done [09:39:12]req_shift_opened done [09:39:12]requested_item shift.open_date is exist - process it [09:39:12]req_shift_open_date [09:39:12]req_shift_open_date done [09:39:12]produce_requested_data done [09:39:12]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49397,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [09:39:12]process_action_free close_receipt [09:39:12]json_value_free [09:39:12]json_value_free done [09:39:12]process_json_proto returns [09:39:12]Send response to host [09:39:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49397,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [09:39:12]free response buf [09:39:12]execute_script done [09:39:12]execute_script returns [09:39:12]free content buf [09:39:12]Sock 9.Close socket [09:39:12]Sock 9.Thread stoped [09:39:12]accept exits with 7 [09:39:12]New connection [09:39:12]New thread 3066830180 created [09:39:12]Thread 3066973540 joined [09:39:12]Waiting for new connection... [09:39:12] Sock 7.Parse request [09:39:12]Sock 7.Check first char [09:39:12]Sock 7.First char is OK [09:39:12]request: POST /json_proto HTTP/1.0 [09:39:12]Method: POST [09:39:12]URL: /json_proto [09:39:12]Method is POST - this is cgi request [09:39:12]url: /json_proto [09:39:12]query_string will be loaded in cgi processing [09:39:12]execute_cgi json_proto POST (null) [09:39:12]execute_cgi path=json_proto method=POST [09:39:12]POST find Content-Length [09:39:12]Host: 172.17.46.196:8080 [09:39:12]Content-Length: 756 [09:39:12]Content-Type: application/json [09:39:12] [09:39:12]POST finish read [09:39:12]Found Content-Length = 756 [09:39:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30058673", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:12]execute_script... [09:39: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)11325213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 60.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30058673", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:39:12]POST & json_proto [09:39:12]process_json_proto [09:39:12]json parsed OK: [09:39:12]protocol is kg_v1.0 [09:39:12]action value=close_receipt [09:39:12]process_action close_receipt [09:39:12]cmd_close_receipt [09:39:12]MH_GetDate [09:39:12]Write to MH i2c: F0 00 00 3C 37 62 [09:39:12]Write i2c OK [09:39:12]MH_I2C_Read... [09:39:12]Read from MH i2c: F0 [09:39:12]MH_I2C_Read... [09:39:12]Read from MH i2c: F0 09 00 [09:39:12]MH_I2C_Read... [09:39:12]Read from MH i2c: F0 09 00 3C 37 00 45 1E BF 66 07 E8 5D 66 A5 [09:39:12]GetLastDocTimeStamp 1723801153 [09:39:12]current date 1723801157 [09:39:12]FM_GetShiftState [09:39:12]SAM_PROTO_GetShiftState [09:39:12]wFMCommunicate request_size=4 [09:39:12]MH_SAM_APDU [09:39:12]CAPDU: 80 13 01 00 [09:39:12]Write to MH i2c: E2 08 00 3D 37 80 13 01 00 00 00 00 00 F1 [09:39:12]Write i2c OK [09:39:12]MH_I2C_Read... [09:39:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:12]Read from MH i2c: E2 [09:39:12]MH_I2C_Read... [09:39:12]Read from MH i2c: E2 0E 00 [09:39:12]MH_I2C_Read... [09:39:12]Read from MH i2c: E2 0E 00 3D 37 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 67 [09:39:12]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:39:12]wFMCommunicate OK [09:39:12]SAM_PROTO_GetShiftState done [09:39:12]FM_GetShiftState done [09:39:12]opened in 1723766958 [09:39:12]opened+sec_in_day 1723853358 [09:39:12]quantity*price = 0 [09:39:12]sum+1 = 1 [09:39:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 46 16.08.2024 09:39 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30058673 ФМ: 0000000000871800 ФД: 49398 ФПД: 102182926888397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T093917&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49398&fm=102182926888397&tin=02508201610067®Number=0000000000092546&sum=0 [09:39:13]StoreToDocumentArchive [09:39:13]shift 464 fd 49398 [09:39:13]save to /storage/0464/doc_00049398 [09:39:13]save last doc name /storage/0464/doc_00049398 to /storage/kkm_last_doc_name [09:39:13]save OK [09:39:13]Clear old archive folders... [09:39:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:39:13]tlvbuf is 00EE9650 [09:39:13]SAM_PROTO_ClearQueue [09:39:13]wFMCommunicate request_size=4 [09:39:13]MH_SAM_APDU [09:39:13]CAPDU: 80 09 00 00 [09:39:13]Write to MH i2c: E2 08 00 4A 37 80 09 00 00 00 00 00 00 F3 [09:39:13]Write i2c OK [09:39:13]MH_I2C_Read... [09:39:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:39:13]Read from MH i2c: E2 [09:39:13]MH_I2C_Read... [09:39:13]Read from MH i2c: E2 03 00 [09:39:13]MH_I2C_Read... [09:39:13]Read from MH i2c: E2 03 00 4A 37 00 90 00 F5 [09:39:13]RAPDU: 90 00 [09:39:13]wFMCommunicate OK [09:39:13]SAM_PROTO_ClearQueue done [09:39:13]KKMCreateOFDPacket [09:39:13]OFDProtocolAddRootSTLVToBuf [09:39:13]FM_MakeSignedData [09:39:13]FM_MakeSignedData [09:39:13]SAM_PROTO_SignData [09:39:13]wFMCommunicate request_size=4 [09:39:13]MH_SAM_APDU [09:39:13]CAPDU: 80 0D 01 02 [09:39:13]Write to MH i2c: E2 08 00 4B 37 80 0D 01 02 00 00 00 00 FB [09:39:13]Write i2c OK [09:39:13]MH_I2C_Read... [09:39:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:39:13]Read from MH i2c: E2 [09:39:13]MH_I2C_Read... [09:39:13]Read from MH i2c: E2 03 00 [09:39:13]MH_I2C_Read... [09:39:13]Read from MH i2c: E2 03 00 4B 37 00 90 00 F6 [09:39:13]RAPDU: 90 00 [09:39:13]wFMCommunicate OK [09:39:13]wFMCommunicate request_size=255 [09:39:13]MH_SAM_APDU [09:39: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 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 45 1E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F6 C0 00 00 35 04 06 00 5C [09:39:13]Write to MH i2c: E2 02 01 4C 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 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 45 1E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F6 C0 00 00 35 04 06 00 5C 00 00 E5 [09:39:13]Write i2c OK [09:39:13]MH_I2C_Read... [09:39:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:14]Read from MH i2c: E2 [09:39:14]MH_I2C_Read... [09:39:14]Read from MH i2c: E2 03 00 [09:39:14]MH_I2C_Read... [09:39:14]Read from MH i2c: E2 03 00 4C 37 00 90 00 F7 [09:39:14]RAPDU: 90 00 [09:39:14]wFMCommunicate OK [09:39:14]wFMCommunicate request_size=10 [09:39:14]MH_SAM_APDU [09:39:14]CAPDU: 80 0D 02 02 05 EF 51 0F 2D CD [09:39:14]Write to MH i2c: E2 0D 00 4D 37 80 0D 02 02 05 00 EF 51 0F 2D CD 00 00 51 [09:39:14]Write i2c OK [09:39:14]MH_I2C_Read... [09:39:14]Read from MH i2c: *** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:39:14]E2 [09:39:14]MH_I2C_Read... [09:39:14]Read from MH i2c: E2 03 00 [09:39:14]MH_I2C_Read... [09:39:14]Read from MH i2c: E2 03 00 4D 37 00 90 00 F8 [09:39:14]RAPDU: 90 00 [09:39:14]wFMCommunicate OK [09:39:14]wFMCommunicate request_size=4 [09:39:14]MH_SAM_APDU [09:39:14]CAPDU: 80 0D 03 02 [09:39:14]Write to MH i2c: E2 08 00 4E 37 80 0D 03 02 00 00 00 00 00 [09:39:14]Write i2c OK [09:39:14]MH_I2C_Read... [09:39:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:39:14]Read from MH i2c: E2 [09:39:14]MH_I2C_Read... [09:39:14]Read from MH i2c: E2 0B 00 [09:39:14]MH_I2C_Read... [09:39:14]Read from MH i2c: E2 0B 00 4E 37 00 52 8B 9E 85 28 0E 55 56 90 00 E2 [09:39:14]RAPDU: 52 8B 9E 85 28 0E 55 56 90 00 [09:39:14]wFMCommunicate OK [09:39:14]SAM_PROTO_SignData done [09:39:14]FM_MakeSignedData done [09:39:14]CreateOFDProtocolMessage [09:39:14]wFMCommunicate request_size=4 [09:39:14]MH_SAM_APDU [09:39:14]CAPDU: 80 11 00 00 [09:39:14]Write to MH i2c: E2 08 00 4F 37 80 11 00 00 00 00 00 00 00 [09:39:14]Write i2c OK [09:39:14]MH_I2C_Read... [09:39:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:14]Read from MH i2c: E2 [09:39:14]MH_I2C_Read... [09:39:14]Read from MH i2c: E2 17 00 [09:39:14]MH_I2C_Read... [09:39:14]Read from MH i2c: E2 17 00 4F 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4B [09:39:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:39:14]wFMCommunicate OK [09:39:14]CreateOFDProtocolMessage done [09:39:14]OFDSenderStorePacket 49398 [09:39:14]StoreOFDPacket docnum=49398 [09:39:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 65 03 07 01 6F 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 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 45 1E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F6 C0 00 00 35 04 06 00 5C EF 51 0F 2D CD 52 8B 9E 85 28 0E 55 56 [09:39:14]CheckFolder [09:39:14]dirname=/storage/ofd_packets [09:39:14]CheckFolder done [09:39:14]ProducePacketName [09:39:14]name=ofd_packets/00049398 [09:39:14]NVStorageSaveData ofd_packets/00049398 [09:39:14]File name is /storage/ofd_packets/00049398 [09:39:14]Write 301 bytes [09:39:14]NVStorageSaveData done [09:39:14]OFDSenderStorePacket done [09:39:14]KKMCreateOFDPacket done [09:39:14]NVStorageSaveData kkm_last_timestamp [09:39:14]File name is /storage/kkm_last_timestamp [09:39:14]Write 4 bytes [09:39:14]NVStorageSaveData done [09:39:14]ExternCall_PrintAddStr [09:39:14]wPrintStart [09:39:14]Write to MH i2c: 01 00 00 50 37 87 [09:39:14]Write i2c OK [09:39:14]MH_I2C_Read... [09:39:14]Read from MH i2c: 01 [09:39:14]MH_I2C_Read... [09:39:14]Read from MH i2c: 01 07 00 [09:39:14]MH_I2C_Read... [09:39:14]Read from MH i2c: 01 07 00 50 37 00 00 00 00 00 FF 0F 9C [09:39:14]RasterBufferAndPrint [09:39:14]line Счет N : (1)11325213 [09:39:14]line ИНН: 02508201610067 [09:39:14]line Контрольно-Кассовый Чек [09:39:14]line ПРОДАЖА [09:39:14]line ТРК (МРК, ГНК) : 31 [09:39:14]line Товар: 2710124500 [09:39:14]line Аи-95-К-5 [09:39:14]line 60.000 * 0.00 [09:39:14]line = 0.00 [09:39:14]line НДС 12% НСП 1% [09:39:14]line > о реализуемом товаре [09:39:14]line ИТОГО: 0.00 [09:39:14]line НСП 1% : 0.00 [09:39:14]line НДС 12% : 0.00 [09:39:14]line Наличными: 0.00 [09:39:14]line Безнал.: 0.00 [09:39:14]line Место: АЗС № 95 "Партнер Нефть" [09:39:14]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:39:14]line СНО: Общий режим [09:39:14]line Чек 46 16.08.2024 09:39 [09:39:14]line Смена: 464 ФФД: 1.0 [09:39:14]line ЗНМ: 0300000078 [09:39:14]line РНМ: 0000000000092546 [09:39:14]line Версия ККМ: 001 [09:39:14]line Талоны: ТК ГПНА Online [09:39:14]line 30058673 [09:39:14]line ФМ: 0000000000871800 [09:39:14]line ФД: 49398 [09:39:14]line ФПД: 102182926888397 [09:39:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T093917&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49398&fm=102182926888397&tin=02508201610067®Number=0000000000092546&sum=0 [09:39:14]OFD Sender: Processing packet 49398 [packets to send 21, broken 20] [09:39:14]ProducePacketName [09:39:14]name=ofd_packets/00049398 [09:39:14]OFD Sender: To server: pG, [09:39:14]CommunicateWithHost lk.salyk.kg:30040 [09:39:14]ConnectInit lk.salyk.kg [09:39:14]written 0, free lines is 4095 [09:39:15]Connected sock=10 [09:39:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 65 03 07 01 6F 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 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 45 1E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F6 C0 00 00 35 04 06 00 5C EF 51 0F 2D CD 52 8B 9E 85 28 0E 55 56 [09:39:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 2E 0F 47 00 A0 0B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F6 C0 00 00 F4 03 04 00 84 C9 BE 66 B6 04 01 00 00 2D 0C 5D FD 7F 29 6F 15 [09:39:15]CommunicateWithHost err = 0 [09:39:15]CheckOFDResponse [09:39:15]1017 (14) - 77093643461234 [09:39:15]1041 (16) - 0000000000871800 [09:39:15]1040 (4) - 49398 [09:39:15]1012 (4) - 16.08.2024 03:37 [09:39:15]1206 (1) - 0 [09:39:15]OFD Sender: Remove packet 49398 [09:39:15]ProducePacketName [09:39:15]name=ofd_packets/00049398 [09:39:15]NVStorageDeleteData [09:39:15]Write to MH i2c: 01 00 00 7A 37 B1 [09:39:15]Write i2c OK [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: 01 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: 01 07 00 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: 01 07 00 7A 37 00 00 00 00 00 2B 0D F0 [09:39:15]RasterBufferAndPrint [09:39:15]line [09:39:15]line [09:39:15]line [09:39:15]line [09:39:15]line [09:39:15]written 0, free lines is 3386 [09:39:15]MH_Cut [09:39:15]Write to MH i2c: D1 01 00 81 37 01 8A [09:39:15]Write i2c OK [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: D1 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: D1 01 00 [09:39:15]MH_I2C_Read... [09:39:15]Read from MH i2c: D1 01 00 81 37 00 89 [09:39:15]Write to MH i2c: 01 00 00 82 37 B9 [09:39:15]Write i2c OK [09:39:15]MH_I2C_Read... [09:39:15]OFD Sender: No OFD packet to send [09:39:16]*** Cut start [09:39:16]*** Purtial cut [09:39:16]*** CUTSNS_PIN = 0 [09:39:16]*** Stage 1: CUTSNS_PIN = 1 [09:39:18]Read from MH i2c: 01 [09:39:18]MH_I2C_Read... [09:39:18]*** Stop cut motor [09:39:18]*** Cut end [09:39:18]Read from MH i2c: 01 07 00 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: 01 07 00 82 37 00 00 00 00 00 FF 0F CE [09:39:18]process_action close_receipt done [09:39:18]requested_data is exist [09:39:18]produce_requested_data [09:39:18]requested_item fm.sn is exist - process it [09:39:18]wFMCommunicate request_size=4 [09:39:18]MH_SAM_APDU [09:39:18]CAPDU: 80 11 00 00 [09:39:18]Write to MH i2c: E2 08 00 83 37 80 11 00 00 00 00 00 00 34 [09:39:18]Write i2c OK [09:39:18]MH_I2C_Read... [09:39:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:18]Read from MH i2c: E2 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: E2 17 00 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: E2 17 00 83 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7F [09:39:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:39:18]wFMCommunicate OK [09:39:18]requested_item fd.num is exist - process it [09:39:18]SAM_PROTO_GetFieldsCounters [09:39:18]wFMCommunicate request_size=4 [09:39:18]MH_SAM_APDU [09:39:18]CAPDU: 80 13 00 00 [09:39:18]Write to MH i2c: E2 08 00 84 37 80 13 00 00 00 00 00 00 37 [09:39:18]Write i2c OK [09:39:18]MH_I2C_Read... [09:39:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:18]Read from MH i2c: E2 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: E2 62 00 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: E2 62 00 84 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F6 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 62 [09:39:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F6 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:18]wFMCommunicate OK [09:39:18]SAM_PROTO_GetFieldsCounters done [09:39:18]requested_item shift.num is exist - process it [09:39:18]requested_item shift.opened is exist - process it [09:39:18]req_shift_opened [09:39:18]FM_GetShiftState [09:39:18]SAM_PROTO_GetShiftState [09:39:18]wFMCommunicate request_size=4 [09:39:18]MH_SAM_APDU [09:39:18]CAPDU: 80 13 01 00 [09:39:18]Write to MH i2c: E2 08 00 85 37 80 13 01 00 00 00 00 00 39 [09:39:18]Write i2c OK [09:39:18]MH_I2C_Read... [09:39:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:18]Read from MH i2c: E2 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: E2 0E 00 [09:39:18]MH_I2C_Read... [09:39:18]Read from MH i2c: E2 0E 00 85 37 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 AF [09:39:18]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:39:18]wFMCommunicate OK [09:39:18]SAM_PROTO_GetShiftState done [09:39:18]FM_GetShiftState done [09:39:18]req_shift_opened done [09:39:18]requested_item shift.open_date is exist - process it [09:39:18]req_shift_open_date [09:39:18]req_shift_open_date done [09:39:18]produce_requested_data done [09:39:18]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49398,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [09:39:18]process_action_free close_receipt [09:39:18]json_value_free [09:39:18]json_value_free done [09:39:18]process_json_proto returns [09:39:18]Send response to host [09:39:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49398,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [09:39:18]free response buf [09:39:18]execute_script done [09:39:18]execute_script returns [09:39:18]free content buf [09:39:18]Sock 7.Close socket [09:39:18]Sock 7.Thread stoped [09:39:20]OFD Sender: No OFD packet to send [09:39:25]OFD Sender: No OFD packet to send [09:39:30]OFD Sender: No OFD packet to send [09:39:35]OFD Sender: No OFD packet to send [09:39:40]OFD Sender: No OFD packet to send [09:39:45]OFD Sender: No OFD packet to send [09:39:50]OFD Sender: No OFD packet to send [09:39:55]OFD Sender: No OFD packet to send [09:40:00]OFD Sender: No OFD packet to send [09:40:05]OFD Sender: No OFD packet to send [09:40:10]OFD Sender: No OFD packet to send [09:40:15]OFD Sender: No OFD packet to send [09:40:21]OFD Sender: No OFD packet to send [09:40:26]OFD Sender: No OFD packet to send [09:40:31]OFD Sender: No OFD packet to send [09:40:36]OFD Sender: No OFD packet to send [09:40:41]OFD Sender: No OFD packet to send [09:40:46]OFD Sender: No OFD packet to send [09:40:51]OFD Sender: No OFD packet to send [09:40:56]OFD Sender: No OFD packet to send [09:41:01]OFD Sender: No OFD packet to send [09:41:06]OFD Sender: No OFD packet to send [09:41:11]OFD Sender: No OFD packet to send [09:41:16]OFD Sender: No OFD packet to send [09:41:21]OFD Sender: No OFD packet to send [09:41:26]OFD Sender: No OFD packet to send [09:41:31]OFD Sender: No OFD packet to send [09:41:36]OFD Sender: No OFD packet to send [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:41:57]accept exits with 9 [09:41:57]New connection [09:41:57]New thread 3066973540 created [09:41:57]Thread 3066830180 joined [09:41:57]Waiting for new connection... [09:41:57] Sock 9.Parse request [09:41:57]Sock 9.Check first char [09:41:57]Sock 9.First char is OK [09:41:57]request: POST /json_proto HTTP/1.0 [09:41:57]Method: POST [09:41:57]URL: /json_proto [09:41:57]Method is POST - this is cgi request [09:41:57]url: /json_proto [09:41:57]query_string will be loaded in cgi processing [09:41:57]execute_cgi json_proto POST (null) [09:41:57]execute_cgi path=json_proto method=POST [09:41:57]POST find Content-Length [09:41:57]Host: 172.17.46.196:8080 [09:41:57]Content-Length: 1263 [09:41:57]Content-Type: application/json [09:41:57] [09:41:57]POST finish read [09:41:57]Found Content-Length = 1263 [09:41:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189634", "tax_sys" : 0, "items" : [ { "code": "5449000273680", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 0,5\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522688", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 0,45 \u041F\u042D", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 3.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:57]execute_script... [09:41:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189634", "tax_sys" : 0, "items" : [ { "code": "5449000273680", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 0,5\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522688", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 0,45 \u041F\u042D", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 3.000, "sum" : 165.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:57]POST & json_proto [09:41:57]process_json_proto [09:41:57]json parsed OK: [09:41:57]protocol is kg_v1.0 [09:41:57]action value=close_receipt [09:41:57]process_action close_receipt [09:41:57]cmd_close_receipt [09:41:57]MH_GetDate [09:41:57]Write to MH i2c: F0 00 00 86 37 AC [09:41:57]Write i2c OK [09:41:57]MH_I2C_Read... [09:41:57]Read from MH i2c: F0 [09:41:57]MH_I2C_Read... [09:41:57]Read from MH i2c: F0 09 00 [09:41:57]MH_I2C_Read... [09:41:57]Read from MH i2c: F0 09 00 86 37 00 EA 1E BF 66 07 E8 5D 66 94 [09:41:57]GetLastDocTimeStamp 1723801157 [09:41:57]current date 1723801322 [09:41:57]FM_GetShiftState [09:41:57]SAM_PROTO_GetShiftState [09:41:57]wFMCommunicate request_size=4 [09:41:57]MH_SAM_APDU [09:41:57]CAPDU: 80 13 01 00 [09:41:57]Write to MH i2c: E2 08 00 87 37 80 13 01 00 00 00 00 00 3B [09:41:57]Write i2c OK [09:41:57]MH_I2C_Read... [09:41:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:57]Read from MH i2c: E2 [09:41:57]MH_I2C_Read... [09:41:57]Read from MH i2c: E2 0E 00 [09:41:57]MH_I2C_Read... [09:41:57]Read from MH i2c: E2 0E 00 87 37 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 B1 [09:41:57]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:41:57]wFMCommunicate OK [09:41:57]SAM_PROTO_GetShiftState done [09:41:57]FM_GetShiftState done [09:41:57]opened in 1723766958 [09:41:57]opened+sec_in_day 1723853358 [09:41:57]quantity*price = 10000 [09:41:57]sum+1 = 10001 [09:41:57]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202522688 Garden напиток со вкусом граната 0,45 ПЭ 2.000 * 70.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870112003925 Конд ULKER-Albeni 40gr (6*24) 3.000 * 55.00 = 165.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 47 16.08.2024 09:42 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49399 ФПД: 245370366523280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T094202&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49399&fm=245370366523280&tin=02508201610067®Number=0000000000092546&sum=40500 0 [09:41:58]StoreToDocumentArchive [09:41:58]shift 464 fd 49399 [09:41:58]save to /storage/0464/doc_00049399 [09:41:58]save last doc name /storage/0464/doc_00049399 to /storage/kkm_last_doc_name [09:41:58]save OK [09:41:58]Clear old archive folders... [09:41:58]ProcessDocumentItem done err = 0, tmpTLVsize=545 [09:41:58]tlvbuf is 00EC5C70 [09:41:58]SAM_PROTO_ClearQueue [09:41:58]wFMCommunicate request_size=4 [09:41:58]MH_SAM_APDU [09:41:58]CAPDU: 80 09 00 00 [09:41:58]Write to MH i2c: E2 08 00 94 37 80 09 00 00 00 00 00 00 3D [09:41:58]Write i2c OK [09:41:58]MH_I2C_Read... [09:41:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:58]Read from MH i2c: E2 [09:41:58]MH_I2C_Read... [09:41:58]Read from MH i2c: E2 03 00 [09:41:58]MH_I2C_Read... [09:41:58]Read from MH i2c: E2 03 00 94 37 00 90 00 3F [09:41:58]RAPDU: 90 00 [09:41:58]wFMCommunicate OK [09:41:58]SAM_PROTO_ClearQueue done [09:41:58]KKMCreateOFDPacket [09:41:58]OFDProtocolAddRootSTLVToBuf [09:41:58]FM_MakeSignedData [09:41:58]FM_MakeSignedData [09:41:58]SAM_PROTO_SignData [09:41:58]wFMCommunicate request_size=4 [09:41:58]MH_SAM_APDU [09:41:58]CAPDU: 80 0D 01 02 [09:41:58]Write to MH i2c: E2 08 00 95 37 80 0D 01 02 00 00 00 00 45 [09:41:58]Write i2c OK [09:41:58]MH_I2C_Read... [09:41:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:58]Read from MH i2c: E2 [09:41:58]MH_I2C_Read... [09:41:58]Read from MH i2c: E2 03 00 [09:41:58]MH_I2C_Read... [09:41:58]Read from MH i2c: E2 03 00 95 37 00 90 00 40 [09:41:58]RAPDU: 90 00 [09:41:58]wFMCommunicate OK [09:41:58]wFMCommunicate request_size=255 [09:41:58]MH_SAM_APDU [09:41:58]CAPDU: 80 0D 02 02 FA 03 00 21 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B [09:41:59]Write to MH i2c: E2 02 01 96 37 80 0D 02 02 FA 00 03 00 21 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 B5 [09:41:59]Write i2c OK [09:41:59]MH_I2C_Read... [09:41:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:59]Read from MH i2c: E2 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: E2 03 00 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: E2 03 00 96 37 00 90 00 41 [09:41:59]RAPDU: 90 00 [09:41:59]wFMCommunicate OK [09:41:59]wFMCommunicate request_size=255 [09:41:59]MH_SAM_APDU [09:41:59]CAPDU: 80 0D 02 02 FA 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 74 40 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 CD 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 2F 00 00 00 F4 03 04 00 EA 1E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [09:41:59]Write to MH i2c: E2 02 01 97 37 80 0D 02 02 FA 00 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 74 40 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 CD 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 2F 00 00 00 F4 03 04 00 EA 1E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 51 [09:41:59]Write i2c OK [09:41:59]MH_I2C_Read... [09:41:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:59]Read from MH i2c: E2 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: E2 03 00 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: E2 03 00 97 37 00 90 00 42 [09:41:59]RAPDU: 90 00 [09:41:59]wFMCommunicate OK [09:41:59]wFMCommunicate request_size=54 [09:41:59]MH_SAM_APDU [09:41:59]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F7 C0 00 00 35 04 06 00 DF 29 BD 88 F7 90 [09:41:59]Write to MH i2c: E2 39 00 98 37 80 0D 02 02 31 00 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F7 C0 00 00 35 04 06 00 DF 29 BD 88 F7 90 00 00 F4 [09:41:59]Write i2c OK [09:41:59]MH_I2C_Read... [09:41:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:59]Read from MH i2c: E2 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: E2 03 00 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: E2 03 00 98 37 00 90 00 43 [09:41:59]RAPDU: 90 00 [09:41:59]wFMCommunicate OK [09:41:59]wFMCommunicate request_size=4 [09:41:59]MH_SAM_APDU [09:41:59]CAPDU: 80 0D 03 02 [09:41:59]Write to MH i2c: E2 08 00 99 37 80 0D 03 02 00 00 00 00 4B [09:41:59]Write i2c OK [09:41:59]MH_I2C_Read... [09:41:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:59]Read from MH i2c: E2 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: E2 0B 00 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: E2 0B 00 99 37 00 BE 21 82 B8 61 AA 49 D4 90 00 8D [09:41:59]RAPDU: BE 21 82 B8 61 AA 49 D4 90 00 [09:41:59]wFMCommunicate OK [09:41:59]SAM_PROTO_SignData done [09:41:59]FM_MakeSignedData done [09:41:59]CreateOFDProtocolMessage [09:41:59]wFMCommunicate request_size=4 [09:41:59]MH_SAM_APDU [09:41:59]CAPDU: 80 11 00 00 [09:41:59]Write to MH i2c: E2 08 00 9A 37 80 11 00 00 00 00 00 00 4B [09:41:59]Write i2c OK [09:41:59]MH_I2C_Read... [09:41:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:59]Read from MH i2c: E2 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: E2 17 00 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: E2 17 00 9A 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 96 [09:41:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:41:59]wFMCommunicate OK [09:41:59]CreateOFDProtocolMessage done [09:41:59]OFDSenderStorePacket 49399 [09:41:59]StoreOFDPacket docnum=49399 [09:41:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 02 00 00 A0 17 2D 02 5B 9C 5A 03 01 00 03 00 21 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 74 40 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 CD 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 2F 00 00 00 F4 03 04 00 EA 1E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F7 C0 00 00 35 04 06 00 DF 29 BD 88 F7 90 BE 21 82 B8 61 AA 49 D4 [09:41:59]CheckFolder [09:41:59]dirname=/storage/ofd_packets [09:41:59]CheckFolder done [09:41:59]ProducePacketName [09:41:59]name=ofd_packets/00049399 [09:41:59]NVStorageSaveData ofd_packets/00049399 [09:41:59]File name is /storage/ofd_packets/00049399 [09:41:59]Write 595 bytes [09:41:59]NVStorageSaveData done [09:41:59]OFDSenderStorePacket done [09:41:59]KKMCreateOFDPacket done [09:41:59]NVStorageSaveData kkm_last_timestamp [09:41:59]File name is /storage/kkm_last_timestamp [09:41:59]Write 4 bytes [09:41:59]NVStorageSaveData done [09:41:59]ExternCall_PrintAddStr [09:41:59]wPrintStart [09:41:59]Write to MH i2c: 01 00 00 9B 37 D2 [09:41:59]Write i2c OK [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: 01 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: 01 07 00 [09:41:59]MH_I2C_Read... [09:41:59]Read from MH i2c: 01 07 00 9B 37 00 00 00 00 00 FF 0F E7 [09:41:59]RasterBufferAndPrint [09:41:59]line Счет N : (3)189634 [09:41:59]line ИНН: 02508201610067 [09:41:59]line Контрольно-Кассовый Чек [09:41:59]line ПРОДАЖА [09:41:59]line Товар: 5449000273680 [09:41:59]line Сок Piko Pulpy красный виноград ПЭТ 0,5л [09:41:59]line 1.000 * 100.00 [09:41:59]line = 100.00 [09:41:59]line НДС 12% НСП 1% [09:41:59]line > о реализуемом товаре [09:41:59]line Товар: 4870202522688 [09:41:59]line Garden напиток со вкусом граната 0,45 ПЭ [09:41:59]line 2.000 * 70.00 [09:41:59]line = 140.00 [09:41:59]line НДС 12% НСП 1% [09:41:59]line > о реализуемом товаре [09:41:59]line Товар: 4870112003925 [09:41:59]line Конд ULKER-Albeni 40gr (6*24) [09:41:59]line 3.000 * 55.00 [09:41:59]line = 165.00 [09:41:59]line НДС 12% НСП 1% [09:41:59]line > о реализуемом товаре [09:41:59]line ИТОГО: 405.00 [09:41:59]line НСП 1% : 3.58 [09:41:59]line НДС 12% : 43.01 [09:41:59]line Наличными: 405.00 [09:41:59]line Безнал.: 0.00 [09:41:59]line Место: АЗС № 95 "Партнер Нефть" [09:41:59]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:41:59]line СНО: Общий режим [09:41:59]line Чек 47 16.08.2024 09:42 [09:41:59]line Смена: 464 ФФД: 1.0 [09:41:59]line ЗНМ: 0300000078 [09:41:59]line РНМ: 0000000000092546 [09:41:59]line Версия ККМ: 001 [09:41:59]line ФМ: 0000000000871800 [09:41:59]line ФД: 49399 [09:41:59]line ФПД: 245370366523280 [09:42:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T094202&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49399&fm=245370366523280&tin=02508201610067®Number=0000000000092546&sum=40500 [09:42:00]line 0 [09:42:00]OFD Sender: Processing packet 49399 [packets to send 21, broken 20] [09:42:00]ProducePacketName [09:42:00]name=ofd_packets/00049399 [09:42:00]OFD Sender: To server: pG, [09:42:00]CommunicateWithHost lk.salyk.kg:30040 [09:42:00]ConnectInit lk.salyk.kg [09:42:00]written 0, free lines is 4095 [09:42:00]Connected sock=10 [09:42:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 02 00 00 A0 17 2D 02 5B 9C 5A 03 01 00 03 00 21 02 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 74 40 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 CD 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 2F 00 00 00 F4 03 04 00 EA 1E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F7 C0 00 00 35 04 06 00 DF 29 BD 88 F7 90 BE 21 82 B8 61 AA 49 D4 [09:42:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 8A 2A 47 00 9E 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 38 37 31 38 30 30 10 04 04 00 F7 C0 00 00 F4 03 04 00 2A CA BE 66 B6 04 01 00 00 57 E3 FD EF B4 F1 D6 36 [09:42:00]CommunicateWithHost err = 0 [09:42:00]CheckOFDResponse [09:42:00]1017 (14) - 77093643461234 [09:42:00]1041 (16) - 0000000000871800 [09:42:00]1040 (4) - 49399 [09:42:00]1012 (4) - 16.08.2024 03:40 [09:42:00]1206 (1) - 0 [09:42:00]OFD Sender: Remove packet 49399 [09:42:00]ProducePacketName [09:42:00]name=ofd_packets/00049399 [09:42:00]NVStorageDeleteData [09:42:00]Write to MH i2c: 01 00 00 D1 37 08 [09:42:00]Write i2c OK [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: 01 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: 01 07 00 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: 01 07 00 D1 37 00 00 00 00 00 35 0C 50 [09:42:00]RasterBufferAndPrint [09:42:00]line [09:42:00]line [09:42:00]line [09:42:00]line [09:42:00]line [09:42:00]written 0, free lines is 3132 [09:42:00]MH_Cut [09:42:00]Write to MH i2c: D1 01 00 D8 37 01 E1 [09:42:00]Write i2c OK [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: D1 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: D1 01 00 [09:42:00]MH_I2C_Read... [09:42:00]Read from MH i2c: D1 01 00 D8 37 00 E0 [09:42:00]Write to MH i2c: 01 00 00 D9 37 10 [09:42:00]Write i2c OK [09:42:00]MH_I2C_Read... [09:42:01]OFD Sender: No OFD packet to send [09:42:01]*** Cut start [09:42:01]*** Purtial cut [09:42:01]*** Stage 1: CUTSNS_PIN = 1 [09:42:01]Read from MH i2c: 01 [09:42:01]MH_I2C_Read... [09:42:01]*** Stop cut motor [09:42:01]*** Cut end [09:42:01]Read from MH i2c: 01 07 00 [09:42:01]MH_I2C_Read... [09:42:01]Read from MH i2c: 01 07 00 D9 37 00 00 00 00 00 FF 0F 25 [09:42:01]process_action close_receipt done [09:42:01]requested_data is exist [09:42:01]produce_requested_data [09:42:01]requested_item fm.sn is exist - process it [09:42:01]wFMCommunicate request_size=4 [09:42:01]MH_SAM_APDU [09:42:01]CAPDU: 80 11 00 00 [09:42:01]Write to MH i2c: E2 08 00 DA 37 80 11 00 00 00 00 00 00 8B [09:42:01]Write i2c OK [09:42:01]MH_I2C_Read... [09:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:01]Read from MH i2c: E2 [09:42:02]MH_I2C_Read... [09:42:02]Read from MH i2c: E2 17 00 [09:42:02]MH_I2C_Read... [09:42:02]Read from MH i2c: E2 17 00 DA 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D6 [09:42:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:42:02]wFMCommunicate OK [09:42:02]requested_item fd.num is exist - process it [09:42:02]SAM_PROTO_GetFieldsCounters [09:42:02]wFMCommunicate request_size=4 [09:42:02]MH_SAM_APDU [09:42:02]CAPDU: 80 13 00 00 [09:42:02]Write to MH i2c: E2 08 00 DB 37 80 13 00 00 00 00 00 00 8E [09:42:02]Write i2c OK [09:42:02]MH_I2C_Read... [09:42:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:02]Read from MH i2c: E2 [09:42:02]MH_I2C_Read... [09:42:02]Read from MH i2c: E2 62 00 [09:42:02]MH_I2C_Read... [09:42:02]Read from MH i2c: E2 62 00 DB 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F7 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [09:42:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F7 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:02]wFMCommunicate OK [09:42:02]SAM_PROTO_GetFieldsCounters done [09:42:02]requested_item shift.num is exist - process it [09:42:02]requested_item shift.opened is exist - process it [09:42:02]req_shift_opened [09:42:02]FM_GetShiftState [09:42:02]SAM_PROTO_GetShiftState [09:42:02]wFMCommunicate request_size=4 [09:42:02]MH_SAM_APDU [09:42:02]CAPDU: 80 13 01 00 [09:42:02]Write to MH i2c: E2 08 00 DC 37 80 13 01 00 00 00 00 00 90 [09:42:02]Write i2c OK [09:42:02]MH_I2C_Read... [09:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:02]Read from MH i2c: E2 [09:42:02]MH_I2C_Read... [09:42:02]Read from MH i2c: E2 0E 00 [09:42:02]MH_I2C_Read... [09:42:02]Read from MH i2c: E2 0E 00 DC 37 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 06 [09:42:02]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:42:02]wFMCommunicate OK [09:42:02]SAM_PROTO_GetShiftState done [09:42:02]FM_GetShiftState done [09:42:02]req_shift_opened done [09:42:02]requested_item shift.open_date is exist - process it [09:42:02]req_shift_open_date [09:42:02]req_shift_open_date done [09:42:02]produce_requested_data done [09:42:02]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49399,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [09:42:02]process_action_free close_receipt [09:42:02]json_value_free [09:42:02]json_value_free done [09:42:02]process_json_proto returns [09:42:02]Send response to host [09:42:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49399,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [09:42:02]free response buf [09:42:02]execute_script done [09:42:02]execute_script returns [09:42:02]free content buf [09:42:02]Sock 9.Close socket [09:42:02]Sock 9.Thread stoped [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:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:25]accept exits with 7 [09:43:25]New connection [09:43:25]New thread 3066830180 created [09:43:25]Thread 3066973540 joined [09:43:25]Waiting for new connection... [09:43:25] Sock 7.Parse request [09:43:25]Sock 7.Check first char [09:43:25]Sock 7.First char is OK [09:43:25]request: POST /json_proto HTTP/1.0 [09:43:25]Method: POST [09:43:25]URL: /json_proto [09:43:25]Method is POST - this is cgi request [09:43:25]url: /json_proto [09:43:25]query_string will be loaded in cgi processing [09:43:25]execute_cgi json_proto POST (null) [09:43:25]execute_cgi path=json_proto method=POST [09:43:25]POST find Content-Length [09:43:25]Host: 172.17.46.196:8080 [09:43:25]Content-Length: 752 [09:43:25]Content-Type: application/json [09:43:25] [09:43:25]POST finish read [09:43:25]Found Content-Length = 752 [09:43:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 9.510, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30149258", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:25]execute_script... [09:43: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)11325220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 9.510, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30149258", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:43:25]POST & json_proto [09:43:25]process_json_proto [09:43:25]json parsed OK: [09:43:25]protocol is kg_v1.0 [09:43:25]action value=close_receipt [09:43:25]process_action close_receipt [09:43:25]cmd_close_receipt [09:43:25]MH_GetDate [09:43:25]Write to MH i2c: F0 00 00 DD 37 03 [09:43:25]Write i2c OK [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: F0 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: F0 09 00 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: F0 09 00 DD 37 00 42 1F BF 66 07 E8 5D 66 44 [09:43:25]GetLastDocTimeStamp 1723801322 [09:43:25]current date 1723801410 [09:43:25]FM_GetShiftState [09:43:25]SAM_PROTO_GetShiftState [09:43:25]wFMCommunicate request_size=4 [09:43:25]MH_SAM_APDU [09:43:25]CAPDU: 80 13 01 00 [09:43:25]Write to MH i2c: E2 08 00 DE 37 80 13 01 00 00 00 00 00 92 [09:43:25]Write i2c OK [09:43:25]MH_I2C_Read... [09:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:25]Read from MH i2c: E2 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 0E 00 [09:43:25]MH_I2C_Read... [09:43:25]Read from MH i2c: E2 0E 00 DE 37 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 08 [09:43:25]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:43:25]wFMCommunicate OK [09:43:25]SAM_PROTO_GetShiftState done [09:43:25]FM_GetShiftState done [09:43:25]opened in 1723766958 [09:43:25]opened+sec_in_day 1723853358 [09:43:25]quantity*price = 0 [09:43:25]sum+1 = 1 [09:43:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 48 16.08.2024 09:43 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30149258 ФМ: 0000000000871800 ФД: 49400 ФПД: 268787947527391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T094330&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49400&fm=268787947527391&tin=02508201610067®Number=0000000000092546&sum=0 [09:43:26]StoreToDocumentArchive [09:43:26]shift 464 fd 49400 [09:43:26]save to /storage/0464/doc_00049400 [09:43:26]save last doc name /storage/0464/doc_00049400 to /storage/kkm_last_doc_name [09:43:26]save OK [09:43:26]Clear old archive folders... [09:43:26]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:43:26]tlvbuf is 00E14FE0 [09:43:26]SAM_PROTO_ClearQueue [09:43:26]wFMCommunicate request_size=4 [09:43:26]MH_SAM_APDU [09:43:26]CAPDU: 80 09 00 00 [09:43:26]Write to MH i2c: E2 08 00 EB 37 80 09 00 00 00 00 00 00 94 [09:43:26]Write i2c OK [09:43:26]MH_I2C_Read... [09:43:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:43:26]Read from MH i2c: E2 [09:43:26]MH_I2C_Read... [09:43:26]Read from MH i2c: E2 03 00 [09:43:26]MH_I2C_Read... [09:43:26]Read from MH i2c: E2 03 00 EB 37 00 90 00 96 [09:43:26]RAPDU: 90 00 [09:43:26]wFMCommunicate OK [09:43:26]SAM_PROTO_ClearQueue done [09:43:26]KKMCreateOFDPacket [09:43:26]OFDProtocolAddRootSTLVToBuf [09:43:26]FM_MakeSignedData [09:43:26]FM_MakeSignedData [09:43:26]SAM_PROTO_SignData [09:43:26]wFMCommunicate request_size=4 [09:43:26]MH_SAM_APDU [09:43:26]CAPDU: 80 0D 01 02 [09:43:26]Write to MH i2c: E2 08 00 EC 37 80 0D 01 02 00 00 00 00 9C [09:43:26]Write i2c OK [09:43:26]MH_I2C_Read... [09:43:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:43:26]Read from MH i2c: E2 [09:43:26]MH_I2C_Read... [09:43:26]Read from MH i2c: E2 03 00 [09:43:26]MH_I2C_Read... [09:43:26]Read from MH i2c: E2 03 00 EC 37 00 90 00 97 [09:43:26]RAPDU: 90 00 [09:43:26]wFMCommunicate OK [09:43:26]wFMCommunicate request_size=255 [09:43:26]MH_SAM_APDU [09:43: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 26 25 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 42 1F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F8 C0 00 00 35 04 06 00 F4 76 12 21 [09:43:26]Write to MH i2c: E2 02 01 ED 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 26 25 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 42 1F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F8 C0 00 00 35 04 06 00 F4 76 12 21 00 00 19 [09:43:26]Write i2c OK [09:43:26]MH_I2C_Read... [09:43:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:27]Read from MH i2c: E2 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 03 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 03 00 ED 37 00 90 00 98 [09:43:27]RAPDU: 90 00 [09:43:27]wFMCommunicate OK [09:43:27]wFMCommunicate request_size=7 [09:43:27]MH_SAM_APDU [09:43:27]CAPDU: 80 0D 02 02 02 DC DF [09:43:27]Write to MH i2c: E2 0A 00 EE 37 80 0D 02 02 02 00 DC DF 00 00 5E [09:43:27]Write i2c OK [09:43:27]MH_I2C_Read... [09:43:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:43:27]Read from MH i2c: E2 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 03 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 03 00 EE 37 00 90 00 99 [09:43:27]RAPDU: 90 00 [09:43:27]wFMCommunicate OK [09:43:27]wFMCommunicate request_size=4 [09:43:27]MH_SAM_APDU [09:43:27]CAPDU: 80 0D 03 02 [09:43:27]Write to MH i2c: E2 08 00 EF 37 80 0D 03 02 00 00 00 00 A1 [09:43:27]Write i2c OK [09:43:27]MH_I2C_Read... [09:43:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:43:27]Read from MH i2c: E2 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 0B 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 0B 00 EF 37 00 41 BA 6A BE 05 65 F5 56 90 00 7A [09:43:27]RAPDU: 41 BA 6A BE 05 65 F5 56 90 00 [09:43:27]wFMCommunicate OK [09:43:27]SAM_PROTO_SignData done [09:43:27]FM_MakeSignedData done [09:43:27]CreateOFDProtocolMessage [09:43:27]wFMCommunicate request_size=4 [09:43:27]MH_SAM_APDU [09:43:27]CAPDU: 80 11 00 00 [09:43:27]Write to MH i2c: E2 08 00 F0 37 80 11 00 00 00 00 00 00 A1 [09:43:27]Write i2c OK [09:43:27]MH_I2C_Read... [09:43:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:27]Read from MH i2c: E2 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 17 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: E2 17 00 F0 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 EC [09:43:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:43:27]wFMCommunicate OK [09:43:27]CreateOFDProtocolMessage done [09:43:27]OFDSenderStorePacket 49400 [09:43:27]StoreOFDPacket docnum=49400 [09:43:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 AF 09 04 01 75 F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 25 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 42 1F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F8 C0 00 00 35 04 06 00 F4 76 12 21 DC DF 41 BA 6A BE 05 65 F5 56 [09:43:27]CheckFolder [09:43:27]dirname=/storage/ofd_packets [09:43:27]CheckFolder done [09:43:27]ProducePacketName [09:43:27]name=ofd_packets/00049400 [09:43:27]NVStorageSaveData ofd_packets/00049400 [09:43:27]File name is /storage/ofd_packets/00049400 [09:43:27]Write 298 bytes [09:43:27]NVStorageSaveData done [09:43:27]OFDSenderStorePacket done [09:43:27]KKMCreateOFDPacket done [09:43:27]NVStorageSaveData kkm_last_timestamp [09:43:27]File name is /storage/kkm_last_timestamp [09:43:27]Write 4 bytes [09:43:27]NVStorageSaveData done [09:43:27]ExternCall_PrintAddStr [09:43:27]wPrintStart [09:43:27]Write to MH i2c: 01 00 00 F1 37 28 [09:43:27]Write i2c OK [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: 01 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: 01 07 00 [09:43:27]MH_I2C_Read... [09:43:27]Read from MH i2c: 01 07 00 F1 37 00 00 00 00 00 FF 0F 3D [09:43:27]RasterBufferAndPrint [09:43:27]line Счет N : (1)11325220 [09:43:27]line ИНН: 02508201610067 [09:43:27]line Контрольно-Кассовый Чек [09:43:27]line ПРОДАЖА [09:43:27]line ТРК (МРК, ГНК) : 51 [09:43:27]line Товар: 2710194210 [09:43:27]line ДТ-К-5 [09:43:27]line 9.510 * 0.00 [09:43:27]line = 0.00 [09:43:27]line НДС 12% НСП 1% [09:43:27]line > о реализуемом товаре [09:43:27]line ИТОГО: 0.00 [09:43:27]line НСП 1% : 0.00 [09:43:27]line НДС 12% : 0.00 [09:43:27]line Наличными: 0.00 [09:43:27]line Безнал.: 0.00 [09:43:27]line Место: АЗС № 95 "Партнер Нефть" [09:43:27]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:43:27]line СНО: Общий режим [09:43:27]line Чек 48 16.08.2024 09:43 [09:43:27]line Смена: 464 ФФД: 1.0 [09:43:27]line ЗНМ: 0300000078 [09:43:27]line РНМ: 0000000000092546 [09:43:27]line Версия ККМ: 001 [09:43:27]line Талоны: ТК ГПНА Online [09:43:27]line 30149258 [09:43:27]line ФМ: 0000000000871800 [09:43:27]line ФД: 49400 [09:43:27]line ФПД: 268787947527391 [09:43:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T094330&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49400&fm=268787947527391&tin=02508201610067®Number=0000000000092546&sum=0 [09:43:27]OFD Sender: Processing packet 49400 [packets to send 21, broken 20] [09:43:27]ProducePacketName [09:43:27]name=ofd_packets/00049400 [09:43:27]OFD Sender: To server: pG, [09:43:27]CommunicateWithHost lk.salyk.kg:30040 [09:43:27]ConnectInit lk.salyk.kg [09:43:27]written 0, free lines is 4095 [09:43:27]Connected sock=10 [09:43:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 AF 09 04 01 75 F2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 26 25 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 42 1F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F8 C0 00 00 35 04 06 00 F4 76 12 21 DC DF 41 BA 6A BE 05 65 F5 56 [09:43:28]Write to MH i2c: 01 00 00 1B 38 53 [09:43:28]Write i2c OK [09:43:28]MH_I2C_Read... [09:43:28]Read from MH i2c: 01 [09:43:28]MH_I2C_Read... [09:43:28]Read from MH i2c: 01 07 00 [09:43:28]MH_I2C_Read... [09:43:28]Read from MH i2c: 01 07 00 1B 38 00 00 00 00 00 E6 0C 4C [09:43:28]RasterBufferAndPrint [09:43:28]line [09:43:28]line [09:43:28]line [09:43:28]line [09:43:28]line [09:43:28]written 0, free lines is 3308 [09:43:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 02 4A 47 00 52 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F8 C0 00 00 F4 03 04 00 81 CA BE 66 B6 04 01 00 00 2D BE 13 6F 63 12 D8 C0 [09:43:28]CommunicateWithHost err = 0 [09:43:28]CheckOFDResponse [09:43:28]1017 (14) - 77093643461234 [09:43:28]1041 (16) - 0000000000871800 [09:43:28]1040 (4) - 49400 [09:43:28]1012 (4) - 16.08.2024 03:41 [09:43:28]1206 (1) - 0 [09:43:28]OFD Sender: Remove packet 49400 [09:43:28]ProducePacketName [09:43:28]name=ofd_packets/00049400 [09:43:28]NVStorageDeleteData [09:43:28]MH_Cut [09:43:28]Write to MH i2c: D1 01 00 22 38 01 2C [09:43:28]Write i2c OK [09:43:28]MH_I2C_Read... [09:43:28]Read from MH i2c: D1 [09:43:28]MH_I2C_Read... [09:43:28]Read from MH i2c: D1 01 00 [09:43:28]MH_I2C_Read... [09:43:28]Read from MH i2c: D1 01 00 22 38 00 2B [09:43:28]Write to MH i2c: 01 00 00 23 38 5B [09:43:28]Write i2c OK [09:43:28]MH_I2C_Read... [09:43:28]OFD Sender: No OFD packet to send [09:43:28]*** Cut start [09:43:28]*** Purtial cut [09:43:28]*** CUTSNS_PIN = 0 [09:43:29]*** Stage 1: CUTSNS_PIN = 1 [09:43:30]Read from MH i2c: 01 [09:43:30]MH_I2C_Read... [09:43:30]*** Stop cut motor [09:43:30]*** Cut end [09:43:30]Read from MH i2c: 01 07 00 [09:43:30]MH_I2C_Read... [09:43:30]Read from MH i2c: 01 07 00 23 38 00 00 00 00 00 FF 0F 70 [09:43:30]process_action close_receipt done [09:43:30]requested_data is exist [09:43:30]produce_requested_data [09:43:30]requested_item fm.sn is exist - process it [09:43:30]wFMCommunicate request_size=4 [09:43:30]MH_SAM_APDU [09:43:30]CAPDU: 80 11 00 00 [09:43:30]Write to MH i2c: E2 08 00 24 38 80 11 00 00 00 00 00 00 D6 [09:43:30]Write i2c OK [09:43:30]MH_I2C_Read... [09:43:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:43:30]Read from MH i2c: E2 [09:43:30]MH_I2C_Read... [09:43:30]Read from MH i2c: E2 17 00 [09:43:30]MH_I2C_Read... [09:43:30]Read from MH i2c: E2 17 00 24 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 21 [09:43:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:43:30]wFMCommunicate OK [09:43:30]requested_item fd.num is exist - process it [09:43:30]SAM_PROTO_GetFieldsCounters [09:43:30]wFMCommunicate request_size=4 [09:43:30]MH_SAM_APDU [09:43:30]CAPDU: 80 13 00 00 [09:43:30]Write to MH i2c: E2 08 00 25 38 80 13 00 00 00 00 00 00 D9 [09:43:30]Write i2c OK [09:43:30]MH_I2C_Read... [09:43:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:43:31]Read from MH i2c: E2 [09:43:31]MH_I2C_Read... [09:43:31]Read from MH i2c: E2 62 00 [09:43:31]MH_I2C_Read... [09:43:31]Read from MH i2c: E2 62 00 25 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F8 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [09:43:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F8 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:43:31]wFMCommunicate OK [09:43:31]SAM_PROTO_GetFieldsCounters done [09:43:31]requested_item shift.num is exist - process it [09:43:31]requested_item shift.opened is exist - process it [09:43:31]req_shift_opened [09:43:31]FM_GetShiftState [09:43:31]SAM_PROTO_GetShiftState [09:43:31]wFMCommunicate request_size=4 [09:43:31]MH_SAM_APDU [09:43:31]CAPDU: 80 13 01 00 [09:43:31]Write to MH i2c: E2 08 00 26 38 80 13 01 00 00 00 00 00 DB [09:43:31]Write i2c OK [09:43:31]MH_I2C_Read... [09:43:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:43:31]Read from MH i2c: E2 [09:43:31]MH_I2C_Read... [09:43:31]Read from MH i2c: E2 0E 00 [09:43:31]MH_I2C_Read... [09:43:31]Read from MH i2c: E2 0E 00 26 38 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 51 [09:43:31]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:43:31]wFMCommunicate OK [09:43:31]SAM_PROTO_GetShiftState done [09:43:31]FM_GetShiftState done [09:43:31]req_shift_opened done [09:43:31]requested_item shift.open_date is exist - process it [09:43:31]req_shift_open_date [09:43:31]req_shift_open_date done [09:43:31]produce_requested_data done [09:43:31]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49400,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [09:43:31]process_action_free close_receipt [09:43:31]json_value_free [09:43:31]json_value_free done [09:43:31]process_json_proto returns [09:43:31]Send response to host [09:43:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49400,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [09:43:31]free response buf [09:43:31]execute_script done [09:43:31]execute_script returns [09:43:31]free content buf [09:43:31]Sock 7.Close socket [09:43:31]Sock 7.Thread stoped [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]accept exits with 9 [09:44:28]New connection [09:44:28]New thread 3066973540 created [09:44:28]Thread 3066830180 joined [09:44:28]Waiting for new connection... [09:44:28] Sock 9.Parse request [09:44:28]Sock 9.Check first char [09:44:28]Sock 9.First char is OK [09:44:28]request: POST /json_proto HTTP/1.0 [09:44:28]Method: POST [09:44:28]URL: /json_proto [09:44:28]Method is POST - this is cgi request [09:44:28]url: /json_proto [09:44:28]query_string will be loaded in cgi processing [09:44:28]execute_cgi json_proto POST (null) [09:44:28]execute_cgi path=json_proto method=POST [09:44:28]POST find Content-Length [09:44:28]Host: 172.17.46.196:8080 [09:44:28]Content-Length: 756 [09:44:28]Content-Type: application/json [09:44:28] [09:44:28]POST finish read [09:44:28]Found Content-Length = 756 [09:44:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30097986", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:28]execute_script... [09:44: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)11325223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30097986", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:44:28]POST & json_proto [09:44:28]process_json_proto [09:44:28]json parsed OK: [09:44:28]protocol is kg_v1.0 [09:44:28]action value=close_receipt [09:44:28]process_action close_receipt [09:44:28]cmd_close_receipt [09:44:28]MH_GetDate [09:44:28]Write to MH i2c: F0 00 00 27 38 4E [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: F0 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: F0 09 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: F0 09 00 27 38 00 81 1F BF 66 07 E8 5D 66 CE [09:44:28]GetLastDocTimeStamp 1723801410 [09:44:28]current date 1723801473 [09:44:28]FM_GetShiftState [09:44:28]SAM_PROTO_GetShiftState [09:44:28]wFMCommunicate request_size=4 [09:44:28]MH_SAM_APDU [09:44:28]CAPDU: 80 13 01 00 [09:44:28]Write to MH i2c: E2 08 00 28 38 80 13 01 00 00 00 00 00 DD [09:44:28]Write i2c OK [09:44:28]MH_I2C_Read... [09:44:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:28]Read from MH i2c: E2 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 0E 00 [09:44:28]MH_I2C_Read... [09:44:28]Read from MH i2c: E2 0E 00 28 38 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 53 [09:44:28]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:44:28]wFMCommunicate OK [09:44:28]SAM_PROTO_GetShiftState done [09:44:28]FM_GetShiftState done [09:44:28]opened in 1723766958 [09:44:28]opened+sec_in_day 1723853358 [09:44:28]quantity*price = 0 [09:44:28]sum+1 = 1 [09:44:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 49 16.08.2024 09:44 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30097986 ФМ: 0000000000871800 ФД: 49401 ФПД: 81685242603549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T094433&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49401&fm=81685242603549&tin=02508201610067®Number=0000000000092546&sum=0 [09:44:29]StoreToDocumentArchive [09:44:29]shift 464 fd 49401 [09:44:29]save to /storage/0464/doc_00049401 [09:44:29]save last doc name /storage/0464/doc_00049401 to /storage/kkm_last_doc_name [09:44:29]save OK [09:44:29]Clear old archive folders... [09:44:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:44:29]tlvbuf is 00E21110 [09:44:29]SAM_PROTO_ClearQueue [09:44:29]wFMCommunicate request_size=4 [09:44:29]MH_SAM_APDU [09:44:29]CAPDU: 80 09 00 00 [09:44:29]Write to MH i2c: E2 08 00 35 38 80 09 00 00 00 00 00 00 DF [09:44:29]Write i2c OK [09:44:29]MH_I2C_Read... [09:44:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:44:29]Read from MH i2c: E2 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: E2 03 00 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: E2 03 00 35 38 00 90 00 E1 [09:44:29]RAPDU: 90 00 [09:44:29]wFMCommunicate OK [09:44:29]SAM_PROTO_ClearQueue done [09:44:29]KKMCreateOFDPacket [09:44:29]OFDProtocolAddRootSTLVToBuf [09:44:29]FM_MakeSignedData [09:44:29]FM_MakeSignedData [09:44:29]SAM_PROTO_SignData [09:44:29]wFMCommunicate request_size=4 [09:44:29]MH_SAM_APDU [09:44:29]CAPDU: 80 0D 01 02 [09:44:29]Write to MH i2c: E2 08 00 36 38 80 0D 01 02 00 00 00 00 E7 [09:44:29]Write i2c OK [09:44:29]MH_I2C_Read... [09:44:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:44:29]Read from MH i2c: E2 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: E2 03 00 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: E2 03 00 36 38 00 90 00 E2 [09:44:29]RAPDU: 90 00 [09:44:29]wFMCommunicate OK [09:44:29]wFMCommunicate request_size=255 [09:44:29]MH_SAM_APDU [09:44: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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 81 1F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F9 C0 00 00 35 04 06 00 4A [09:44:29]Write to MH i2c: E2 02 01 37 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 81 1F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F9 C0 00 00 35 04 06 00 4A 00 00 EA [09:44:29]Write i2c OK [09:44:29]MH_I2C_Read... [09:44:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:29]Read from MH i2c: E2 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: E2 03 00 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: E2 03 00 37 38 00 90 00 E3 [09:44:29]RAPDU: 90 00 [09:44:29]wFMCommunicate OK [09:44:29]wFMCommunicate request_size=10 [09:44:29]MH_SAM_APDU [09:44:29]CAPDU: 80 0D 02 02 05 4A D3 DE 68 1D [09:44:29]Write to MH i2c: E2 0D 00 38 38 80 0D 02 02 05 00 4A D3 DE 68 1D 00 00 74 [09:44:29]Write i2c OK [09:44:29]MH_I2C_Read... [09:44:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:44:29]Read from MH i2c: E2 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: E2 03 00 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: E2 03 00 38 38 00 90 00 E4 [09:44:29]RAPDU: 90 00 [09:44:29]wFMCommunicate OK [09:44:29]wFMCommunicate request_size=4 [09:44:29]MH_SAM_APDU [09:44:29]CAPDU: 80 0D 03 02 [09:44:29]Write to MH i2c: E2 08 00 39 38 80 0D 03 02 00 00 00 00 EC [09:44:29]Write i2c OK [09:44:29]MH_I2C_Read... [09:44:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:44:29]Read from MH i2c: E2 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: E2 0B 00 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: E2 0B 00 39 38 00 EB BE 49 42 E3 05 E4 CF 90 00 BC [09:44:29]RAPDU: EB BE 49 42 E3 05 E4 CF 90 00 [09:44:29]wFMCommunicate OK [09:44:29]SAM_PROTO_SignData done [09:44:29]FM_MakeSignedData done [09:44:29]CreateOFDProtocolMessage [09:44:29]wFMCommunicate request_size=4 [09:44:29]MH_SAM_APDU [09:44:29]CAPDU: 80 11 00 00 [09:44:29]Write to MH i2c: E2 08 00 3A 38 80 11 00 00 00 00 00 00 EC [09:44:29]Write i2c OK [09:44:29]MH_I2C_Read... [09:44:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:29]Read from MH i2c: E2 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: E2 17 00 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: E2 17 00 3A 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 37 [09:44:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:44:29]wFMCommunicate OK [09:44:29]CreateOFDProtocolMessage done [09:44:29]OFDSenderStorePacket 49401 [09:44:29]StoreOFDPacket docnum=49401 [09:44:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 AA 2D 07 01 59 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 81 1F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F9 C0 00 00 35 04 06 00 4A 4A D3 DE 68 1D EB BE 49 42 E3 05 E4 CF [09:44:29]CheckFolder [09:44:29]dirname=/storage/ofd_packets [09:44:29]CheckFolder done [09:44:29]ProducePacketName [09:44:29]name=ofd_packets/00049401 [09:44:29]NVStorageSaveData ofd_packets/00049401 [09:44:29]File name is /storage/ofd_packets/00049401 [09:44:29]Write 301 bytes [09:44:29]NVStorageSaveData done [09:44:29]OFDSenderStorePacket done [09:44:29]KKMCreateOFDPacket done [09:44:29]NVStorageSaveData kkm_last_timestamp [09:44:29]File name is /storage/kkm_last_timestamp [09:44:29]Write 4 bytes [09:44:29]NVStorageSaveData done [09:44:29]ExternCall_PrintAddStr [09:44:29]wPrintStart [09:44:29]Write to MH i2c: 01 00 00 3B 38 73 [09:44:29]Write i2c OK [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: 01 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: 01 07 00 [09:44:29]MH_I2C_Read... [09:44:29]Read from MH i2c: 01 07 00 3B 38 00 00 00 00 00 FF 0F 88 [09:44:29]RasterBufferAndPrint [09:44:29]line Счет N : (1)11325223 [09:44:29]line ИНН: 02508201610067 [09:44:29]line Контрольно-Кассовый Чек [09:44:29]line ПРОДАЖА [09:44:29]line ТРК (МРК, ГНК) : 42 [09:44:29]line Товар: 2710124130 [09:44:29]line Аи-92-К-4 [09:44:29]line 10.000 * 0.00 [09:44:29]line = 0.00 [09:44:29]line НДС 12% НСП 1% [09:44:29]line > о реализуемом товаре [09:44:29]line ИТОГО: 0.00 [09:44:29]line НСП 1% : 0.00 [09:44:29]line НДС 12% : 0.00 [09:44:29]line Наличными: 0.00 [09:44:29]line Безнал.: 0.00 [09:44:29]line Место: АЗС № 95 "Партнер Нефть" [09:44:29]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:44:29]line СНО: Общий режим [09:44:29]line Чек 49 16.08.2024 09:44 [09:44:29]line Смена: 464 ФФД: 1.0 [09:44:29]line ЗНМ: 0300000078 [09:44:29]line РНМ: 0000000000092546 [09:44:29]line Версия ККМ: 001 [09:44:29]line Талоны: ТК ГПНА Online [09:44:29]line 30097986 [09:44:29]line ФМ: 0000000000871800 [09:44:29]line ФД: 49401 [09:44:29]line ФПД: 81685242603549 [09:44:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T094433&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49401&fm=81685242603549&tin=02508201610067®Number=0000000000092546&sum=0 [09:44:29]written 0, free lines is 4095 [09:44:30]OFD Sender: Processing packet 49401 [packets to send 21, broken 20] [09:44:30]ProducePacketName [09:44:30]name=ofd_packets/00049401 [09:44:30]OFD Sender: To server: pG, [09:44:30]CommunicateWithHost lk.salyk.kg:30040 [09:44:30]ConnectInit lk.salyk.kg [09:44:30]Connected sock=10 [09:44:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 AA 2D 07 01 59 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 81 1F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F9 C0 00 00 35 04 06 00 4A 4A D3 DE 68 1D EB BE 49 42 E3 05 E4 CF [09:44:30]Write to MH i2c: 01 00 00 65 38 9D [09:44:30]Write i2c OK [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: 01 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: 01 07 00 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: 01 07 00 65 38 00 00 00 00 00 DE 0C 8E [09:44:30]RasterBufferAndPrint [09:44:30]line [09:44:30]line [09:44:30]line [09:44:30]line [09:44:30]line [09:44:30]written 0, free lines is 3300 [09:44:30]MH_Cut [09:44:30]Write to MH i2c: D1 01 00 6C 38 01 76 [09:44:30]Write i2c OK [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: D1 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: D1 01 00 [09:44:30]MH_I2C_Read... [09:44:30]Read from MH i2c: D1 01 00 6C 38 00 75 [09:44:30]Write to MH i2c: 01 00 00 6D 38 A5 [09:44:30]Write i2c OK [09:44:30]MH_I2C_Read... [09:44:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A5 AA 47 00 22 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 F9 C0 00 00 F4 03 04 00 C0 CA BE 66 B6 04 01 00 00 DE 8E 9D 16 E1 9B C8 C6 [09:44:30]CommunicateWithHost err = 0 [09:44:30]CheckOFDResponse [09:44:30]1017 (14) - 77093643461234 [09:44:30]1041 (16) - 0000000000871800 [09:44:30]1040 (4) - 49401 [09:44:30]1012 (4) - 16.08.2024 03:42 [09:44:30]1206 (1) - 0 [09:44:30]OFD Sender: Remove packet 49401 [09:44:30]ProducePacketName [09:44:30]name=ofd_packets/00049401 [09:44:30]NVStorageDeleteData [09:44:30]OFD Sender: No OFD packet to send [09:44:31]*** Cut start [09:44:31]*** Purtial cut [09:44:31]*** Stage 1: CUTSNS_PIN = 1 [09:44:31]Read from MH i2c: 01 [09:44:31]MH_I2C_Read... [09:44:31]*** Stop cut motor [09:44:31]*** Cut end [09:44:31]Read from MH i2c: 01 07 00 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: 01 07 00 6D 38 00 00 00 00 00 FF 0F BA [09:44:31]process_action close_receipt done [09:44:31]requested_data is exist [09:44:31]produce_requested_data [09:44:31]requested_item fm.sn is exist - process it [09:44:31]wFMCommunicate request_size=4 [09:44:31]MH_SAM_APDU [09:44:31]CAPDU: 80 11 00 00 [09:44:31]Write to MH i2c: E2 08 00 6E 38 80 11 00 00 00 00 00 00 20 [09:44:31]Write i2c OK [09:44:31]MH_I2C_Read... [09:44:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:44:31]Read from MH i2c: E2 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: E2 17 00 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: E2 17 00 6E 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6B [09:44:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:44:31]wFMCommunicate OK [09:44:31]requested_item fd.num is exist - process it [09:44:31]SAM_PROTO_GetFieldsCounters [09:44:31]wFMCommunicate request_size=4 [09:44:31]MH_SAM_APDU [09:44:31]CAPDU: 80 13 00 00 [09:44:31]Write to MH i2c: E2 08 00 6F 38 80 13 00 00 00 00 00 00 23 [09:44:31]Write i2c OK [09:44:31]MH_I2C_Read... [09:44:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:44:31]Read from MH i2c: E2 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: E2 62 00 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: E2 62 00 6F 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F9 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [09:44:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 F9 C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:44:31]wFMCommunicate OK [09:44:31]SAM_PROTO_GetFieldsCounters done [09:44:31]requested_item shift.num is exist - process it [09:44:31]requested_item shift.opened is exist - process it [09:44:31]req_shift_opened [09:44:31]FM_GetShiftState [09:44:31]SAM_PROTO_GetShiftState [09:44:31]wFMCommunicate request_size=4 [09:44:31]MH_SAM_APDU [09:44:31]CAPDU: 80 13 01 00 [09:44:31]Write to MH i2c: E2 08 00 70 38 80 13 01 00 00 00 00 00 25 [09:44:31]Write i2c OK [09:44:31]MH_I2C_Read... [09:44:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:44:31]Read from MH i2c: E2 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: E2 0E 00 [09:44:31]MH_I2C_Read... [09:44:31]Read from MH i2c: E2 0E 00 70 38 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 9B [09:44:31]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:44:31]wFMCommunicate OK [09:44:31]SAM_PROTO_GetShiftState done [09:44:31]FM_GetShiftState done [09:44:31]req_shift_opened done [09:44:31]requested_item shift.open_date is exist - process it [09:44:31]req_shift_open_date [09:44:31]req_shift_open_date done [09:44:31]produce_requested_data done [09:44:31]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49401,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [09:44:31]process_action_free close_receipt [09:44:31]json_value_free [09:44:31]json_value_free done [09:44:31]process_json_proto returns [09:44:31]Send response to host [09:44:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49401,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [09:44:31]free response buf [09:44:31]execute_script done [09:44:31]execute_script returns [09:44:31]free content buf [09:44:31]Sock 9.Close socket [09:44:31]Sock 9.Thread stoped [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:47:01]OFD Sender: No OFD packet to send [09:47:06]OFD Sender: No OFD packet to send [09:47:11]OFD Sender: No OFD packet to send [09:47:16]OFD Sender: No OFD packet to send [09:47:21]OFD Sender: No OFD packet to send [09:47:26]OFD Sender: No OFD packet to send [09:47:31]OFD Sender: No OFD packet to send [09:47:36]OFD Sender: No OFD packet to send [09:47:41]OFD Sender: No OFD packet to send [09:47:45]accept exits with 7 [09:47:45]New connection [09:47:45]New thread 3066830180 created [09:47:45]Thread 3066973540 joined [09:47:45]Waiting for new connection... [09:47:45] Sock 7.Parse request [09:47:45]Sock 7.Check first char [09:47:45]Sock 7.First char is OK [09:47:45]request: POST /json_proto HTTP/1.0 [09:47:45]Method: POST [09:47:45]URL: /json_proto [09:47:45]Method is POST - this is cgi request [09:47:45]url: /json_proto [09:47:45]query_string will be loaded in cgi processing [09:47:45]execute_cgi json_proto POST (null) [09:47:45]execute_cgi path=json_proto method=POST [09:47:45]POST find Content-Length [09:47:45]Host: 172.17.46.196:8080 [09:47:45]Content-Length: 753 [09:47:45]Content-Type: application/json [09:47:45] [09:47:45]POST finish read [09:47:45]Found Content-Length = 753 [09:47:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30148458", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:45]execute_script... [09:47: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)11325224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 26.250, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30148458", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:45]POST & json_proto [09:47:45]process_json_proto [09:47:45]json parsed OK: [09:47:45]protocol is kg_v1.0 [09:47:45]action value=close_receipt [09:47:45]process_action close_receipt [09:47:45]cmd_close_receipt [09:47:45]MH_GetDate [09:47:45]Write to MH i2c: F0 00 00 71 38 98 [09:47:45]Write i2c OK [09:47:45]MH_I2C_Read... [09:47:45]Read from MH i2c: F0 [09:47:45]MH_I2C_Read... [09:47:45]Read from MH i2c: F0 09 00 [09:47:45]MH_I2C_Read... [09:47:45]Read from MH i2c: F0 09 00 71 38 00 46 20 BF 66 07 E8 5D 66 DE [09:47:45]GetLastDocTimeStamp 1723801473 [09:47:45]current date 1723801670 [09:47:45]FM_GetShiftState [09:47:45]SAM_PROTO_GetShiftState [09:47:45]wFMCommunicate request_size=4 [09:47:45]MH_SAM_APDU [09:47:45]CAPDU: 80 13 01 00 [09:47:45]Write to MH i2c: E2 08 00 72 38 80 13 01 00 00 00 00 00 27 [09:47:45]Write i2c OK [09:47:45]MH_I2C_Read... [09:47:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:45]Read from MH i2c: E2 [09:47:45]MH_I2C_Read... [09:47:45]Read from MH i2c: E2 0E 00 [09:47:45]MH_I2C_Read... [09:47:45]Read from MH i2c: E2 0E 00 72 38 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 9D [09:47:45]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:47:45]wFMCommunicate OK [09:47:45]SAM_PROTO_GetShiftState done [09:47:45]FM_GetShiftState done [09:47:45]opened in 1723766958 [09:47:45]opened+sec_in_day 1723853358 [09:47:45]quantity*price = 0 [09:47:45]sum+1 = 1 [09:47:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 50 16.08.2024 09:47 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30148458 ФМ: 0000000000871800 ФД: 49402 ФПД: 230357369325300 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T094750&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49402&fm=230357369325300&tin=02508201610067®Number=0000000000092546&sum=0 [09:47:46]StoreToDocumentArchive [09:47:46]shift 464 fd 49402 [09:47:46]save to /storage/0464/doc_00049402 [09:47:46]save last doc name /storage/0464/doc_00049402 to /storage/kkm_last_doc_name [09:47:46]save OK [09:47:46]Clear old archive folders... [09:47:46]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:47:46]tlvbuf is B6EDFE60 [09:47:46]SAM_PROTO_ClearQueue [09:47:46]wFMCommunicate request_size=4 [09:47:46]MH_SAM_APDU [09:47:46]CAPDU: 80 09 00 00 [09:47:46]Write to MH i2c: E2 08 00 7F 38 80 09 00 00 00 00 00 00 29 [09:47:46]Write i2c OK [09:47:46]MH_I2C_Read... [09:47:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:46]Read from MH i2c: E2 [09:47:46]MH_I2C_Read... [09:47:46]Read from MH i2c: E2 03 00 [09:47:46]MH_I2C_Read... [09:47:46]Read from MH i2c: E2 03 00 7F 38 00 90 00 2B [09:47:46]RAPDU: 90 00 [09:47:46]wFMCommunicate OK [09:47:46]SAM_PROTO_ClearQueue done [09:47:46]KKMCreateOFDPacket [09:47:46]OFDProtocolAddRootSTLVToBuf [09:47:46]FM_MakeSignedData [09:47:46]FM_MakeSignedData [09:47:46]SAM_PROTO_SignData [09:47:46]wFMCommunicate request_size=4 [09:47:46]MH_SAM_APDU [09:47:46]CAPDU: 80 0D 01 02 [09:47:46]Write to MH i2c: E2 08 00 80 38 80 0D 01 02 00 00 00 00 31 [09:47:46]Write i2c OK [09:47:46]MH_I2C_Read... [09:47:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:46]Read from MH i2c: E2 [09:47:46]MH_I2C_Read... [09:47:46]Read from MH i2c: E2 03 00 [09:47:46]MH_I2C_Read... [09:47:46]Read from MH i2c: E2 03 00 80 38 00 90 00 2C [09:47:46]RAPDU: 90 00 [09:47:46]wFMCommunicate OK [09:47:46]wFMCommunicate request_size=255 [09:47:46]MH_SAM_APDU [09:47:46]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 46 20 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FA C0 00 00 35 04 06 00 D1 82 41 2B [09:47:46]Write to MH i2c: E2 02 01 81 38 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 46 20 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FA C0 00 00 35 04 06 00 D1 82 41 2B 00 00 7E [09:47:46]Write i2c OK [09:47:46]MH_I2C_Read... [09:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:46]Read from MH i2c: E2 [09:47:46]MH_I2C_Read... [09:47:46]Read from MH i2c: E2 03 00 [09:47:46]MH_I2C_Read... [09:47:46]Read from MH i2c: E2 03 00 81 38 00 90 00 2D [09:47:46]RAPDU: 90 00 [09:47:46]wFMCommunicate OK [09:47:46]wFMCommunicate request_size=7 [09:47:46]MH_SAM_APDU [09:47:46]CAPDU: 80 0D 02 02 02 86 F4 [09:47:46]Write to MH i2c: E2 0A 00 82 38 80 0D 02 02 02 00 86 F4 00 00 B2 [09:47:46]Write i2c OK [09:47:46]MH_I2C_Read... [09:47:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:46]Read from MH i2c: E2 [09:47:46]MH_I2C_Read... [09:47:46]Read from MH i2c: E2 03 00 [09:47:46]MH_I2C_Read... [09:47:46]Read from MH i2c: E2 03 00 82 38 00 90 00 2E [09:47:46]RAPDU: 90 00 [09:47:46]wFMCommunicate OK [09:47:46]wFMCommunicate request_size=4 [09:47:46]MH_SAM_APDU [09:47:46]CAPDU: 80 0D 03 02 [09:47:46]Write to MH i2c: E2 08 00 83 38 80 0D 03 02 00 00 00 00 36 [09:47:46]Write i2c OK [09:47:46]MH_I2C_Read... [09:47:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:46]Read from MH i2c: E2 [09:47:46]MH_I2C_Read... [09:47:46]Read from MH i2c: E2 0B 00 [09:47:46]MH_I2C_Read... [09:47:46]Read from MH i2c: E2 0B 00 83 38 00 0B C0 B7 FC 36 96 83 2D 90 00 31 [09:47:46]RAPDU: 0B C0 B7 FC 36 96 83 2D 90 00 [09:47:46]wFMCommunicate OK [09:47:46]SAM_PROTO_SignData done [09:47:46]FM_MakeSignedData done [09:47:46]CreateOFDProtocolMessage [09:47:46]wFMCommunicate request_size=4 [09:47:46]MH_SAM_APDU [09:47:46]CAPDU: 80 11 00 00 [09:47:46]Write to MH i2c: E2 08 00 84 38 80 11 00 00 00 00 00 00 36 [09:47:46]Write i2c OK [09:47:46]MH_I2C_Read... [09:47:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:46]Read from MH i2c: E2 [09:47:46]MH_I2C_Read... [09:47:46]Read from MH i2c: E2 17 00 [09:47:46]MH_I2C_Read... [09:47:46]Read from MH i2c: E2 17 00 84 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 81 [09:47:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:47:46]wFMCommunicate OK [09:47:46]CreateOFDProtocolMessage done [09:47:46]OFDSenderStorePacket 49402 [09:47:46]StoreOFDPacket docnum=49402 [09:47:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 33 E1 04 01 16 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 46 20 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FA C0 00 00 35 04 06 00 D1 82 41 2B 86 F4 0B C0 B7 FC 36 96 83 2D [09:47:46]CheckFolder [09:47:46]dirname=/storage/ofd_packets [09:47:46]CheckFolder done [09:47:46]ProducePacketName [09:47:46]name=ofd_packets/00049402 [09:47:46]NVStorageSaveData ofd_packets/00049402 [09:47:46]File name is /storage/ofd_packets/00049402 [09:47:46]Write 298 bytes [09:47:46]NVStorageSaveData done [09:47:46]OFDSenderStorePacket done [09:47:46]KKMCreateOFDPacket done [09:47:46]NVStorageSaveData kkm_last_timestamp [09:47:46]File name is /storage/kkm_last_timestamp [09:47:46]Write 4 bytes [09:47:46]NVStorageSaveData done [09:47:46]ExternCall_PrintAddStr [09:47:46]wPrintStart [09:47:46]Write to MH i2c: 01 00 00 85 38 BD [09:47:46]Write i2c OK [09:47:46]MH_I2C_Read... [09:47:46]Read from MH i2c: 01 [09:47:46]MH_I2C_Read... [09:47:46]Read from MH i2c: 01 07 00 [09:47:46]MH_I2C_Read... [09:47:46]Read from MH i2c: 01 07 00 85 38 00 00 00 00 00 FF 0F D2 [09:47:46]RasterBufferAndPrint [09:47:46]line Счет N : (1)11325224 [09:47:46]line ИНН: 02508201610067 [09:47:46]line Контрольно-Кассовый Чек [09:47:46]line ПРОДАЖА [09:47:46]line ТРК (МРК, ГНК) : 51 [09:47:46]line Товар: 2710194210 [09:47:46]line ДТ-К-5 [09:47:46]line 26.250 * 0.00 [09:47:46]line = 0.00 [09:47:46]line НДС 12% НСП 1% [09:47:46]line > о реализуемом товаре [09:47:46]line ИТОГО: 0.00 [09:47:46]line НСП 1% : 0.00 [09:47:46]line НДС 12% : 0.00 [09:47:46]line Наличными: 0.00 [09:47:46]line Безнал.: 0.00 [09:47:46]line Место: АЗС № 95 "Партнер Нефть" [09:47:46]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:47:46]line СНО: Общий режим [09:47:46]line Чек 50 16.08.2024 09:47 [09:47:46]line Смена: 464 ФФД: 1.0 [09:47:46]line ЗНМ: 0300000078 [09:47:46]line РНМ: 0000000000092546 [09:47:46]line Версия ККМ: 001 [09:47:46]line Талоны: ТК ГПНА Online [09:47:46]line 30148458 [09:47:46]line ФМ: 0000000000871800 [09:47:46]line ФД: 49402 [09:47:46]line ФПД: 230357369325300 [09:47:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T094750&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49402&fm=230357369325300&tin=02508201610067®Number=0000000000092546&sum=0 [09:47:47]OFD Sender: Processing packet 49402 [packets to send 21, broken 20] [09:47:47]ProducePacketName [09:47:47]name=ofd_packets/00049402 [09:47:47]OFD Sender: To server: pG, [09:47:47]CommunicateWithHost lk.salyk.kg:30040 [09:47:47]ConnectInit lk.salyk.kg [09:47:47]written 0, free lines is 4095 [09:47:47]Write to MH i2c: 01 00 00 AF 38 E7 [09:47:47]Write i2c OK [09:47:47]MH_I2C_Read... [09:47:47]Read from MH i2c: 01 [09:47:47]MH_I2C_Read... [09:47:47]Read from MH i2c: 01 07 00 [09:47:47]MH_I2C_Read... [09:47:47]Read from MH i2c: 01 07 00 AF 38 00 00 00 00 00 D6 0C D0 [09:47:47]RasterBufferAndPrint [09:47:47]line [09:47:47]line [09:47:47]line [09:47:47]line [09:47:47]line [09:47:47]written 0, free lines is 3292 [09:47:47]MH_Cut [09:47:47]Write to MH i2c: D1 01 00 B6 38 01 C0 [09:47:47]Write i2c OK [09:47:47]MH_I2C_Read... [09:47:47]Read from MH i2c: D1 [09:47:47]MH_I2C_Read... [09:47:47]Read from MH i2c: D1 01 00 [09:47:47]MH_I2C_Read... [09:47:47]Read from MH i2c: D1 01 00 B6 38 00 BF [09:47:47]Write to MH i2c: 01 00 00 B7 38 EF [09:47:47]Write i2c OK [09:47:47]MH_I2C_Read... [09:47:48]Connected sock=10 [09:47:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 33 E1 04 01 16 39 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 46 20 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FA C0 00 00 35 04 06 00 D1 82 41 2B 86 F4 0B C0 B7 FC 36 96 83 2D [09:47:48]*** Cut start [09:47:48]*** Purtial cut [09:47:48]*** CUTSNS_PIN = 0 [09:47:48]*** Stage 1: CUTSNS_PIN = 1 [09:47:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 86 AD 47 00 B7 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FA C0 00 00 F4 03 04 00 86 CB BE 66 B6 04 01 00 00 4F 10 43 4F 25 16 10 82 [09:47:49]CommunicateWithHost err = 0 [09:47:49]CheckOFDResponse [09:47:49]1017 (14) - 77093643461234 [09:47:49]1041 (16) - 0000000000871800 [09:47:49]1040 (4) - 49402 [09:47:49]1012 (4) - 16.08.2024 03:46 [09:47:49]1206 (1) - 0 [09:47:49]OFD Sender: Remove packet 49402 [09:47:49]ProducePacketName [09:47:49]name=ofd_packets/00049402 [09:47:49]NVStorageDeleteData [09:47:49]OFD Sender: No OFD packet to send [09:47:50]Read from MH i2c: 01 [09:47:50]MH_I2C_Read... [09:47:50]*** Stop cut motor [09:47:50]*** Cut end [09:47:50]Read from MH i2c: 01 07 00 [09:47:50]MH_I2C_Read... [09:47:50]Read from MH i2c: 01 07 00 B7 38 00 00 00 00 00 FF 0F 04 [09:47:50]process_action close_receipt done [09:47:50]requested_data is exist [09:47:50]produce_requested_data [09:47:50]requested_item fm.sn is exist - process it [09:47:50]wFMCommunicate request_size=4 [09:47:50]MH_SAM_APDU [09:47:50]CAPDU: 80 11 00 00 [09:47:50]Write to MH i2c: E2 08 00 B8 38 80 11 00 00 00 00 00 00 6A [09:47:50]Write i2c OK [09:47:50]MH_I2C_Read... [09:47:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:50]Read from MH i2c: E2 [09:47:50]MH_I2C_Read... [09:47:50]Read from MH i2c: E2 17 00 [09:47:50]MH_I2C_Read... [09:47:50]Read from MH i2c: E2 17 00 B8 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B5 [09:47:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:47:50]wFMCommunicate OK [09:47:50]requested_item fd.num is exist - process it [09:47:50]SAM_PROTO_GetFieldsCounters [09:47:50]wFMCommunicate request_size=4 [09:47:50]MH_SAM_APDU [09:47:50]CAPDU: 80 13 00 00 [09:47:50]Write to MH i2c: E2 08 00 B9 38 80 13 00 00 00 00 00 00 6D [09:47:50]Write i2c OK [09:47:50]MH_I2C_Read... [09:47:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:50]Read from MH i2c: E2 [09:47:50]MH_I2C_Read... [09:47:50]Read from MH i2c: E2 62 00 [09:47:50]MH_I2C_Read... [09:47:50]Read from MH i2c: E2 62 00 B9 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FA C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 A8 [09:47:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FA C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:50]wFMCommunicate OK [09:47:50]SAM_PROTO_GetFieldsCounters done [09:47:50]requested_item shift.num is exist - process it [09:47:50]requested_item shift.opened is exist - process it [09:47:50]req_shift_opened [09:47:50]FM_GetShiftState [09:47:50]SAM_PROTO_GetShiftState [09:47:50]wFMCommunicate request_size=4 [09:47:50]MH_SAM_APDU [09:47:50]CAPDU: 80 13 01 00 [09:47:50]Write to MH i2c: E2 08 00 BA 38 80 13 01 00 00 00 00 00 6F [09:47:50]Write i2c OK [09:47:50]MH_I2C_Read... [09:47:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:50]Read from MH i2c: E2 [09:47:50]MH_I2C_Read... [09:47:50]Read from MH i2c: E2 0E 00 [09:47:50]MH_I2C_Read... [09:47:50]Read from MH i2c: E2 0E 00 BA 38 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 E5 [09:47:50]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:47:50]wFMCommunicate OK [09:47:50]SAM_PROTO_GetShiftState done [09:47:50]FM_GetShiftState done [09:47:50]req_shift_opened done [09:47:50]requested_item shift.open_date is exist - process it [09:47:50]req_shift_open_date [09:47:50]req_shift_open_date done [09:47:50]produce_requested_data done [09:47:50]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49402,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [09:47:50]process_action_free close_receipt [09:47:50]json_value_free [09:47:50]json_value_free done [09:47:50]process_json_proto returns [09:47:50]Send response to host [09:47:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49402,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [09:47:50]free response buf [09:47:50]execute_script done [09:47:50]execute_script returns [09:47:50]free content buf [09:47:50]Sock 7.Close socket [09:47:50]Sock 7.Thread stoped [09:47:54]OFD Sender: No OFD packet to send [09:47:59]OFD Sender: No OFD packet to send [09:48:01]recv_with_timeout no data received [09:48:04]OFD Sender: No OFD packet to send [09:48:09]OFD Sender: No OFD packet to send [09:48:12]recv_with_timeout no data received [09:48:14]OFD Sender: No OFD packet to send [09:48:19]OFD Sender: No OFD packet to send [09:48:24]OFD Sender: No OFD packet to send [09:48:29]OFD Sender: No OFD packet to send [09:48:34]OFD Sender: No OFD packet to send [09:48:39]OFD Sender: No OFD packet to send [09:48:44]OFD Sender: No OFD packet to send [09:48:49]OFD Sender: No OFD packet to send [09:48:54]OFD Sender: No OFD packet to send [09:48:59]OFD Sender: No OFD packet to send [09:49:04]OFD Sender: No OFD packet to send [09:49:09]OFD Sender: No OFD packet to send [09:49:14]OFD Sender: No OFD packet to send [09:49:19]OFD Sender: No OFD packet to send [09:49:24]OFD Sender: No OFD packet to send [09:49:29]OFD Sender: No OFD packet to send [09:49:34]OFD Sender: No OFD packet to send [09:49:39]OFD Sender: No OFD packet to send [09:49:44]OFD Sender: No OFD packet to send [09:49:49]OFD Sender: No OFD packet to send [09:49:54]OFD Sender: No OFD packet to send [09:49:58]int [09:49:58]Write to MH i2c: 01 00 00 BB 38 F3 [09:49:58]*** FLAG_PRN_PAP1 set [09:49:58]Write i2c OK [09:49:58]MH_I2C_Read... [09:49:58]Read from MH i2c: 01 [09:49:58]MH_I2C_Read... [09:49:58]Read from MH i2c: 01 07 00 [09:49:58]MH_I2C_Read... [09:49:58]Read from MH i2c: 01 07 00 BB 38 00 01 00 00 00 FF 0F 09 [09:49:58]state=0 [09:49:58]No paper [09:49:58]int [09:49:58]Write to MH i2c: 01 00 00 BC 38 F4 [09:49:58]*** FLAG_PRN_PAP2 set [09:49:58]Write i2c OK [09:49:58]MH_I2C_Read... [09:49:58]Read from MH i2c: 01 [09:49:58]MH_I2C_Read... [09:49:58]Read from MH i2c: 01 07 00 [09:49:58]MH_I2C_Read... [09:49:58]Read from MH i2c: 01 07 00 BC 38 00 03 00 00 00 FF 0F 0C [09:49:58]state=0 [09:49:58]No paper [09:49:58]Cover opened [09:49:59]OFD Sender: No OFD packet to send [09:50:03]Write to MH i2c: 01 00 00 BD 38 F5 [09:50:03]Write i2c OK [09:50:03]MH_I2C_Read... [09:50:03]Read from MH i2c: 01 [09:50:03]MH_I2C_Read... [09:50:03]Read from MH i2c: 01 07 00 [09:50:03]MH_I2C_Read... [09:50:03]Read from MH i2c: 01 07 00 BD 38 00 03 00 00 00 FF 0F 0D [09:50:03]state=3 [09:50:03]No paper [09:50:03]Cover opened [09:50:04]OFD Sender: No OFD packet to send [09:50:08]Write to MH i2c: 01 00 00 BE 38 F6 [09:50:08]Write i2c OK [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: 01 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: 01 07 00 [09:50:08]MH_I2C_Read... [09:50:08]Read from MH i2c: 01 07 00 BE 38 00 03 00 00 00 FF 0F 0E [09:50:08]state=3 [09:50:08]No paper [09:50:08]Cover opened [09:50:09]OFD Sender: No OFD packet to send [09:50:13]Write to MH i2c: 01 00 00 BF 38 F7 [09:50:13]Write i2c OK [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: 01 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: 01 07 00 [09:50:13]MH_I2C_Read... [09:50:13]Read from MH i2c: 01 07 00 BF 38 00 03 00 00 00 FF 0F 0F [09:50:13]state=3 [09:50:13]No paper [09:50:13]Cover opened [09:50:14]OFD Sender: No OFD packet to send [09:50:18]int [09:50:18]Write to MH i2c: 01 00 00 C0 38 F8 [09:50:18]Write i2c OK [09:50:18]MH_I2C_Read... [09:50:18]Read from MH i2c: 01 [09:50:18]MH_I2C_Read... [09:50:18]Read from MH i2c: 01 07 00 [09:50:18]MH_I2C_Read... [09:50:18]*** FLAG_PRN_PAP2 reset [09:50:18]*** FLAG_PRN_PAP1 reset [09:50:18]Read from MH i2c: 01 07 00 C0 38 00 00 00 00 00 FF 0F 0D [09:50:18]state=3 [09:50:18]Cover closed [09:50:19]int [09:50:19]Write to MH i2c: 01 00 00 C1 38 F9 [09:50:19]*** FLAG_PRN_PAP1 set [09:50:19]Write i2c OK [09:50:19]MH_I2C_Read... [09:50:19]Read from MH i2c: 01 [09:50:19]MH_I2C_Read... [09:50:19]Read from MH i2c: 01 07 00 [09:50:19]MH_I2C_Read... [09:50:19]Read from MH i2c: 01 07 00 C1 38 00 01 00 00 00 FF 0F 0F [09:50:19]state=0 [09:50:19]No paper [09:50:19]int [09:50:19]Write to MH i2c: 01 00 00 C2 38 FA [09:50:19]*** FLAG_PRN_PAP2 set [09:50:19]Write i2c OK [09:50:19]MH_I2C_Read... [09:50:19]Read from MH i2c: 01 [09:50:19]MH_I2C_Read... [09:50:19]Read from MH i2c: 01 07 00 [09:50:19]MH_I2C_Read... [09:50:19]Read from MH i2c: 01 07 00 C2 38 00 03 00 00 00 FF 0F 12 [09:50:19]state=0 [09:50:19]No paper [09:50:19]Cover opened [09:50:19]OFD Sender: No OFD packet to send [09:50:20]int [09:50:20]Write to MH i2c: 01 00 00 C3 38 FB [09:50:20]*** FLAG_PRN_PAP1 reset [09:50:20]*** FLAG_PRN_PAP2 reset [09:50:20]Write i2c OK [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: 01 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: 01 07 00 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: 01 07 00 C3 38 00 00 00 00 00 FF 0F 10 [09:50:20]state=3 [09:50:20]Cover closed [09:50:20]int [09:50:20]Write to MH i2c: 01 00 00 C4 38 FC [09:50:20]*** FLAG_PRN_KEY set [09:50:20]Write i2c OK [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: 01 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: 01 07 00 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: 01 07 00 C4 38 00 08 00 00 00 FF 0F 19 [09:50:20]state=0 [09:50:20]Key pressed [09:50:20]Feed [09:50:20]Write to MH i2c: D8 00 00 C5 38 D4 [09:50:20]Write i2c OK [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: D8 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: D8 01 00 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: D8 01 00 C5 38 00 D5 [09:50:20]int [09:50:20]Write to MH i2c: 01 00 00 C6 38 FE [09:50:20]Write i2c OK [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: 01 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: 01 07 00 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: 01 07 00 C6 38 00 48 00 00 00 3C 00 89 [09:50:20]state=2 [09:50:20]Key pressed [09:50:20]int [09:50:20]Write to MH i2c: 01 00 00 C7 38 FF [09:50:20]*** FLAG_PRN_KEY reset [09:50:20]Write i2c OK [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: 01 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: 01 07 00 [09:50:20]MH_I2C_Read... [09:50:20]Read from MH i2c: 01 07 00 C7 38 00 00 00 00 00 FF 0F 14 [09:50:20]state=2 [09:50:20]Stop feed [09:50:24]OFD Sender: No OFD packet to send [09:50:29]OFD Sender: No OFD packet to send [09:50:34]OFD Sender: No OFD packet to send [09:50:39]OFD Sender: No OFD packet to send [09:50:44]OFD Sender: No OFD packet to send [09:50:49]OFD Sender: No OFD packet to send [09:50:54]OFD Sender: No OFD packet to send [09:50:59]OFD Sender: No OFD packet to send [09:51:00]accept exits with 9 [09:51:00]New connection [09:51:00]New thread 3066973540 created [09:51:00]Thread 3066830180 joined [09:51:00]Waiting for new connection... [09:51:00] Sock 9.Parse request [09:51:00]Sock 9.Check first char [09:51:00]Sock 9.First char is OK [09:51:00]request: POST /json_proto HTTP/1.0 [09:51:00]Method: POST [09:51:00]URL: /json_proto [09:51:00]Method is POST - this is cgi request [09:51:00]url: /json_proto [09:51:00]query_string will be loaded in cgi processing [09:51:00]execute_cgi json_proto POST (null) [09:51:00]execute_cgi path=json_proto method=POST [09:51:00]POST find Content-Length [09:51:00]Host: 172.17.46.196:8080 [09:51:00]Content-Length: 756 [09:51:00]Content-Type: application/json [09:51:00] [09:51:00]POST finish read [09:51:00]Found Content-Length = 756 [09:51:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 15.500, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30121166", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:00]execute_script... [09:51: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)11325225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 15.500, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30121166", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:00]POST & json_proto [09:51:00]process_json_proto [09:51:00]json parsed OK: [09:51:00]protocol is kg_v1.0 [09:51:00]action value=close_receipt [09:51:00]process_action close_receipt [09:51:00]cmd_close_receipt [09:51:00]MH_GetDate [09:51:00]Write to MH i2c: F0 00 00 C8 38 EF [09:51:00]Write i2c OK [09:51:00]MH_I2C_Read... [09:51:00]Read from MH i2c: F0 [09:51:00]MH_I2C_Read... [09:51:00]Read from MH i2c: F0 09 00 [09:51:00]MH_I2C_Read... [09:51:00]Read from MH i2c: F0 09 00 C8 38 00 09 21 BF 66 07 E8 5D 66 F9 [09:51:00]GetLastDocTimeStamp 1723801670 [09:51:00]current date 1723801865 [09:51:00]FM_GetShiftState [09:51:00]SAM_PROTO_GetShiftState [09:51:00]wFMCommunicate request_size=4 [09:51:00]MH_SAM_APDU [09:51:00]CAPDU: 80 13 01 00 [09:51:00]Write to MH i2c: E2 08 00 C9 38 80 13 01 00 00 00 00 00 7E [09:51:00]Write i2c OK [09:51:00]MH_I2C_Read... [09:51:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:00]Read from MH i2c: E2 [09:51:00]MH_I2C_Read... [09:51:00]Read from MH i2c: E2 0E 00 [09:51:00]MH_I2C_Read... [09:51:00]Read from MH i2c: E2 0E 00 C9 38 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 F4 [09:51:00]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:51:00]wFMCommunicate OK [09:51:00]SAM_PROTO_GetShiftState done [09:51:00]FM_GetShiftState done [09:51:00]opened in 1723766958 [09:51:00]opened+sec_in_day 1723853358 [09:51:00]quantity*price = 0 [09:51:00]sum+1 = 1 [09:51:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 51 16.08.2024 09:51 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30121166 ФМ: 0000000000871800 ФД: 49403 ФПД: 122430816351590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T095105&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49403&fm=122430816351590&tin=02508201610067®Number=0000000000092546&sum=0 [09:51:01]StoreToDocumentArchive [09:51:01]shift 464 fd 49403 [09:51:01]save to /storage/0464/doc_00049403 [09:51:01]save last doc name /storage/0464/doc_00049403 to /storage/kkm_last_doc_name [09:51:01]save OK [09:51:01]Clear old archive folders... [09:51:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:51:01]tlvbuf is 00E41550 [09:51:01]SAM_PROTO_ClearQueue [09:51:01]wFMCommunicate request_size=4 [09:51:01]MH_SAM_APDU [09:51:01]CAPDU: 80 09 00 00 [09:51:01]Write to MH i2c: E2 08 00 D6 38 80 09 00 00 00 00 00 00 80 [09:51:01]Write i2c OK [09:51:01]MH_I2C_Read... [09:51:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:01]Read from MH i2c: E2 [09:51:01]MH_I2C_Read... [09:51:01]Read from MH i2c: E2 03 00 [09:51:01]MH_I2C_Read... [09:51:01]Read from MH i2c: E2 03 00 D6 38 00 90 00 82 [09:51:01]RAPDU: 90 00 [09:51:01]wFMCommunicate OK [09:51:01]SAM_PROTO_ClearQueue done [09:51:01]KKMCreateOFDPacket [09:51:01]OFDProtocolAddRootSTLVToBuf [09:51:01]FM_MakeSignedData [09:51:01]FM_MakeSignedData [09:51:01]SAM_PROTO_SignData [09:51:01]wFMCommunicate request_size=4 [09:51:01]MH_SAM_APDU [09:51:01]CAPDU: 80 0D 01 02 [09:51:01]Write to MH i2c: E2 08 00 D7 38 80 0D 01 02 00 00 00 00 88 [09:51:01]Write i2c OK [09:51:01]MH_I2C_Read... [09:51:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:01]Read from MH i2c: E2 [09:51:01]MH_I2C_Read... [09:51:01]Read from MH i2c: E2 03 00 [09:51:01]MH_I2C_Read... [09:51:01]Read from MH i2c: E2 03 00 D7 38 00 90 00 83 [09:51:01]RAPDU: 90 00 [09:51:01]wFMCommunicate OK [09:51:01]wFMCommunicate request_size=255 [09:51:01]MH_SAM_APDU [09:51:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 8C 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 09 21 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FB C0 00 00 35 04 06 00 6F [09:51:01]Write to MH i2c: E2 02 01 D8 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 34 FF 03 08 00 03 8C 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 09 21 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FB C0 00 00 35 04 06 00 6F 00 00 CF [09:51:01]Write i2c OK [09:51:01]MH_I2C_Read... [09:51:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:01]Read from MH i2c: E2 [09:51:01]MH_I2C_Read... [09:51:01]Read from MH i2c: E2 03 00 [09:51:01]MH_I2C_Read... [09:51:01]Read from MH i2c: E2 03 00 D8 38 00 90 00 84 [09:51:01]RAPDU: 90 00 [09:51:01]wFMCommunicate OK [09:51:01]wFMCommunicate request_size=10 [09:51:01]MH_SAM_APDU [09:51:01]CAPDU: 80 0D 02 02 05 59 A5 51 75 66 [09:51:01]Write to MH i2c: E2 0D 00 D9 38 80 0D 02 02 05 00 59 A5 51 75 66 00 00 BF [09:51:01]Write i2c OK [09:51:01]MH_I2C_Read... [09:51:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:01]Read from MH i2c: E2 [09:51:01]MH_I2C_Read... [09:51:01]Read from MH i2c: E2 03 00 [09:51:01]MH_I2C_Read... [09:51:01]Read from MH i2c: E2 03 00 D9 38 00 90 00 85 [09:51:01]RAPDU: 90 00 [09:51:01]wFMCommunicate OK [09:51:01]wFMCommunicate request_size=4 [09:51:01]MH_SAM_APDU [09:51:01]CAPDU: 80 0D 03 02 [09:51:01]Write to MH i2c: E2 08 00 DA 38 80 0D 03 02 00 00 00 00 8D [09:51:01]Write i2c OK [09:51:01]MH_I2C_Read... [09:51:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:01]Read from MH i2c: E2 [09:51:01]MH_I2C_Read... [09:51:01]Read from MH i2c: E2 0B 00 [09:51:01]MH_I2C_Read... [09:51:01]Read from MH i2c: E2 0B 00 DA 38 00 7E 34 79 39 50 2B 69 5D 90 00 33 [09:51:01]RAPDU: 7E 34 79 39 50 2B 69 5D 90 00 [09:51:01]wFMCommunicate OK [09:51:01]SAM_PROTO_SignData done [09:51:01]FM_MakeSignedData done [09:51:01]CreateOFDProtocolMessage [09:51:01]wFMCommunicate request_size=4 [09:51:01]MH_SAM_APDU [09:51:01]CAPDU: 80 11 00 00 [09:51:01]Write to MH i2c: E2 08 00 DB 38 80 11 00 00 00 00 00 00 8D [09:51:01]Write i2c OK [09:51:01]MH_I2C_Read... [09:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:01]Read from MH i2c: E2 [09:51:01]MH_I2C_Read... [09:51:01]Read from MH i2c: E2 17 00 [09:51:01]MH_I2C_Read... [09:51:01]Read from MH i2c: E2 17 00 DB 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D8 [09:51:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:51:02]wFMCommunicate OK [09:51:02]CreateOFDProtocolMessage done [09:51:02]OFDSenderStorePacket 49403 [09:51:02]StoreOFDPacket docnum=49403 [09:51:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 EB 00 07 01 C6 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 34 FF 03 08 00 03 8C 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 09 21 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FB C0 00 00 35 04 06 00 6F 59 A5 51 75 66 7E 34 79 39 50 2B 69 5D [09:51:02]CheckFolder [09:51:02]dirname=/storage/ofd_packets [09:51:02]CheckFolder done [09:51:02]ProducePacketName [09:51:02]name=ofd_packets/00049403 [09:51:02]NVStorageSaveData ofd_packets/00049403 [09:51:02]File name is /storage/ofd_packets/00049403 [09:51:02]Write 301 bytes [09:51:02]NVStorageSaveData done [09:51:02]OFDSenderStorePacket done [09:51:02]KKMCreateOFDPacket done [09:51:02]NVStorageSaveData kkm_last_timestamp [09:51:02]File name is /storage/kkm_last_timestamp [09:51:02]Write 4 bytes [09:51:02]NVStorageSaveData done [09:51:02]ExternCall_PrintAddStr [09:51:02]wPrintStart [09:51:02]Write to MH i2c: 01 00 00 DC 38 14 [09:51:02]Write i2c OK [09:51:02]MH_I2C_Read... [09:51:02]Read from MH i2c: 01 [09:51:02]MH_I2C_Read... [09:51:02]Read from MH i2c: 01 07 00 [09:51:02]MH_I2C_Read... [09:51:02]Read from MH i2c: 01 07 00 DC 38 00 00 00 00 00 FF 0F 29 [09:51:02]RasterBufferAndPrint [09:51:02]line Счет N : (1)11325225 [09:51:02]line ИНН: 02508201610067 [09:51:02]line Контрольно-Кассовый Чек [09:51:02]line ПРОДАЖА [09:51:02]line ТРК (МРК, ГНК) : 42 [09:51:02]line Товар: 2710124130 [09:51:02]line Аи-92-К-4 [09:51:02]line 15.500 * 0.00 [09:51:02]line = 0.00 [09:51:02]line НДС 12% НСП 1% [09:51:02]line > о реализуемом товаре [09:51:02]line ИТОГО: 0.00 [09:51:02]line НСП 1% : 0.00 [09:51:02]line НДС 12% : 0.00 [09:51:02]line Наличными: 0.00 [09:51:02]line Безнал.: 0.00 [09:51:02]line Место: АЗС № 95 "Партнер Нефть" [09:51:02]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:51:02]line СНО: Общий режим [09:51:02]line Чек 51 16.08.2024 09:51 [09:51:02]line Смена: 464 ФФД: 1.0 [09:51:02]line ЗНМ: 0300000078 [09:51:02]line РНМ: 0000000000092546 [09:51:02]line Версия ККМ: 001 [09:51:02]line Талоны: ТК ГПНА Online [09:51:02]line 30121166 [09:51:02]line ФМ: 0000000000871800 [09:51:02]line ФД: 49403 [09:51:02]line ФПД: 122430816351590 [09:51:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T095105&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49403&fm=122430816351590&tin=02508201610067®Number=0000000000092546&sum=0 [09:51:02]written 0, free lines is 4095 [09:51:02]OFD Sender: Processing packet 49403 [packets to send 21, broken 20] [09:51:02]ProducePacketName [09:51:02]name=ofd_packets/00049403 [09:51:02]OFD Sender: To server: pG, [09:51:02]CommunicateWithHost lk.salyk.kg:30040 [09:51:02]ConnectInit lk.salyk.kg [09:51:02]Connected sock=10 [09:51:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 EB 00 07 01 C6 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 34 FF 03 08 00 03 8C 3C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 09 21 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FB C0 00 00 35 04 06 00 6F 59 A5 51 75 66 7E 34 79 39 50 2B 69 5D [09:51:02]Write to MH i2c: 01 00 00 06 39 3F [09:51:02]Write i2c OK [09:51:02]MH_I2C_Read... [09:51:02]Read from MH i2c: 01 [09:51:02]MH_I2C_Read... [09:51:02]Read from MH i2c: 01 07 00 [09:51:02]MH_I2C_Read... [09:51:02]Read from MH i2c: 01 07 00 06 39 00 00 00 00 00 E7 0C 39 [09:51:02]RasterBufferAndPrint [09:51:02]line [09:51:02]line [09:51:02]line [09:51:02]line [09:51:02]line [09:51:02]written 0, free lines is 3311 [09:51:02]MH_Cut [09:51:02]Write to MH i2c: D1 01 00 0D 39 01 18 [09:51:02]Write i2c OK [09:51:02]MH_I2C_Read... [09:51:02]Read from MH i2c: D1 [09:51:02]MH_I2C_Read... [09:51:02]Read from MH i2c: D1 01 00 [09:51:02]MH_I2C_Read... [09:51:02]Read from MH i2c: D1 01 00 0D 39 00 17 [09:51:02]Write to MH i2c: 01 00 00 0E 39 47 [09:51:02]Write i2c OK [09:51:02]MH_I2C_Read... [09:51:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 DD 56 47 00 D4 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 38 37 31 38 30 30 10 04 04 00 FB C0 00 00 F4 03 04 00 48 CC BE 66 B6 04 01 00 00 2B F3 D6 2E BF 28 31 2B [09:51:02]CommunicateWithHost err = 0 [09:51:02]CheckOFDResponse [09:51:02]1017 (14) - 77093643461234 [09:51:02]1041 (16) - 0000000000871800 [09:51:02]1040 (4) - 49403 [09:51:02]1012 (4) - 16.08.2024 03:49 [09:51:02]1206 (1) - 0 [09:51:02]OFD Sender: Remove packet 49403 [09:51:02]ProducePacketName [09:51:02]name=ofd_packets/00049403 [09:51:02]NVStorageDeleteData [09:51:03]OFD Sender: No OFD packet to send [09:51:03]*** Cut start [09:51:03]*** Purtial cut [09:51:03]*** Stage 1: CUTSNS_PIN = 1 [09:51:03]Read from MH i2c: 01 [09:51:03]MH_I2C_Read... [09:51:03]*** Stop cut motor [09:51:03]*** Cut end [09:51:03]Read from MH i2c: 01 07 00 [09:51:03]MH_I2C_Read... [09:51:03]Read from MH i2c: 01 07 00 0E 39 00 00 00 00 00 FF 0F 5C [09:51:03]process_action close_receipt done [09:51:03]requested_data is exist [09:51:03]produce_requested_data [09:51:03]requested_item fm.sn is exist - process it [09:51:03]wFMCommunicate request_size=4 [09:51:03]MH_SAM_APDU [09:51:03]CAPDU: 80 11 00 00 [09:51:03]Write to MH i2c: E2 08 00 0F 39 80 11 00 00 00 00 00 00 C2 [09:51:03]Write i2c OK [09:51:03]MH_I2C_Read... [09:51:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:03]Read from MH i2c: E2 [09:51:03]MH_I2C_Read... [09:51:03]Read from MH i2c: E2 17 00 [09:51:03]MH_I2C_Read... [09:51:03]Read from MH i2c: E2 17 00 0F 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 0D [09:51:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:51:03]wFMCommunicate OK [09:51:03]requested_item fd.num is exist - process it [09:51:03]SAM_PROTO_GetFieldsCounters [09:51:03]wFMCommunicate request_size=4 [09:51:03]MH_SAM_APDU [09:51:03]CAPDU: 80 13 00 00 [09:51:03]Write to MH i2c: E2 08 00 10 39 80 13 00 00 00 00 00 00 C5 [09:51:03]Write i2c OK [09:51:03]MH_I2C_Read... [09:51:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:03]Read from MH i2c: E2 [09:51:03]MH_I2C_Read... [09:51:03]Read from MH i2c: E2 62 00 [09:51:03]MH_I2C_Read... [09:51:03]Read from MH i2c: E2 62 00 10 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FB C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [09:51:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FB C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:03]wFMCommunicate OK [09:51:03]SAM_PROTO_GetFieldsCounters done [09:51:03]requested_item shift.num is exist - process it [09:51:03]requested_item shift.opened is exist - process it [09:51:03]req_shift_opened [09:51:03]FM_GetShiftState [09:51:03]SAM_PROTO_GetShiftState [09:51:03]wFMCommunicate request_size=4 [09:51:03]MH_SAM_APDU [09:51:03]CAPDU: 80 13 01 00 [09:51:03]Write to MH i2c: E2 08 00 11 39 80 13 01 00 00 00 00 00 C7 [09:51:03]Write i2c OK [09:51:03]MH_I2C_Read... [09:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:03]Read from MH i2c: E2 [09:51:03]MH_I2C_Read... [09:51:03]Read from MH i2c: E2 0E 00 [09:51:03]MH_I2C_Read... [09:51:03]Read from MH i2c: E2 0E 00 11 39 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 3D [09:51:03]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:51:03]wFMCommunicate OK [09:51:03]SAM_PROTO_GetShiftState done [09:51:03]FM_GetShiftState done [09:51:03]req_shift_opened done [09:51:03]requested_item shift.open_date is exist - process it [09:51:03]req_shift_open_date [09:51:03]req_shift_open_date done [09:51:03]produce_requested_data done [09:51:03]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49403,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [09:51:03]process_action_free close_receipt [09:51:03]json_value_free [09:51:03]json_value_free done [09:51:03]process_json_proto returns [09:51:03]Send response to host [09:51:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49403,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [09:51:03]free response buf [09:51:03]execute_script done [09:51:03]execute_script returns [09:51:03]free content buf [09:51:03]Sock 9.Close socket [09:51:03]Sock 9.Thread stoped [09:51:08]OFD Sender: No OFD packet to send [09:51:13]OFD Sender: No OFD packet to send [09:51:18]OFD Sender: No OFD packet to send [09:51:23]OFD Sender: No OFD packet to send [09:51:28]OFD Sender: No OFD packet to send [09:51:33]OFD Sender: No OFD packet to send [09:51:38]OFD Sender: No OFD packet to send [09:51:43]OFD Sender: No OFD packet to send [09:51:48]OFD Sender: No OFD packet to send [09:51:53]OFD Sender: No OFD packet to send [09:51:54]accept exits with 7 [09:51:54]New connection [09:51:54]New thread 3066830180 created [09:51:54]Thread 3066973540 joined [09:51:54]Waiting for new connection... [09:51:54] Sock 7.Parse request [09:51:54]Sock 7.Check first char [09:51:54]Sock 7.First char is OK [09:51:54]request: POST /json_proto HTTP/1.0 [09:51:54]Method: POST [09:51:54]URL: /json_proto [09:51:54]Method is POST - this is cgi request [09:51:54]url: /json_proto [09:51:54]query_string will be loaded in cgi processing [09:51:54]execute_cgi json_proto POST (null) [09:51:54]execute_cgi path=json_proto method=POST [09:51:54]POST find Content-Length [09:51:54]Host: 172.17.46.196:8080 [09:51:54]Content-Length: 753 [09:51:54]Content-Type: application/json [09:51:54] [09:51:54]POST finish read [09:51:54]Found Content-Length = 753 [09:51:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104840", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:54]execute_script... [09:51: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)11325226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104840", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:54]POST & json_proto [09:51:54]process_json_proto [09:51:54]json parsed OK: [09:51:54]protocol is kg_v1.0 [09:51:54]action value=close_receipt [09:51:54]process_action close_receipt [09:51:54]cmd_close_receipt [09:51:54]MH_GetDate [09:51:54]Write to MH i2c: F0 00 00 12 39 3A [09:51:54]Write i2c OK [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: F0 [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: F0 09 00 [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: F0 09 00 12 39 00 3F 21 BF 66 07 E8 5D 66 7A [09:51:54]GetLastDocTimeStamp 1723801865 [09:51:54]current date 1723801919 [09:51:54]FM_GetShiftState [09:51:54]SAM_PROTO_GetShiftState [09:51:54]wFMCommunicate request_size=4 [09:51:54]MH_SAM_APDU [09:51:54]CAPDU: 80 13 01 00 [09:51:54]Write to MH i2c: E2 08 00 13 39 80 13 01 00 00 00 00 00 C9 [09:51:54]Write i2c OK [09:51:54]MH_I2C_Read... [09:51:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:54]Read from MH i2c: E2 [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: E2 0E 00 [09:51:54]MH_I2C_Read... [09:51:54]Read from MH i2c: E2 0E 00 13 39 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 3F [09:51:54]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:51:54]wFMCommunicate OK [09:51:54]SAM_PROTO_GetShiftState done [09:51:54]FM_GetShiftState done [09:51:54]opened in 1723766958 [09:51:54]opened+sec_in_day 1723853358 [09:51:54]quantity*price = 0 [09:51:54]sum+1 = 1 [09:51:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 52 16.08.2024 09:51 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30104840 ФМ: 0000000000871800 ФД: 49404 ФПД: 163267845007673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T095159&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49404&fm=163267845007673&tin=02508201610067®Number=0000000000092546&sum=0 [09:51:56]StoreToDocumentArchive [09:51:56]shift 464 fd 49404 [09:51:56]save to /storage/0464/doc_00049404 [09:51:56]save last doc name /storage/0464/doc_00049404 to /storage/kkm_last_doc_name [09:51:56]save OK [09:51:56]Clear old archive folders... [09:51:56]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:51:56]tlvbuf is B6DAD3F0 [09:51:56]SAM_PROTO_ClearQueue [09:51:56]wFMCommunicate request_size=4 [09:51:56]MH_SAM_APDU [09:51:56]CAPDU: 80 09 00 00 [09:51:56]Write to MH i2c: E2 08 00 20 39 80 09 00 00 00 00 00 00 CB [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 03 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 03 00 20 39 00 90 00 CD [09:51:56]RAPDU: 90 00 [09:51:56]wFMCommunicate OK [09:51:56]SAM_PROTO_ClearQueue done [09:51:56]KKMCreateOFDPacket [09:51:56]OFDProtocolAddRootSTLVToBuf [09:51:56]FM_MakeSignedData [09:51:56]FM_MakeSignedData [09:51:56]SAM_PROTO_SignData [09:51:56]wFMCommunicate request_size=4 [09:51:56]MH_SAM_APDU [09:51:56]CAPDU: 80 0D 01 02 [09:51:56]Write to MH i2c: E2 08 00 21 39 80 0D 01 02 00 00 00 00 D3 [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 03 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 03 00 21 39 00 90 00 CE [09:51:56]RAPDU: 90 00 [09:51:56]wFMCommunicate OK [09:51:56]wFMCommunicate request_size=255 [09:51:56]MH_SAM_APDU [09:51:56]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 3F 21 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FC C0 00 00 35 04 06 00 94 7D C1 E7 [09:51:56]Write to MH i2c: E2 02 01 22 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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 3F 21 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FC C0 00 00 35 04 06 00 94 7D C1 E7 00 00 FA [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 03 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 03 00 22 39 00 90 00 CF [09:51:56]RAPDU: 90 00 [09:51:56]wFMCommunicate OK [09:51:56]wFMCommunicate request_size=7 [09:51:56]MH_SAM_APDU [09:51:56]CAPDU: 80 0D 02 02 02 A9 39 [09:51:56]Write to MH i2c: E2 0A 00 23 39 80 0D 02 02 02 00 A9 39 00 00 BC [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 03 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 03 00 23 39 00 90 00 D0 [09:51:56]RAPDU: 90 00 [09:51:56]wFMCommunicate OK [09:51:56]wFMCommunicate request_size=4 [09:51:56]MH_SAM_APDU [09:51:56]CAPDU: 80 0D 03 02 [09:51:56]Write to MH i2c: E2 08 00 24 39 80 0D 03 02 00 00 00 00 D8 [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 0B 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 0B 00 24 39 00 12 0C 9B 93 F6 8C 17 E5 90 00 A3 [09:51:56]RAPDU: 12 0C 9B 93 F6 8C 17 E5 90 00 [09:51:56]wFMCommunicate OK [09:51:56]SAM_PROTO_SignData done [09:51:56]FM_MakeSignedData done [09:51:56]CreateOFDProtocolMessage [09:51:56]wFMCommunicate request_size=4 [09:51:56]MH_SAM_APDU [09:51:56]CAPDU: 80 11 00 00 [09:51:56]Write to MH i2c: E2 08 00 25 39 80 11 00 00 00 00 00 00 D8 [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:56]Read from MH i2c: E2 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 17 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: E2 17 00 25 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 23 [09:51:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:51:56]wFMCommunicate OK [09:51:56]CreateOFDProtocolMessage done [09:51:56]OFDSenderStorePacket 49404 [09:51:56]StoreOFDPacket docnum=49404 [09:51:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 ED BD 04 01 D5 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 3F 21 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FC C0 00 00 35 04 06 00 94 7D C1 E7 A9 39 12 0C 9B 93 F6 8C 17 E5 [09:51:56]CheckFolder [09:51:56]dirname=/storage/ofd_packets [09:51:56]CheckFolder done [09:51:56]ProducePacketName [09:51:56]name=ofd_packets/00049404 [09:51:56]NVStorageSaveData ofd_packets/00049404 [09:51:56]File name is /storage/ofd_packets/00049404 [09:51:56]Write 298 bytes [09:51:56]NVStorageSaveData done [09:51:56]OFDSenderStorePacket done [09:51:56]KKMCreateOFDPacket done [09:51:56]NVStorageSaveData kkm_last_timestamp [09:51:56]File name is /storage/kkm_last_timestamp [09:51:56]Write 4 bytes [09:51:56]NVStorageSaveData done [09:51:56]ExternCall_PrintAddStr [09:51:56]wPrintStart [09:51:56]Write to MH i2c: 01 00 00 26 39 5F [09:51:56]Write i2c OK [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: 01 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: 01 07 00 [09:51:56]MH_I2C_Read... [09:51:56]Read from MH i2c: 01 07 00 26 39 00 00 00 00 00 FF 0F 74 [09:51:56]RasterBufferAndPrint [09:51:56]line Счет N : (1)11325226 [09:51:56]line ИНН: 02508201610067 [09:51:56]line Контрольно-Кассовый Чек [09:51:56]line ПРОДАЖА [09:51:56]line ТРК (МРК, ГНК) : 51 [09:51:56]line Товар: 2710194210 [09:51:56]line ДТ-К-5 [09:51:56]line 15.000 * 0.00 [09:51:56]line = 0.00 [09:51:56]line НДС 12% НСП 1% [09:51:56]line > о реализуемом товаре [09:51:56]line ИТОГО: 0.00 [09:51:56]line НСП 1% : 0.00 [09:51:56]line НДС 12% : 0.00 [09:51:56]line Наличными: 0.00 [09:51:56]line Безнал.: 0.00 [09:51:56]line Место: АЗС № 95 "Партнер Нефть" [09:51:56]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:51:56]line СНО: Общий режим [09:51:56]line Чек 52 16.08.2024 09:51 [09:51:56]line Смена: 464 ФФД: 1.0 [09:51:56]line ЗНМ: 0300000078 [09:51:56]line РНМ: 0000000000092546 [09:51:56]line Версия ККМ: 001 [09:51:56]line Талоны: ТК ГПНА Online [09:51:56]line 30104840 [09:51:56]line ФМ: 0000000000871800 [09:51:56]line ФД: 49404 [09:51:56]line ФПД: 163267845007673 [09:51:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T095159&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49404&fm=163267845007673&tin=02508201610067®Number=0000000000092546&sum=0 [09:51:56]OFD Sender: Processing packet 49404 [packets to send 21, broken 20] [09:51:56]ProducePacketName [09:51:56]name=ofd_packets/00049404 [09:51:56]OFD Sender: To server: pG, [09:51:56]CommunicateWithHost lk.salyk.kg:30040 [09:51:56]ConnectInit lk.salyk.kg [09:51:56]written 0, free lines is 4095 [09:51:57]Connected sock=10 [09:51:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 ED BD 04 01 D5 08 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 3F 21 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FC C0 00 00 35 04 06 00 94 7D C1 E7 A9 39 12 0C 9B 93 F6 8C 17 E5 [09:51:57]Write to MH i2c: 01 00 00 50 39 89 [09:51:57]Write i2c OK [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: 01 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: 01 07 00 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: 01 07 00 50 39 00 00 00 00 00 E0 0C 7C [09:51:57]RasterBufferAndPrint [09:51:57]line [09:51:57]line [09:51:57]line [09:51:57]line [09:51:57]line [09:51:57]written 0, free lines is 3302 [09:51:57]MH_Cut [09:51:57]Write to MH i2c: D1 01 00 57 39 01 62 [09:51:57]Write i2c OK [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: D1 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: D1 01 00 [09:51:57]MH_I2C_Read... [09:51:57]Read from MH i2c: D1 01 00 57 39 00 61 [09:51:57]Write to MH i2c: 01 00 00 58 39 91 [09:51:57]Write i2c OK [09:51:57]MH_I2C_Read... [09:51:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 3A 09 47 00 76 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 38 37 31 38 30 30 10 04 04 00 FC C0 00 00 F4 03 04 00 7E CC BE 66 B6 04 01 00 00 38 44 8B FD F1 48 62 5B [09:51:57]CommunicateWithHost err = 0 [09:51:57]CheckOFDResponse [09:51:57]1017 (14) - 77093643461234 [09:51:57]1041 (16) - 0000000000871800 [09:51:57]1040 (4) - 49404 [09:51:57]1012 (4) - 16.08.2024 03:50 [09:51:57]1206 (1) - 0 [09:51:57]OFD Sender: Remove packet 49404 [09:51:57]ProducePacketName [09:51:57]name=ofd_packets/00049404 [09:51:57]NVStorageDeleteData [09:51:57]OFD Sender: No OFD packet to send [09:51:58]*** Cut start [09:51:58]*** Purtial cut [09:51:58]*** CUTSNS_PIN = 0 [09:51:58]*** Stage 1: CUTSNS_PIN = 1 [09:52:00]Read from MH i2c: 01 [09:52:00]MH_I2C_Read... [09:52:00]*** Stop cut motor [09:52:00]*** Cut end [09:52:00]Read from MH i2c: 01 07 00 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: 01 07 00 58 39 00 00 00 00 00 FF 0F A6 [09:52:00]process_action close_receipt done [09:52:00]requested_data is exist [09:52:00]produce_requested_data [09:52:00]requested_item fm.sn is exist - process it [09:52:00]wFMCommunicate request_size=4 [09:52:00]MH_SAM_APDU [09:52:00]CAPDU: 80 11 00 00 [09:52:00]Write to MH i2c: E2 08 00 59 39 80 11 00 00 00 00 00 00 0C [09:52:00]Write i2c OK [09:52:00]MH_I2C_Read... [09:52:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:52:00]Read from MH i2c: E2 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: E2 17 00 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: E2 17 00 59 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 57 [09:52:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:52:00]wFMCommunicate OK [09:52:00]requested_item fd.num is exist - process it [09:52:00]SAM_PROTO_GetFieldsCounters [09:52:00]wFMCommunicate request_size=4 [09:52:00]MH_SAM_APDU [09:52:00]CAPDU: 80 13 00 00 [09:52:00]Write to MH i2c: E2 08 00 5A 39 80 13 00 00 00 00 00 00 0F [09:52:00]Write i2c OK [09:52:00]MH_I2C_Read... [09:52:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:52:00]Read from MH i2c: E2 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: E2 62 00 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: E2 62 00 5A 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FC C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [09:52:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FC C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:52:00]wFMCommunicate OK [09:52:00]SAM_PROTO_GetFieldsCounters done [09:52:00]requested_item shift.num is exist - process it [09:52:00]requested_item shift.opened is exist - process it [09:52:00]req_shift_opened [09:52:00]FM_GetShiftState [09:52:00]SAM_PROTO_GetShiftState [09:52:00]wFMCommunicate request_size=4 [09:52:00]MH_SAM_APDU [09:52:00]CAPDU: 80 13 01 00 [09:52:00]Write to MH i2c: E2 08 00 5B 39 80 13 01 00 00 00 00 00 11 [09:52:00]Write i2c OK [09:52:00]MH_I2C_Read... [09:52:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:52:00]Read from MH i2c: E2 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: E2 0E 00 [09:52:00]MH_I2C_Read... [09:52:00]Read from MH i2c: E2 0E 00 5B 39 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 87 [09:52:00]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:52:00]wFMCommunicate OK [09:52:00]SAM_PROTO_GetShiftState done [09:52:00]FM_GetShiftState done [09:52:00]req_shift_opened done [09:52:00]requested_item shift.open_date is exist - process it [09:52:00]req_shift_open_date [09:52:00]req_shift_open_date done [09:52:00]produce_requested_data done [09:52:00]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49404,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [09:52:00]process_action_free close_receipt [09:52:00]json_value_free [09:52:00]json_value_free done [09:52:00]process_json_proto returns [09:52:00]Send response to host [09:52:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49404,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [09:52:00]free response buf [09:52:00]execute_script done [09:52:00]execute_script returns [09:52:00]free content buf [09:52:00]Sock 7.Close socket [09:52:00]Sock 7.Thread stoped [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:01]accept exits with 9 [09:53:01]New connection [09:53:01]New thread 3066973540 created [09:53:01]Thread 3066830180 joined [09:53:01]Waiting for new connection... [09:53:01] Sock 9.Parse request [09:53:01]Sock 9.Check first char [09:53:01]Sock 9.First char is OK [09:53:01]request: POST /json_proto HTTP/1.0 [09:53:01]Method: POST [09:53:01]URL: /json_proto [09:53:01]Method is POST - this is cgi request [09:53:01]url: /json_proto [09:53:01]query_string will be loaded in cgi processing [09:53:01]execute_cgi json_proto POST (null) [09:53:01]execute_cgi path=json_proto method=POST [09:53:01]POST find Content-Length [09:53:01]Host: 172.17.46.196:8080 [09:53:01]Content-Length: 645 [09:53:01]Content-Type: application/json [09:53:01] [09:53:01]POST finish read [09:53:01]Found Content-Length = 645 [09:53:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189635", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:01]execute_script... [09:53: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 : (3)189635", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:01]POST & json_proto [09:53:01]process_json_proto [09:53:01]json parsed OK: [09:53:01]protocol is kg_v1.0 [09:53:01]action value=close_receipt [09:53:01]process_action close_receipt [09:53:01]cmd_close_receipt [09:53:01]MH_GetDate [09:53:01]Write to MH i2c: F0 00 00 5C 39 84 [09:53:01]Write i2c OK [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: F0 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: F0 09 00 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: F0 09 00 5C 39 00 82 21 BF 66 07 E8 5D 66 07 [09:53:01]GetLastDocTimeStamp 1723801919 [09:53:01]current date 1723801986 [09:53:01]FM_GetShiftState [09:53:01]SAM_PROTO_GetShiftState [09:53:01]wFMCommunicate request_size=4 [09:53:01]MH_SAM_APDU [09:53:01]CAPDU: 80 13 01 00 [09:53:01]Write to MH i2c: E2 08 00 5D 39 80 13 01 00 00 00 00 00 13 [09:53:01]Write i2c OK [09:53:01]MH_I2C_Read... [09:53:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:01]Read from MH i2c: E2 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: E2 0E 00 [09:53:01]MH_I2C_Read... [09:53:01]Read from MH i2c: E2 0E 00 5D 39 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 89 [09:53:01]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:53:01]wFMCommunicate OK [09:53:01]SAM_PROTO_GetShiftState done [09:53:01]FM_GetShiftState done [09:53:01]opened in 1723766958 [09:53:01]opened+sec_in_day 1723853358 [09:53:01]quantity*price = 6000 [09:53:01]sum+1 = 6001 [09:53:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 53 16.08.2024 09:53 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49405 ФПД: 135284841874035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T095306&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49405&fm=135284841874035&tin=02508201610067®Number=0000000000092546&sum=6000 0 [09:53:02]StoreToDocumentArchive [09:53:02]shift 464 fd 49405 [09:53:02]save to /storage/0464/doc_00049405 [09:53:02]save last doc name /storage/0464/doc_00049405 to /storage/kkm_last_doc_name [09:53:02]save OK [09:53:02]Clear old archive folders... [09:53:02]ProcessDocumentItem done err = 0, tmpTLVsize=276 [09:53:02]tlvbuf is B6F5DCD0 [09:53:02]SAM_PROTO_ClearQueue [09:53:02]wFMCommunicate request_size=4 [09:53:02]MH_SAM_APDU [09:53:02]CAPDU: 80 09 00 00 [09:53:02]Write to MH i2c: E2 08 00 6A 39 80 09 00 00 00 00 00 00 15 [09:53:02]Write i2c OK [09:53:02]MH_I2C_Read... [09:53:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:02]Read from MH i2c: E2 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: E2 03 00 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: E2 03 00 6A 39 00 90 00 17 [09:53:02]RAPDU: 90 00 [09:53:02]wFMCommunicate OK [09:53:02]SAM_PROTO_ClearQueue done [09:53:02]KKMCreateOFDPacket [09:53:02]OFDProtocolAddRootSTLVToBuf [09:53:02]FM_MakeSignedData [09:53:02]FM_MakeSignedData [09:53:02]SAM_PROTO_SignData [09:53:02]wFMCommunicate request_size=4 [09:53:02]MH_SAM_APDU [09:53:02]CAPDU: 80 0D 01 02 [09:53:02]Write to MH i2c: E2 08 00 6B 39 80 0D 01 02 00 00 00 00 1D [09:53:02]Write i2c OK [09:53:02]MH_I2C_Read... [09:53:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:02]Read from MH i2c: E2 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: E2 03 00 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: E2 03 00 6B 39 00 90 00 18 [09:53:02]RAPDU: 90 00 [09:53:02]wFMCommunicate OK [09:53:02]wFMCommunicate request_size=255 [09:53:02]MH_SAM_APDU [09:53:02]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 82 21 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 [09:53:02]Write to MH i2c: E2 02 01 6C 39 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 82 21 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 00 00 27 [09:53:02]Write i2c OK [09:53:02]MH_I2C_Read... [09:53:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:02]Read from MH i2c: E2 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: E2 03 00 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: E2 03 00 6C 39 00 90 00 19 [09:53:02]RAPDU: 90 00 [09:53:02]wFMCommunicate OK [09:53:02]wFMCommunicate request_size=35 [09:53:02]MH_SAM_APDU [09:53:02]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FD C0 00 00 35 04 06 00 7B 0A 74 F1 82 73 [09:53:02]Write to MH i2c: E2 26 00 6D 39 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FD C0 00 00 35 04 06 00 7B 0A 74 F1 82 73 00 00 A7 [09:53:02]Write i2c OK [09:53:02]MH_I2C_Read... [09:53:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:02]Read from MH i2c: E2 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: E2 03 00 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: E2 03 00 6D 39 00 90 00 1A [09:53:02]RAPDU: 90 00 [09:53:02]wFMCommunicate OK [09:53:02]wFMCommunicate request_size=4 [09:53:02]MH_SAM_APDU [09:53:02]CAPDU: 80 0D 03 02 [09:53:02]Write to MH i2c: E2 08 00 6E 39 80 0D 03 02 00 00 00 00 22 [09:53:02]Write i2c OK [09:53:02]MH_I2C_Read... [09:53:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:02]Read from MH i2c: E2 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: E2 0B 00 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: E2 0B 00 6E 39 00 EB 26 0C 12 9D 09 9F D4 90 00 6B [09:53:02]RAPDU: EB 26 0C 12 9D 09 9F D4 90 00 [09:53:02]wFMCommunicate OK [09:53:02]SAM_PROTO_SignData done [09:53:02]FM_MakeSignedData done [09:53:02]CreateOFDProtocolMessage [09:53:02]wFMCommunicate request_size=4 [09:53:02]MH_SAM_APDU [09:53:02]CAPDU: 80 11 00 00 [09:53:02]Write to MH i2c: E2 08 00 6F 39 80 11 00 00 00 00 00 00 22 [09:53:02]Write i2c OK [09:53:02]MH_I2C_Read... [09:53:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:02]Read from MH i2c: E2 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: E2 17 00 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: E2 17 00 6F 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6D [09:53:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:53:02]wFMCommunicate OK [09:53:02]CreateOFDProtocolMessage done [09:53:02]OFDSenderStorePacket 49405 [09:53:02]StoreOFDPacket docnum=49405 [09:53:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 89 D6 20 01 B4 60 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 82 21 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FD C0 00 00 35 04 06 00 7B 0A 74 F1 82 73 EB 26 0C 12 9D 09 9F D4 [09:53:02]CheckFolder [09:53:02]dirname=/storage/ofd_packets [09:53:02]CheckFolder done [09:53:02]ProducePacketName [09:53:02]name=ofd_packets/00049405 [09:53:02]NVStorageSaveData ofd_packets/00049405 [09:53:02]File name is /storage/ofd_packets/00049405 [09:53:02]Write 326 bytes [09:53:02]NVStorageSaveData done [09:53:02]OFDSenderStorePacket done [09:53:02]KKMCreateOFDPacket done [09:53:02]NVStorageSaveData kkm_last_timestamp [09:53:02]File name is /storage/kkm_last_timestamp [09:53:02]Write 4 bytes [09:53:02]NVStorageSaveData done [09:53:02]ExternCall_PrintAddStr [09:53:02]wPrintStart [09:53:02]Write to MH i2c: 01 00 00 70 39 A9 [09:53:02]Write i2c OK [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: 01 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: 01 07 00 [09:53:02]MH_I2C_Read... [09:53:02]Read from MH i2c: 01 07 00 70 39 00 00 00 00 00 FF 0F BE [09:53:02]RasterBufferAndPrint [09:53:02]line Счет N : (3)189635 [09:53:02]line ИНН: 02508201610067 [09:53:02]line Контрольно-Кассовый Чек [09:53:02]line ПРОДАЖА [09:53:02]line Товар: 4700000310043 [09:53:02]line Вода Жалалабат 27 1л [09:53:02]line 1.000 * 60.00 [09:53:02]line = 60.00 [09:53:02]line НДС 12% НСП 1% [09:53:02]line > о реализуемом товаре [09:53:02]line ИТОГО: 60.00 [09:53:02]line НСП 1% : 0.53 [09:53:02]line НДС 12% : 6.37 [09:53:02]line Наличными: 60.00 [09:53:02]line Безнал.: 0.00 [09:53:02]line Место: АЗС № 95 "Партнер Нефть" [09:53:02]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:53:02]line СНО: Общий режим [09:53:02]line Чек 53 16.08.2024 09:53 [09:53:02]line Смена: 464 ФФД: 1.0 [09:53:02]line ЗНМ: 0300000078 [09:53:02]line РНМ: 0000000000092546 [09:53:02]line Версия ККМ: 001 [09:53:02]line ФМ: 0000000000871800 [09:53:02]line ФД: 49405 [09:53:02]line ФПД: 135284841874035 [09:53:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T095306&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49405&fm=135284841874035&tin=02508201610067®Number=0000000000092546&sum=6000 [09:53:03]OFD Sender: Processing packet 49405 [packets to send 21, broken 20] [09:53:03]ProducePacketName [09:53:03]name=ofd_packets/00049405 [09:53:03]OFD Sender: To server: pG, [09:53:03]CommunicateWithHost lk.salyk.kg:30040 [09:53:03]ConnectInit lk.salyk.kg [09:53:03]line 0 [09:53:03]written 0, free lines is 4095 [09:53:03]Connected sock=10 [09:53:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 89 D6 20 01 B4 60 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 82 21 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FD C0 00 00 35 04 06 00 7B 0A 74 F1 82 73 EB 26 0C 12 9D 09 9F D4 [09:53:03]Write to MH i2c: 01 00 00 98 39 D1 [09:53:03]Write i2c OK [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: 01 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: 01 07 00 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: 01 07 00 98 39 00 00 00 00 00 F7 0C DB [09:53:03]RasterBufferAndPrint [09:53:03]line [09:53:03]line [09:53:03]line [09:53:03]line [09:53:03]line [09:53:03]written 0, free lines is 3326 [09:53:03]MH_Cut [09:53:03]Write to MH i2c: D1 01 00 9F 39 01 AA [09:53:03]Write i2c OK [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: D1 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: D1 01 00 [09:53:03]MH_I2C_Read... [09:53:03]Read from MH i2c: D1 01 00 9F 39 00 A9 [09:53:03]Write to MH i2c: 01 00 00 A0 39 D9 [09:53:03]Write i2c OK [09:53:03]MH_I2C_Read... [09:53:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 02 DF 47 00 0C 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 38 37 31 38 30 30 10 04 04 00 FD C0 00 00 F4 03 04 00 C1 CC BE 66 B6 04 01 00 00 4C D7 BA 88 BB 16 5A 1C [09:53:03]CommunicateWithHost err = 0 [09:53:03]CheckOFDResponse [09:53:03]1017 (14) - 77093643461234 [09:53:03]1041 (16) - 0000000000871800 [09:53:03]1040 (4) - 49405 [09:53:03]1012 (4) - 16.08.2024 03:51 [09:53:03]1206 (1) - 0 [09:53:03]OFD Sender: Remove packet 49405 [09:53:03]ProducePacketName [09:53:03]name=ofd_packets/00049405 [09:53:03]NVStorageDeleteData [09:53:04]OFD Sender: No OFD packet to send [09:53:04]*** Cut start [09:53:04]*** Purtial cut [09:53:04]*** Stage 1: CUTSNS_PIN = 1 [09:53:04]Read from MH i2c: 01 [09:53:04]MH_I2C_Read... [09:53:04]*** Stop cut motor [09:53:04]*** Cut end [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 A0 39 00 00 00 00 00 FF 0F EE [09:53:04]process_action close_receipt done [09:53:04]requested_data is exist [09:53:04]produce_requested_data [09:53:04]requested_item fm.sn is exist - process it [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 A1 39 80 11 00 00 00 00 00 00 54 [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 A1 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9F [09:53:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:53:04]wFMCommunicate OK [09:53:04]requested_item fd.num is exist - process it [09:53:04]SAM_PROTO_GetFieldsCounters [09:53:04]wFMCommunicate request_size=4 [09:53:04]MH_SAM_APDU [09:53:04]CAPDU: 80 13 00 00 [09:53:04]Write to MH i2c: E2 08 00 A2 39 80 13 00 00 00 00 00 00 57 [09:53:04]Write i2c OK [09:53:04]MH_I2C_Read... [09:53:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:53:04]Read from MH i2c: E2 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: E2 62 00 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: E2 62 00 A2 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FD C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 9E [09:53:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FD C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:53:04]wFMCommunicate OK [09:53:04]SAM_PROTO_GetFieldsCounters done [09:53:04]requested_item shift.num is exist - process it [09:53:04]requested_item shift.opened is exist - process it [09:53:04]req_shift_opened [09:53:04]FM_GetShiftState [09:53:04]SAM_PROTO_GetShiftState [09:53:04]wFMCommunicate request_size=4 [09:53:04]MH_SAM_APDU [09:53:04]CAPDU: 80 13 01 00 [09:53:04]Write to MH i2c: E2 08 00 A3 39 80 13 01 00 00 00 00 00 59 [09:53:04]Write i2c OK [09:53:04]MH_I2C_Read... [09:53:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:04]Read from MH i2c: E2 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: E2 0E 00 [09:53:04]MH_I2C_Read... [09:53:04]Read from MH i2c: E2 0E 00 A3 39 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 CF [09:53:04]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:53:04]wFMCommunicate OK [09:53:04]SAM_PROTO_GetShiftState done [09:53:04]FM_GetShiftState done [09:53:04]req_shift_opened done [09:53:04]requested_item shift.open_date is exist - process it [09:53:04]req_shift_open_date [09:53:04]req_shift_open_date done [09:53:04]produce_requested_data done [09:53:04]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49405,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [09:53:04]process_action_free close_receipt [09:53:04]json_value_free [09:53:04]json_value_free done [09:53:04]process_json_proto returns [09:53:04]Send response to host [09:53:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49405,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [09:53:04]free response buf [09:53:04]execute_script done [09:53:04]execute_script returns [09:53:04]free content buf [09:53:04]Sock 9.Close socket [09:53:04]Sock 9.Thread stoped [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:34]OFD Sender: No OFD packet to send [09:53:39]OFD Sender: No OFD packet to send [09:53:44]OFD Sender: No OFD packet to send [09:53:49]OFD Sender: No OFD packet to send [09:53:54]OFD Sender: No OFD packet to send [09:53:59]OFD Sender: No OFD packet to send [09:54:04]OFD Sender: No OFD packet to send [09:54:09]OFD Sender: No OFD packet to send [09:54:14]OFD Sender: No OFD packet to send [09:54:19]OFD Sender: No OFD packet to send [09:54:24]OFD Sender: No OFD packet to send [09:54:29]OFD Sender: No OFD packet to send [09:54:34]OFD Sender: No OFD packet to send [09:54:39]OFD Sender: No OFD packet to send [09:54:44]OFD Sender: No OFD packet to send [09:54:49]OFD Sender: No OFD packet to send [09:54:54]OFD Sender: No OFD packet to send [09:54:59]OFD Sender: No OFD packet to send [09:55:04]OFD Sender: No OFD packet to send [09:55:09]OFD Sender: No OFD packet to send [09:55:14]OFD Sender: No OFD packet to send [09:55:19]OFD Sender: No OFD packet to send [09:55:24]OFD Sender: No OFD packet to send [09:55:29]OFD Sender: No OFD packet to send [09:55:34]OFD Sender: No OFD packet to send [09:55:39]OFD Sender: No OFD packet to send [09:55:44]OFD Sender: No OFD packet to send [09:55:49]OFD Sender: No OFD packet to send [09:55:54]OFD Sender: No OFD packet to send [09:55:59]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:33]accept exits with 7 [09:59:33]New connection [09:59:33]New thread 3066830180 created [09:59:33]Thread 3066973540 joined [09:59:33]Waiting for new connection... [09:59:33] Sock 7.Parse request [09:59:33]Sock 7.Check first char [09:59:33]Sock 7.First char is OK [09:59:33]request: POST /json_proto HTTP/1.0 [09:59:33]Method: POST [09:59:33]URL: /json_proto [09:59:33]Method is POST - this is cgi request [09:59:33]url: /json_proto [09:59:33]query_string will be loaded in cgi processing [09:59:33]execute_cgi json_proto POST (null) [09:59:33]execute_cgi path=json_proto method=POST [09:59:33]POST find Content-Length [09:59:33]Host: 172.17.46.196:8080 [09:59:33]Content-Length: 621 [09:59:33]Content-Type: application/json [09:59:33] [09:59:33]POST finish read [09:59:33]Found Content-Length = 621 [09:59:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189636", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:33]execute_script... [09:59: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 : (3)189636", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:33]POST & json_proto [09:59:33]process_json_proto [09:59:33]json parsed OK: [09:59:33]protocol is kg_v1.0 [09:59:33]action value=close_receipt [09:59:33]process_action close_receipt [09:59:33]cmd_close_receipt [09:59:33]MH_GetDate [09:59:33]Write to MH i2c: F0 00 00 A4 39 CC [09:59:33]Write i2c OK [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: F0 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: F0 09 00 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: F0 09 00 A4 39 00 0A 23 BF 66 07 E8 5D 66 D9 [09:59:33]GetLastDocTimeStamp 1723801986 [09:59:33]current date 1723802378 [09:59:33]FM_GetShiftState [09:59:33]SAM_PROTO_GetShiftState [09:59:33]wFMCommunicate request_size=4 [09:59:33]MH_SAM_APDU [09:59:33]CAPDU: 80 13 01 00 [09:59:33]Write to MH i2c: E2 08 00 A5 39 80 13 01 00 00 00 00 00 5B [09:59:33]Write i2c OK [09:59:33]MH_I2C_Read... [09:59:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:33]Read from MH i2c: E2 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: E2 0E 00 [09:59:33]MH_I2C_Read... [09:59:33]Read from MH i2c: E2 0E 00 A5 39 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 D1 [09:59:33]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:59:33]wFMCommunicate OK [09:59:33]SAM_PROTO_GetShiftState done [09:59:33]FM_GetShiftState done [09:59:33]opened in 1723766958 [09:59:33]opened+sec_in_day 1723853358 [09:59:33]quantity*price = 14000 [09:59:33]sum+1 = 14001 [09:59:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 54 16.08.2024 09:59 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49406 ФПД: 130880533471955 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T095938&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49406&fm=130880533471955&tin=02508201610067®Number=0000000000092546&sum=14000 0 [09:59:34]StoreToDocumentArchive [09:59:34]shift 464 fd 49406 [09:59:34]save to /storage/0464/doc_00049406 [09:59:34]save last doc name /storage/0464/doc_00049406 to /storage/kkm_last_doc_name [09:59:34]save OK [09:59:34]Clear old archive folders... [09:59:34]ProcessDocumentItem done err = 0, tmpTLVsize=273 [09:59:34]tlvbuf is 00E05BB0 [09:59:34]SAM_PROTO_ClearQueue [09:59:34]wFMCommunicate request_size=4 [09:59:34]MH_SAM_APDU [09:59:34]CAPDU: 80 09 00 00 [09:59:34]Write to MH i2c: E2 08 00 B2 39 80 09 00 00 00 00 00 00 5D [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 [09:59:34]MH_I2C_Read... [09:59:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:34]Read from MH i2c: E2 03 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 03 00 B2 39 00 90 00 5F [09:59:34]RAPDU: 90 00 [09:59:34]wFMCommunicate OK [09:59:34]SAM_PROTO_ClearQueue done [09:59:34]KKMCreateOFDPacket [09:59:34]OFDProtocolAddRootSTLVToBuf [09:59:34]FM_MakeSignedData [09:59:34]FM_MakeSignedData [09:59:34]SAM_PROTO_SignData [09:59:34]wFMCommunicate request_size=4 [09:59:34]MH_SAM_APDU [09:59:34]CAPDU: 80 0D 01 02 [09:59:34]Write to MH i2c: E2 08 00 B3 39 80 0D 01 02 00 00 00 00 65 [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]OFD Sender: No OFD packet to send [09:59:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:34]Read from MH i2c: E2 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 03 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 03 00 B3 39 00 90 00 60 [09:59:34]RAPDU: 90 00 [09:59:34]wFMCommunicate OK [09:59:34]wFMCommunicate request_size=255 [09:59:34]MH_SAM_APDU [09:59:34]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 0A 23 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [09:59:34]Write to MH i2c: E2 02 01 B4 39 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 0A 23 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 A0 [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:34]Read from MH i2c: E2 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 03 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 03 00 B4 39 00 90 00 61 [09:59:34]RAPDU: 90 00 [09:59:34]wFMCommunicate OK [09:59:34]wFMCommunicate request_size=32 [09:59:34]MH_SAM_APDU [09:59:34]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 FE C0 00 00 35 04 06 00 77 08 FF B4 A2 D3 [09:59:34]Write to MH i2c: E2 23 00 B5 39 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 FE C0 00 00 35 04 06 00 77 08 FF B4 A2 D3 00 00 22 [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:34]Read from MH i2c: E2 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 03 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 03 00 B5 39 00 90 00 62 [09:59:34]RAPDU: 90 00 [09:59:34]wFMCommunicate OK [09:59:34]wFMCommunicate request_size=4 [09:59:34]MH_SAM_APDU [09:59:34]CAPDU: 80 0D 03 02 [09:59:34]Write to MH i2c: E2 08 00 B6 39 80 0D 03 02 00 00 00 00 6A [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:34]Read from MH i2c: E2 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 0B 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 0B 00 B6 39 00 81 0B AC 75 56 34 D9 81 90 00 FC [09:59:34]RAPDU: 81 0B AC 75 56 34 D9 81 90 00 [09:59:34]wFMCommunicate OK [09:59:34]SAM_PROTO_SignData done [09:59:34]FM_MakeSignedData done [09:59:34]CreateOFDProtocolMessage [09:59:34]wFMCommunicate request_size=4 [09:59:34]MH_SAM_APDU [09:59:34]CAPDU: 80 11 00 00 [09:59:34]Write to MH i2c: E2 08 00 B7 39 80 11 00 00 00 00 00 00 6A [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:34]Read from MH i2c: E2 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 17 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: E2 17 00 B7 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B5 [09:59:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:59:34]wFMCommunicate OK [09:59:34]CreateOFDProtocolMessage done [09:59:34]OFDSenderStorePacket 49406 [09:59:34]StoreOFDPacket docnum=49406 [09:59:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 05 8A 1D 01 6C 91 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 0A 23 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FE C0 00 00 35 04 06 00 77 08 FF B4 A2 D3 81 0B AC 75 56 34 D9 81 [09:59:34]CheckFolder [09:59:34]dirname=/storage/ofd_packets [09:59:34]CheckFolder done [09:59:34]ProducePacketName [09:59:34]name=ofd_packets/00049406 [09:59:34]NVStorageSaveData ofd_packets/00049406 [09:59:34]File name is /storage/ofd_packets/00049406 [09:59:34]Write 323 bytes [09:59:34]NVStorageSaveData done [09:59:34]OFDSenderStorePacket done [09:59:34]KKMCreateOFDPacket done [09:59:34]NVStorageSaveData kkm_last_timestamp [09:59:34]File name is /storage/kkm_last_timestamp [09:59:34]Write 4 bytes [09:59:34]NVStorageSaveData done [09:59:34]ExternCall_PrintAddStr [09:59:34]wPrintStart [09:59:34]Write to MH i2c: 01 00 00 B8 39 F1 [09:59:34]Write i2c OK [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: 01 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: 01 07 00 [09:59:34]MH_I2C_Read... [09:59:34]Read from MH i2c: 01 07 00 B8 39 00 00 00 00 00 FF 0F 06 [09:59:34]RasterBufferAndPrint [09:59:34]line Счет N : (3)189636 [09:59:34]line ИНН: 02508201610067 [09:59:34]line Контрольно-Кассовый Чек [09:59:34]line ПРОДАЖА [09:59:34]line Товар: 48747059 [09:59:34]line Сигареты Winston Legend Blue [09:59:34]line 1.000 * 140.00 [09:59:34]line = 140.00 [09:59:34]line НДС 12% НСП 1% [09:59:34]line > о реализуемом товаре [09:59:34]line ИТОГО: 140.00 [09:59:34]line НСП 1% : 1.24 [09:59:34]line НДС 12% : 14.87 [09:59:34]line Наличными: 140.00 [09:59:34]line Безнал.: 0.00 [09:59:34]line Место: АЗС № 95 "Партнер Нефть" [09:59:34]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [09:59:34]line СНО: Общий режим [09:59:34]line Чек 54 16.08.2024 09:59 [09:59:34]line Смена: 464 ФФД: 1.0 [09:59:34]line ЗНМ: 0300000078 [09:59:34]line РНМ: 0000000000092546 [09:59:34]line Версия ККМ: 001 [09:59:34]line ФМ: 0000000000871800 [09:59:34]line ФД: 49406 [09:59:34]line ФПД: 130880533471955 [09:59:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T095938&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49406&fm=130880533471955&tin=02508201610067®Number=0000000000092546&sum=14000 [09:59:35]line 0 [09:59:35]OFD Sender: Processing packet 49406 [packets to send 21, broken 20] [09:59:35]ProducePacketName [09:59:35]name=ofd_packets/00049406 [09:59:35]OFD Sender: To server: pG, [09:59:35]CommunicateWithHost lk.salyk.kg:30040 [09:59:35]ConnectInit lk.salyk.kg [09:59:35]written 0, free lines is 4095 [09:59:35]Connected sock=10 [09:59:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 05 8A 1D 01 6C 91 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 0A 23 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FE C0 00 00 35 04 06 00 77 08 FF B4 A2 D3 81 0B AC 75 56 34 D9 81 [09:59:35]Write to MH i2c: 01 00 00 E1 39 1A [09:59:35]Write i2c OK [09:59:35]MH_I2C_Read... [09:59:35]Read from MH i2c: 01 [09:59:35]MH_I2C_Read... [09:59:35]Read from MH i2c: 01 07 00 [09:59:35]MH_I2C_Read... [09:59:35]Read from MH i2c: 01 07 00 E1 39 00 00 00 00 00 D1 0C FE [09:59:35]RasterBufferAndPrint [09:59:35]line [09:59:35]line [09:59:35]line [09:59:35]line [09:59:35]line [09:59:35]written 0, free lines is 3287 [09:59:35]MH_Cut [09:59:35]Write to MH i2c: D1 01 00 E8 39 01 F3 [09:59:35]Write i2c OK [09:59:35]MH_I2C_Read... [09:59:35]Read from MH i2c: D1 [09:59:35]MH_I2C_Read... [09:59:35]Read from MH i2c: D1 01 00 [09:59:35]MH_I2C_Read... [09:59:35]Read from MH i2c: D1 01 00 E8 39 00 F2 [09:59:35]Write to MH i2c: 01 00 00 E9 39 22 [09:59:35]Write i2c OK [09:59:35]MH_I2C_Read... [09:59:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 66 99 47 00 65 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FE C0 00 00 F4 03 04 00 49 CE BE 66 B6 04 01 00 00 BF A3 83 92 FE DA AC 15 [09:59:35]CommunicateWithHost err = 0 [09:59:35]CheckOFDResponse [09:59:35]1017 (14) - 77093643461234 [09:59:35]1041 (16) - 0000000000871800 [09:59:35]1040 (4) - 49406 [09:59:35]1012 (4) - 16.08.2024 03:58 [09:59:35]1206 (1) - 0 [09:59:35]OFD Sender: Remove packet 49406 [09:59:35]ProducePacketName [09:59:35]name=ofd_packets/00049406 [09:59:35]NVStorageDeleteData [09:59:36]OFD Sender: No OFD packet to send [09:59:36]*** Cut start [09:59:36]*** Purtial cut [09:59:36]*** CUTSNS_PIN = 0 [09:59:36]*** Stage 1: CUTSNS_PIN = 1 [09:59:38]Read from MH i2c: 01 [09:59:38]MH_I2C_Read... [09:59:38]*** Stop cut motor [09:59:38]*** Cut end [09:59:38]Read from MH i2c: 01 07 00 [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: 01 07 00 E9 39 00 00 00 00 00 FF 0F 37 [09:59:38]process_action close_receipt done [09:59:38]requested_data is exist [09:59:38]produce_requested_data [09:59:38]requested_item fm.sn is exist - process it [09:59:38]wFMCommunicate request_size=4 [09:59:38]MH_SAM_APDU [09:59:38]CAPDU: 80 11 00 00 [09:59:38]Write to MH i2c: E2 08 00 EA 39 80 11 00 00 00 00 00 00 9D [09:59:38]Write i2c OK [09:59:38]MH_I2C_Read... [09:59:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:38]Read from MH i2c: E2 [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: E2 17 00 [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: E2 17 00 EA 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E8 [09:59:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [09:59:38]wFMCommunicate OK [09:59:38]requested_item fd.num is exist - process it [09:59:38]SAM_PROTO_GetFieldsCounters [09:59:38]wFMCommunicate request_size=4 [09:59:38]MH_SAM_APDU [09:59:38]CAPDU: 80 13 00 00 [09:59:38]Write to MH i2c: E2 08 00 EB 39 80 13 00 00 00 00 00 00 A0 [09:59:38]Write i2c OK [09:59:38]MH_I2C_Read... [09:59:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:59:38]Read from MH i2c: E2 [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: E2 62 00 [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: E2 62 00 EB 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FE C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [09:59:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FE C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:59:38]wFMCommunicate OK [09:59:38]SAM_PROTO_GetFieldsCounters done [09:59:38]requested_item shift.num is exist - process it [09:59:38]requested_item shift.opened is exist - process it [09:59:38]req_shift_opened [09:59:38]FM_GetShiftState [09:59:38]SAM_PROTO_GetShiftState [09:59:38]wFMCommunicate request_size=4 [09:59:38]MH_SAM_APDU [09:59:38]CAPDU: 80 13 01 00 [09:59:38]Write to MH i2c: E2 08 00 EC 39 80 13 01 00 00 00 00 00 A2 [09:59:38]Write i2c OK [09:59:38]MH_I2C_Read... [09:59:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:38]Read from MH i2c: E2 [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: E2 0E 00 [09:59:38]MH_I2C_Read... [09:59:38]Read from MH i2c: E2 0E 00 EC 39 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 18 [09:59:38]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [09:59:38]wFMCommunicate OK [09:59:38]SAM_PROTO_GetShiftState done [09:59:38]FM_GetShiftState done [09:59:38]req_shift_opened done [09:59:38]requested_item shift.open_date is exist - process it [09:59:38]req_shift_open_date [09:59:38]req_shift_open_date done [09:59:38]produce_requested_data done [09:59:38]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49406,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [09:59:38]process_action_free close_receipt [09:59:38]json_value_free [09:59:38]json_value_free done [09:59:38]process_json_proto returns [09:59:38]Send response to host [09:59:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49406,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [09:59:38]free response buf [09:59:38]execute_script done [09:59:38]execute_script returns [09:59:38]free content buf [09:59:38]Sock 7.Close socket [09:59:38]Sock 7.Thread stoped [09:59:41]OFD Sender: No OFD packet to send [09:59:46]OFD Sender: No OFD packet to send [09:59:51]OFD Sender: No OFD packet to send [09:59:56]OFD Sender: No OFD packet to send [10:00:01]OFD Sender: No OFD packet to send [10:00:06]OFD Sender: No OFD packet to send [10:00:11]OFD Sender: No OFD packet to send [10:00:16]OFD Sender: No OFD packet to send [10:00:21]OFD Sender: No OFD packet to send [10:00:26]OFD Sender: No OFD packet to send [10:00:31]OFD Sender: No OFD packet to send [10:00:36]OFD Sender: No OFD packet to send [10:00:41]OFD Sender: No OFD packet to send [10:00:46]OFD Sender: No OFD packet to send [10:00:51]OFD Sender: No OFD packet to send [10:00:56]OFD Sender: No OFD packet to send [10:01:01]OFD Sender: No OFD packet to send [10:01:06]OFD Sender: No OFD packet to send [10:01:11]OFD Sender: No OFD packet to send [10:01:16]OFD Sender: No OFD packet to send [10:01:21]OFD Sender: No OFD packet to send [10:01:26]OFD Sender: No OFD packet to send [10:01:31]OFD Sender: No OFD packet to send [10:01:36]OFD Sender: No OFD packet to send [10:01:41]OFD Sender: No OFD packet to send [10:01:46]OFD Sender: No OFD packet to send [10:01:51]OFD Sender: No OFD packet to send [10:01:56]OFD Sender: No OFD packet to send [10:02:01]OFD Sender: No OFD packet to send [10:02:06]OFD Sender: No OFD packet to send [10:02:11]OFD Sender: No OFD packet to send [10:02:16]OFD Sender: No OFD packet to send [10:02:21]OFD Sender: No OFD packet to send [10:02:26]OFD Sender: No OFD packet to send [10:02:31]OFD Sender: No OFD packet to send [10:02:36]OFD Sender: No OFD packet to send [10:02:41]OFD Sender: No OFD packet to send [10:02:46]OFD Sender: No OFD packet to send [10:02:51]OFD Sender: No OFD packet to send [10:02:56]OFD Sender: No OFD packet to send [10:03:01]OFD Sender: No OFD packet to send [10:03:06]OFD Sender: No OFD packet to send [10:03:11]OFD Sender: No OFD packet to send [10:03:16]OFD Sender: No OFD packet to send [10:03:21]OFD Sender: No OFD packet to send [10:03:26]OFD Sender: No OFD packet to send [10:03:31]OFD Sender: No OFD packet to send [10:03:36]OFD Sender: No OFD packet to send [10:03:41]OFD Sender: No OFD packet to send [10:03:46]OFD Sender: No OFD packet to send [10:03:51]OFD Sender: No OFD packet to send [10:03:56]OFD Sender: No OFD packet to send [10:04:01]OFD Sender: No OFD packet to send [10:04:06]OFD Sender: No OFD packet to send [10:04:11]OFD Sender: No OFD packet to send [10:04:12]accept exits with 9 [10:04:12]New connection [10:04:12]New thread 3066973540 created [10:04:12]Thread 3066830180 joined [10:04:12]Waiting for new connection... [10:04:12] Sock 9.Parse request [10:04:12]Sock 9.Check first char [10:04:12]Sock 9.First char is OK [10:04:12]request: POST /json_proto HTTP/1.0 [10:04:12]Method: POST [10:04:12]URL: /json_proto [10:04:12]Method is POST - this is cgi request [10:04:12]url: /json_proto [10:04:12]query_string will be loaded in cgi processing [10:04:12]execute_cgi json_proto POST (null) [10:04:12]execute_cgi path=json_proto method=POST [10:04:12]POST find Content-Length [10:04:12]Host: 172.17.46.196:8080 [10:04:12]Content-Length: 632 [10:04:12]Content-Type: application/json [10:04:12] [10:04:12]POST finish read [10:04:12]Found Content-Length = 632 [10:04:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189637", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:12]execute_script... [10: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 : (3)189637", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:12]POST & json_proto [10:04:12]process_json_proto [10:04:12]json parsed OK: [10:04:12]protocol is kg_v1.0 [10:04:12]action value=close_receipt [10:04:12]process_action close_receipt [10:04:12]cmd_close_receipt [10:04:12]MH_GetDate [10:04:12]Write to MH i2c: F0 00 00 ED 39 15 [10:04:12]Write i2c OK [10:04:12]MH_I2C_Read... [10:04:12]Read from MH i2c: F0 [10:04:12]MH_I2C_Read... [10:04:12]Read from MH i2c: F0 09 00 [10:04:12]MH_I2C_Read... [10:04:12]Read from MH i2c: F0 09 00 ED 39 00 21 24 BF 66 07 E8 5D 66 3A [10:04:12]GetLastDocTimeStamp 1723802378 [10:04:12]current date 1723802657 [10:04:12]FM_GetShiftState [10:04:12]SAM_PROTO_GetShiftState [10:04:12]wFMCommunicate request_size=4 [10:04:12]MH_SAM_APDU [10:04:12]CAPDU: 80 13 01 00 [10:04:12]Write to MH i2c: E2 08 00 EE 39 80 13 01 00 00 00 00 00 A4 [10:04:12]Write i2c OK [10:04:12]MH_I2C_Read... [10:04:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:12]Read from MH i2c: E2 [10:04:12]MH_I2C_Read... [10:04:12]Read from MH i2c: E2 0E 00 [10:04:12]MH_I2C_Read... [10:04:12]Read from MH i2c: E2 0E 00 EE 39 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 1A [10:04:12]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:04:12]wFMCommunicate OK [10:04:12]SAM_PROTO_GetShiftState done [10:04:12]FM_GetShiftState done [10:04:12]opened in 1723766958 [10:04:12]opened+sec_in_day 1723853358 [10:04:12]quantity*price = 6000 [10:04:12]sum+1 = 6001 [10:04:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 55 16.08.2024 10:04 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49407 ФПД: 48892649239956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T100417&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49407&fm=48892649239956&tin=02508201610067®Number=0000000000092546&sum=6000 0 [10:04:13]StoreToDocumentArchive [10:04:13]shift 464 fd 49407 [10:04:13]save to /storage/0464/doc_00049407 [10:04:13]save last doc name /storage/0464/doc_00049407 to /storage/kkm_last_doc_name [10:04:13]save OK [10:04:13]Clear old archive folders... [10:04:13]ProcessDocumentItem done err = 0, tmpTLVsize=271 [10:04:13]tlvbuf is 00E056E0 [10:04:13]SAM_PROTO_ClearQueue [10:04:13]wFMCommunicate request_size=4 [10:04:13]MH_SAM_APDU [10:04:13]CAPDU: 80 09 00 00 [10:04:13]Write to MH i2c: E2 08 00 FB 39 80 09 00 00 00 00 00 00 A6 [10:04:13]Write i2c OK [10:04:13]MH_I2C_Read... [10:04:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:13]Read from MH i2c: E2 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 03 00 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 03 00 FB 39 00 90 00 A8 [10:04:13]RAPDU: 90 00 [10:04:13]wFMCommunicate OK [10:04:13]SAM_PROTO_ClearQueue done [10:04:13]KKMCreateOFDPacket [10:04:13]OFDProtocolAddRootSTLVToBuf [10:04:13]FM_MakeSignedData [10:04:13]FM_MakeSignedData [10:04:13]SAM_PROTO_SignData [10:04:13]wFMCommunicate request_size=4 [10:04:13]MH_SAM_APDU [10:04:13]CAPDU: 80 0D 01 02 [10:04:13]Write to MH i2c: E2 08 00 FC 39 80 0D 01 02 00 00 00 00 AE [10:04:13]Write i2c OK [10:04:13]MH_I2C_Read... [10:04:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:13]Read from MH i2c: E2 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 03 00 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 03 00 FC 39 00 90 00 A9 [10:04:13]RAPDU: 90 00 [10:04:13]wFMCommunicate OK [10:04:13]wFMCommunicate request_size=255 [10:04:13]MH_SAM_APDU [10:04:13]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 21 24 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [10:04:13]Write to MH i2c: E2 02 01 FD 39 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 21 24 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 50 [10:04:13]Write i2c OK [10:04:13]MH_I2C_Read... [10:04:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:13]Read from MH i2c: E2 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 03 00 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 03 00 FD 39 00 90 00 AA [10:04:13]RAPDU: 90 00 [10:04:13]wFMCommunicate OK [10:04:13]wFMCommunicate request_size=30 [10:04:13]MH_SAM_APDU [10:04:13]CAPDU: 80 0D 02 02 19 30 38 37 31 38 30 30 10 04 04 00 FF C0 00 00 35 04 06 00 2C 77 B4 FD 75 94 [10:04:13]Write to MH i2c: E2 21 00 FE 39 80 0D 02 02 19 00 30 38 37 31 38 30 30 10 04 04 00 FF C0 00 00 35 04 06 00 2C 77 B4 FD 75 94 00 00 BE [10:04:13]Write i2c OK [10:04:13]MH_I2C_Read... [10:04:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:13]Read from MH i2c: E2 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 03 00 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 03 00 FE 39 00 90 00 AB [10:04:13]RAPDU: 90 00 [10:04:13]wFMCommunicate OK [10:04:13]wFMCommunicate request_size=4 [10:04:13]MH_SAM_APDU [10:04:13]CAPDU: 80 0D 03 02 [10:04:13]Write to MH i2c: E2 08 00 FF 39 80 0D 03 02 00 00 00 00 B3 [10:04:13]Write i2c OK [10:04:13]MH_I2C_Read... [10:04:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:13]Read from MH i2c: E2 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 0B 00 [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: E2 0B 00 FF 39 00 F0 EE 84 BB A1 E7 DA DE 90 00 11 [10:04:13]RAPDU: F0 EE 84 BB A1 E7 DA DE 90 00 [10:04:13]wFMCommunicate OK [10:04:13]SAM_PROTO_SignData done [10:04:13]FM_MakeSignedData done [10:04:13]CreateOFDProtocolMessage [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 00 3A 80 11 00 00 00 00 00 00 B4 [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 00 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FF [10:04:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:04:13]wFMCommunicate OK [10:04:13]CreateOFDProtocolMessage done [10:04:13]OFDSenderStorePacket 49407 [10:04:13]StoreOFDPacket docnum=49407 [10:04:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 32 3F 1B 01 F3 52 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 21 24 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FF C0 00 00 35 04 06 00 2C 77 B4 FD 75 94 F0 EE 84 BB A1 E7 DA DE [10:04:13]CheckFolder [10:04:13]dirname=/storage/ofd_packets [10:04:13]CheckFolder done [10:04:13]ProducePacketName [10:04:13]name=ofd_packets/00049407 [10:04:13]NVStorageSaveData ofd_packets/00049407 [10:04:13]File name is /storage/ofd_packets/00049407 [10:04:13]Write 321 bytes [10:04:13]NVStorageSaveData done [10:04:13]OFDSenderStorePacket done [10:04:13]KKMCreateOFDPacket done [10:04:13]NVStorageSaveData kkm_last_timestamp [10:04:13]File name is /storage/kkm_last_timestamp [10:04:13]Write 4 bytes [10:04:13]NVStorageSaveData done [10:04:13]ExternCall_PrintAddStr [10:04:13]wPrintStart [10:04:13]Write to MH i2c: 01 00 00 01 3A 3B [10:04:13]Write i2c OK [10:04:13]MH_I2C_Read... [10:04:13]Read from MH i2c: 01 [10:04:13]MH_I2C_Read... [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 01 3A 00 00 00 00 00 FF 0F 50 [10:04:13]RasterBufferAndPrint [10:04:13]line Счет N : (3)189637 [10:04:13]line ИНН: 02508201610067 [10:04:13]line Контрольно-Кассовый Чек [10:04:13]line ПРОДАЖА [10:04:13]line Товар: 4700000160204 [10:04:13]line Вода Легенда 1,5л [10:04:13]line 1.000 * 60.00 [10:04:13]line = 60.00 [10:04:13]line НДС 12% НСП 1% [10:04:13]line > о реализуемом товаре [10:04:13]line ИТОГО: 60.00 [10:04:13]line НСП 1% : 0.53 [10:04:13]line НДС 12% : 6.37 [10:04:13]line Наличными: 60.00 [10:04:13]line Безнал.: 0.00 [10:04:13]line Место: АЗС № 95 "Партнер Нефть" [10:04:13]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:04:13]line СНО: Общий режим [10:04:13]line Чек 55 16.08.2024 10:04 [10:04:13]line Смена: 464 ФФД: 1.0 [10:04:13]line ЗНМ: 0300000078 [10:04:13]line РНМ: 0000000000092546 [10:04:13]line Версия ККМ: 001 [10:04:13]line ФМ: 0000000000871800 [10:04:13]line ФД: 49407 [10:04:13]line ФПД: 48892649239956 [10:04:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T100417&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49407&fm=48892649239956&tin=02508201610067®Number=0000000000092546&sum=6000 [10:04:14]OFD Sender: Processing packet 49407 [packets to send 21, broken 20] [10:04:14]ProducePacketName [10:04:14]name=ofd_packets/00049407 [10:04:14]OFD Sender: To server: pG, [10:04:14]CommunicateWithHost lk.salyk.kg:30040 [10:04:14]ConnectInit lk.salyk.kg [10:04:14]line 0 [10:04:14]written 0, free lines is 4095 [10:04:14]Connected sock=10 [10:04:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 32 3F 1B 01 F3 52 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 21 24 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 FF C0 00 00 35 04 06 00 2C 77 B4 FD 75 94 F0 EE 84 BB A1 E7 DA DE [10:04:14]Write to MH i2c: 01 00 00 29 3A 63 [10:04:14]Write i2c OK [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: 01 [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: 01 07 00 [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: 01 07 00 29 3A 00 00 00 00 00 FE 0C 74 [10:04:14]RasterBufferAndPrint [10:04:14]line [10:04:14]line [10:04:14]line [10:04:14]line [10:04:14]line [10:04:14]written 0, free lines is 3332 [10:04:14]MH_Cut [10:04:14]Write to MH i2c: D1 01 00 30 3A 01 3C [10:04:14]Write i2c OK [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: D1 [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: D1 01 00 [10:04:14]MH_I2C_Read... [10:04:14]Read from MH i2c: D1 01 00 30 3A 00 3B [10:04:14]Write to MH i2c: 01 00 00 31 3A 6B [10:04:14]Write i2c OK [10:04:14]MH_I2C_Read... [10:04:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C6 0A 47 00 53 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 38 37 31 38 30 30 10 04 04 00 FF C0 00 00 F4 03 04 00 60 CF BE 66 B6 04 01 00 00 FE D9 AD F4 71 B3 B0 E0 [10:04:14]CommunicateWithHost err = 0 [10:04:14]CheckOFDResponse [10:04:14]1017 (14) - 77093643461234 [10:04:14]1041 (16) - 0000000000871800 [10:04:14]1040 (4) - 49407 [10:04:14]1012 (4) - 16.08.2024 04:02 [10:04:14]1206 (1) - 0 [10:04:14]OFD Sender: Remove packet 49407 [10:04:14]ProducePacketName [10:04:14]name=ofd_packets/00049407 [10:04:14]NVStorageDeleteData [10:04:15]OFD Sender: No OFD packet to send [10:04:15]*** Cut start [10:04:15]*** Purtial cut [10:04:15]*** Stage 1: CUTSNS_PIN = 1 [10:04:15]Read from MH i2c: 01 [10:04:15]MH_I2C_Read... [10:04:15]*** Stop cut motor [10:04:15]*** Cut end [10:04:15]Read from MH i2c: 01 07 00 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: 01 07 00 31 3A 00 00 00 00 00 FF 0F 80 [10:04:15]process_action close_receipt done [10:04:15]requested_data is exist [10:04:15]produce_requested_data [10:04:15]requested_item fm.sn is exist - process it [10:04:15]wFMCommunicate request_size=4 [10:04:15]MH_SAM_APDU [10:04:15]CAPDU: 80 11 00 00 [10:04:15]Write to MH i2c: E2 08 00 32 3A 80 11 00 00 00 00 00 00 E6 [10:04:15]Write i2c OK [10:04:15]MH_I2C_Read... [10:04:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:15]Read from MH i2c: E2 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 17 00 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 17 00 32 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 31 [10:04:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:04:15]wFMCommunicate OK [10:04:15]requested_item fd.num is exist - process it [10:04:15]SAM_PROTO_GetFieldsCounters [10:04:15]wFMCommunicate request_size=4 [10:04:15]MH_SAM_APDU [10:04:15]CAPDU: 80 13 00 00 [10:04:15]Write to MH i2c: E2 08 00 33 3A 80 13 00 00 00 00 00 00 E9 [10:04:15]Write i2c OK [10:04:15]MH_I2C_Read... [10:04:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:15]Read from MH i2c: E2 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 62 00 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 62 00 33 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FF C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 38 [10:04:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 FF C0 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:15]wFMCommunicate OK [10:04:15]SAM_PROTO_GetFieldsCounters done [10:04:15]requested_item shift.num is exist - process it [10:04:15]requested_item shift.opened is exist - process it [10:04:15]req_shift_opened [10:04:15]FM_GetShiftState [10:04:15]SAM_PROTO_GetShiftState [10:04:15]wFMCommunicate request_size=4 [10:04:15]MH_SAM_APDU [10:04:15]CAPDU: 80 13 01 00 [10:04:15]Write to MH i2c: E2 08 00 34 3A 80 13 01 00 00 00 00 00 EB [10:04:15]Write i2c OK [10:04:15]MH_I2C_Read... [10:04:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:15]Read from MH i2c: E2 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 0E 00 [10:04:15]MH_I2C_Read... [10:04:15]Read from MH i2c: E2 0E 00 34 3A 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 61 [10:04:15]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:04:15]wFMCommunicate OK [10:04:15]SAM_PROTO_GetShiftState done [10:04:15]FM_GetShiftState done [10:04:15]req_shift_opened done [10:04:15]requested_item shift.open_date is exist - process it [10:04:15]req_shift_open_date [10:04:15]req_shift_open_date done [10:04:15]produce_requested_data done [10:04:15]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49407,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [10:04:15]process_action_free close_receipt [10:04:15]json_value_free [10:04:15]json_value_free done [10:04:15]process_json_proto returns [10:04:15]Send response to host [10:04:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49407,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [10:04:15]free response buf [10:04:15]execute_script done [10:04:15]execute_script returns [10:04:15]free content buf [10:04:15]Sock 9.Close socket [10:04:15]Sock 9.Thread stoped [10:04:20]OFD Sender: No OFD packet to send [10:04:25]OFD Sender: No OFD packet to send [10:04:30]OFD Sender: No OFD packet to send [10:04:35]OFD Sender: No OFD packet to send [10:04:40]OFD Sender: No OFD packet to send [10:04:45]OFD Sender: No OFD packet to send [10:04:50]OFD Sender: No OFD packet to send [10:04:54]accept exits with 7 [10:04:54]New connection [10:04:54]New thread 3066830180 created [10:04:54]Thread 3066973540 joined [10:04:54]Waiting for new connection... [10:04:54] Sock 7.Parse request [10:04:54]Sock 7.Check first char [10:04:54]Sock 7.First char is OK [10:04:54]request: POST /json_proto HTTP/1.0 [10:04:54]Method: POST [10:04:54]URL: /json_proto [10:04:54]Method is POST - this is cgi request [10:04:54]url: /json_proto [10:04:54]query_string will be loaded in cgi processing [10:04:54]execute_cgi json_proto POST (null) [10:04:54]execute_cgi path=json_proto method=POST [10:04:54]POST find Content-Length [10:04:54]Host: 172.17.46.196:8080 [10:04:54]Content-Length: 753 [10:04:54]Content-Type: application/json [10:04:54] [10:04:54]POST finish read [10:04:54]Found Content-Length = 753 [10:04:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104840", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:54]execute_script... [10:04: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)11325239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104840", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:04:54]POST & json_proto [10:04:54]process_json_proto [10:04:54]json parsed OK: [10:04:54]protocol is kg_v1.0 [10:04:54]action value=close_receipt [10:04:54]process_action close_receipt [10:04:54]cmd_close_receipt [10:04:54]MH_GetDate [10:04:54]Write to MH i2c: F0 00 00 35 3A 5E [10:04:54]Write i2c OK [10:04:54]MH_I2C_Read... [10:04:54]Read from MH i2c: F0 [10:04:54]MH_I2C_Read... [10:04:54]Read from MH i2c: F0 09 00 [10:04:54]MH_I2C_Read... [10:04:54]Read from MH i2c: F0 09 00 35 3A 00 4B 24 BF 66 07 E8 5D 66 AD [10:04:54]GetLastDocTimeStamp 1723802657 [10:04:54]current date 1723802699 [10:04:54]FM_GetShiftState [10:04:54]SAM_PROTO_GetShiftState [10:04:54]wFMCommunicate request_size=4 [10:04:54]MH_SAM_APDU [10:04:54]CAPDU: 80 13 01 00 [10:04:54]Write to MH i2c: E2 08 00 36 3A 80 13 01 00 00 00 00 00 ED [10:04:54]Write i2c OK [10:04:54]MH_I2C_Read... [10:04:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:54]Read from MH i2c: E2 [10:04:54]MH_I2C_Read... [10:04:54]Read from MH i2c: E2 0E 00 [10:04:54]MH_I2C_Read... [10:04:54]Read from MH i2c: E2 0E 00 36 3A 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 63 [10:04:54]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:04:54]wFMCommunicate OK [10:04:54]SAM_PROTO_GetShiftState done [10:04:54]FM_GetShiftState done [10:04:54]opened in 1723766958 [10:04:54]opened+sec_in_day 1723853358 [10:04:54]quantity*price = 0 [10:04:54]sum+1 = 1 [10:04:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 56 16.08.2024 10:04 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30104840 ФМ: 0000000000871800 ФД: 49408 ФПД: 99867275242005 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T100459&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49408&fm=99867275242005&tin=02508201610067®Number=0000000000092546&sum=0 [10:04:55]StoreToDocumentArchive [10:04:55]shift 464 fd 49408 [10:04:55]save to /storage/0464/doc_00049408 [10:04:55]save last doc name /storage/0464/doc_00049408 to /storage/kkm_last_doc_name [10:04:55]save OK [10:04:55]Clear old archive folders... [10:04:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:04:55]tlvbuf is 00EC9FA0 [10:04:55]SAM_PROTO_ClearQueue [10:04:55]wFMCommunicate request_size=4 [10:04:55]MH_SAM_APDU [10:04:55]CAPDU: 80 09 00 00 [10:04:55]Write to MH i2c: E2 08 00 43 3A 80 09 00 00 00 00 00 00 EF [10:04:55]Write i2c OK [10:04:55]MH_I2C_Read... [10:04:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:04:55]Read from MH i2c: E2 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: E2 03 00 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: E2 03 00 43 3A 00 90 00 F1 [10:04:55]RAPDU: 90 00 [10:04:55]wFMCommunicate OK [10:04:55]SAM_PROTO_ClearQueue done [10:04:55]KKMCreateOFDPacket [10:04:55]OFDProtocolAddRootSTLVToBuf [10:04:55]FM_MakeSignedData [10:04:55]FM_MakeSignedData [10:04:55]SAM_PROTO_SignData [10:04:55]wFMCommunicate request_size=4 [10:04:55]MH_SAM_APDU [10:04:55]CAPDU: 80 0D 01 02 [10:04:55]Write to MH i2c: E2 08 00 44 3A 80 0D 01 02 00 00 00 00 F7 [10:04:55]Write i2c OK [10:04:55]MH_I2C_Read... [10:04:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:04:55]Read from MH i2c: E2 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: E2 03 00 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: E2 03 00 44 3A 00 90 00 F2 [10:04:55]RAPDU: 90 00 [10:04:55]wFMCommunicate OK [10:04:55]wFMCommunicate request_size=255 [10:04:55]MH_SAM_APDU [10:04: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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4B 24 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 00 C1 00 00 35 04 06 00 5A D4 29 77 [10:04:55]Write to MH i2c: E2 02 01 45 3A 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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4B 24 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 00 C1 00 00 35 04 06 00 5A D4 29 77 00 00 4B [10:04:55]Write i2c OK [10:04:55]MH_I2C_Read... [10:04:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:55]Read from MH i2c: E2 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: E2 03 00 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: E2 03 00 45 3A 00 90 00 F3 [10:04:55]RAPDU: 90 00 [10:04:55]wFMCommunicate OK [10:04:55]wFMCommunicate request_size=7 [10:04:55]MH_SAM_APDU [10:04:55]CAPDU: 80 0D 02 02 02 2A 15 [10:04:55]Write to MH i2c: E2 0A 00 46 3A 80 0D 02 02 02 00 2A 15 00 00 3D [10:04:55]Write i2c OK [10:04:55]MH_I2C_Read... [10:04:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:04:55]Read from MH i2c: E2 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: E2 03 00 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: E2 03 00 46 3A 00 90 00 F4 [10:04:55]RAPDU: 90 00 [10:04:55]wFMCommunicate OK [10:04:55]wFMCommunicate request_size=4 [10:04:55]MH_SAM_APDU [10:04:55]CAPDU: 80 0D 03 02 [10:04:55]Write to MH i2c: E2 08 00 47 3A 80 0D 03 02 00 00 00 00 FC [10:04:55]Write i2c OK [10:04:55]MH_I2C_Read... [10:04:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:04:55]Read from MH i2c: E2 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: E2 0B 00 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: E2 0B 00 47 3A 00 F3 E3 C7 6A F2 7A 03 B2 90 00 25 [10:04:55]RAPDU: F3 E3 C7 6A F2 7A 03 B2 90 00 [10:04:55]wFMCommunicate OK [10:04:55]SAM_PROTO_SignData done [10:04:55]FM_MakeSignedData done [10:04:55]CreateOFDProtocolMessage [10:04:55]wFMCommunicate request_size=4 [10:04:55]MH_SAM_APDU [10:04:55]CAPDU: 80 11 00 00 [10:04:55]Write to MH i2c: E2 08 00 48 3A 80 11 00 00 00 00 00 00 FC [10:04:55]Write i2c OK [10:04:55]MH_I2C_Read... [10:04:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:55]Read from MH i2c: E2 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: E2 17 00 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: E2 17 00 48 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 47 [10:04:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:04:55]wFMCommunicate OK [10:04:55]CreateOFDProtocolMessage done [10:04:55]OFDSenderStorePacket 49408 [10:04:55]StoreOFDPacket docnum=49408 [10:04:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 0E 46 04 01 BF 12 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4B 24 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 00 C1 00 00 35 04 06 00 5A D4 29 77 2A 15 F3 E3 C7 6A F2 7A 03 B2 [10:04:55]CheckFolder [10:04:55]dirname=/storage/ofd_packets [10:04:55]CheckFolder done [10:04:55]ProducePacketName [10:04:55]name=ofd_packets/00049408 [10:04:55]NVStorageSaveData ofd_packets/00049408 [10:04:55]File name is /storage/ofd_packets/00049408 [10:04:55]Write 298 bytes [10:04:55]NVStorageSaveData done [10:04:55]OFDSenderStorePacket done [10:04:55]KKMCreateOFDPacket done [10:04:55]NVStorageSaveData kkm_last_timestamp [10:04:55]File name is /storage/kkm_last_timestamp [10:04:55]Write 4 bytes [10:04:55]NVStorageSaveData done [10:04:55]ExternCall_PrintAddStr [10:04:55]wPrintStart [10:04:55]Write to MH i2c: 01 00 00 49 3A 83 [10:04:55]Write i2c OK [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: 01 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: 01 07 00 [10:04:55]MH_I2C_Read... [10:04:55]Read from MH i2c: 01 07 00 49 3A 00 00 00 00 00 FF 0F 98 [10:04:55]RasterBufferAndPrint [10:04:55]line Счет N : (1)11325239 [10:04:55]line ИНН: 02508201610067 [10:04:55]line Контрольно-Кассовый Чек [10:04:55]line ПРОДАЖА [10:04:55]line ТРК (МРК, ГНК) : 61 [10:04:55]line Товар: 2710194210 [10:04:55]line ДТ-К-5 [10:04:55]line 15.000 * 0.00 [10:04:55]line = 0.00 [10:04:55]line НДС 12% НСП 1% [10:04:55]line > о реализуемом товаре [10:04:55]line ИТОГО: 0.00 [10:04:55]line НСП 1% : 0.00 [10:04:55]line НДС 12% : 0.00 [10:04:55]line Наличными: 0.00 [10:04:55]line Безнал.: 0.00 [10:04:55]line Место: АЗС № 95 "Партнер Нефть" [10:04:55]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:04:55]line СНО: Общий режим [10:04:55]line Чек 56 16.08.2024 10:04 [10:04:55]line Смена: 464 ФФД: 1.0 [10:04:55]line ЗНМ: 0300000078 [10:04:55]line РНМ: 0000000000092546 [10:04:55]line Версия ККМ: 001 [10:04:55]line Талоны: ТК ГПНА Online [10:04:55]line 30104840 [10:04:55]line ФМ: 0000000000871800 [10:04:55]line ФД: 49408 [10:04:55]line ФПД: 99867275242005 [10:04:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T100459&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49408&fm=99867275242005&tin=02508201610067®Number=0000000000092546&sum=0 [10:04:56]OFD Sender: Processing packet 49408 [packets to send 21, broken 20] [10:04:56]ProducePacketName [10:04:56]name=ofd_packets/00049408 [10:04:56]OFD Sender: To server: pG, [10:04:56]CommunicateWithHost lk.salyk.kg:30040 [10:04:56]ConnectInit lk.salyk.kg [10:04:56]written 0, free lines is 4095 [10:04:56]Connected sock=9 [10:04:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 0E 46 04 01 BF 12 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 4B 24 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 00 C1 00 00 35 04 06 00 5A D4 29 77 2A 15 F3 E3 C7 6A F2 7A 03 B2 [10:04:56]Write to MH i2c: 01 00 00 73 3A AD [10:04:56]Write i2c OK [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: 01 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: 01 07 00 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: 01 07 00 73 3A 00 00 00 00 00 E4 0C A4 [10:04:56]RasterBufferAndPrint [10:04:56]line [10:04:56]line [10:04:56]line [10:04:56]line [10:04:56]line [10:04:56]written 0, free lines is 3309 [10:04:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 5A 95 47 00 B1 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 00 C1 00 00 F4 03 04 00 8A CF BE 66 B6 04 01 00 00 5D A8 A2 D5 9C 6B 23 94 [10:04:56]CommunicateWithHost err = 0 [10:04:56]CheckOFDResponse [10:04:56]1017 (14) - 77093643461234 [10:04:56]1041 (16) - 0000000000871800 [10:04:56]1040 (4) - 49408 [10:04:56]1012 (4) - 16.08.2024 04:03 [10:04:56]1206 (1) - 0 [10:04:56]OFD Sender: Remove packet 49408 [10:04:56]ProducePacketName [10:04:56]name=ofd_packets/00049408 [10:04:56]NVStorageDeleteData [10:04:56]MH_Cut [10:04:56]Write to MH i2c: D1 01 00 7A 3A 01 86 [10:04:56]Write i2c OK [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: D1 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: D1 01 00 [10:04:56]MH_I2C_Read... [10:04:56]Read from MH i2c: D1 01 00 7A 3A 00 85 [10:04:56]Write to MH i2c: 01 00 00 7B 3A B5 [10:04:56]Write i2c OK [10:04:56]MH_I2C_Read... [10:04:57]OFD Sender: No OFD packet to send [10:04:57]*** Cut start [10:04:57]*** Purtial cut [10:04:57]*** CUTSNS_PIN = 0 [10:04:57]*** Stage 1: CUTSNS_PIN = 1 [10:04:59]Read from MH i2c: 01 [10:04:59]MH_I2C_Read... [10:04:59]*** Stop cut motor [10:04:59]*** Cut end [10:04:59]Read from MH i2c: 01 07 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: 01 07 00 7B 3A 00 00 00 00 00 FF 0F CA [10:04:59]process_action close_receipt done [10:04:59]requested_data is exist [10:04:59]produce_requested_data [10:04:59]requested_item fm.sn is exist - process it [10:04:59]wFMCommunicate request_size=4 [10:04:59]MH_SAM_APDU [10:04:59]CAPDU: 80 11 00 00 [10:04:59]Write to MH i2c: E2 08 00 7C 3A 80 11 00 00 00 00 00 00 30 [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:04:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:04:59]Read from MH i2c: E2 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 17 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 17 00 7C 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7B [10:04:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:04:59]wFMCommunicate OK [10:04:59]requested_item fd.num is exist - process it [10:04:59]SAM_PROTO_GetFieldsCounters [10:04:59]wFMCommunicate request_size=4 [10:04:59]MH_SAM_APDU [10:04:59]CAPDU: 80 13 00 00 [10:04:59]Write to MH i2c: E2 08 00 7D 3A 80 13 00 00 00 00 00 00 33 [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:04:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:04:59]Read from MH i2c: E2 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 62 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 62 00 7D 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 00 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 87 [10:04:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 00 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:04:59]wFMCommunicate OK [10:04:59]SAM_PROTO_GetFieldsCounters done [10:04:59]requested_item shift.num is exist - process it [10:04:59]requested_item shift.opened is exist - process it [10:04:59]req_shift_opened [10:04:59]FM_GetShiftState [10:04:59]SAM_PROTO_GetShiftState [10:04:59]wFMCommunicate request_size=4 [10:04:59]MH_SAM_APDU [10:04:59]CAPDU: 80 13 01 00 [10:04:59]Write to MH i2c: E2 08 00 7E 3A 80 13 01 00 00 00 00 00 35 [10:04:59]Write i2c OK [10:04:59]MH_I2C_Read... [10:04:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:04:59]Read from MH i2c: E2 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 0E 00 [10:04:59]MH_I2C_Read... [10:04:59]Read from MH i2c: E2 0E 00 7E 3A 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 AB [10:04:59]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:04:59]wFMCommunicate OK [10:04:59]SAM_PROTO_GetShiftState done [10:04:59]FM_GetShiftState done [10:04:59]req_shift_opened done [10:04:59]requested_item shift.open_date is exist - process it [10:04:59]req_shift_open_date [10:04:59]req_shift_open_date done [10:04:59]produce_requested_data done [10:04:59]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49408,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [10:04:59]process_action_free close_receipt [10:04:59]json_value_free [10:04:59]json_value_free done [10:04:59]process_json_proto returns [10:04:59]Send response to host [10:04:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49408,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [10:04:59]free response buf [10:04:59]execute_script done [10:04:59]execute_script returns [10:04:59]free content buf [10:04:59]Sock 7.Close socket [10:04:59]Sock 7.Thread stoped [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:48]accept exits with 10 [10:10:48]New connection [10:10:48]New thread 3066973540 created [10:10:48]Thread 3066830180 joined [10:10:48]Waiting for new connection... [10:10:48] Sock 10.Parse request [10:10:48]Sock 10.Check first char [10:10:48]Sock 10.First char is OK [10:10:48]request: POST /json_proto HTTP/1.0 [10:10:48]Method: POST [10:10:48]URL: /json_proto [10:10:48]Method is POST - this is cgi request [10:10:48]url: /json_proto [10:10:48]query_string will be loaded in cgi processing [10:10:48]execute_cgi json_proto POST (null) [10:10:48]execute_cgi path=json_proto method=POST [10:10:48]POST find Content-Length [10:10:48]Host: 172.17.46.196:8080 [10:10:48]Content-Length: 646 [10:10:48]Content-Type: application/json [10:10:48] [10:10:48]POST finish read [10:10:48]Found Content-Length = 646 [10:10:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189638", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:48]execute_script... [10:10:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189638", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:10:48]POST & json_proto [10:10:48]process_json_proto [10:10:48]json parsed OK: [10:10:48]protocol is kg_v1.0 [10:10:48]action value=close_receipt [10:10:48]process_action close_receipt [10:10:48]cmd_close_receipt [10:10:48]MH_GetDate [10:10:48]Write to MH i2c: F0 00 00 7F 3A A8 [10:10:48]Write i2c OK [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: F0 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: F0 09 00 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: F0 09 00 7F 3A 00 AD 25 BF 66 07 E8 5D 66 5A [10:10:48]GetLastDocTimeStamp 1723802699 [10:10:48]current date 1723803053 [10:10:48]FM_GetShiftState [10:10:48]SAM_PROTO_GetShiftState [10:10:48]wFMCommunicate request_size=4 [10:10:48]MH_SAM_APDU [10:10:48]CAPDU: 80 13 01 00 [10:10:48]Write to MH i2c: E2 08 00 80 3A 80 13 01 00 00 00 00 00 37 [10:10:48]Write i2c OK [10:10:48]MH_I2C_Read... [10:10:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:48]Read from MH i2c: E2 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: E2 0E 00 [10:10:48]MH_I2C_Read... [10:10:48]Read from MH i2c: E2 0E 00 80 3A 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 AD [10:10:48]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:10:48]wFMCommunicate OK [10:10:48]SAM_PROTO_GetShiftState done [10:10:48]FM_GetShiftState done [10:10:48]opened in 1723766958 [10:10:48]opened+sec_in_day 1723853358 [10:10:48]quantity*price = 13000 [10:10:48]sum+1 = 13001 [10:10:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 57 16.08.2024 10:10 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49409 ФПД: 118698172636419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T101053&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49409&fm=118698172636419&tin=02508201610067®Number=0000000000092546&sum=13000 0 [10:10:49]StoreToDocumentArchive [10:10:49]shift 464 fd 49409 [10:10:49]save to /storage/0464/doc_00049409 [10:10:49]save last doc name /storage/0464/doc_00049409 to /storage/kkm_last_doc_name [10:10:49]save OK [10:10:49]Clear old archive folders... [10:10:49]ProcessDocumentItem done err = 0, tmpTLVsize=282 [10:10:49]tlvbuf is 00F268B0 [10:10:49]SAM_PROTO_ClearQueue [10:10:49]wFMCommunicate request_size=4 [10:10:49]MH_SAM_APDU [10:10:49]CAPDU: 80 09 00 00 [10:10:49]Write to MH i2c: E2 08 00 8D 3A 80 09 00 00 00 00 00 00 39 [10:10:49]Write i2c OK [10:10:49]MH_I2C_Read... [10:10:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:10:49]Read from MH i2c: E2 [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: E2 03 00 [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: E2 03 00 8D 3A 00 90 00 3B [10:10:49]RAPDU: 90 00 [10:10:49]wFMCommunicate OK [10:10:49]SAM_PROTO_ClearQueue done [10:10:49]KKMCreateOFDPacket [10:10:49]OFDProtocolAddRootSTLVToBuf [10:10:49]FM_MakeSignedData [10:10:49]FM_MakeSignedData [10:10:49]SAM_PROTO_SignData [10:10:49]wFMCommunicate request_size=4 [10:10:49]MH_SAM_APDU [10:10:49]CAPDU: 80 0D 01 02 [10:10:49]Write to MH i2c: E2 08 00 8E 3A 80 0D 01 02 00 00 00 00 41 [10:10:49]Write i2c OK [10:10:49]MH_I2C_Read... [10:10:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:10:49]Read from MH i2c: E2 [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: E2 03 00 [10:10:49]MH_I2C_Read... [10:10:49]Read from MH i2c: E2 03 00 8E 3A 00 90 00 3C [10:10:49]RAPDU: 90 00 [10:10:49]wFMCommunicate OK [10:10:49]wFMCommunicate request_size=255 [10:10:49]MH_SAM_APDU [10:10:49]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 AD 25 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 [10:10:49]Write to MH i2c: E2 02 01 8F 3A 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 AD 25 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 00 00 52 [10:10:49]Write i2c OK [10:10:49]MH_I2C_Read... [10:10:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:50]Read from MH i2c: E2 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 03 00 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 03 00 8F 3A 00 90 00 3D [10:10:50]RAPDU: 90 00 [10:10:50]wFMCommunicate OK [10:10:50]wFMCommunicate request_size=41 [10:10:50]MH_SAM_APDU [10:10:50]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 01 C1 00 00 35 04 06 00 6B F4 92 6A 5D 03 [10:10:50]Write to MH i2c: E2 2C 00 90 3A 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 01 C1 00 00 35 04 06 00 6B F4 92 6A 5D 03 00 00 88 [10:10:50]Write i2c OK [10:10:50]MH_I2C_Read... [10:10:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:10:50]Read from MH i2c: E2 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 03 00 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 03 00 90 3A 00 90 00 3E [10:10:50]RAPDU: 90 00 [10:10:50]wFMCommunicate OK [10:10:50]wFMCommunicate request_size=4 [10:10:50]MH_SAM_APDU [10:10:50]CAPDU: 80 0D 03 02 [10:10:50]Write to MH i2c: E2 08 00 91 3A 80 0D 03 02 00 00 00 00 46 [10:10:50]Write i2c OK [10:10:50]MH_I2C_Read... [10:10:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:10:50]Read from MH i2c: E2 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 0B 00 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 0B 00 91 3A 00 E2 B4 41 5F 2B 94 47 17 90 00 9A [10:10:50]RAPDU: E2 B4 41 5F 2B 94 47 17 90 00 [10:10:50]wFMCommunicate OK [10:10:50]SAM_PROTO_SignData done [10:10:50]FM_MakeSignedData done [10:10:50]CreateOFDProtocolMessage [10:10:50]wFMCommunicate request_size=4 [10:10:50]MH_SAM_APDU [10:10:50]CAPDU: 80 11 00 00 [10:10:50]Write to MH i2c: E2 08 00 92 3A 80 11 00 00 00 00 00 00 46 [10:10:50]Write i2c OK [10:10:50]MH_I2C_Read... [10:10:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:50]Read from MH i2c: E2 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 17 00 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: E2 17 00 92 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 91 [10:10:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:10:50]wFMCommunicate OK [10:10:50]CreateOFDProtocolMessage done [10:10:50]OFDSenderStorePacket 49409 [10:10:50]StoreOFDPacket docnum=49409 [10:10:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 CB 9E 26 01 00 C3 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 AD 25 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 01 C1 00 00 35 04 06 00 6B F4 92 6A 5D 03 E2 B4 41 5F 2B 94 47 17 [10:10:50]CheckFolder [10:10:50]dirname=/storage/ofd_packets [10:10:50]CheckFolder done [10:10:50]ProducePacketName [10:10:50]name=ofd_packets/00049409 [10:10:50]NVStorageSaveData ofd_packets/00049409 [10:10:50]File name is /storage/ofd_packets/00049409 [10:10:50]Write 332 bytes [10:10:50]NVStorageSaveData done [10:10:50]OFDSenderStorePacket done [10:10:50]KKMCreateOFDPacket done [10:10:50]NVStorageSaveData kkm_last_timestamp [10:10:50]File name is /storage/kkm_last_timestamp [10:10:50]Write 4 bytes [10:10:50]NVStorageSaveData done [10:10:50]ExternCall_PrintAddStr [10:10:50]wPrintStart [10:10:50]Write to MH i2c: 01 00 00 93 3A CD [10:10:50]Write i2c OK [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: 01 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: 01 07 00 [10:10:50]MH_I2C_Read... [10:10:50]Read from MH i2c: 01 07 00 93 3A 00 00 00 00 00 FF 0F E2 [10:10:50]RasterBufferAndPrint [10:10:50]line Счет N : (3)189638 [10:10:50]line ИНН: 02508201610067 [10:10:50]line Контрольно-Кассовый Чек [10:10:50]line ПРОДАЖА [10:10:50]line Товар: 2000036220012 [10:10:50]line Кофе Капучино XL(GABB TRADE) [10:10:50]line 1.000 * 130.00 [10:10:50]line = 130.00 [10:10:50]line НДС 12% НСП 1% [10:10:50]line > о реализуемом товаре [10:10:50]line ИТОГО: 130.00 [10:10:50]line НСП 1% : 1.15 [10:10:50]line НДС 12% : 13.80 [10:10:50]line Наличными: 130.00 [10:10:50]line Безнал.: 0.00 [10:10:50]line Место: АЗС № 95 "Партнер Нефть" [10:10:50]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:10:50]line СНО: Общий режим [10:10:50]line Чек 57 16.08.2024 10:10 [10:10:50]line Смена: 464 ФФД: 1.0 [10:10:50]line ЗНМ: 0300000078 [10:10:50]line РНМ: 0000000000092546 [10:10:50]line Версия ККМ: 001 [10:10:50]line ФМ: 0000000000871800 [10:10:50]line ФД: 49409 [10:10:50]line ФПД: 118698172636419 [10:10:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T101053&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49409&fm=118698172636419&tin=02508201610067®Number=0000000000092546&sum=13000 [10:10:50]line 0 [10:10:50]OFD Sender: Processing packet 49409 [packets to send 21, broken 20] [10:10:50]ProducePacketName [10:10:50]name=ofd_packets/00049409 [10:10:50]OFD Sender: To server: pG, [10:10:50]CommunicateWithHost lk.salyk.kg:30040 [10:10:50]ConnectInit lk.salyk.kg [10:10:50]written 0, free lines is 4095 [10:10:50]Connected sock=9 [10:10:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 CB 9E 26 01 00 C3 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 AD 25 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 01 C1 00 00 35 04 06 00 6B F4 92 6A 5D 03 E2 B4 41 5F 2B 94 47 17 [10:10:51]Write to MH i2c: 01 00 00 BC 3A F6 [10:10:51]Write i2c OK [10:10:51]MH_I2C_Read... [10:10:51]Read from MH i2c: 01 [10:10:51]MH_I2C_Read... [10:10:51]Read from MH i2c: 01 07 00 [10:10:51]MH_I2C_Read... [10:10:51]Read from MH i2c: 01 07 00 BC 3A 00 00 00 00 00 F1 0C FA [10:10:51]RasterBufferAndPrint [10:10:51]line [10:10:51]line [10:10:51]line [10:10:51]line [10:10:51]line [10:10:51]written 0, free lines is 3319 [10:10:51]MH_Cut [10:10:51]Write to MH i2c: D1 01 00 C3 3A 01 CF [10:10:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 15 9D 47 00 82 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 01 C1 00 00 F4 03 04 00 EC D0 BE 66 B6 04 01 00 00 04 B3 98 2A C7 19 06 43 [10:10:51]CommunicateWithHost err = 0 [10:10:51]CheckOFDResponse [10:10:51]1017 (14) - 77093643461234 [10:10:51]1041 (16) - 0000000000871800 [10:10:51]1040 (4) - 49409 [10:10:51]1012 (4) - 16.08.2024 04:09 [10:10:51]1206 (1) - 0 [10:10:51]OFD Sender: Remove packet 49409 [10:10:51]ProducePacketName [10:10:51]name=ofd_packets/00049409 [10:10:51]NVStorageDeleteData [10:10:51]Write i2c OK [10:10:51]MH_I2C_Read... [10:10:51]Read from MH i2c: D1 [10:10:51]MH_I2C_Read... [10:10:51]Read from MH i2c: D1 01 00 [10:10:51]MH_I2C_Read... [10:10:51]Read from MH i2c: D1 01 00 C3 3A 00 CE [10:10:51]Write to MH i2c: 01 00 00 C4 3A FE [10:10:51]Write i2c OK [10:10:51]MH_I2C_Read... [10:10:51]OFD Sender: No OFD packet to send [10:10:51]*** Cut start [10:10:51]*** Purtial cut [10:10:51]*** Stage 1: CUTSNS_PIN = 1 [10:10:52]Read from MH i2c: 01 [10:10:52]MH_I2C_Read... [10:10:52]*** Stop cut motor [10:10:52]*** Cut end [10:10:52]Read from MH i2c: 01 07 00 [10:10:52]MH_I2C_Read... [10:10:52]Read from MH i2c: 01 07 00 C4 3A 00 00 00 00 00 FF 0F 13 [10:10:52]process_action close_receipt done [10:10:52]requested_data is exist [10:10:52]produce_requested_data [10:10:52]requested_item fm.sn is exist - process it [10:10:52]wFMCommunicate request_size=4 [10:10:52]MH_SAM_APDU [10:10:52]CAPDU: 80 11 00 00 [10:10:52]Write to MH i2c: E2 08 00 C5 3A 80 11 00 00 00 00 00 00 79 [10:10:52]Write i2c OK [10:10:52]MH_I2C_Read... [10:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:10:52]Read from MH i2c: E2 [10:10:52]MH_I2C_Read... [10:10:52]Read from MH i2c: E2 17 00 [10:10:52]MH_I2C_Read... [10:10:52]Read from MH i2c: E2 17 00 C5 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C4 [10:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:10:52]wFMCommunicate OK [10:10:52]requested_item fd.num is exist - process it [10:10:52]SAM_PROTO_GetFieldsCounters [10:10:52]wFMCommunicate request_size=4 [10:10:52]MH_SAM_APDU [10:10:52]CAPDU: 80 13 00 00 [10:10:52]Write to MH i2c: E2 08 00 C6 3A 80 13 00 00 00 00 00 00 7C [10:10:52]Write i2c OK [10:10:52]MH_I2C_Read... [10:10:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:10:52]Read from MH i2c: E2 [10:10:52]MH_I2C_Read... [10:10:52]Read from MH i2c: E2 62 00 [10:10:52]MH_I2C_Read... [10:10:52]Read from MH i2c: E2 62 00 C6 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 01 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 D4 [10:10:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 01 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:10:52]wFMCommunicate OK [10:10:52]SAM_PROTO_GetFieldsCounters done [10:10:52]requested_item shift.num is exist - process it [10:10:52]requested_item shift.opened is exist - process it [10:10:52]req_shift_opened [10:10:52]FM_GetShiftState [10:10:52]SAM_PROTO_GetShiftState [10:10:52]wFMCommunicate request_size=4 [10:10:52]MH_SAM_APDU [10:10:52]CAPDU: 80 13 01 00 [10:10:52]Write to MH i2c: E2 08 00 C7 3A 80 13 01 00 00 00 00 00 7E [10:10:52]Write i2c OK [10:10:52]MH_I2C_Read... [10:10:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:10:52]Read from MH i2c: E2 [10:10:52]MH_I2C_Read... [10:10:52]Read from MH i2c: E2 0E 00 [10:10:52]MH_I2C_Read... [10:10:52]Read from MH i2c: E2 0E 00 C7 3A 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 F4 [10:10:52]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:10:52]wFMCommunicate OK [10:10:52]SAM_PROTO_GetShiftState done [10:10:52]FM_GetShiftState done [10:10:52]req_shift_opened done [10:10:52]requested_item shift.open_date is exist - process it [10:10:52]req_shift_open_date [10:10:52]req_shift_open_date done [10:10:52]produce_requested_data done [10:10:52]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49409,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [10:10:52]process_action_free close_receipt [10:10:52]json_value_free [10:10:52]json_value_free done [10:10:52]process_json_proto returns [10:10:52]Send response to host [10:10:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49409,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [10:10:52]free response buf [10:10:52]execute_script done [10:10:52]execute_script returns [10:10:52]free content buf [10:10:52]Sock 10.Close socket [10:10:52]Sock 10.Thread stoped [10:10:56]OFD Sender: No OFD packet to send [10:11:01]OFD Sender: No OFD packet to send [10:11:06]OFD Sender: No OFD packet to send [10:11:11]OFD Sender: No OFD packet to send [10:11:16]OFD Sender: No OFD packet to send [10:11:21]OFD Sender: No OFD packet to send [10:11:26]OFD Sender: No OFD packet to send [10:11:31]OFD Sender: No OFD packet to send [10:11:36]OFD Sender: No OFD packet to send [10:11:41]OFD Sender: No OFD packet to send [10:11:46]OFD Sender: No OFD packet to send [10:11:51]OFD Sender: No OFD packet to send [10:11:56]OFD Sender: No OFD packet to send [10:12:01]OFD Sender: No OFD packet to send [10:12:06]OFD Sender: No OFD packet to send [10:12:11]OFD Sender: No OFD packet to send [10:12:16]OFD Sender: No OFD packet to send [10:12:21]OFD Sender: No OFD packet to send [10:12:26]OFD Sender: No OFD packet to send [10:12:31]OFD Sender: No OFD packet to send [10:12:36]OFD Sender: No OFD packet to send [10:12:41]OFD Sender: No OFD packet to send [10:12:46]OFD Sender: No OFD packet to send [10:12:51]OFD Sender: No OFD packet to send [10:12:56]OFD Sender: No OFD packet to send [10:13:00]accept exits with 7 [10:13:00]New connection [10:13:00]New thread 3066830180 created [10:13:00]Thread 3066973540 joined [10:13:00]Waiting for new connection... [10:13:00] Sock 7.Parse request [10:13:00]Sock 7.Check first char [10:13:00]Sock 7.First char is OK [10:13:00]request: POST /json_proto HTTP/1.0 [10:13:00]Method: POST [10:13:00]URL: /json_proto [10:13:00]Method is POST - this is cgi request [10:13:00]url: /json_proto [10:13:00]query_string will be loaded in cgi processing [10:13:00]execute_cgi json_proto POST (null) [10:13:00]execute_cgi path=json_proto method=POST [10:13:00]POST find Content-Length [10:13:00]Host: 172.17.46.196:8080 [10:13:00]Content-Length: 888 [10:13:00]Content-Type: application/json [10:13:00] [10:13:00]POST finish read [10:13:00]Found Content-Length = 888 [10:13:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189639", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002768", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Biskrem 100\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:00]execute_script... [10:13: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 : (3)189639", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112002768", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Biskrem 100\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:13:00]POST & json_proto [10:13:00]process_json_proto [10:13:00]json parsed OK: [10:13:00]protocol is kg_v1.0 [10:13:00]action value=close_receipt [10:13:00]process_action close_receipt [10:13:00]cmd_close_receipt [10:13:00]MH_GetDate [10:13:00]Write to MH i2c: F0 00 00 C8 3A F1 [10:13:00]Write i2c OK [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: F0 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: F0 09 00 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: F0 09 00 C8 3A 00 31 26 BF 66 07 E8 5D 66 28 [10:13:00]GetLastDocTimeStamp 1723803053 [10:13:00]current date 1723803185 [10:13:00]FM_GetShiftState [10:13:00]SAM_PROTO_GetShiftState [10:13:00]wFMCommunicate request_size=4 [10:13:00]MH_SAM_APDU [10:13:00]CAPDU: 80 13 01 00 [10:13:00]Write to MH i2c: E2 08 00 C9 3A 80 13 01 00 00 00 00 00 80 [10:13:00]Write i2c OK [10:13:00]MH_I2C_Read... [10:13:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:00]Read from MH i2c: E2 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 0E 00 [10:13:00]MH_I2C_Read... [10:13:00]Read from MH i2c: E2 0E 00 C9 3A 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 F6 [10:13:00]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:13:00]wFMCommunicate OK [10:13:00]SAM_PROTO_GetShiftState done [10:13:00]FM_GetShiftState done [10:13:00]opened in 1723766958 [10:13:00]opened+sec_in_day 1723853358 [10:13:00]quantity*price = 8500 [10:13:00]sum+1 = 8501 [10:13:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112002768 Печенье Biskrem 100г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 58 16.08.2024 10:13 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49410 ФПД: 221729963287779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T101305&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49410&fm=221729963287779&tin=02508201610067®Number=0000000000092546&sum=15500 0 [10:13:01]StoreToDocumentArchive [10:13:01]shift 464 fd 49410 [10:13:01]save to /storage/0464/doc_00049410 [10:13:01]save last doc name /storage/0464/doc_00049410 to /storage/kkm_last_doc_name [10:13:01]save OK [10:13:01]Clear old archive folders... [10:13:01]ProcessDocumentItem done err = 0, tmpTLVsize=394 [10:13:01]tlvbuf is 00E12780 [10:13:01]SAM_PROTO_ClearQueue [10:13:01]wFMCommunicate request_size=4 [10:13:01]MH_SAM_APDU [10:13:01]CAPDU: 80 09 00 00 [10:13:01]Write to MH i2c: E2 08 00 D6 3A 80 09 00 00 00 00 00 00 82 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 03 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 03 00 D6 3A 00 90 00 84 [10:13:01]RAPDU: 90 00 [10:13:01]wFMCommunicate OK [10:13:01]SAM_PROTO_ClearQueue done [10:13:01]KKMCreateOFDPacket [10:13:01]OFDProtocolAddRootSTLVToBuf [10:13:01]FM_MakeSignedData [10:13:01]FM_MakeSignedData [10:13:01]SAM_PROTO_SignData [10:13:01]wFMCommunicate request_size=4 [10:13:01]MH_SAM_APDU [10:13:01]CAPDU: 80 0D 01 02 [10:13:01]Write to MH i2c: E2 08 00 D7 3A 80 0D 01 02 00 00 00 00 8A [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 03 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 03 00 D7 3A 00 90 00 85 [10:13:01]RAPDU: 90 00 [10:13:01]wFMCommunicate OK [10:13:01]wFMCommunicate request_size=255 [10:13:01]MH_SAM_APDU [10:13:01]CAPDU: 80 0D 02 02 FA 03 00 8A 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F [10:13:01]Write to MH i2c: E2 02 01 D8 3A 80 0D 02 02 FA 00 03 00 8A 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 BF [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:01]OFD Sender: No OFD packet to send [10:13:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:01]Read from MH i2c: E2 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 03 00 [10:13:01]MH_I2C_Read... [10:13:01]Read from MH i2c: E2 03 00 D8 3A 00 90 00 86 [10:13:01]RAPDU: 90 00 [10:13:01]wFMCommunicate OK [10:13:01]wFMCommunicate request_size=153 [10:13:01]MH_SAM_APDU [10:13:01]CAPDU: 80 0D 02 02 94 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 31 26 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 02 C1 00 00 35 04 06 00 C9 A9 87 B2 A4 E3 [10:13:01]Write to MH i2c: E2 9C 00 D9 3A 80 0D 02 02 94 00 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 31 26 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 02 C1 00 00 35 04 06 00 C9 A9 87 B2 A4 E3 00 00 17 [10:13:01]Write i2c OK [10:13:01]MH_I2C_Read... [10:13:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:13:02]Read from MH i2c: E2 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: E2 03 00 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: E2 03 00 D9 3A 00 90 00 87 [10:13:02]RAPDU: 90 00 [10:13:02]wFMCommunicate OK [10:13:02]wFMCommunicate request_size=4 [10:13:02]MH_SAM_APDU [10:13:02]CAPDU: 80 0D 03 02 [10:13:02]Write to MH i2c: E2 08 00 DA 3A 80 0D 03 02 00 00 00 00 8F [10:13:02]Write i2c OK [10:13:02]MH_I2C_Read... [10:13:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:13:02]Read from MH i2c: E2 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: E2 0B 00 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: E2 0B 00 DA 3A 00 A8 A4 0C 01 75 81 40 C2 90 00 E1 [10:13:02]RAPDU: A8 A4 0C 01 75 81 40 C2 90 00 [10:13:02]wFMCommunicate OK [10:13:02]SAM_PROTO_SignData done [10:13:02]FM_MakeSignedData done [10:13:02]CreateOFDProtocolMessage [10:13:02]wFMCommunicate request_size=4 [10:13:02]MH_SAM_APDU [10:13:02]CAPDU: 80 11 00 00 [10:13:02]Write to MH i2c: E2 08 00 DB 3A 80 11 00 00 00 00 00 00 8F [10:13:02]Write i2c OK [10:13:02]MH_I2C_Read... [10:13:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:02]Read from MH i2c: E2 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: E2 17 00 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: E2 17 00 DB 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DA [10:13:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:13:02]wFMCommunicate OK [10:13:02]CreateOFDProtocolMessage done [10:13:02]OFDSenderStorePacket 49410 [10:13:02]StoreOFDPacket docnum=49410 [10:13:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9E 01 00 00 E2 86 96 01 4C B6 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 31 26 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 02 C1 00 00 35 04 06 00 C9 A9 87 B2 A4 E3 A8 A4 0C 01 75 81 40 C2 [10:13:02]CheckFolder [10:13:02]dirname=/storage/ofd_packets [10:13:02]CheckFolder done [10:13:02]ProducePacketName [10:13:02]name=ofd_packets/00049410 [10:13:02]NVStorageSaveData ofd_packets/00049410 [10:13:02]File name is /storage/ofd_packets/00049410 [10:13:02]Write 444 bytes [10:13:02]NVStorageSaveData done [10:13:02]OFDSenderStorePacket done [10:13:02]KKMCreateOFDPacket done [10:13:02]NVStorageSaveData kkm_last_timestamp [10:13:02]File name is /storage/kkm_last_timestamp [10:13:02]Write 4 bytes [10:13:02]NVStorageSaveData done [10:13:02]ExternCall_PrintAddStr [10:13:02]wPrintStart [10:13:02]Write to MH i2c: 01 00 00 DC 3A 16 [10:13:02]Write i2c OK [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: 01 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: 01 07 00 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: 01 07 00 DC 3A 00 00 00 00 00 FF 0F 2B [10:13:02]RasterBufferAndPrint [10:13:02]line Счет N : (3)189639 [10:13:02]line ИНН: 02508201610067 [10:13:02]line Контрольно-Кассовый Чек [10:13:02]line ПРОДАЖА [10:13:02]line Товар: 4600682557456 [10:13:02]line Напиток FLash up energy эн ж/б 0,5/0,45л [10:13:02]line 1.000 * 85.00 [10:13:02]line = 85.00 [10:13:02]line НДС 12% НСП 1% [10:13:02]line > о реализуемом товаре [10:13:02]line Товар: 4870112002768 [10:13:02]line Печенье Biskrem 100г [10:13:02]line 1.000 * 70.00 [10:13:02]line = 70.00 [10:13:02]line НДС 12% НСП 1% [10:13:02]line > о реализуемом товаре [10:13:02]line ИТОГО: 155.00 [10:13:02]line НСП 1% : 1.37 [10:13:02]line НДС 12% : 16.46 [10:13:02]line Наличными: 155.00 [10:13:02]line Безнал.: 0.00 [10:13:02]line Место: АЗС № 95 "Партнер Нефть" [10:13:02]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:13:02]line СНО: Общий режим [10:13:02]line Чек 58 16.08.2024 10:13 [10:13:02]line Смена: 464 ФФД: 1.0 [10:13:02]line ЗНМ: 0300000078 [10:13:02]line РНМ: 0000000000092546 [10:13:02]line Версия ККМ: 001 [10:13:02]line ФМ: 0000000000871800 [10:13:02]line ФД: 49410 [10:13:02]line ФПД: 221729963287779 [10:13:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T101305&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49410&fm=221729963287779&tin=02508201610067®Number=0000000000092546&sum=15500 [10:13:02]line 0 [10:13:02]OFD Sender: Processing packet 49410 [packets to send 21, broken 20] [10:13:02]ProducePacketName [10:13:02]name=ofd_packets/00049410 [10:13:02]OFD Sender: To server: pG, [10:13:02]CommunicateWithHost lk.salyk.kg:30040 [10:13:02]ConnectInit lk.salyk.kg [10:13:02]written 0, free lines is 4095 [10:13:02]Connected sock=10 [10:13:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9E 01 00 00 E2 86 96 01 4C B6 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 31 26 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 02 C1 00 00 35 04 06 00 C9 A9 87 B2 A4 E3 A8 A4 0C 01 75 81 40 C2 [10:13:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 B5 B3 47 00 D5 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 02 C1 00 00 F4 03 04 00 70 D1 BE 66 B6 04 01 00 00 41 28 DD 4E 65 CE 67 99 [10:13:02]CommunicateWithHost err = 0 [10:13:02]CheckOFDResponse [10:13:02]1017 (14) - 77093643461234 [10:13:02]1041 (16) - 0000000000871800 [10:13:02]1040 (4) - 49410 [10:13:02]1012 (4) - 16.08.2024 04:11 [10:13:02]1206 (1) - 0 [10:13:02]OFD Sender: Remove packet 49410 [10:13:02]ProducePacketName [10:13:02]name=ofd_packets/00049410 [10:13:02]NVStorageDeleteData [10:13:02]Write to MH i2c: 01 00 00 0B 3B 46 [10:13:02]Write i2c OK [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: 01 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: 01 07 00 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: 01 07 00 0B 3B 00 00 00 00 00 90 0C E9 [10:13:02]RasterBufferAndPrint [10:13:02]line [10:13:02]line [10:13:02]line [10:13:02]line [10:13:02]line [10:13:02]written 0, free lines is 3223 [10:13:02]MH_Cut [10:13:02]Write to MH i2c: D1 01 00 12 3B 01 1F [10:13:02]Write i2c OK [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: D1 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: D1 01 00 [10:13:02]MH_I2C_Read... [10:13:02]Read from MH i2c: D1 01 00 12 3B 00 1E [10:13:02]Write to MH i2c: 01 00 00 13 3B 4E [10:13:02]Write i2c OK [10:13:02]MH_I2C_Read... [10:13:03]OFD Sender: No OFD packet to send [10:13:03]*** Cut start [10:13:03]*** Purtial cut [10:13:03]*** CUTSNS_PIN = 0 [10:13:03]*** Stage 1: CUTSNS_PIN = 1 [10:13:05]Read from MH i2c: 01 [10:13:05]MH_I2C_Read... [10:13:05]*** Stop cut motor [10:13:05]*** Cut end [10:13:05]Read from MH i2c: 01 07 00 [10:13:05]MH_I2C_Read... [10:13:05]Read from MH i2c: 01 07 00 13 3B 00 00 00 00 00 FF 0F 63 [10:13:05]process_action close_receipt done [10:13:05]requested_data is exist [10:13:05]produce_requested_data [10:13:05]requested_item fm.sn is exist - process it [10:13:05]wFMCommunicate request_size=4 [10:13:05]MH_SAM_APDU [10:13:05]CAPDU: 80 11 00 00 [10:13:05]Write to MH i2c: E2 08 00 14 3B 80 11 00 00 00 00 00 00 C9 [10:13:05]Write i2c OK [10:13:05]MH_I2C_Read... [10:13:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:13:05]Read from MH i2c: E2 [10:13:05]MH_I2C_Read... [10:13:05]Read from MH i2c: E2 17 00 [10:13:05]MH_I2C_Read... [10:13:05]Read from MH i2c: E2 17 00 14 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 14 [10:13:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:13:05]wFMCommunicate OK [10:13:05]requested_item fd.num is exist - process it [10:13:05]SAM_PROTO_GetFieldsCounters [10:13:05]wFMCommunicate request_size=4 [10:13:05]MH_SAM_APDU [10:13:05]CAPDU: 80 13 00 00 [10:13:05]Write to MH i2c: E2 08 00 15 3B 80 13 00 00 00 00 00 00 CC [10:13:05]Write i2c OK [10:13:05]MH_I2C_Read... [10:13:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:13:06]Read from MH i2c: E2 [10:13:06]MH_I2C_Read... [10:13:06]Read from MH i2c: E2 62 00 [10:13:06]MH_I2C_Read... [10:13:06]Read from MH i2c: E2 62 00 15 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 02 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [10:13:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 02 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:13:06]wFMCommunicate OK [10:13:06]SAM_PROTO_GetFieldsCounters done [10:13:06]requested_item shift.num is exist - process it [10:13:06]requested_item shift.opened is exist - process it [10:13:06]req_shift_opened [10:13:06]FM_GetShiftState [10:13:06]SAM_PROTO_GetShiftState [10:13:06]wFMCommunicate request_size=4 [10:13:06]MH_SAM_APDU [10:13:06]CAPDU: 80 13 01 00 [10:13:06]Write to MH i2c: E2 08 00 16 3B 80 13 01 00 00 00 00 00 CE [10:13:06]Write i2c OK [10:13:06]MH_I2C_Read... [10:13:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:13:06]Read from MH i2c: E2 [10:13:06]MH_I2C_Read... [10:13:06]Read from MH i2c: E2 0E 00 [10:13:06]MH_I2C_Read... [10:13:06]Read from MH i2c: E2 0E 00 16 3B 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 44 [10:13:06]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:13:06]wFMCommunicate OK [10:13:06]SAM_PROTO_GetShiftState done [10:13:06]FM_GetShiftState done [10:13:06]req_shift_opened done [10:13:06]requested_item shift.open_date is exist - process it [10:13:06]req_shift_open_date [10:13:06]req_shift_open_date done [10:13:06]produce_requested_data done [10:13:06]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49410,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [10:13:06]process_action_free close_receipt [10:13:06]json_value_free [10:13:06]json_value_free done [10:13:06]process_json_proto returns [10:13:06]Send response to host [10:13:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49410,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [10:13:06]free response buf [10:13:06]execute_script done [10:13:06]execute_script returns [10:13:06]free content buf [10:13:06]Sock 7.Close socket [10:13:06]Sock 7.Thread stoped [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:33]accept exits with 9 [10:14:33]New connection [10:14:33]New thread 3066973540 created [10:14:33]Thread 3066830180 joined [10:14:33]Waiting for new connection... [10:14:33] Sock 9.Parse request [10:14:33]Sock 9.Check first char [10:14:33]Sock 9.First char is OK [10:14:33]request: POST /json_proto HTTP/1.0 [10:14:33]Method: POST [10:14:33]URL: /json_proto [10:14:33]Method is POST - this is cgi request [10:14:33]url: /json_proto [10:14:33]query_string will be loaded in cgi processing [10:14:33]execute_cgi json_proto POST (null) [10:14:33]execute_cgi path=json_proto method=POST [10:14:33]POST find Content-Length [10:14:33]Host: 172.17.46.196:8080 [10:14:33]Content-Length: 756 [10:14:33]Content-Type: application/json [10:14:33] [10:14:33]POST finish read [10:14:33]Found Content-Length = 756 [10:14:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106787", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:33]execute_script... [10:14:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106787", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:14:33]POST & json_proto [10:14:33]process_json_proto [10:14:33]json parsed OK: [10:14:33]protocol is kg_v1.0 [10:14:33]action value=close_receipt [10:14:33]process_action close_receipt [10:14:33]cmd_close_receipt [10:14:33]MH_GetDate [10:14:33]Write to MH i2c: F0 00 00 17 3B 41 [10:14:33]Write i2c OK [10:14:33]MH_I2C_Read... [10:14:33]Read from MH i2c: F0 [10:14:33]MH_I2C_Read... [10:14:33]Read from MH i2c: F0 09 00 [10:14:33]MH_I2C_Read... [10:14:33]Read from MH i2c: F0 09 00 17 3B 00 8E 26 BF 66 07 E8 5D 66 D5 [10:14:33]GetLastDocTimeStamp 1723803185 [10:14:33]current date 1723803278 [10:14:33]FM_GetShiftState [10:14:33]SAM_PROTO_GetShiftState [10:14:33]wFMCommunicate request_size=4 [10:14:33]MH_SAM_APDU [10:14:33]CAPDU: 80 13 01 00 [10:14:33]Write to MH i2c: E2 08 00 18 3B 80 13 01 00 00 00 00 00 D0 [10:14:33]Write i2c OK [10:14:33]MH_I2C_Read... [10:14:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:33]Read from MH i2c: E2 [10:14:33]MH_I2C_Read... [10:14:33]Read from MH i2c: E2 0E 00 [10:14:33]MH_I2C_Read... [10:14:33]Read from MH i2c: E2 0E 00 18 3B 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 46 [10:14:33]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:14:33]wFMCommunicate OK [10:14:33]SAM_PROTO_GetShiftState done [10:14:33]FM_GetShiftState done [10:14:33]opened in 1723766958 [10:14:33]opened+sec_in_day 1723853358 [10:14:33]quantity*price = 0 [10:14:33]sum+1 = 1 [10:14:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 59 16.08.2024 10:14 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30106787 ФМ: 0000000000871800 ФД: 49411 ФПД: 123997564485871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T101438&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49411&fm=123997564485871&tin=02508201610067®Number=0000000000092546&sum=0 [10:14:34]StoreToDocumentArchive [10:14:34]shift 464 fd 49411 [10:14:34]save to /storage/0464/doc_00049411 [10:14:34]save last doc name /storage/0464/doc_00049411 to /storage/kkm_last_doc_name [10:14:34]save OK [10:14:34]Clear old archive folders... [10:14:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:14:34]tlvbuf is B6DAD060 [10:14:34]SAM_PROTO_ClearQueue [10:14:34]wFMCommunicate request_size=4 [10:14:34]MH_SAM_APDU [10:14:34]CAPDU: 80 09 00 00 [10:14:34]Write to MH i2c: E2 08 00 25 3B 80 09 00 00 00 00 00 00 D2 [10:14:34]Write i2c OK [10:14:34]MH_I2C_Read... [10:14:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:14:34]Read from MH i2c: E2 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: E2 03 00 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: E2 03 00 25 3B 00 90 00 D4 [10:14:34]RAPDU: 90 00 [10:14:34]wFMCommunicate OK [10:14:34]SAM_PROTO_ClearQueue done [10:14:34]KKMCreateOFDPacket [10:14:34]OFDProtocolAddRootSTLVToBuf [10:14:34]FM_MakeSignedData [10:14:34]FM_MakeSignedData [10:14:34]SAM_PROTO_SignData [10:14:34]wFMCommunicate request_size=4 [10:14:34]MH_SAM_APDU [10:14:34]CAPDU: 80 0D 01 02 [10:14:34]Write to MH i2c: E2 08 00 26 3B 80 0D 01 02 00 00 00 00 DA [10:14:34]Write i2c OK [10:14:34]MH_I2C_Read... [10:14:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:14:34]Read from MH i2c: E2 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: E2 03 00 [10:14:34]MH_I2C_Read... [10:14:34]Read from MH i2c: E2 03 00 26 3B 00 90 00 D5 [10:14:34]RAPDU: 90 00 [10:14:34]wFMCommunicate OK [10:14:34]wFMCommunicate request_size=255 [10:14:34]MH_SAM_APDU [10:14:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 8E 26 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 03 C1 00 00 35 04 06 00 70 [10:14:34]Write to MH i2c: E2 02 01 27 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 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 8E 26 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 03 C1 00 00 35 04 06 00 70 00 00 9A [10:14:35]Write i2c OK [10:14:35]MH_I2C_Read... [10:14:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:35]Read from MH i2c: E2 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E2 03 00 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E2 03 00 27 3B 00 90 00 D6 [10:14:35]RAPDU: 90 00 [10:14:35]wFMCommunicate OK [10:14:35]wFMCommunicate request_size=10 [10:14:35]MH_SAM_APDU [10:14:35]CAPDU: 80 0D 02 02 05 C6 6E C8 C0 EF [10:14:35]Write to MH i2c: E2 0D 00 28 3B 80 0D 02 02 05 00 C6 6E C8 C0 EF 00 00 92 [10:14:35]Write i2c OK [10:14:35]MH_I2C_Read... [10:14:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:14:35]Read from MH i2c: E2 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E2 03 00 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E2 03 00 28 3B 00 90 00 D7 [10:14:35]RAPDU: 90 00 [10:14:35]wFMCommunicate OK [10:14:35]wFMCommunicate request_size=4 [10:14:35]MH_SAM_APDU [10:14:35]CAPDU: 80 0D 03 02 [10:14:35]Write to MH i2c: E2 08 00 29 3B 80 0D 03 02 00 00 00 00 DF [10:14:35]Write i2c OK [10:14:35]MH_I2C_Read... [10:14:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:14:35]Read from MH i2c: E2 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E2 0B 00 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E2 0B 00 29 3B 00 3A D5 FC 21 19 50 81 5B 90 00 51 [10:14:35]RAPDU: 3A D5 FC 21 19 50 81 5B 90 00 [10:14:35]wFMCommunicate OK [10:14:35]SAM_PROTO_SignData done [10:14:35]FM_MakeSignedData done [10:14:35]CreateOFDProtocolMessage [10:14:35]wFMCommunicate request_size=4 [10:14:35]MH_SAM_APDU [10:14:35]CAPDU: 80 11 00 00 [10:14:35]Write to MH i2c: E2 08 00 2A 3B 80 11 00 00 00 00 00 00 DF [10:14:35]Write i2c OK [10:14:35]MH_I2C_Read... [10:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:35]Read from MH i2c: E2 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E2 17 00 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: E2 17 00 2A 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2A [10:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:14:35]wFMCommunicate OK [10:14:35]CreateOFDProtocolMessage done [10:14:35]OFDSenderStorePacket 49411 [10:14:35]StoreOFDPacket docnum=49411 [10:14:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 5C 11 07 01 13 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 8E 26 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 03 C1 00 00 35 04 06 00 70 C6 6E C8 C0 EF 3A D5 FC 21 19 50 81 5B [10:14:35]CheckFolder [10:14:35]dirname=/storage/ofd_packets [10:14:35]CheckFolder done [10:14:35]ProducePacketName [10:14:35]name=ofd_packets/00049411 [10:14:35]NVStorageSaveData ofd_packets/00049411 [10:14:35]File name is /storage/ofd_packets/00049411 [10:14:35]Write 301 bytes [10:14:35]NVStorageSaveData done [10:14:35]OFDSenderStorePacket done [10:14:35]KKMCreateOFDPacket done [10:14:35]NVStorageSaveData kkm_last_timestamp [10:14:35]File name is /storage/kkm_last_timestamp [10:14:35]Write 4 bytes [10:14:35]NVStorageSaveData done [10:14:35]ExternCall_PrintAddStr [10:14:35]wPrintStart [10:14:35]Write to MH i2c: 01 00 00 2B 3B 66 [10:14:35]Write i2c OK [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: 01 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: 01 07 00 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: 01 07 00 2B 3B 00 00 00 00 00 FF 0F 7B [10:14:35]RasterBufferAndPrint [10:14:35]line Счет N : (1)11325246 [10:14:35]line ИНН: 02508201610067 [10:14:35]line Контрольно-Кассовый Чек [10:14:35]line ПРОДАЖА [10:14:35]line ТРК (МРК, ГНК) : 22 [10:14:35]line Товар: 2710124130 [10:14:35]line Аи-92-К-4 [10:14:35]line 30.000 * 0.00 [10:14:35]line = 0.00 [10:14:35]line НДС 12% НСП 1% [10:14:35]line > о реализуемом товаре [10:14:35]line ИТОГО: 0.00 [10:14:35]line НСП 1% : 0.00 [10:14:35]line НДС 12% : 0.00 [10:14:35]line Наличными: 0.00 [10:14:35]line Безнал.: 0.00 [10:14:35]line Место: АЗС № 95 "Партнер Нефть" [10:14:35]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:14:35]line СНО: Общий режим [10:14:35]line Чек 59 16.08.2024 10:14 [10:14:35]line Смена: 464 ФФД: 1.0 [10:14:35]line ЗНМ: 0300000078 [10:14:35]line РНМ: 0000000000092546 [10:14:35]line Версия ККМ: 001 [10:14:35]line Талоны: ТК ГПНА Online [10:14:35]line 30106787 [10:14:35]line ФМ: 0000000000871800 [10:14:35]line ФД: 49411 [10:14:35]line ФПД: 123997564485871 [10:14:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T101438&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49411&fm=123997564485871&tin=02508201610067®Number=0000000000092546&sum=0 [10:14:35]written 0, free lines is 4095 [10:14:35]OFD Sender: Processing packet 49411 [packets to send 21, broken 20] [10:14:35]ProducePacketName [10:14:35]name=ofd_packets/00049411 [10:14:35]OFD Sender: To server: pG, [10:14:35]CommunicateWithHost lk.salyk.kg:30040 [10:14:35]ConnectInit lk.salyk.kg [10:14:35]Connected sock=10 [10:14:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 5C 11 07 01 13 63 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 8E 26 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 03 C1 00 00 35 04 06 00 70 C6 6E C8 C0 EF 3A D5 FC 21 19 50 81 5B [10:14:35]Write to MH i2c: 01 00 00 55 3B 90 [10:14:35]Write i2c OK [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: 01 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: 01 07 00 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: 01 07 00 55 3B 00 00 00 00 00 ED 0C 90 [10:14:35]RasterBufferAndPrint [10:14:35]line [10:14:35]line [10:14:35]line [10:14:35]line [10:14:35]line [10:14:35]written 0, free lines is 3315 [10:14:35]MH_Cut [10:14:35]Write to MH i2c: D1 01 00 5C 3B 01 69 [10:14:35]Write i2c OK [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: D1 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: D1 01 00 [10:14:35]MH_I2C_Read... [10:14:35]Read from MH i2c: D1 01 00 5C 3B 00 68 [10:14:35]Write to MH i2c: 01 00 00 5D 3B 98 [10:14:35]Write i2c OK [10:14:35]MH_I2C_Read... [10:14:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 FD 2A 47 00 9A D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 03 C1 00 00 F4 03 04 00 CD D1 BE 66 B6 04 01 00 00 B3 57 77 34 E3 99 3E 03 [10:14:35]CommunicateWithHost err = 0 [10:14:35]CheckOFDResponse [10:14:35]1017 (14) - 77093643461234 [10:14:35]1041 (16) - 0000000000871800 [10:14:35]1040 (4) - 49411 [10:14:35]1012 (4) - 16.08.2024 04:13 [10:14:35]1206 (1) - 0 [10:14:35]OFD Sender: Remove packet 49411 [10:14:35]ProducePacketName [10:14:35]name=ofd_packets/00049411 [10:14:35]NVStorageDeleteData [10:14:36]OFD Sender: No OFD packet to send [10:14:36]*** Cut start [10:14:36]*** Purtial cut [10:14:36]*** Stage 1: CUTSNS_PIN = 1 [10:14:36]Read from MH i2c: 01 [10:14:36]MH_I2C_Read... [10:14:36]*** Stop cut motor [10:14:36]*** Cut end [10:14:36]Read from MH i2c: 01 07 00 [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: 01 07 00 5D 3B 00 00 00 00 00 FF 0F AD [10:14:36]process_action close_receipt done [10:14:36]requested_data is exist [10:14:36]produce_requested_data [10:14:36]requested_item fm.sn is exist - process it [10:14:36]wFMCommunicate request_size=4 [10:14:36]MH_SAM_APDU [10:14:36]CAPDU: 80 11 00 00 [10:14:36]Write to MH i2c: E2 08 00 5E 3B 80 11 00 00 00 00 00 00 13 [10:14:36]Write i2c OK [10:14:36]MH_I2C_Read... [10:14:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:14:36]Read from MH i2c: E2 [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: E2 17 00 [10:14:36]MH_I2C_Read... [10:14:36]Read from MH i2c: E2 17 00 5E 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5E [10:14:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:14:36]wFMCommunicate OK [10:14:36]requested_item fd.num is exist - process it [10:14:36]SAM_PROTO_GetFieldsCounters [10:14:36]wFMCommunicate request_size=4 [10:14:36]MH_SAM_APDU [10:14:36]CAPDU: 80 13 00 00 [10:14:36]Write to MH i2c: E2 08 00 5F 3B 80 13 00 00 00 00 00 00 16 [10:14:36]Write i2c OK [10:14:36]MH_I2C_Read... [10:14:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:14:37]Read from MH i2c: E2 [10:14:37]MH_I2C_Read... [10:14:37]Read from MH i2c: E2 62 00 [10:14:37]MH_I2C_Read... [10:14:37]Read from MH i2c: E2 62 00 5F 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 03 C1 00 00 0E 04 04 00 D0 01 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 76 [10:14:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 03 C1 00 00 0E 04 04 00 D0 01 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 [10:14:37]wFMCommunicate OK [10:14:37]SAM_PROTO_GetFieldsCounters done [10:14:37]requested_item shift.num is exist - process it [10:14:37]requested_item shift.opened is exist - process it [10:14:37]req_shift_opened [10:14:37]FM_GetShiftState [10:14:37]SAM_PROTO_GetShiftState [10:14:37]wFMCommunicate request_size=4 [10:14:37]MH_SAM_APDU [10:14:37]CAPDU: 80 13 01 00 [10:14:37]Write to MH i2c: E2 08 00 60 3B 80 13 01 00 00 00 00 00 18 [10:14:37]Write i2c OK [10:14:37]MH_I2C_Read... [10:14:37]Read from MH i2c: E2 [10:14:37]MH_I2C_Read... [10:14:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:14:37]Read from MH i2c: E2 0E 00 [10:14:37]MH_I2C_Read... [10:14:37]Read from MH i2c: E2 0E 00 60 3B 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 8E [10:14:37]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:14:37]wFMCommunicate OK [10:14:37]SAM_PROTO_GetShiftState done [10:14:37]FM_GetShiftState done [10:14:37]req_shift_opened done [10:14:37]requested_item shift.open_date is exist - process it [10:14:37]req_shift_open_date [10:14:37]req_shift_open_date done [10:14:37]produce_requested_data done [10:14:37]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49411,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [10:14:37]process_action_free close_receipt [10:14:37]json_value_free [10:14:37]json_value_free done [10:14:37]process_json_proto returns [10:14:37]Send response to host [10:14:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49411,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [10:14:37]free response buf [10:14:37]execute_script done [10:14:37]execute_script returns [10:14:37]free content buf [10:14:37]Sock 9.Close socket [10:14:37]Sock 9.Thread stoped [10:14:41]OFD Sender: No OFD packet to send [10:14:46]OFD Sender: No OFD packet to send [10:14:51]OFD Sender: No OFD packet to send [10:14:56]OFD Sender: No OFD packet to send [10:15:01]OFD Sender: No OFD packet to send [10:15:06]OFD Sender: No OFD packet to send [10:15:11]OFD Sender: No OFD packet to send [10:15:16]OFD Sender: No OFD packet to send [10:15:21]OFD Sender: No OFD packet to send [10:15:26]OFD Sender: No OFD packet to send [10:15:31]OFD Sender: No OFD packet to send [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:51]OFD Sender: No OFD packet to send [10:15:56]OFD Sender: No OFD packet to send [10:16:01]OFD Sender: No OFD packet to send [10:16:06]OFD Sender: No OFD packet to send [10:16:11]OFD Sender: No OFD packet to send [10:16:16]OFD Sender: No OFD packet to send [10:16:21]OFD Sender: No OFD packet to send [10:16:26]OFD Sender: No OFD packet to send [10:16:31]OFD Sender: No OFD packet to send [10:16:36]OFD Sender: No OFD packet to send [10:16:41]OFD Sender: No OFD packet to send [10:16:46]OFD Sender: No OFD packet to send [10:16:51]OFD Sender: No OFD packet to send [10:16:56]OFD Sender: No OFD packet to send [10:17:01]OFD Sender: No OFD packet to send [10:17:06]OFD Sender: No OFD packet to send [10:17:11]OFD Sender: No OFD packet to send [10:17:16]OFD Sender: No OFD packet to send [10:17:21]OFD Sender: No OFD packet to send [10:17:26]OFD Sender: No OFD packet to send [10:17:31]OFD Sender: No OFD packet to send [10:17:36]OFD Sender: No OFD packet to send [10:17:41]OFD Sender: No OFD packet to send [10:17:46]OFD Sender: No OFD packet to send [10:17:51]OFD Sender: No OFD packet to send [10:17:56]OFD Sender: No OFD packet to send [10:18:01]OFD Sender: No OFD packet to send [10:18:06]OFD Sender: No OFD packet to send [10:18:11]OFD Sender: No OFD packet to send [10:18:16]OFD Sender: No OFD packet to send [10:18:21]OFD Sender: No OFD packet to send [10:18:26]OFD Sender: No OFD packet to send [10:18:31]OFD Sender: No OFD packet to send [10:18:36]OFD Sender: No OFD packet to send [10:18:41]OFD Sender: No OFD packet to send [10:18:46]OFD Sender: No OFD packet to send [10:18:51]OFD Sender: No OFD packet to send [10:18:56]OFD Sender: No OFD packet to send [10:19:01]OFD Sender: No OFD packet to send [10:19:05]accept exits with 7 [10:19:05]New connection [10:19:05]New thread 3066830180 created [10:19:05]Thread 3066973540 joined [10:19:05]Waiting for new connection... [10:19:05] Sock 7.Parse request [10:19:05]Sock 7.Check first char [10:19:05]Sock 7.First char is OK [10:19:05]request: POST /json_proto HTTP/1.0 [10:19:05]Method: POST [10:19:05]URL: /json_proto [10:19:05]Method is POST - this is cgi request [10:19:05]url: /json_proto [10:19:05]query_string will be loaded in cgi processing [10:19:05]execute_cgi json_proto POST (null) [10:19:05]execute_cgi path=json_proto method=POST [10:19:05]POST find Content-Length [10:19:05]Host: 172.17.46.196:8080 [10:19:05]Content-Length: 753 [10:19:05]Content-Type: application/json [10:19:05] [10:19:05]POST finish read [10:19:05]Found Content-Length = 753 [10:19:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30098034", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:05]execute_script... [10:19: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)11325252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30098034", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:05]POST & json_proto [10:19:05]process_json_proto [10:19:05]json parsed OK: [10:19:05]protocol is kg_v1.0 [10:19:05]action value=close_receipt [10:19:05]process_action close_receipt [10:19:05]cmd_close_receipt [10:19:05]MH_GetDate [10:19:05]Write to MH i2c: F0 00 00 61 3B 8B [10:19:05]Write i2c OK [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: F0 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: F0 09 00 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: F0 09 00 61 3B 00 9E 27 BF 66 07 E8 5D 66 30 [10:19:05]GetLastDocTimeStamp 1723803278 [10:19:05]current date 1723803550 [10:19:05]FM_GetShiftState [10:19:05]SAM_PROTO_GetShiftState [10:19:05]wFMCommunicate request_size=4 [10:19:05]MH_SAM_APDU [10:19:05]CAPDU: 80 13 01 00 [10:19:05]Write to MH i2c: E2 08 00 62 3B 80 13 01 00 00 00 00 00 1A [10:19:05]Write i2c OK [10:19:05]MH_I2C_Read... [10:19:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:05]Read from MH i2c: E2 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 0E 00 [10:19:05]MH_I2C_Read... [10:19:05]Read from MH i2c: E2 0E 00 62 3B 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 90 [10:19:05]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:19:05]wFMCommunicate OK [10:19:05]SAM_PROTO_GetShiftState done [10:19:05]FM_GetShiftState done [10:19:05]opened in 1723766958 [10:19:05]opened+sec_in_day 1723853358 [10:19:05]quantity*price = 0 [10:19:05]sum+1 = 1 [10:19:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 60 16.08.2024 10:19 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30098034 ФМ: 0000000000871800 ФД: 49412 ФПД: 217265301308860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T101911&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49412&fm=217265301308860&tin=02508201610067®Number=0000000000092546&sum=0 [10:19:07]StoreToDocumentArchive [10:19:07]shift 464 fd 49412 [10:19:07]save to /storage/0464/doc_00049412 [10:19:07]save last doc name /storage/0464/doc_00049412 to /storage/kkm_last_doc_name [10:19:07]save OK [10:19:07]Clear old archive folders... [10:19:07]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:19:07]tlvbuf is 00EFB3D0 [10:19:07]SAM_PROTO_ClearQueue [10:19:07]wFMCommunicate request_size=4 [10:19:07]MH_SAM_APDU [10:19:07]CAPDU: 80 09 00 00 [10:19:07]Write to MH i2c: E2 08 00 6F 3B 80 09 00 00 00 00 00 00 1C [10:19:07]Write i2c OK [10:19:07]MH_I2C_Read... [10:19:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:07]Read from MH i2c: E2 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: E2 03 00 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: E2 03 00 6F 3B 00 90 00 1E [10:19:07]RAPDU: 90 00 [10:19:07]wFMCommunicate OK [10:19:07]SAM_PROTO_ClearQueue done [10:19:07]KKMCreateOFDPacket [10:19:07]OFDProtocolAddRootSTLVToBuf [10:19:07]FM_MakeSignedData [10:19:07]FM_MakeSignedData [10:19:07]SAM_PROTO_SignData [10:19:07]wFMCommunicate request_size=4 [10:19:07]MH_SAM_APDU [10:19:07]CAPDU: 80 0D 01 02 [10:19:07]Write to MH i2c: E2 08 00 70 3B 80 0D 01 02 00 00 00 00 24 [10:19:07]Write i2c OK [10:19:07]MH_I2C_Read... [10:19:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:07]Read from MH i2c: E2 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: E2 03 00 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: E2 03 00 70 3B 00 90 00 1F [10:19:07]RAPDU: 90 00 [10:19:07]wFMCommunicate OK [10:19:07]wFMCommunicate request_size=255 [10:19:07]MH_SAM_APDU [10:19:07]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9F 27 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 04 C1 00 00 35 04 06 00 C5 9A 05 1B [10:19:07]Write to MH i2c: E2 02 01 71 3B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9F 27 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 04 C1 00 00 35 04 06 00 C5 9A 05 1B 00 00 ED [10:19:07]Write i2c OK [10:19:07]MH_I2C_Read... [10:19:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:07]Read from MH i2c: E2 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: E2 03 00 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: E2 03 00 71 3B 00 90 00 20 [10:19:07]RAPDU: 90 00 [10:19:07]wFMCommunicate OK [10:19:07]wFMCommunicate request_size=7 [10:19:07]MH_SAM_APDU [10:19:07]CAPDU: 80 0D 02 02 02 45 BC [10:19:07]Write to MH i2c: E2 0A 00 72 3B 80 0D 02 02 02 00 45 BC 00 00 2C [10:19:07]Write i2c OK [10:19:07]MH_I2C_Read... [10:19:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:07]Read from MH i2c: E2 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: E2 03 00 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: E2 03 00 72 3B 00 90 00 21 [10:19:07]RAPDU: 90 00 [10:19:07]wFMCommunicate OK [10:19:07]wFMCommunicate request_size=4 [10:19:07]MH_SAM_APDU [10:19:07]CAPDU: 80 0D 03 02 [10:19:07]Write to MH i2c: E2 08 00 73 3B 80 0D 03 02 00 00 00 00 29 [10:19:07]Write i2c OK [10:19:07]MH_I2C_Read... [10:19:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:07]Read from MH i2c: E2 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: E2 0B 00 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: E2 0B 00 73 3B 00 D4 FA 99 BF 10 AA 64 93 90 00 01 [10:19:07]RAPDU: D4 FA 99 BF 10 AA 64 93 90 00 [10:19:07]wFMCommunicate OK [10:19:07]SAM_PROTO_SignData done [10:19:07]FM_MakeSignedData done [10:19:07]CreateOFDProtocolMessage [10:19:07]wFMCommunicate request_size=4 [10:19:07]MH_SAM_APDU [10:19:07]CAPDU: 80 11 00 00 [10:19:07]Write to MH i2c: E2 08 00 74 3B 80 11 00 00 00 00 00 00 29 [10:19:07]Write i2c OK [10:19:07]MH_I2C_Read... [10:19:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:07]Read from MH i2c: E2 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: E2 17 00 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: E2 17 00 74 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 74 [10:19:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:19:07]wFMCommunicate OK [10:19:07]CreateOFDProtocolMessage done [10:19:07]OFDSenderStorePacket 49412 [10:19:07]StoreOFDPacket docnum=49412 [10:19:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 40 DC 04 01 9A 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9F 27 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 04 C1 00 00 35 04 06 00 C5 9A 05 1B 45 BC D4 FA 99 BF 10 AA 64 93 [10:19:07]CheckFolder [10:19:07]dirname=/storage/ofd_packets [10:19:07]CheckFolder done [10:19:07]ProducePacketName [10:19:07]name=ofd_packets/00049412 [10:19:07]NVStorageSaveData ofd_packets/00049412 [10:19:07]File name is /storage/ofd_packets/00049412 [10:19:07]Write 298 bytes [10:19:07]NVStorageSaveData done [10:19:07]OFDSenderStorePacket done [10:19:07]KKMCreateOFDPacket done [10:19:07]NVStorageSaveData kkm_last_timestamp [10:19:07]File name is /storage/kkm_last_timestamp [10:19:07]Write 4 bytes [10:19:07]NVStorageSaveData done [10:19:07]ExternCall_PrintAddStr [10:19:07]wPrintStart [10:19:07]Write to MH i2c: 01 00 00 75 3B B0 [10:19:07]Write i2c OK [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: 01 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: 01 07 00 [10:19:07]MH_I2C_Read... [10:19:07]Read from MH i2c: 01 07 00 75 3B 00 00 00 00 00 FF 0F C5 [10:19:07]RasterBufferAndPrint [10:19:07]line Счет N : (1)11325252 [10:19:07]line ИНН: 02508201610067 [10:19:07]line Контрольно-Кассовый Чек [10:19:07]line ПРОДАЖА [10:19:07]line ТРК (МРК, ГНК) : 61 [10:19:07]line Товар: 2710194210 [10:19:07]line ДТ-К-5 [10:19:07]line 10.000 * 0.00 [10:19:07]line = 0.00 [10:19:07]line НДС 12% НСП 1% [10:19:07]line > о реализуемом товаре [10:19:07]line ИТОГО: 0.00 [10:19:07]line НСП 1% : 0.00 [10:19:07]line НДС 12% : 0.00 [10:19:07]line Наличными: 0.00 [10:19:07]line Безнал.: 0.00 [10:19:07]line Место: АЗС № 95 "Партнер Нефть" [10:19:07]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:19:07]line СНО: Общий режим [10:19:07]line Чек 60 16.08.2024 10:19 [10:19:07]line Смена: 464 ФФД: 1.0 [10:19:07]line ЗНМ: 0300000078 [10:19:07]line РНМ: 0000000000092546 [10:19:07]line Версия ККМ: 001 [10:19:07]line Талоны: ТК ГПНА Online [10:19:07]line 30098034 [10:19:07]line ФМ: 0000000000871800 [10:19:07]line ФД: 49412 [10:19:07]line ФПД: 217265301308860 [10:19:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T101911&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49412&fm=217265301308860&tin=02508201610067®Number=0000000000092546&sum=0 [10:19:07]OFD Sender: Processing packet 49412 [packets to send 21, broken 20] [10:19:07]ProducePacketName [10:19:07]name=ofd_packets/00049412 [10:19:07]OFD Sender: To server: pG, [10:19:07]CommunicateWithHost lk.salyk.kg:30040 [10:19:07]ConnectInit lk.salyk.kg [10:19:07]written 0, free lines is 4095 [10:19:08]Connected sock=10 [10:19:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 40 DC 04 01 9A 3B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 9F 27 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 04 C1 00 00 35 04 06 00 C5 9A 05 1B 45 BC D4 FA 99 BF 10 AA 64 93 [10:19:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E3 E5 47 00 01 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 38 37 31 38 30 30 10 04 04 00 04 C1 00 00 F4 03 04 00 DD D2 BE 66 B6 04 01 00 00 37 47 8C 93 39 63 DA 49 [10:19:08]CommunicateWithHost err = 0 [10:19:08]CheckOFDResponse [10:19:08]1017 (14) - 77093643461234 [10:19:08]1041 (16) - 0000000000871800 [10:19:08]1040 (4) - 49412 [10:19:08]1012 (4) - 16.08.2024 04:17 [10:19:08]1206 (1) - 0 [10:19:08]OFD Sender: Remove packet 49412 [10:19:08]ProducePacketName [10:19:08]name=ofd_packets/00049412 [10:19:08]NVStorageDeleteData [10:19:08]Write to MH i2c: 01 00 00 9F 3B DA [10:19:08]Write i2c OK [10:19:08]MH_I2C_Read... [10:19:08]Read from MH i2c: 01 [10:19:08]MH_I2C_Read... [10:19:08]Read from MH i2c: 01 07 00 [10:19:08]MH_I2C_Read... [10:19:08]Read from MH i2c: 01 07 00 9F 3B 00 00 00 00 00 E6 0C D3 [10:19:08]RasterBufferAndPrint [10:19:08]line [10:19:08]line [10:19:08]line [10:19:08]line [10:19:08]line [10:19:08]written 0, free lines is 3309 [10:19:08]MH_Cut [10:19:08]Write to MH i2c: D1 01 00 A6 3B 01 B3 [10:19:08]Write i2c OK [10:19:08]MH_I2C_Read... [10:19:08]Read from MH i2c: D1 [10:19:08]MH_I2C_Read... [10:19:08]Read from MH i2c: D1 01 00 [10:19:08]MH_I2C_Read... [10:19:08]Read from MH i2c: D1 01 00 A6 3B 00 B2 [10:19:08]Write to MH i2c: 01 00 00 A7 3B E2 [10:19:08]Write i2c OK [10:19:08]MH_I2C_Read... [10:19:08]OFD Sender: No OFD packet to send [10:19:09]*** Cut start [10:19:09]*** Purtial cut [10:19:09]*** CUTSNS_PIN = 0 [10:19:09]*** Stage 1: CUTSNS_PIN = 1 [10:19:11]Read from MH i2c: 01 [10:19:11]MH_I2C_Read... [10:19:11]*** Stop cut motor [10:19:11]*** Cut end [10:19:11]Read from MH i2c: 01 07 00 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: 01 07 00 A7 3B 00 00 00 00 00 FF 0F F7 [10:19:11]process_action close_receipt done [10:19:11]requested_data is exist [10:19:11]produce_requested_data [10:19:11]requested_item fm.sn is exist - process it [10:19:11]wFMCommunicate request_size=4 [10:19:11]MH_SAM_APDU [10:19:11]CAPDU: 80 11 00 00 [10:19:11]Write to MH i2c: E2 08 00 A8 3B 80 11 00 00 00 00 00 00 5D [10:19:11]Write i2c OK [10:19:11]MH_I2C_Read... [10:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:11]Read from MH i2c: E2 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 17 00 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 17 00 A8 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A8 [10:19:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:19:11]wFMCommunicate OK [10:19:11]requested_item fd.num is exist - process it [10:19:11]SAM_PROTO_GetFieldsCounters [10:19:11]wFMCommunicate request_size=4 [10:19:11]MH_SAM_APDU [10:19:11]CAPDU: 80 13 00 00 [10:19:11]Write to MH i2c: E2 08 00 A9 3B 80 13 00 00 00 00 00 00 60 [10:19:11]Write i2c OK [10:19:11]MH_I2C_Read... [10:19:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:11]Read from MH i2c: E2 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 62 00 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 62 00 A9 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 04 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [10:19:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 04 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:11]wFMCommunicate OK [10:19:11]SAM_PROTO_GetFieldsCounters done [10:19:11]requested_item shift.num is exist - process it [10:19:11]requested_item shift.opened is exist - process it [10:19:11]req_shift_opened [10:19:11]FM_GetShiftState [10:19:11]SAM_PROTO_GetShiftState [10:19:11]wFMCommunicate request_size=4 [10:19:11]MH_SAM_APDU [10:19:11]CAPDU: 80 13 01 00 [10:19:11]Write to MH i2c: E2 08 00 AA 3B 80 13 01 00 00 00 00 00 62 [10:19:11]Write i2c OK [10:19:11]MH_I2C_Read... [10:19:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:11]Read from MH i2c: E2 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 0E 00 [10:19:11]MH_I2C_Read... [10:19:11]Read from MH i2c: E2 0E 00 AA 3B 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 D8 [10:19:11]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:19:11]wFMCommunicate OK [10:19:11]SAM_PROTO_GetShiftState done [10:19:11]FM_GetShiftState done [10:19:11]req_shift_opened done [10:19:11]requested_item shift.open_date is exist - process it [10:19:11]req_shift_open_date [10:19:11]req_shift_open_date done [10:19:11]produce_requested_data done [10:19:11]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49412,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [10:19:11]process_action_free close_receipt [10:19:11]json_value_free [10:19:11]json_value_free done [10:19:11]process_json_proto returns [10:19:11]Send response to host [10:19:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49412,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [10:19:11]free response buf [10:19:11]execute_script done [10:19:11]execute_script returns [10:19:11]free content buf [10:19:11]Sock 7.Close socket [10:19:11]Sock 7.Thread stoped [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:48]OFD Sender: No OFD packet to send [10:19:53]OFD Sender: No OFD packet to send [10:19:58]OFD Sender: No OFD packet to send [10:20:03]OFD Sender: No OFD packet to send [10:20:08]OFD Sender: No OFD packet to send [10:20:13]OFD Sender: No OFD packet to send [10:20:18]OFD Sender: No OFD packet to send [10:20:23]OFD Sender: No OFD packet to send [10:20:28]OFD Sender: No OFD packet to send [10:20:33]OFD Sender: No OFD packet to send [10:20:38]OFD Sender: No OFD packet to send [10:20:43]OFD Sender: No OFD packet to send [10:20:48]OFD Sender: No OFD packet to send [10:20:53]OFD Sender: No OFD packet to send [10:20:58]OFD Sender: No OFD packet to send [10:21:03]OFD Sender: No OFD packet to send [10:21:08]OFD Sender: No OFD packet to send [10:21:13]OFD Sender: No OFD packet to send [10:21:18]OFD Sender: No OFD packet to send [10:21:23]OFD Sender: No OFD packet to send [10:21:28]OFD Sender: No OFD packet to send [10:21:33]OFD Sender: No OFD packet to send [10:21:38]OFD Sender: No OFD packet to send [10:21:43]OFD Sender: No OFD packet to send [10:21:48]OFD Sender: No OFD packet to send [10:21:53]OFD Sender: No OFD packet to send [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22: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:51]accept exits with 9 [10:24:51]New connection [10:24:51]New thread 3066973540 created [10:24:51]Thread 3066830180 joined [10:24:51]Waiting for new connection... [10:24:51] Sock 9.Parse request [10:24:51]Sock 9.Check first char [10:24:51]Sock 9.First char is OK [10:24:51]request: POST /json_proto HTTP/1.0 [10:24:51]Method: POST [10:24:51]URL: /json_proto [10:24:51]Method is POST - this is cgi request [10:24:51]url: /json_proto [10:24:51]query_string will be loaded in cgi processing [10:24:51]execute_cgi json_proto POST (null) [10:24:51]execute_cgi path=json_proto method=POST [10:24:51]POST find Content-Length [10:24:51]Host: 172.17.46.196:8080 [10:24:51]Content-Length: 756 [10:24:51]Content-Type: application/json [10:24:51] [10:24:51]POST finish read [10:24:51]Found Content-Length = 756 [10:24:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106605", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:51]execute_script... [10:24: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)11325258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30106605", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:24:51]POST & json_proto [10:24:51]process_json_proto [10:24:51]json parsed OK: [10:24:51]protocol is kg_v1.0 [10:24:51]action value=close_receipt [10:24:51]process_action close_receipt [10:24:51]cmd_close_receipt [10:24:51]MH_GetDate [10:24:51]Write to MH i2c: F0 00 00 AB 3B D5 [10:24:51]Write i2c OK [10:24:51]MH_I2C_Read... [10:24:51]Read from MH i2c: F0 [10:24:51]MH_I2C_Read... [10:24:51]Read from MH i2c: F0 09 00 [10:24:51]MH_I2C_Read... [10:24:51]Read from MH i2c: F0 09 00 AB 3B 00 F8 28 BF 66 07 E8 5D 66 D5 [10:24:51]GetLastDocTimeStamp 1723803551 [10:24:51]current date 1723803896 [10:24:51]FM_GetShiftState [10:24:51]SAM_PROTO_GetShiftState [10:24:51]wFMCommunicate request_size=4 [10:24:51]MH_SAM_APDU [10:24:51]CAPDU: 80 13 01 00 [10:24:51]Write to MH i2c: E2 08 00 AC 3B 80 13 01 00 00 00 00 00 64 [10:24:51]Write i2c OK [10:24:51]MH_I2C_Read... [10:24:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:51]Read from MH i2c: E2 [10:24:51]MH_I2C_Read... [10:24:51]Read from MH i2c: E2 0E 00 [10:24:51]MH_I2C_Read... [10:24:51]Read from MH i2c: E2 0E 00 AC 3B 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 DA [10:24:51]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:24:51]wFMCommunicate OK [10:24:51]SAM_PROTO_GetShiftState done [10:24:51]FM_GetShiftState done [10:24:51]opened in 1723766958 [10:24:51]opened+sec_in_day 1723853358 [10:24:51]quantity*price = 0 [10:24:51]sum+1 = 1 [10:24:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 61 16.08.2024 10:24 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30106605 ФМ: 0000000000871800 ФД: 49413 ФПД: 139217380052102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T102456&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49413&fm=139217380052102&tin=02508201610067®Number=0000000000092546&sum=0 [10:24:52]StoreToDocumentArchive [10:24:52]shift 464 fd 49413 [10:24:52]save to /storage/0464/doc_00049413 [10:24:52]save last doc name /storage/0464/doc_00049413 to /storage/kkm_last_doc_name [10:24:52]save OK [10:24:52]Clear old archive folders... [10:24:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:24:52]tlvbuf is 00E056E0 [10:24:52]SAM_PROTO_ClearQueue [10:24:52]wFMCommunicate request_size=4 [10:24:52]MH_SAM_APDU [10:24:52]CAPDU: 80 09 00 00 [10:24:52]Write to MH i2c: E2 08 00 B9 3B 80 09 00 00 00 00 00 00 66 [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:24:52]Read from MH i2c: E2 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 03 00 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 03 00 B9 3B 00 90 00 68 [10:24:52]RAPDU: 90 00 [10:24:52]wFMCommunicate OK [10:24:52]SAM_PROTO_ClearQueue done [10:24:52]KKMCreateOFDPacket [10:24:52]OFDProtocolAddRootSTLVToBuf [10:24:52]FM_MakeSignedData [10:24:52]FM_MakeSignedData [10:24:52]SAM_PROTO_SignData [10:24:52]wFMCommunicate request_size=4 [10:24:52]MH_SAM_APDU [10:24:52]CAPDU: 80 0D 01 02 [10:24:52]Write to MH i2c: E2 08 00 BA 3B 80 0D 01 02 00 00 00 00 6E [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:24:52]Read from MH i2c: E2 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 03 00 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 03 00 BA 3B 00 90 00 69 [10:24:52]RAPDU: 90 00 [10:24:52]wFMCommunicate OK [10:24:52]wFMCommunicate request_size=255 [10:24:52]MH_SAM_APDU [10:24: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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F8 28 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 05 C1 00 00 35 04 06 00 7E [10:24:52]Write to MH i2c: E2 02 01 BB 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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F8 28 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 05 C1 00 00 35 04 06 00 7E 00 00 75 [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:52]Read from MH i2c: E2 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 03 00 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 03 00 BB 3B 00 90 00 6A [10:24:52]RAPDU: 90 00 [10:24:52]wFMCommunicate OK [10:24:52]wFMCommunicate request_size=10 [10:24:52]MH_SAM_APDU [10:24:52]CAPDU: 80 0D 02 02 05 9E 12 7C 0C 86 [10:24:52]Write to MH i2c: E2 0D 00 BC 3B 80 0D 02 02 05 00 9E 12 7C 0C 86 00 00 39 [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:24:52]Read from MH i2c: E2 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 03 00 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 03 00 BC 3B 00 90 00 6B [10:24:52]RAPDU: 90 00 [10:24:52]wFMCommunicate OK [10:24:52]wFMCommunicate request_size=4 [10:24:52]MH_SAM_APDU [10:24:52]CAPDU: 80 0D 03 02 [10:24:52]Write to MH i2c: E2 08 00 BD 3B 80 0D 03 02 00 00 00 00 73 [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:24:52]Read from MH i2c: E2 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 0B 00 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 0B 00 BD 3B 00 2A B9 9F 18 C8 AB E4 9D 90 00 02 [10:24:52]RAPDU: 2A B9 9F 18 C8 AB E4 9D 90 00 [10:24:52]wFMCommunicate OK [10:24:52]SAM_PROTO_SignData done [10:24:52]FM_MakeSignedData done [10:24:52]CreateOFDProtocolMessage [10:24:52]wFMCommunicate request_size=4 [10:24:52]MH_SAM_APDU [10:24:52]CAPDU: 80 11 00 00 [10:24:52]Write to MH i2c: E2 08 00 BE 3B 80 11 00 00 00 00 00 00 73 [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:52]Read from MH i2c: E2 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 17 00 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: E2 17 00 BE 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BE [10:24:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:24:52]wFMCommunicate OK [10:24:52]CreateOFDProtocolMessage done [10:24:52]OFDSenderStorePacket 49413 [10:24:52]StoreOFDPacket docnum=49413 [10:24:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 A3 96 07 01 EF 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F8 28 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 05 C1 00 00 35 04 06 00 7E 9E 12 7C 0C 86 2A B9 9F 18 C8 AB E4 9D [10:24:52]CheckFolder [10:24:52]dirname=/storage/ofd_packets [10:24:52]CheckFolder done [10:24:52]ProducePacketName [10:24:52]name=ofd_packets/00049413 [10:24:52]NVStorageSaveData ofd_packets/00049413 [10:24:52]File name is /storage/ofd_packets/00049413 [10:24:52]Write 301 bytes [10:24:52]NVStorageSaveData done [10:24:52]OFDSenderStorePacket done [10:24:52]KKMCreateOFDPacket done [10:24:52]NVStorageSaveData kkm_last_timestamp [10:24:52]File name is /storage/kkm_last_timestamp [10:24:52]Write 4 bytes [10:24:52]NVStorageSaveData done [10:24:52]ExternCall_PrintAddStr [10:24:52]wPrintStart [10:24:52]Write to MH i2c: 01 00 00 BF 3B FA [10:24:52]Write i2c OK [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: 01 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: 01 07 00 [10:24:52]MH_I2C_Read... [10:24:52]Read from MH i2c: 01 07 00 BF 3B 00 00 00 00 00 FF 0F 0F [10:24:52]RasterBufferAndPrint [10:24:52]line Счет N : (1)11325258 [10:24:52]line ИНН: 02508201610067 [10:24:52]line Контрольно-Кассовый Чек [10:24:52]line ПРОДАЖА [10:24:52]line ТРК (МРК, ГНК) : 42 [10:24:52]line Товар: 2710124130 [10:24:52]line Аи-92-К-4 [10:24:52]line 20.000 * 0.00 [10:24:52]line = 0.00 [10:24:52]line НДС 12% НСП 1% [10:24:52]line > о реализуемом товаре [10:24:52]line ИТОГО: 0.00 [10:24:52]line НСП 1% : 0.00 [10:24:52]line НДС 12% : 0.00 [10:24:52]line Наличными: 0.00 [10:24:52]line Безнал.: 0.00 [10:24:52]line Место: АЗС № 95 "Партнер Нефть" [10:24:52]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:24:52]line СНО: Общий режим [10:24:52]line Чек 61 16.08.2024 10:24 [10:24:52]line Смена: 464 ФФД: 1.0 [10:24:52]line ЗНМ: 0300000078 [10:24:52]line РНМ: 0000000000092546 [10:24:52]line Версия ККМ: 001 [10:24:52]line Талоны: ТК ГПНА Online [10:24:52]line 30106605 [10:24:52]line ФМ: 0000000000871800 [10:24:52]line ФД: 49413 [10:24:52]line ФПД: 139217380052102 [10:24:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T102456&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49413&fm=139217380052102&tin=02508201610067®Number=0000000000092546&sum=0 [10:24:53]OFD Sender: Processing packet 49413 [packets to send 21, broken 20] [10:24:53]ProducePacketName [10:24:53]name=ofd_packets/00049413 [10:24:53]OFD Sender: To server: pG, [10:24:53]CommunicateWithHost lk.salyk.kg:30040 [10:24:53]ConnectInit lk.salyk.kg [10:24:53]written 0, free lines is 4095 [10:24:53]Connected sock=10 [10:24:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 A3 96 07 01 EF 51 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 F8 28 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 05 C1 00 00 35 04 06 00 7E 9E 12 7C 0C 86 2A B9 9F 18 C8 AB E4 9D [10:24:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 33 8B 47 00 E9 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 05 C1 00 00 F4 03 04 00 37 D4 BE 66 B6 04 01 00 00 1E F0 66 C3 9D F8 44 64 [10:24:53]CommunicateWithHost err = 0 [10:24:53]CheckOFDResponse [10:24:53]1017 (14) - 77093643461234 [10:24:53]1041 (16) - 0000000000871800 [10:24:53]1040 (4) - 49413 [10:24:53]1012 (4) - 16.08.2024 04:23 [10:24:53]1206 (1) - 0 [10:24:53]OFD Sender: Remove packet 49413 [10:24:53]ProducePacketName [10:24:53]name=ofd_packets/00049413 [10:24:53]NVStorageDeleteData [10:24:53]Write to MH i2c: 01 00 00 E9 3B 24 [10:24:53]Write i2c OK [10:24:53]MH_I2C_Read... [10:24:53]Read from MH i2c: 01 [10:24:53]MH_I2C_Read... [10:24:53]Read from MH i2c: 01 07 00 [10:24:53]MH_I2C_Read... [10:24:53]Read from MH i2c: 01 07 00 E9 3B 00 00 00 00 00 D8 0C 0F [10:24:53]RasterBufferAndPrint [10:24:53]line [10:24:53]line [10:24:53]line [10:24:53]line [10:24:53]line [10:24:53]written 0, free lines is 3294 [10:24:53]MH_Cut [10:24:53]Write to MH i2c: D1 01 00 F0 3B 01 FD [10:24:53]Write i2c OK [10:24:53]MH_I2C_Read... [10:24:53]Read from MH i2c: D1 [10:24:53]MH_I2C_Read... [10:24:53]Read from MH i2c: D1 01 00 [10:24:53]MH_I2C_Read... [10:24:53]Read from MH i2c: D1 01 00 F0 3B 00 FC [10:24:53]Write to MH i2c: 01 00 00 F1 3B 2C [10:24:53]Write i2c OK [10:24:53]MH_I2C_Read... [10:24:54]OFD Sender: No OFD packet to send [10:24:54]*** Cut start [10:24:54]*** Purtial cut [10:24:54]*** Stage 1: CUTSNS_PIN = 1 [10:24:54]Read from MH i2c: 01 [10:24:54]MH_I2C_Read... [10:24:54]*** Stop cut motor [10:24:54]*** Cut end [10:24:54]Read from MH i2c: 01 07 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: 01 07 00 F1 3B 00 00 00 00 00 FF 0F 41 [10:24:54]process_action close_receipt done [10:24:54]requested_data is exist [10:24:54]produce_requested_data [10:24:54]requested_item fm.sn is exist - process it [10:24:54]wFMCommunicate request_size=4 [10:24:54]MH_SAM_APDU [10:24:54]CAPDU: 80 11 00 00 [10:24:54]Write to MH i2c: E2 08 00 F2 3B 80 11 00 00 00 00 00 00 A7 [10:24:54]Write i2c OK [10:24:54]MH_I2C_Read... [10:24:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:24:54]Read from MH i2c: E2 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 17 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 17 00 F2 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F2 [10:24:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:24:54]wFMCommunicate OK [10:24:54]requested_item fd.num is exist - process it [10:24:54]SAM_PROTO_GetFieldsCounters [10:24:54]wFMCommunicate request_size=4 [10:24:54]MH_SAM_APDU [10:24:54]CAPDU: 80 13 00 00 [10:24:54]Write to MH i2c: E2 08 00 F3 3B 80 13 00 00 00 00 00 00 AA [10:24:54]Write i2c OK [10:24:54]MH_I2C_Read... [10:24:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:24:54]Read from MH i2c: E2 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 62 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 62 00 F3 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 05 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [10:24:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 05 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:24:54]wFMCommunicate OK [10:24:54]SAM_PROTO_GetFieldsCounters done [10:24:54]requested_item shift.num is exist - process it [10:24:54]requested_item shift.opened is exist - process it [10:24:54]req_shift_opened [10:24:54]FM_GetShiftState [10:24:54]SAM_PROTO_GetShiftState [10:24:54]wFMCommunicate request_size=4 [10:24:54]MH_SAM_APDU [10:24:54]CAPDU: 80 13 01 00 [10:24:54]Write to MH i2c: E2 08 00 F4 3B 80 13 01 00 00 00 00 00 AC [10:24:54]Write i2c OK [10:24:54]MH_I2C_Read... [10:24:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:24:54]Read from MH i2c: E2 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 0E 00 [10:24:54]MH_I2C_Read... [10:24:54]Read from MH i2c: E2 0E 00 F4 3B 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 22 [10:24:54]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:24:54]wFMCommunicate OK [10:24:54]SAM_PROTO_GetShiftState done [10:24:54]FM_GetShiftState done [10:24:54]req_shift_opened done [10:24:54]requested_item shift.open_date is exist - process it [10:24:54]req_shift_open_date [10:24:54]req_shift_open_date done [10:24:54]produce_requested_data done [10:24:54]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49413,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [10:24:54]process_action_free close_receipt [10:24:54]json_value_free [10:24:54]json_value_free done [10:24:54]process_json_proto returns [10:24:54]Send response to host [10:24:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49413,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [10:24:54]free response buf [10:24:54]execute_script done [10:24:54]execute_script returns [10:24:54]free content buf [10:24:54]Sock 9.Close socket [10:24:54]Sock 9.Thread stoped [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:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:09]OFD Sender: No OFD packet to send [10:29:14]OFD Sender: No OFD packet to send [10:29:19]OFD Sender: No OFD packet to send [10:29:24]OFD Sender: No OFD packet to send [10:29:29]OFD Sender: No OFD packet to send [10:29:34]OFD Sender: No OFD packet to send [10:29:39]OFD Sender: No OFD packet to send [10:29:44]OFD Sender: No OFD packet to send [10:29:49]OFD Sender: No OFD packet to send [10:29:54]OFD Sender: No OFD packet to send [10:29:59]OFD Sender: No OFD packet to send [10:30:04]OFD Sender: No OFD packet to send [10:30:09]OFD Sender: No OFD packet to send [10:30:14]OFD Sender: No OFD packet to send [10:30:19]OFD Sender: No OFD packet to send [10:30:24]OFD Sender: No OFD packet to send [10:30:29]OFD Sender: No OFD packet to send [10:30:32]accept exits with 7 [10:30:32]New connection [10:30:32]New thread 3066830180 created [10:30:32]Thread 3066973540 joined [10:30:32]Waiting for new connection... [10:30:32] Sock 7.Parse request [10:30:32]Sock 7.Check first char [10:30:32]Sock 7.First char is OK [10:30:32]request: POST /json_proto HTTP/1.0 [10:30:32]Method: POST [10:30:32]URL: /json_proto [10:30:32]Method is POST - this is cgi request [10:30:32]url: /json_proto [10:30:32]query_string will be loaded in cgi processing [10:30:32]execute_cgi json_proto POST (null) [10:30:32]execute_cgi path=json_proto method=POST [10:30:32]POST find Content-Length [10:30:32]Host: 172.17.46.196:8080 [10:30:32]Content-Length: 958 [10:30:32]Content-Type: application/json [10:30:32] [10:30:32]POST finish read [10:30:32]Found Content-Length = 958 [10:30:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189640", "tax_sys" : 0, "items" : [ { "code": "4870227272605", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 0,5\u043B", "price" : 55.00, "quantity" : 2.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870227273824", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 0,5\u043B", "price" : 55.00, "quantity" : 2.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:32]execute_script... [10:30: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 : (3)189640", "tax_sys" : 0, "items" : [ { "code": "4870227272605", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 0,5\u043B", "price" : 55.00, "quantity" : 2.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870227273824", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 0,5\u043B", "price" : 55.00, "quantity" : 2.000, "sum" : 110.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:32]POST & json_proto [10:30:32]process_json_proto [10:30:32]json parsed OK: [10:30:32]protocol is kg_v1.0 [10:30:32]action value=close_receipt [10:30:32]process_action close_receipt [10:30:32]cmd_close_receipt [10:30:32]MH_GetDate [10:30:32]Write to MH i2c: F0 00 00 F5 3B 1F [10:30:32]Write i2c OK [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: F0 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: F0 09 00 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: F0 09 00 F5 3B 00 4D 2A BF 66 07 E8 5D 66 76 [10:30:32]GetLastDocTimeStamp 1723803896 [10:30:32]current date 1723804237 [10:30:32]FM_GetShiftState [10:30:32]SAM_PROTO_GetShiftState [10:30:32]wFMCommunicate request_size=4 [10:30:32]MH_SAM_APDU [10:30:32]CAPDU: 80 13 01 00 [10:30:32]Write to MH i2c: E2 08 00 F6 3B 80 13 01 00 00 00 00 00 AE [10:30:32]Write i2c OK [10:30:32]MH_I2C_Read... [10:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:32]Read from MH i2c: E2 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: E2 0E 00 [10:30:32]MH_I2C_Read... [10:30:32]Read from MH i2c: E2 0E 00 F6 3B 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 24 [10:30:32]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:30:32]wFMCommunicate OK [10:30:32]SAM_PROTO_GetShiftState done [10:30:32]FM_GetShiftState done [10:30:32]opened in 1723766958 [10:30:32]opened+sec_in_day 1723853358 [10:30:32]quantity*price = 11000 [10:30:32]sum+1 = 11001 [10:30:32]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870227273824 Лимонад Sunbel Мохито 0,5л 2.000 * 55.00 = 110.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.94 НДС 12% : 23.36 Наличными: 220.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 62 16.08.2024 10:30 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49414 ФПД: 241512547659669 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T103037&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49414&fm=241512547659669&tin=02508201610067®Number=0000000000092546&sum=22000 0 [10:30:33]StoreToDocumentArchive [10:30:33]shift 464 fd 49414 [10:30:33]save to /storage/0464/doc_00049414 [10:30:33]save last doc name /storage/0464/doc_00049414 to /storage/kkm_last_doc_name [10:30:33]save OK [10:30:33]Clear old archive folders... [10:30:33]ProcessDocumentItem done err = 0, tmpTLVsize=406 [10:30:33]tlvbuf is 00E02100 [10:30:33]SAM_PROTO_ClearQueue [10:30:33]wFMCommunicate request_size=4 [10:30:33]MH_SAM_APDU [10:30:33]CAPDU: 80 09 00 00 [10:30:33]Write to MH i2c: E2 08 00 03 3C 80 09 00 00 00 00 00 00 B1 [10:30:33]Write i2c OK [10:30:33]MH_I2C_Read... [10:30:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:33]Read from MH i2c: E2 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 03 00 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 03 00 03 3C 00 90 00 B3 [10:30:33]RAPDU: 90 00 [10:30:33]wFMCommunicate OK [10:30:33]SAM_PROTO_ClearQueue done [10:30:33]KKMCreateOFDPacket [10:30:33]OFDProtocolAddRootSTLVToBuf [10:30:33]FM_MakeSignedData [10:30:33]FM_MakeSignedData [10:30:33]SAM_PROTO_SignData [10:30:33]wFMCommunicate request_size=4 [10:30:33]MH_SAM_APDU [10:30:33]CAPDU: 80 0D 01 02 [10:30:33]Write to MH i2c: E2 08 00 04 3C 80 0D 01 02 00 00 00 00 B9 [10:30:33]Write i2c OK [10:30:33]MH_I2C_Read... [10:30:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:33]Read from MH i2c: E2 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 03 00 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 03 00 04 3C 00 90 00 B4 [10:30:33]RAPDU: 90 00 [10:30:33]wFMCommunicate OK [10:30:33]wFMCommunicate request_size=255 [10:30:33]MH_SAM_APDU [10:30:33]CAPDU: 80 0D 02 02 FA 03 00 96 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 30 35 06 04 34 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9A D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 32 34 06 04 28 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 [10:30:33]Write to MH i2c: E2 02 01 05 3C 80 0D 02 02 FA 00 03 00 96 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 30 35 06 04 34 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9A D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 32 34 06 04 28 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 00 00 03 [10:30:33]Write i2c OK [10:30:33]MH_I2C_Read... [10:30:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:33]Read from MH i2c: E2 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 03 00 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 03 00 05 3C 00 90 00 B5 [10:30:33]RAPDU: 90 00 [10:30:33]wFMCommunicate OK [10:30:33]wFMCommunicate request_size=165 [10:30:33]MH_SAM_APDU [10:30:33]CAPDU: 80 0D 02 02 A0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 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 4D 2A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 06 C1 00 00 35 04 06 00 DB A7 85 9C AF 95 [10:30:33]Write to MH i2c: E2 A8 00 06 3C 80 0D 02 02 A0 00 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 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 4D 2A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 06 C1 00 00 35 04 06 00 DB A7 85 9C AF 95 00 00 10 [10:30:33]Write i2c OK [10:30:33]MH_I2C_Read... [10:30:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:33]Read from MH i2c: E2 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 03 00 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 03 00 06 3C 00 90 00 B6 [10:30:33]RAPDU: 90 00 [10:30:33]wFMCommunicate OK [10:30:33]wFMCommunicate request_size=4 [10:30:33]MH_SAM_APDU [10:30:33]CAPDU: 80 0D 03 02 [10:30:33]Write to MH i2c: E2 08 00 07 3C 80 0D 03 02 00 00 00 00 BE [10:30:33]Write i2c OK [10:30:33]MH_I2C_Read... [10:30:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:33]Read from MH i2c: E2 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 0B 00 [10:30:33]MH_I2C_Read... [10:30:33]Read from MH i2c: E2 0B 00 07 3C 00 AB F1 E8 C1 97 71 F0 01 90 00 FD [10:30:33]RAPDU: AB F1 E8 C1 97 71 F0 01 90 00 [10:30:33]wFMCommunicate OK [10:30:33]SAM_PROTO_SignData done [10:30:33]FM_MakeSignedData done [10:30:33]CreateOFDProtocolMessage [10:30:33]wFMCommunicate request_size=4 [10:30:33]MH_SAM_APDU [10:30:33]CAPDU: 80 11 00 00 [10:30:33]Write to MH i2c: E2 08 00 08 3C 80 11 00 00 00 00 00 00 BE [10:30:33]Write i2c OK [10:30:33]MH_I2C_Read... [10:30:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:34]Read from MH i2c: E2 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: E2 17 00 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: E2 17 00 08 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 09 [10:30:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:30:34]wFMCommunicate OK [10:30:34]CreateOFDProtocolMessage done [10:30:34]OFDSenderStorePacket 49414 [10:30:34]StoreOFDPacket docnum=49414 [10:30:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 AA 01 00 00 9E 97 A2 01 78 7A 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 30 35 06 04 34 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9A D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 32 34 06 04 28 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 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 4D 2A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 06 C1 00 00 35 04 06 00 DB A7 85 9C AF 95 AB F1 E8 C1 97 71 F0 01 [10:30:34]CheckFolder [10:30:34]dirname=/storage/ofd_packets [10:30:34]CheckFolder done [10:30:34]ProducePacketName [10:30:34]name=ofd_packets/00049414 [10:30:34]NVStorageSaveData ofd_packets/00049414 [10:30:34]File name is /storage/ofd_packets/00049414 [10:30:34]Write 456 bytes [10:30:34]NVStorageSaveData done [10:30:34]OFDSenderStorePacket done [10:30:34]KKMCreateOFDPacket done [10:30:34]NVStorageSaveData kkm_last_timestamp [10:30:34]File name is /storage/kkm_last_timestamp [10:30:34]Write 4 bytes [10:30:34]NVStorageSaveData done [10:30:34]ExternCall_PrintAddStr [10:30:34]wPrintStart [10:30:34]Write to MH i2c: 01 00 00 09 3C 45 [10:30:34]Write i2c OK [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: 01 [10:30:34]MH_I2C_Read... [10:30:34]OFD Sender: Processing packet 49414 [packets to send 21, broken 20] [10:30:34]ProducePacketName [10:30:34]name=ofd_packets/00049414 [10:30:34]OFD Sender: To server: pG, [10:30:34]CommunicateWithHost lk.salyk.kg:30040 [10:30:34]ConnectInit lk.salyk.kg [10:30:34]Read from MH i2c: 01 07 00 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: 01 07 00 09 3C 00 00 00 00 00 FF 0F 5A [10:30:34]RasterBufferAndPrint [10:30:34]line Счет N : (3)189640 [10:30:34]line ИНН: 02508201610067 [10:30:34]line Контрольно-Кассовый Чек [10:30:34]line ПРОДАЖА [10:30:34]line Товар: 4870227272605 [10:30:34]line Лимонад Sunbel Классический 0,5л [10:30:34]line 2.000 * 55.00 [10:30:34]line = 110.00 [10:30:34]line НДС 12% НСП 1% [10:30:34]line > о реализуемом товаре [10:30:34]line Товар: 4870227273824 [10:30:34]line Лимонад Sunbel Мохито 0,5л [10:30:34]line 2.000 * 55.00 [10:30:34]line = 110.00 [10:30:34]line НДС 12% НСП 1% [10:30:34]line > о реализуемом товаре [10:30:34]line ИТОГО: 220.00 [10:30:34]line НСП 1% : 1.94 [10:30:34]line НДС 12% : 23.36 [10:30:34]line Наличными: 220.00 [10:30:34]line Безнал.: 0.00 [10:30:34]line Место: АЗС № 95 "Партнер Нефть" [10:30:34]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:30:34]line СНО: Общий режим [10:30:34]line Чек 62 16.08.2024 10:30 [10:30:34]line Смена: 464 ФФД: 1.0 [10:30:34]line ЗНМ: 0300000078 [10:30:34]line РНМ: 0000000000092546 [10:30:34]line Версия ККМ: 001 [10:30:34]line ФМ: 0000000000871800 [10:30:34]line ФД: 49414 [10:30:34]line ФПД: 241512547659669 [10:30:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T103037&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49414&fm=241512547659669&tin=02508201610067®Number=0000000000092546&sum=22000 [10:30:34]line 0 [10:30:34]written 0, free lines is 4095 [10:30:34]Connected sock=10 [10:30:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 AA 01 00 00 9E 97 A2 01 78 7A 5A 03 01 00 03 00 96 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 30 35 06 04 34 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9A D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 32 34 06 04 28 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 F8 2A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 F0 55 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 4D 2A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 06 C1 00 00 35 04 06 00 DB A7 85 9C AF 95 AB F1 E8 C1 97 71 F0 01 [10:30:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 AE F8 47 00 A8 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 06 C1 00 00 F4 03 04 00 8C D5 BE 66 B6 04 01 00 00 29 03 A2 F1 57 7D 70 77 [10:30:34]CommunicateWithHost err = 0 [10:30:34]CheckOFDResponse [10:30:34]1017 (14) - 77093643461234 [10:30:34]1041 (16) - 0000000000871800 [10:30:34]1040 (4) - 49414 [10:30:34]1012 (4) - 16.08.2024 04:29 [10:30:34]1206 (1) - 0 [10:30:34]OFD Sender: Remove packet 49414 [10:30:34]ProducePacketName [10:30:34]name=ofd_packets/00049414 [10:30:34]NVStorageDeleteData [10:30:34]Write to MH i2c: 01 00 00 38 3C 74 [10:30:34]Write i2c OK [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: 01 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: 01 07 00 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: 01 07 00 38 3C 00 00 00 00 00 86 0C 0D [10:30:34]RasterBufferAndPrint [10:30:34]line [10:30:34]line [10:30:34]line [10:30:34]line [10:30:34]line [10:30:34]written 0, free lines is 3212 [10:30:34]MH_Cut [10:30:34]Write to MH i2c: D1 01 00 3F 3C 01 4D [10:30:34]Write i2c OK [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: D1 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: D1 01 00 [10:30:34]MH_I2C_Read... [10:30:34]Read from MH i2c: D1 01 00 3F 3C 00 4C [10:30:34]Write to MH i2c: 01 00 00 40 3C 7C [10:30:34]Write i2c OK [10:30:34]MH_I2C_Read... [10:30:35]OFD Sender: No OFD packet to send [10:30:35]*** Cut start [10:30:35]*** Purtial cut [10:30:35]*** CUTSNS_PIN = 0 [10:30:35]*** Stage 1: CUTSNS_PIN = 1 [10:30:37]Read from MH i2c: 01 [10:30:37]MH_I2C_Read... [10:30:37]*** Stop cut motor [10:30:37]*** Cut end [10:30:37]Read from MH i2c: 01 07 00 [10:30:37]MH_I2C_Read... [10:30:37]Read from MH i2c: 01 07 00 40 3C 00 00 00 00 00 FF 0F 91 [10:30:37]process_action close_receipt done [10:30:37]requested_data is exist [10:30:37]produce_requested_data [10:30:37]requested_item fm.sn is exist - process it [10:30:37]wFMCommunicate request_size=4 [10:30:37]MH_SAM_APDU [10:30:37]CAPDU: 80 11 00 00 [10:30:37]Write to MH i2c: E2 08 00 41 3C 80 11 00 00 00 00 00 00 F7 [10:30:37]Write i2c OK [10:30:37]MH_I2C_Read... [10:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:37]Read from MH i2c: E2 [10:30:37]MH_I2C_Read... [10:30:37]Read from MH i2c: E2 17 00 [10:30:37]MH_I2C_Read... [10:30:37]Read from MH i2c: E2 17 00 41 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 42 [10:30:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:30:37]wFMCommunicate OK [10:30:37]requested_item fd.num is exist - process it [10:30:37]SAM_PROTO_GetFieldsCounters [10:30:37]wFMCommunicate request_size=4 [10:30:37]MH_SAM_APDU [10:30:37]CAPDU: 80 13 00 00 [10:30:37]Write to MH i2c: E2 08 00 42 3C 80 13 00 00 00 00 00 00 FA [10:30:37]Write i2c OK [10:30:37]MH_I2C_Read... [10:30:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:37]Read from MH i2c: E2 [10:30:37]MH_I2C_Read... [10:30:37]Read from MH i2c: E2 62 00 [10:30:37]MH_I2C_Read... [10:30:37]Read from MH i2c: E2 62 00 42 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 06 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [10:30:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 06 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:37]wFMCommunicate OK [10:30:37]SAM_PROTO_GetFieldsCounters done [10:30:37]requested_item shift.num is exist - process it [10:30:37]requested_item shift.opened is exist - process it [10:30:37]req_shift_opened [10:30:37]FM_GetShiftState [10:30:37]SAM_PROTO_GetShiftState [10:30:37]wFMCommunicate request_size=4 [10:30:37]MH_SAM_APDU [10:30:37]CAPDU: 80 13 01 00 [10:30:37]Write to MH i2c: E2 08 00 43 3C 80 13 01 00 00 00 00 00 FC [10:30:37]Write i2c OK [10:30:37]MH_I2C_Read... [10:30:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:38]Read from MH i2c: E2 [10:30:38]MH_I2C_Read... [10:30:38]Read from MH i2c: E2 0E 00 [10:30:38]MH_I2C_Read... [10:30:38]Read from MH i2c: E2 0E 00 43 3C 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 72 [10:30:38]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:30:38]wFMCommunicate OK [10:30:38]SAM_PROTO_GetShiftState done [10:30:38]FM_GetShiftState done [10:30:38]req_shift_opened done [10:30:38]requested_item shift.open_date is exist - process it [10:30:38]req_shift_open_date [10:30:38]req_shift_open_date done [10:30:38]produce_requested_data done [10:30:38]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49414,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [10:30:38]process_action_free close_receipt [10:30:38]json_value_free [10:30:38]json_value_free done [10:30:38]process_json_proto returns [10:30:38]Send response to host [10:30:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49414,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [10:30:38]free response buf [10:30:38]execute_script done [10:30:38]execute_script returns [10:30:38]free content buf [10:30:38]Sock 7.Close socket [10:30:38]Sock 7.Thread stoped [10:30:40]OFD Sender: No OFD packet to send [10:30:45]OFD Sender: No OFD packet to send [10:30:50]OFD Sender: No OFD packet to send [10:30:55]OFD Sender: No OFD packet to send [10:31:00]OFD Sender: No OFD packet to send [10:31:05]OFD Sender: No OFD packet to send [10:31:10]OFD Sender: No OFD packet to send [10:31:11]accept exits with 9 [10:31:11]New connection [10:31:11]New thread 3066973540 created [10:31:11]Thread 3066830180 joined [10:31:11]Waiting for new connection... [10:31:11] Sock 9.Parse request [10:31:11]Sock 9.Check first char [10:31:11]Sock 9.First char is OK [10:31:11]request: POST /json_proto HTTP/1.0 [10:31:11]Method: POST [10:31:11]URL: /json_proto [10:31:11]Method is POST - this is cgi request [10:31:11]url: /json_proto [10:31:11]query_string will be loaded in cgi processing [10:31:11]execute_cgi json_proto POST (null) [10:31:11]execute_cgi path=json_proto method=POST [10:31:11]POST find Content-Length [10:31:11]Host: 172.17.46.196:8080 [10:31:11]Content-Length: 663 [10:31:11]Content-Type: application/json [10:31:11] [10:31:11]POST finish read [10:31:11]Found Content-Length = 663 [10:31:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189641", "tax_sys" : 0, "items" : [ { "code": "5449000133328", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 Zero 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:11]execute_script... [10: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 : (3)189641", "tax_sys" : 0, "items" : [ { "code": "5449000133328", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 Zero 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:31:11]POST & json_proto [10:31:11]process_json_proto [10:31:11]json parsed OK: [10:31:11]protocol is kg_v1.0 [10:31:11]action value=close_receipt [10:31:11]process_action close_receipt [10:31:11]cmd_close_receipt [10:31:11]MH_GetDate [10:31:11]Write to MH i2c: F0 00 00 44 3C 6F [10:31:11]Write i2c OK [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: F0 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: F0 09 00 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: F0 09 00 44 3C 00 75 2A BF 66 07 E8 5D 66 EE [10:31:11]GetLastDocTimeStamp 1723804237 [10:31:11]current date 1723804277 [10:31:11]FM_GetShiftState [10:31:11]SAM_PROTO_GetShiftState [10:31:11]wFMCommunicate request_size=4 [10:31:11]MH_SAM_APDU [10:31:11]CAPDU: 80 13 01 00 [10:31:11]Write to MH i2c: E2 08 00 45 3C 80 13 01 00 00 00 00 00 FE [10:31:11]Write i2c OK [10:31:11]MH_I2C_Read... [10:31:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:11]Read from MH i2c: E2 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: E2 0E 00 [10:31:11]MH_I2C_Read... [10:31:11]Read from MH i2c: E2 0E 00 45 3C 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 74 [10:31:11]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:31:11]wFMCommunicate OK [10:31:11]SAM_PROTO_GetShiftState done [10:31:11]FM_GetShiftState done [10:31:11]opened in 1723766958 [10:31:11]opened+sec_in_day 1723853358 [10:31:11]quantity*price = 12500 [10:31:11]sum+1 = 12501 [10:31:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 63 16.08.2024 10:31 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49415 ФПД: 127995326616874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T103117&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49415&fm=127995326616874&tin=02508201610067®Number=0000000000092546&sum=12500 0 [10:31:13]StoreToDocumentArchive [10:31:13]shift 464 fd 49415 [10:31:13]save to /storage/0464/doc_00049415 [10:31:13]save last doc name /storage/0464/doc_00049415 to /storage/kkm_last_doc_name [10:31:13]save OK [10:31:13]Clear old archive folders... [10:31:13]ProcessDocumentItem done err = 0, tmpTLVsize=283 [10:31:13]tlvbuf is 00E459A0 [10:31:13]SAM_PROTO_ClearQueue [10:31:13]wFMCommunicate request_size=4 [10:31:13]MH_SAM_APDU [10:31:13]CAPDU: 80 09 00 00 [10:31:13]Write to MH i2c: E2 08 00 52 3C 80 09 00 00 00 00 00 00 00 [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:31:13]Read from MH i2c: E2 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 03 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 03 00 52 3C 00 90 00 02 [10:31:13]RAPDU: 90 00 [10:31:13]wFMCommunicate OK [10:31:13]SAM_PROTO_ClearQueue done [10:31:13]KKMCreateOFDPacket [10:31:13]OFDProtocolAddRootSTLVToBuf [10:31:13]FM_MakeSignedData [10:31:13]FM_MakeSignedData [10:31:13]SAM_PROTO_SignData [10:31:13]wFMCommunicate request_size=4 [10:31:13]MH_SAM_APDU [10:31:13]CAPDU: 80 0D 01 02 [10:31:13]Write to MH i2c: E2 08 00 53 3C 80 0D 01 02 00 00 00 00 08 [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:31:13]Read from MH i2c: E2 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 03 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 03 00 53 3C 00 90 00 03 [10:31:13]RAPDU: 90 00 [10:31:13]wFMCommunicate OK [10:31:13]wFMCommunicate request_size=255 [10:31:13]MH_SAM_APDU [10:31:13]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 75 2A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 [10:31:13]Write to MH i2c: E2 02 01 54 3C 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 75 2A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 00 00 E4 [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:13]Read from MH i2c: E2 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 03 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 03 00 54 3C 00 90 00 04 [10:31:13]RAPDU: 90 00 [10:31:13]wFMCommunicate OK [10:31:13]wFMCommunicate request_size=42 [10:31:13]MH_SAM_APDU [10:31:13]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 07 C1 00 00 35 04 06 00 74 69 3B F9 D5 2A [10:31:13]Write to MH i2c: E2 2D 00 55 3C 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 07 C1 00 00 35 04 06 00 74 69 3B F9 D5 2A 00 00 B0 [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:31:13]Read from MH i2c: E2 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 03 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 03 00 55 3C 00 90 00 05 [10:31:13]RAPDU: 90 00 [10:31:13]wFMCommunicate OK [10:31:13]wFMCommunicate request_size=4 [10:31:13]MH_SAM_APDU [10:31:13]CAPDU: 80 0D 03 02 [10:31:13]Write to MH i2c: E2 08 00 56 3C 80 0D 03 02 00 00 00 00 0D [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:31:13]Read from MH i2c: E2 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 0B 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 0B 00 56 3C 00 97 8F 77 4F C6 2D 92 76 90 00 F5 [10:31:13]RAPDU: 97 8F 77 4F C6 2D 92 76 90 00 [10:31:13]wFMCommunicate OK [10:31:13]SAM_PROTO_SignData done [10:31:13]FM_MakeSignedData done [10:31:13]CreateOFDProtocolMessage [10:31:13]wFMCommunicate request_size=4 [10:31:13]MH_SAM_APDU [10:31:13]CAPDU: 80 11 00 00 [10:31:13]Write to MH i2c: E2 08 00 57 3C 80 11 00 00 00 00 00 00 0D [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:13]Read from MH i2c: E2 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 17 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: E2 17 00 57 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 58 [10:31:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:31:13]wFMCommunicate OK [10:31:13]CreateOFDProtocolMessage done [10:31:13]OFDSenderStorePacket 49415 [10:31:13]StoreOFDPacket docnum=49415 [10:31:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2F 01 00 00 7D D6 27 01 25 64 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 75 2A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 07 C1 00 00 35 04 06 00 74 69 3B F9 D5 2A 97 8F 77 4F C6 2D 92 76 [10:31:13]CheckFolder [10:31:13]dirname=/storage/ofd_packets [10:31:13]CheckFolder done [10:31:13]ProducePacketName [10:31:13]name=ofd_packets/00049415 [10:31:13]NVStorageSaveData ofd_packets/00049415 [10:31:13]File name is /storage/ofd_packets/00049415 [10:31:13]Write 333 bytes [10:31:13]NVStorageSaveData done [10:31:13]OFDSenderStorePacket done [10:31:13]KKMCreateOFDPacket done [10:31:13]NVStorageSaveData kkm_last_timestamp [10:31:13]File name is /storage/kkm_last_timestamp [10:31:13]Write 4 bytes [10:31:13]NVStorageSaveData done [10:31:13]ExternCall_PrintAddStr [10:31:13]wPrintStart [10:31:13]Write to MH i2c: 01 00 00 58 3C 94 [10:31:13]Write i2c OK [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: 01 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: 01 07 00 [10:31:13]MH_I2C_Read... [10:31:13]Read from MH i2c: 01 07 00 58 3C 00 00 00 00 00 FF 0F A9 [10:31:13]RasterBufferAndPrint [10:31:13]line Счет N : (3)189641 [10:31:13]line ИНН: 02508201610067 [10:31:13]line Контрольно-Кассовый Чек [10:31:13]line ПРОДАЖА [10:31:13]line Товар: 5449000133328 [10:31:13]line Напиток Кока-Кола Zero 1л [10:31:13]line 1.000 * 125.00 [10:31:13]line = 125.00 [10:31:13]line НДС 12% НСП 1% [10:31:13]line > о реализуемом товаре [10:31:13]line ИТОГО: 125.00 [10:31:13]line НСП 1% : 1.11 [10:31:13]line НДС 12% : 13.27 [10:31:13]line Наличными: 125.00 [10:31:13]line Безнал.: 0.00 [10:31:13]line Место: АЗС № 95 "Партнер Нефть" [10:31:13]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:31:13]line СНО: Общий режим [10:31:13]line Чек 63 16.08.2024 10:31 [10:31:13]line Смена: 464 ФФД: 1.0 [10:31:13]line ЗНМ: 0300000078 [10:31:13]line РНМ: 0000000000092546 [10:31:13]line Версия ККМ: 001 [10:31:13]line ФМ: 0000000000871800 [10:31:13]line ФД: 49415 [10:31:13]line ФПД: 127995326616874 [10:31:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T103117&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49415&fm=127995326616874&tin=02508201610067®Number=0000000000092546&sum=12500 [10:31:13]line 0 [10:31:13]OFD Sender: Processing packet 49415 [packets to send 21, broken 20] [10:31:13]ProducePacketName [10:31:13]name=ofd_packets/00049415 [10:31:13]OFD Sender: To server: pG, [10:31:13]CommunicateWithHost lk.salyk.kg:30040 [10:31:13]ConnectInit lk.salyk.kg [10:31:13]written 0, free lines is 4095 [10:31:14]Connected sock=10 [10:31:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2F 01 00 00 7D D6 27 01 25 64 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 35 34 34 39 30 30 30 31 33 33 33 32 38 06 04 29 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 5A 65 72 6F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 75 2A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 07 C1 00 00 35 04 06 00 74 69 3B F9 D5 2A 97 8F 77 4F C6 2D 92 76 [10:31:14]Write to MH i2c: 01 00 00 80 3C BC [10:31:14]Write i2c OK [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: 01 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: 01 07 00 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: 01 07 00 80 3C 00 00 00 00 00 04 0D D4 [10:31:14]RasterBufferAndPrint [10:31:14]line [10:31:14]line [10:31:14]line [10:31:14]line [10:31:14]line [10:31:14]written 0, free lines is 3339 [10:31:14]MH_Cut [10:31:14]Write to MH i2c: D1 01 00 87 3C 01 95 [10:31:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A6 EE 47 00 59 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 07 C1 00 00 F4 03 04 00 B4 D5 BE 66 B6 04 01 00 00 ED BF 70 DA E0 BC 46 FD [10:31:14]CommunicateWithHost err = 0 [10:31:14]CheckOFDResponse [10:31:14]1017 (14) - 77093643461234 [10:31:14]1041 (16) - 0000000000871800 [10:31:14]1040 (4) - 49415 [10:31:14]1012 (4) - 16.08.2024 04:29 [10:31:14]1206 (1) - 0 [10:31:14]OFD Sender: Remove packet 49415 [10:31:14]ProducePacketName [10:31:14]name=ofd_packets/00049415 [10:31:14]NVStorageDeleteData [10:31:14]Write i2c OK [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: D1 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: D1 01 00 [10:31:14]MH_I2C_Read... [10:31:14]Read from MH i2c: D1 01 00 87 3C 00 94 [10:31:14]Write to MH i2c: 01 00 00 88 3C C4 [10:31:14]Write i2c OK [10:31:14]MH_I2C_Read... [10:31:14]OFD Sender: No OFD packet to send [10:31:15]*** Cut start [10:31:15]*** Purtial cut [10:31:15]*** Stage 1: CUTSNS_PIN = 1 [10:31:15]Read from MH i2c: 01 [10:31:15]MH_I2C_Read... [10:31:15]*** Stop cut motor [10:31:15]*** Cut end [10:31:15]Read from MH i2c: 01 07 00 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: 01 07 00 88 3C 00 00 00 00 00 FF 0F D9 [10:31:15]process_action close_receipt done [10:31:15]requested_data is exist [10:31:15]produce_requested_data [10:31:15]requested_item fm.sn is exist - process it [10:31:15]wFMCommunicate request_size=4 [10:31:15]MH_SAM_APDU [10:31:15]CAPDU: 80 11 00 00 [10:31:15]Write to MH i2c: E2 08 00 89 3C 80 11 00 00 00 00 00 00 3F [10:31:15]Write i2c OK [10:31:15]MH_I2C_Read... [10:31:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:31:15]Read from MH i2c: E2 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: E2 17 00 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: E2 17 00 89 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 8A [10:31:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:31:15]wFMCommunicate OK [10:31:15]requested_item fd.num is exist - process it [10:31:15]SAM_PROTO_GetFieldsCounters [10:31:15]wFMCommunicate request_size=4 [10:31:15]MH_SAM_APDU [10:31:15]CAPDU: 80 13 00 00 [10:31:15]Write to MH i2c: E2 08 00 8A 3C 80 13 00 00 00 00 00 00 42 [10:31:15]Write i2c OK [10:31:15]MH_I2C_Read... [10:31:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:31:15]Read from MH i2c: E2 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: E2 62 00 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: E2 62 00 8A 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 07 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [10:31:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 07 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:31:15]wFMCommunicate OK [10:31:15]SAM_PROTO_GetFieldsCounters done [10:31:15]requested_item shift.num is exist - process it [10:31:15]requested_item shift.opened is exist - process it [10:31:15]req_shift_opened [10:31:15]FM_GetShiftState [10:31:15]SAM_PROTO_GetShiftState [10:31:15]wFMCommunicate request_size=4 [10:31:15]MH_SAM_APDU [10:31:15]CAPDU: 80 13 01 00 [10:31:15]Write to MH i2c: E2 08 00 8B 3C 80 13 01 00 00 00 00 00 44 [10:31:15]Write i2c OK [10:31:15]MH_I2C_Read... [10:31:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:31:15]Read from MH i2c: E2 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: E2 0E 00 [10:31:15]MH_I2C_Read... [10:31:15]Read from MH i2c: E2 0E 00 8B 3C 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 BA [10:31:15]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:31:15]wFMCommunicate OK [10:31:15]SAM_PROTO_GetShiftState done [10:31:15]FM_GetShiftState done [10:31:15]req_shift_opened done [10:31:15]requested_item shift.open_date is exist - process it [10:31:15]req_shift_open_date [10:31:15]req_shift_open_date done [10:31:15]produce_requested_data done [10:31:15]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49415,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [10:31:15]process_action_free close_receipt [10:31:15]json_value_free [10:31:15]json_value_free done [10:31:15]process_json_proto returns [10:31:15]Send response to host [10:31:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49415,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [10:31:15]free response buf [10:31:15]execute_script done [10:31:15]execute_script returns [10:31:15]free content buf [10:31:15]Sock 9.Close socket [10:31:15]Sock 9.Thread stoped [10:31:19]OFD Sender: No OFD packet to send [10:31:24]OFD Sender: No OFD packet to send [10:31:29]OFD Sender: No OFD packet to send [10:31:34]OFD Sender: No OFD packet to send [10:31:39]OFD Sender: No OFD packet to send [10:31:44]OFD Sender: No OFD packet to send [10:31:49]OFD Sender: No OFD packet to send [10:31:54]OFD Sender: No OFD packet to send [10:31:59]OFD Sender: No OFD packet to send [10:32:04]accept exits with 7 [10:32:04]New connection [10:32:04]New thread 3066830180 created [10:32:04]Thread 3066973540 joined [10:32:04]Waiting for new connection... [10:32:04] Sock 7.Parse request [10:32:04]Sock 7.Check first char [10:32:04]Sock 7.First char is OK [10:32:04]request: POST /json_proto HTTP/1.0 [10:32:04]Method: POST [10:32:04]URL: /json_proto [10:32:04]Method is POST - this is cgi request [10:32:04]url: /json_proto [10:32:04]query_string will be loaded in cgi processing [10:32:04]execute_cgi json_proto POST (null) [10:32:04]execute_cgi path=json_proto method=POST [10:32:04]POST find Content-Length [10:32:04]Host: 172.17.46.196:8080 [10:32:04]Content-Length: 1161 [10:32:04]Content-Type: application/json [10:32:04] [10:32:04]POST finish read [10:32:04]Found Content-Length = 1161 [10:32:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189642", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 275.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:04]execute_script... [10:32: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 : (3)189642", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 275.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:04]POST & json_proto [10:32:04]process_json_proto [10:32:04]json parsed OK: [10:32:04]protocol is kg_v1.0 [10:32:04]action value=close_receipt [10:32:04]process_action close_receipt [10:32:04]cmd_close_receipt [10:32:04]MH_GetDate [10:32:04]Write to MH i2c: F0 00 00 8C 3C B7 [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: F0 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: F0 09 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: F0 09 00 8C 3C 00 A9 2A BF 66 07 E8 5D 66 6A [10:32:04]GetLastDocTimeStamp 1723804277 [10:32:04]current date 1723804329 [10:32:04]FM_GetShiftState [10:32:04]SAM_PROTO_GetShiftState [10:32:04]wFMCommunicate request_size=4 [10:32:04]MH_SAM_APDU [10:32:04]CAPDU: 80 13 01 00 [10:32:04]Write to MH i2c: E2 08 00 8D 3C 80 13 01 00 00 00 00 00 46 [10:32:04]Write i2c OK [10:32:04]MH_I2C_Read... [10:32:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:04]Read from MH i2c: E2 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 0E 00 [10:32:04]MH_I2C_Read... [10:32:04]Read from MH i2c: E2 0E 00 8D 3C 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 BC [10:32:04]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:32:04]wFMCommunicate OK [10:32:04]SAM_PROTO_GetShiftState done [10:32:04]FM_GetShiftState done [10:32:04]opened in 1723766958 [10:32:04]opened+sec_in_day 1723853358 [10:32:04]quantity*price = 6500 [10:32:04]sum+1 = 6501 [10:32:04]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160204 Вода Легенда 1,5л 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091607 Сигареты ESSE Exchange 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 275.00 НСП 1% : 2.43 НДС 12% : 29.20 Наличными: 275.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 64 16.08.2024 10:32 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49416 ФПД: 17649275293232 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T103209&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49416&fm=17649275293232&tin=02508201610067®Number=0000000000092546&sum=27500 0 [10:32:05]StoreToDocumentArchive [10:32:05]shift 464 fd 49416 [10:32:05]save to /storage/0464/doc_00049416 [10:32:05]save last doc name /storage/0464/doc_00049416 to /storage/kkm_last_doc_name [10:32:05]save OK [10:32:05]Clear old archive folders... [10:32:05]ProcessDocumentItem done err = 0, tmpTLVsize=489 [10:32:05]tlvbuf is 00E990D0 [10:32:05]SAM_PROTO_ClearQueue [10:32:05]wFMCommunicate request_size=4 [10:32:05]MH_SAM_APDU [10:32:05]CAPDU: 80 09 00 00 [10:32:05]Write to MH i2c: E2 08 00 9A 3C 80 09 00 00 00 00 00 00 48 [10:32:05]Write i2c OK [10:32:05]MH_I2C_Read... [10:32:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:05]Read from MH i2c: E2 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 03 00 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 03 00 9A 3C 00 90 00 4A [10:32:05]RAPDU: 90 00 [10:32:05]wFMCommunicate OK [10:32:05]SAM_PROTO_ClearQueue done [10:32:05]KKMCreateOFDPacket [10:32:05]OFDProtocolAddRootSTLVToBuf [10:32:05]FM_MakeSignedData [10:32:05]FM_MakeSignedData [10:32:05]SAM_PROTO_SignData [10:32:05]wFMCommunicate request_size=4 [10:32:05]MH_SAM_APDU [10:32:05]CAPDU: 80 0D 01 02 [10:32:05]Write to MH i2c: E2 08 00 9B 3C 80 0D 01 02 00 00 00 00 50 [10:32:05]Write i2c OK [10:32:05]MH_I2C_Read... [10:32:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:05]Read from MH i2c: E2 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 03 00 [10:32:05]MH_I2C_Read... [10:32:05]Read from MH i2c: E2 03 00 9B 3C 00 90 00 4B [10:32:05]RAPDU: 90 00 [10:32:05]wFMCommunicate OK [10:32:05]wFMCommunicate request_size=255 [10:32:05]MH_SAM_APDU [10:32:05]CAPDU: 80 0D 02 02 FA 03 00 E9 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E [10:32:05]Write to MH i2c: E2 02 01 9C 3C 80 0D 02 02 FA 00 03 00 E9 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 00 66 [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 03 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 03 00 9C 3C 00 90 00 4C [10:32:06]RAPDU: 90 00 [10:32:06]wFMCommunicate OK [10:32:06]wFMCommunicate request_size=248 [10:32:06]MH_SAM_APDU [10:32:06]CAPDU: 80 0D 02 02 F3 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A9 2A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 08 C1 00 00 35 04 06 00 10 0D 4A C8 CE 30 [10:32:06]Write to MH i2c: E2 FB 00 9D 3C 80 0D 02 02 F3 00 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A9 2A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 08 C1 00 00 35 04 06 00 10 0D 4A C8 CE 30 00 00 49 [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 03 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 03 00 9D 3C 00 90 00 4D [10:32:06]RAPDU: 90 00 [10:32:06]wFMCommunicate OK [10:32:06]wFMCommunicate request_size=4 [10:32:06]MH_SAM_APDU [10:32:06]CAPDU: 80 0D 03 02 [10:32:06]Write to MH i2c: E2 08 00 9E 3C 80 0D 03 02 00 00 00 00 55 [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 0B 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 0B 00 9E 3C 00 0B 0C 7C D4 D5 EA A9 C1 90 00 E6 [10:32:06]RAPDU: 0B 0C 7C D4 D5 EA A9 C1 90 00 [10:32:06]wFMCommunicate OK [10:32:06]SAM_PROTO_SignData done [10:32:06]FM_MakeSignedData done [10:32:06]CreateOFDProtocolMessage [10:32:06]wFMCommunicate request_size=4 [10:32:06]MH_SAM_APDU [10:32:06]CAPDU: 80 11 00 00 [10:32:06]Write to MH i2c: E2 08 00 9F 3C 80 11 00 00 00 00 00 00 55 [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:06]Read from MH i2c: E2 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 17 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: E2 17 00 9F 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A0 [10:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:32:06]wFMCommunicate OK [10:32:06]CreateOFDProtocolMessage done [10:32:06]OFDSenderStorePacket 49416 [10:32:06]StoreOFDPacket docnum=49416 [10:32:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 FD 01 00 00 B7 73 F5 01 56 18 5A 03 01 00 03 00 E9 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A9 2A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 08 C1 00 00 35 04 06 00 10 0D 4A C8 CE 30 0B 0C 7C D4 D5 EA A9 C1 [10:32:06]CheckFolder [10:32:06]dirname=/storage/ofd_packets [10:32:06]CheckFolder done [10:32:06]ProducePacketName [10:32:06]name=ofd_packets/00049416 [10:32:06]NVStorageSaveData ofd_packets/00049416 [10:32:06]File name is /storage/ofd_packets/00049416 [10:32:06]Write 539 bytes [10:32:06]NVStorageSaveData done [10:32:06]OFDSenderStorePacket done [10:32:06]KKMCreateOFDPacket done [10:32:06]NVStorageSaveData kkm_last_timestamp [10:32:06]File name is /storage/kkm_last_timestamp [10:32:06]Write 4 bytes [10:32:06]NVStorageSaveData done [10:32:06]ExternCall_PrintAddStr [10:32:06]wPrintStart [10:32:06]Write to MH i2c: 01 00 00 A0 3C DC [10:32:06]OFD Sender: Processing packet 49416 [packets to send 21, broken 20] [10:32:06]ProducePacketName [10:32:06]name=ofd_packets/00049416 [10:32:06]OFD Sender: To server: pG, [10:32:06]CommunicateWithHost lk.salyk.kg:30040 [10:32:06]ConnectInit lk.salyk.kg [10:32:06]Write i2c OK [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: 01 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: 01 07 00 [10:32:06]MH_I2C_Read... [10:32:06]Read from MH i2c: 01 07 00 A0 3C 00 00 00 00 00 FF 0F F1 [10:32:06]RasterBufferAndPrint [10:32:06]line Счет N : (3)189642 [10:32:06]line ИНН: 02508201610067 [10:32:06]line Контрольно-Кассовый Чек [10:32:06]line ПРОДАЖА [10:32:06]line Товар: 4700040114120 [10:32:06]line Султан чай 1л. чер персик [10:32:06]line 1.000 * 65.00 [10:32:06]line = 65.00 [10:32:06]line НДС 12% НСП 1% [10:32:06]line > о реализуемом товаре [10:32:06]line Товар: 4700000160204 [10:32:06]line Вода Легенда 1,5л [10:32:06]line 1.000 * 60.00 [10:32:06]line = 60.00 [10:32:06]line НДС 12% НСП 1% [10:32:06]line > о реализуемом товаре [10:32:06]line Товар: 4640030091607 [10:32:06]line Сигареты ESSE Exchange [10:32:06]line 1.000 * 150.00 [10:32:06]line = 150.00 [10:32:06]line НДС 12% НСП 1% [10:32:06]line > о реализуемом товаре [10:32:06]line ИТОГО: 275.00 [10:32:06]line НСП 1% : 2.43 [10:32:06]line НДС 12% : 29.20 [10:32:06]line Наличными: 275.00 [10:32:06]line Безнал.: 0.00 [10:32:06]line Место: АЗС № 95 "Партнер Нефть" [10:32:06]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:32:06]line СНО: Общий режим [10:32:06]line Чек 64 16.08.2024 10:32 [10:32:06]line Смена: 464 ФФД: 1.0 [10:32:06]line ЗНМ: 0300000078 [10:32:06]line РНМ: 0000000000092546 [10:32:06]line Версия ККМ: 001 [10:32:06]line ФМ: 0000000000871800 [10:32:06]line ФД: 49416 [10:32:06]line ФПД: 17649275293232 [10:32:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T103209&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49416&fm=17649275293232&tin=02508201610067®Number=0000000000092546&sum=27500 [10:32:06]line 0 [10:32:06]written 0, free lines is 4095 [10:32:06]Connected sock=10 [10:32:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 FD 01 00 00 B7 73 F5 01 56 18 5A 03 01 00 03 00 E9 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 0B 00 00 00 00 07 04 06 00 6C 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 A9 2A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 08 C1 00 00 35 04 06 00 10 0D 4A C8 CE 30 0B 0C 7C D4 D5 EA A9 C1 [10:32:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 3D 52 47 00 2C DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 08 C1 00 00 F4 03 04 00 E8 D5 BE 66 B6 04 01 00 00 23 2D 7E 57 58 19 6E 0C [10:32:07]CommunicateWithHost err = 0 [10:32:07]CheckOFDResponse [10:32:07]1017 (14) - 77093643461234 [10:32:07]1041 (16) - 0000000000871800 [10:32:07]1040 (4) - 49416 [10:32:07]1012 (4) - 16.08.2024 04:30 [10:32:07]1206 (1) - 0 [10:32:07]OFD Sender: Remove packet 49416 [10:32:07]ProducePacketName [10:32:07]name=ofd_packets/00049416 [10:32:07]NVStorageDeleteData [10:32:07]Write to MH i2c: 01 00 00 D4 3C 10 [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: 01 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: 01 07 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: 01 07 00 D4 3C 00 00 00 00 00 4B 0C 6E [10:32:07]RasterBufferAndPrint [10:32:07]line [10:32:07]line [10:32:07]line [10:32:07]line [10:32:07]line [10:32:07]written 0, free lines is 3153 [10:32:07]MH_Cut [10:32:07]Write to MH i2c: D1 01 00 DB 3C 01 E9 [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: D1 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: D1 01 00 [10:32:07]MH_I2C_Read... [10:32:07]Read from MH i2c: D1 01 00 DB 3C 00 E8 [10:32:07]Write to MH i2c: 01 00 00 DC 3C 18 [10:32:07]Write i2c OK [10:32:07]MH_I2C_Read... [10:32:07]OFD Sender: No OFD packet to send [10:32:08]*** Cut start [10:32:08]*** Purtial cut [10:32:08]*** CUTSNS_PIN = 0 [10:32:08]*** Stage 1: CUTSNS_PIN = 1 [10:32:10]Read from MH i2c: 01 [10:32:10]MH_I2C_Read... [10:32:10]*** Stop cut motor [10:32:10]*** Cut end [10:32:10]Read from MH i2c: 01 07 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: 01 07 00 DC 3C 00 00 00 00 00 FF 0F 2D [10:32:10]process_action close_receipt done [10:32:10]requested_data is exist [10:32:10]produce_requested_data [10:32:10]requested_item fm.sn is exist - process it [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 11 00 00 [10:32:10]Write to MH i2c: E2 08 00 DD 3C 80 11 00 00 00 00 00 00 93 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 17 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 17 00 DD 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DE [10:32:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:32:10]wFMCommunicate OK [10:32:10]requested_item fd.num is exist - process it [10:32:10]SAM_PROTO_GetFieldsCounters [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 13 00 00 [10:32:10]Write to MH i2c: E2 08 00 DE 3C 80 13 00 00 00 00 00 00 96 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 62 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 62 00 DE 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 08 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 0A [10:32:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 08 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:10]wFMCommunicate OK [10:32:10]SAM_PROTO_GetFieldsCounters done [10:32:10]requested_item shift.num is exist - process it [10:32:10]requested_item shift.opened is exist - process it [10:32:10]req_shift_opened [10:32:10]FM_GetShiftState [10:32:10]SAM_PROTO_GetShiftState [10:32:10]wFMCommunicate request_size=4 [10:32:10]MH_SAM_APDU [10:32:10]CAPDU: 80 13 01 00 [10:32:10]Write to MH i2c: E2 08 00 DF 3C 80 13 01 00 00 00 00 00 98 [10:32:10]Write i2c OK [10:32:10]MH_I2C_Read... [10:32:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:10]Read from MH i2c: E2 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 0E 00 [10:32:10]MH_I2C_Read... [10:32:10]Read from MH i2c: E2 0E 00 DF 3C 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 0E [10:32:10]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:32:10]wFMCommunicate OK [10:32:10]SAM_PROTO_GetShiftState done [10:32:10]FM_GetShiftState done [10:32:10]req_shift_opened done [10:32:10]requested_item shift.open_date is exist - process it [10:32:10]req_shift_open_date [10:32:10]req_shift_open_date done [10:32:10]produce_requested_data done [10:32:10]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49416,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [10:32:10]process_action_free close_receipt [10:32:10]json_value_free [10:32:10]json_value_free done [10:32:10]process_json_proto returns [10:32:10]Send response to host [10:32:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49416,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [10:32:10]free response buf [10:32:10]execute_script done [10:32:10]execute_script returns [10:32:10]free content buf [10:32:10]Sock 7.Close socket [10:32:10]Sock 7.Thread stoped [10:32:12]OFD Sender: No OFD packet to send [10:32:17]OFD Sender: No OFD packet to send [10:32:22]OFD Sender: No OFD packet to send [10:32:23]accept exits with 9 [10:32:23]New connection [10:32:23]New thread 3066973540 created [10:32:23]Thread 3066830180 joined [10:32:23]Waiting for new connection... [10:32:23] Sock 9.Parse request [10:32:23]Sock 9.Check first char [10:32:23]Sock 9.First char is OK [10:32:23]request: POST /json_proto HTTP/1.0 [10:32:23]Method: POST [10:32:23]URL: /json_proto [10:32:23]Method is POST - this is cgi request [10:32:23]url: /json_proto [10:32:23]query_string will be loaded in cgi processing [10:32:23]execute_cgi json_proto POST (null) [10:32:23]execute_cgi path=json_proto method=POST [10:32:23]POST find Content-Length [10:32:23]Host: 172.17.46.196:8080 [10:32:23]Content-Length: 673 [10:32:23]Content-Type: application/json [10:32:23] [10:32:23]POST finish read [10:32:23]Found Content-Length = 673 [10:32:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189643", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:23]execute_script... [10:32: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 : (3)189643", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 7.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:23]POST & json_proto [10:32:23]process_json_proto [10:32:23]json parsed OK: [10:32:23]protocol is kg_v1.0 [10:32:23]action value=close_receipt [10:32:23]process_action close_receipt [10:32:23]cmd_close_receipt [10:32:23]MH_GetDate [10:32:23]Write to MH i2c: F0 00 00 E0 3C 0B [10:32:23]Write i2c OK [10:32:23]MH_I2C_Read... [10:32:23]Read from MH i2c: F0 [10:32:23]MH_I2C_Read... [10:32:23]Read from MH i2c: F0 09 00 [10:32:23]MH_I2C_Read... [10:32:23]Read from MH i2c: F0 09 00 E0 3C 00 BD 2A BF 66 07 E8 5D 66 D2 [10:32:23]GetLastDocTimeStamp 1723804329 [10:32:23]current date 1723804349 [10:32:23]FM_GetShiftState [10:32:23]SAM_PROTO_GetShiftState [10:32:23]wFMCommunicate request_size=4 [10:32:23]MH_SAM_APDU [10:32:23]CAPDU: 80 13 01 00 [10:32:23]Write to MH i2c: E2 08 00 E1 3C 80 13 01 00 00 00 00 00 9A [10:32:23]Write i2c OK [10:32:23]MH_I2C_Read... [10:32:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:23]Read from MH i2c: E2 [10:32:23]MH_I2C_Read... [10:32:23]Read from MH i2c: E2 0E 00 [10:32:23]MH_I2C_Read... [10:32:23]Read from MH i2c: E2 0E 00 E1 3C 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 10 [10:32:23]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:32:23]wFMCommunicate OK [10:32:23]SAM_PROTO_GetShiftState done [10:32:23]FM_GetShiftState done [10:32:23]opened in 1723766958 [10:32:23]opened+sec_in_day 1723853358 [10:32:23]quantity*price = 700 [10:32:23]sum+1 = 701 [10:32:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 7.00 НСП 1% : 0.06 НДС 12% : 0.74 Наличными: 7.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 65 16.08.2024 10:32 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49417 ФПД: 123951184157320 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T103229&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49417&fm=123951184157320&tin=02508201610067®Number=0000000000092546&sum=700 0 [10:32:25]StoreToDocumentArchive [10:32:25]shift 464 fd 49417 [10:32:25]save to /storage/0464/doc_00049417 [10:32:25]save last doc name /storage/0464/doc_00049417 to /storage/kkm_last_doc_name [10:32:25]save OK [10:32:25]Clear old archive folders... [10:32:25]ProcessDocumentItem done err = 0, tmpTLVsize=287 [10:32:25]tlvbuf is B6DAD300 [10:32:25]SAM_PROTO_ClearQueue [10:32:25]wFMCommunicate request_size=4 [10:32:25]MH_SAM_APDU [10:32:25]CAPDU: 80 09 00 00 [10:32:25]Write to MH i2c: E2 08 00 EE 3C 80 09 00 00 00 00 00 00 9C [10:32:25]Write i2c OK [10:32:25]MH_I2C_Read... [10:32:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:25]Read from MH i2c: E2 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 03 00 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 03 00 EE 3C 00 90 00 9E [10:32:25]RAPDU: 90 00 [10:32:25]wFMCommunicate OK [10:32:25]SAM_PROTO_ClearQueue done [10:32:25]KKMCreateOFDPacket [10:32:25]OFDProtocolAddRootSTLVToBuf [10:32:25]FM_MakeSignedData [10:32:25]FM_MakeSignedData [10:32:25]SAM_PROTO_SignData [10:32:25]wFMCommunicate request_size=4 [10:32:25]MH_SAM_APDU [10:32:25]CAPDU: 80 0D 01 02 [10:32:25]Write to MH i2c: E2 08 00 EF 3C 80 0D 01 02 00 00 00 00 A4 [10:32:25]Write i2c OK [10:32:25]MH_I2C_Read... [10:32:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:25]Read from MH i2c: E2 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 03 00 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 03 00 EF 3C 00 90 00 9F [10:32:25]RAPDU: 90 00 [10:32:25]wFMCommunicate OK [10:32:25]wFMCommunicate request_size=255 [10:32:25]MH_SAM_APDU [10:32:25]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 BD 2A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [10:32:25]Write to MH i2c: E2 02 01 F0 3C 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 BD 2A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 FE [10:32:25]Write i2c OK [10:32:25]MH_I2C_Read... [10:32:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:25]Read from MH i2c: E2 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 03 00 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 03 00 F0 3C 00 90 00 A0 [10:32:25]RAPDU: 90 00 [10:32:25]wFMCommunicate OK [10:32:25]wFMCommunicate request_size=46 [10:32:25]MH_SAM_APDU [10:32:25]CAPDU: 80 0D 02 02 29 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 09 C1 00 00 35 04 06 00 70 BB A2 4D 1A 88 [10:32:25]Write to MH i2c: E2 31 00 F1 3C 80 0D 02 02 29 00 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 09 C1 00 00 35 04 06 00 70 BB A2 4D 1A 88 00 00 B2 [10:32:25]Write i2c OK [10:32:25]MH_I2C_Read... [10:32:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:25]Read from MH i2c: E2 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 03 00 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 03 00 F1 3C 00 90 00 A1 [10:32:25]RAPDU: 90 00 [10:32:25]wFMCommunicate OK [10:32:25]wFMCommunicate request_size=4 [10:32:25]MH_SAM_APDU [10:32:25]CAPDU: 80 0D 03 02 [10:32:25]Write to MH i2c: E2 08 00 F2 3C 80 0D 03 02 00 00 00 00 A9 [10:32:25]Write i2c OK [10:32:25]MH_I2C_Read... [10:32:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:25]Read from MH i2c: E2 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 0B 00 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 0B 00 F2 3C 00 8F 81 3D 59 DB 69 BC 60 90 00 B0 [10:32:25]RAPDU: 8F 81 3D 59 DB 69 BC 60 90 00 [10:32:25]wFMCommunicate OK [10:32:25]SAM_PROTO_SignData done [10:32:25]FM_MakeSignedData done [10:32:25]CreateOFDProtocolMessage [10:32:25]wFMCommunicate request_size=4 [10:32:25]MH_SAM_APDU [10:32:25]CAPDU: 80 11 00 00 [10:32:25]Write to MH i2c: E2 08 00 F3 3C 80 11 00 00 00 00 00 00 A9 [10:32:25]Write i2c OK [10:32:25]MH_I2C_Read... [10:32:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:25]Read from MH i2c: E2 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 17 00 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: E2 17 00 F3 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F4 [10:32:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:32:25]wFMCommunicate OK [10:32:25]CreateOFDProtocolMessage done [10:32:25]OFDSenderStorePacket 49417 [10:32:25]StoreOFDPacket docnum=49417 [10:32:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 33 01 00 00 66 28 2B 01 68 E0 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 BD 2A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 09 C1 00 00 35 04 06 00 70 BB A2 4D 1A 88 8F 81 3D 59 DB 69 BC 60 [10:32:25]CheckFolder [10:32:25]dirname=/storage/ofd_packets [10:32:25]CheckFolder done [10:32:25]ProducePacketName [10:32:25]name=ofd_packets/00049417 [10:32:25]NVStorageSaveData ofd_packets/00049417 [10:32:25]File name is /storage/ofd_packets/00049417 [10:32:25]Write 337 bytes [10:32:25]NVStorageSaveData done [10:32:25]OFDSenderStorePacket done [10:32:25]KKMCreateOFDPacket done [10:32:25]NVStorageSaveData kkm_last_timestamp [10:32:25]File name is /storage/kkm_last_timestamp [10:32:25]Write 4 bytes [10:32:25]NVStorageSaveData done [10:32:25]ExternCall_PrintAddStr [10:32:25]wPrintStart [10:32:25]Write to MH i2c: 01 00 00 F4 3C 30 [10:32:25]Write i2c OK [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: 01 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: 01 07 00 [10:32:25]MH_I2C_Read... [10:32:25]Read from MH i2c: 01 07 00 F4 3C 00 00 00 00 00 FF 0F 45 [10:32:25]RasterBufferAndPrint [10:32:25]line Счет N : (3)189643 [10:32:25]line ИНН: 02508201610067 [10:32:25]line Контрольно-Кассовый Чек [10:32:25]line ПРОДАЖА [10:32:25]line Товар: 2000053020015 [10:32:25]line Бумажные стаканы 250мл 1шт [10:32:25]line 1.000 * 7.00 [10:32:25]line = 7.00 [10:32:25]line НДС 12% НСП 1% [10:32:25]line > о реализуемом товаре [10:32:25]line ИТОГО: 7.00 [10:32:25]line НСП 1% : 0.06 [10:32:25]line НДС 12% : 0.74 [10:32:25]line Наличными: 7.00 [10:32:25]line Безнал.: 0.00 [10:32:25]line Место: АЗС № 95 "Партнер Нефть" [10:32:25]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:32:25]line СНО: Общий режим [10:32:25]line Чек 65 16.08.2024 10:32 [10:32:25]line Смена: 464 ФФД: 1.0 [10:32:25]line ЗНМ: 0300000078 [10:32:25]line РНМ: 0000000000092546 [10:32:25]line Версия ККМ: 001 [10:32:25]line ФМ: 0000000000871800 [10:32:25]line ФД: 49417 [10:32:25]line ФПД: 123951184157320 [10:32:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T103229&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49417&fm=123951184157320&tin=02508201610067®Number=0000000000092546&sum=700 [10:32:25]line 0 [10:32:25]OFD Sender: Processing packet 49417 [packets to send 21, broken 20] [10:32:25]ProducePacketName [10:32:25]name=ofd_packets/00049417 [10:32:25]OFD Sender: To server: pG, [10:32:25]CommunicateWithHost lk.salyk.kg:30040 [10:32:25]ConnectInit lk.salyk.kg [10:32:25]written 0, free lines is 4095 [10:32:26]Connected sock=10 [10:32:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 33 01 00 00 66 28 2B 01 68 E0 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 BD 2A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 09 C1 00 00 35 04 06 00 70 BB A2 4D 1A 88 8F 81 3D 59 DB 69 BC 60 [10:32:26]Write to MH i2c: 01 00 00 1D 3D 5A [10:32:26]Write i2c OK [10:32:26]MH_I2C_Read... [10:32:26]Read from MH i2c: 01 [10:32:26]MH_I2C_Read... [10:32:26]Read from MH i2c: 01 07 00 [10:32:26]MH_I2C_Read... [10:32:26]Read from MH i2c: 01 07 00 1D 3D 00 00 00 00 00 C9 0C 36 [10:32:26]RasterBufferAndPrint [10:32:26]line [10:32:26]line [10:32:26]line [10:32:26]line [10:32:26]line [10:32:26]written 0, free lines is 3280 [10:32:26]MH_Cut [10:32:26]Write to MH i2c: D1 01 00 24 3D 01 33 [10:32:26]Write i2c OK [10:32:26]MH_I2C_Read... [10:32:26]Read from MH i2c: D1 [10:32:26]MH_I2C_Read... [10:32:26]Read from MH i2c: D1 01 00 [10:32:26]MH_I2C_Read... [10:32:26]Read from MH i2c: D1 01 00 24 3D 00 32 [10:32:26]Write to MH i2c: 01 00 00 25 3D 62 [10:32:26]Write i2c OK [10:32:26]MH_I2C_Read... [10:32:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 0A A5 47 00 1D C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 09 C1 00 00 F4 03 04 00 FC D5 BE 66 B6 04 01 00 00 E6 A7 15 73 B5 30 0D DF [10:32:26]CommunicateWithHost err = 0 [10:32:26]CheckOFDResponse [10:32:26]1017 (14) - 77093643461234 [10:32:26]1041 (16) - 0000000000871800 [10:32:26]1040 (4) - 49417 [10:32:26]1012 (4) - 16.08.2024 04:30 [10:32:26]1206 (1) - 0 [10:32:26]OFD Sender: Remove packet 49417 [10:32:26]ProducePacketName [10:32:26]name=ofd_packets/00049417 [10:32:26]NVStorageDeleteData [10:32:26]OFD Sender: No OFD packet to send [10:32:27]*** Cut start [10:32:27]*** Purtial cut [10:32:27]*** Stage 1: CUTSNS_PIN = 1 [10:32:27]Read from MH i2c: 01 [10:32:27]MH_I2C_Read... [10:32:27]*** Stop cut motor [10:32:27]*** Cut end [10:32:27]Read from MH i2c: 01 07 00 [10:32:27]MH_I2C_Read... [10:32:27]Read from MH i2c: 01 07 00 25 3D 00 00 00 00 00 FF 0F 77 [10:32:27]process_action close_receipt done [10:32:27]requested_data is exist [10:32:27]produce_requested_data [10:32:27]requested_item fm.sn is exist - process it [10:32:27]wFMCommunicate request_size=4 [10:32:27]MH_SAM_APDU [10:32:27]CAPDU: 80 11 00 00 [10:32:27]Write to MH i2c: E2 08 00 26 3D 80 11 00 00 00 00 00 00 DD [10:32:27]Write i2c OK [10:32:27]MH_I2C_Read... [10:32:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:27]Read from MH i2c: E2 [10:32:27]MH_I2C_Read... [10:32:27]Read from MH i2c: E2 17 00 [10:32:27]MH_I2C_Read... [10:32:27]Read from MH i2c: E2 17 00 26 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 28 [10:32:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:32:27]wFMCommunicate OK [10:32:27]requested_item fd.num is exist - process it [10:32:27]SAM_PROTO_GetFieldsCounters [10:32:27]wFMCommunicate request_size=4 [10:32:27]MH_SAM_APDU [10:32:27]CAPDU: 80 13 00 00 [10:32:27]Write to MH i2c: E2 08 00 27 3D 80 13 00 00 00 00 00 00 E0 [10:32:27]Write i2c OK [10:32:27]MH_I2C_Read... [10:32:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:27]Read from MH i2c: E2 [10:32:27]MH_I2C_Read... [10:32:27]Read from MH i2c: E2 62 00 [10:32:27]MH_I2C_Read... [10:32:27]Read from MH i2c: E2 62 00 27 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 09 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [10:32:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 09 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:27]wFMCommunicate OK [10:32:27]SAM_PROTO_GetFieldsCounters done [10:32:27]requested_item shift.num is exist - process it [10:32:27]requested_item shift.opened is exist - process it [10:32:27]req_shift_opened [10:32:27]FM_GetShiftState [10:32:27]SAM_PROTO_GetShiftState [10:32:27]wFMCommunicate request_size=4 [10:32:27]MH_SAM_APDU [10:32:27]CAPDU: 80 13 01 00 [10:32:27]Write to MH i2c: E2 08 00 28 3D 80 13 01 00 00 00 00 00 E2 [10:32:27]Write i2c OK [10:32:27]MH_I2C_Read... [10:32:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:27]Read from MH i2c: E2 [10:32:27]MH_I2C_Read... [10:32:27]Read from MH i2c: E2 0E 00 [10:32:27]MH_I2C_Read... [10:32:27]Read from MH i2c: E2 0E 00 28 3D 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 58 [10:32:27]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:32:27]wFMCommunicate OK [10:32:27]SAM_PROTO_GetShiftState done [10:32:27]FM_GetShiftState done [10:32:27]req_shift_opened done [10:32:27]requested_item shift.open_date is exist - process it [10:32:27]req_shift_open_date [10:32:27]req_shift_open_date done [10:32:27]produce_requested_data done [10:32:27]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49417,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [10:32:27]process_action_free close_receipt [10:32:27]json_value_free [10:32:27]json_value_free done [10:32:27]process_json_proto returns [10:32:27]Send response to host [10:32:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49417,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [10:32:27]free response buf [10:32:27]execute_script done [10:32:27]execute_script returns [10:32:27]free content buf [10:32:27]Sock 9.Close socket [10:32:27]Sock 9.Thread stoped [10:32:31]OFD Sender: No OFD packet to send [10:32:36]OFD Sender: No OFD packet to send [10:32:41]OFD Sender: No OFD packet to send [10:32:46]OFD Sender: No OFD packet to send [10:32:51]OFD Sender: No OFD packet to send [10:32:56]OFD Sender: No OFD packet to send [10:33:01]OFD Sender: No OFD packet to send [10:33:06]OFD Sender: No OFD packet to send [10:33:12]OFD Sender: No OFD packet to send [10:33:17]OFD Sender: No OFD packet to send [10:33:22]OFD Sender: No OFD packet to send [10:33:27]OFD Sender: No OFD packet to send [10:33:32]OFD Sender: No OFD packet to send [10:33:37]OFD Sender: No OFD packet to send [10:33:42]OFD Sender: No OFD packet to send [10:33:47]OFD Sender: No OFD packet to send [10:33:52]OFD Sender: No OFD packet to send [10:33:57]OFD Sender: No OFD packet to send [10:34:02]OFD Sender: No OFD packet to send [10:34:07]OFD Sender: No OFD packet to send [10:34:12]OFD Sender: No OFD packet to send [10:34:17]OFD Sender: No OFD packet to send [10:34:22]OFD Sender: No OFD packet to send [10:34:27]OFD Sender: No OFD packet to send [10:34:32]OFD Sender: No OFD packet to send [10:34:37]OFD Sender: No OFD packet to send [10:34:42]OFD Sender: No OFD packet to send [10:34:47]OFD Sender: No OFD packet to send [10:34:52]OFD Sender: No OFD packet to send [10:34:57]OFD Sender: No OFD packet to send [10:35:02]OFD Sender: No OFD packet to send [10:35:07]OFD Sender: No OFD packet to send [10:35:12]OFD Sender: No OFD packet to send [10:35:17]OFD Sender: No OFD packet to send [10:35:22]OFD Sender: No OFD packet to send [10:35:27]OFD Sender: No OFD packet to send [10:35:32]OFD Sender: No OFD packet to send [10:35:37]OFD Sender: No OFD packet to send [10:35:42]OFD Sender: No OFD packet to send [10:35:47]OFD Sender: No OFD packet to send [10:35:52]OFD Sender: No OFD packet to send [10:35:52]accept exits with 7 [10:35:52]New connection [10:35:52]New thread 3066830180 created [10:35:52]Thread 3066973540 joined [10:35:52]Waiting for new connection... [10:35:52] Sock 7.Parse request [10:35:52]Sock 7.Check first char [10:35:52]Sock 7.First char is OK [10:35:52]request: POST /json_proto HTTP/1.0 [10:35:52]Method: POST [10:35:52]URL: /json_proto [10:35:52]Method is POST - this is cgi request [10:35:52]url: /json_proto [10:35:52]query_string will be loaded in cgi processing [10:35:52]execute_cgi json_proto POST (null) [10:35:52]execute_cgi path=json_proto method=POST [10:35:52]POST find Content-Length [10:35:52]Host: 172.17.46.196:8080 [10:35:52]Content-Length: 753 [10:35:52]Content-Type: application/json [10:35:52] [10:35:52]POST finish read [10:35:52]Found Content-Length = 753 [10:35:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116570", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:52]execute_script... [10:35:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30116570", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:52]POST & json_proto [10:35:52]process_json_proto [10:35:52]json parsed OK: [10:35:52]protocol is kg_v1.0 [10:35:52]action value=close_receipt [10:35:52]process_action close_receipt [10:35:52]cmd_close_receipt [10:35:52]MH_GetDate [10:35:52]Write to MH i2c: F0 00 00 29 3D 55 [10:35:52]Write i2c OK [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: F0 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: F0 09 00 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: F0 09 00 29 3D 00 8D 2B BF 66 07 E8 5D 66 ED [10:35:52]GetLastDocTimeStamp 1723804349 [10:35:52]current date 1723804557 [10:35:52]FM_GetShiftState [10:35:52]SAM_PROTO_GetShiftState [10:35:52]wFMCommunicate request_size=4 [10:35:52]MH_SAM_APDU [10:35:52]CAPDU: 80 13 01 00 [10:35:52]Write to MH i2c: E2 08 00 2A 3D 80 13 01 00 00 00 00 00 E4 [10:35:52]Write i2c OK [10:35:52]MH_I2C_Read... [10:35:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:52]Read from MH i2c: E2 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: E2 0E 00 [10:35:52]MH_I2C_Read... [10:35:52]Read from MH i2c: E2 0E 00 2A 3D 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 5A [10:35:52]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:35:52]wFMCommunicate OK [10:35:52]SAM_PROTO_GetShiftState done [10:35:52]FM_GetShiftState done [10:35:52]opened in 1723766958 [10:35:52]opened+sec_in_day 1723853358 [10:35:52]quantity*price = 0 [10:35:52]sum+1 = 1 [10:35:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 66 16.08.2024 10:35 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30116570 ФМ: 0000000000871800 ФД: 49418 ФПД: 134162541706996 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T103557&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49418&fm=134162541706996&tin=02508201610067®Number=0000000000092546&sum=0 [10:35:53]StoreToDocumentArchive [10:35:53]shift 464 fd 49418 [10:35:53]save to /storage/0464/doc_00049418 [10:35:53]save last doc name /storage/0464/doc_00049418 to /storage/kkm_last_doc_name [10:35:53]save OK [10:35:53]Clear old archive folders... [10:35:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:35:53]tlvbuf is 00E144E0 [10:35:53]SAM_PROTO_ClearQueue [10:35:53]wFMCommunicate request_size=4 [10:35:53]MH_SAM_APDU [10:35:53]CAPDU: 80 09 00 00 [10:35:53]Write to MH i2c: E2 08 00 37 3D 80 09 00 00 00 00 00 00 E6 [10:35:53]Write i2c OK [10:35:53]MH_I2C_Read... [10:35:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:53]Read from MH i2c: E2 [10:35:53]MH_I2C_Read... [10:35:53]Read from MH i2c: E2 03 00 [10:35:53]MH_I2C_Read... [10:35:53]Read from MH i2c: E2 03 00 37 3D 00 90 00 E8 [10:35:53]RAPDU: 90 00 [10:35:53]wFMCommunicate OK [10:35:53]SAM_PROTO_ClearQueue done [10:35:53]KKMCreateOFDPacket [10:35:53]OFDProtocolAddRootSTLVToBuf [10:35:53]FM_MakeSignedData [10:35:53]FM_MakeSignedData [10:35:53]SAM_PROTO_SignData [10:35:53]wFMCommunicate request_size=4 [10:35:53]MH_SAM_APDU [10:35:53]CAPDU: 80 0D 01 02 [10:35:53]Write to MH i2c: E2 08 00 38 3D 80 0D 01 02 00 00 00 00 EE [10:35:53]Write i2c OK [10:35:53]MH_I2C_Read... [10:35:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:53]Read from MH i2c: E2 [10:35:53]MH_I2C_Read... [10:35:53]Read from MH i2c: E2 03 00 [10:35:53]MH_I2C_Read... [10:35:53]Read from MH i2c: E2 03 00 38 3D 00 90 00 E9 [10:35:53]RAPDU: 90 00 [10:35:53]wFMCommunicate OK [10:35:53]wFMCommunicate request_size=255 [10:35:53]MH_SAM_APDU [10:35: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 8D 2B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0A C1 00 00 35 04 06 00 7A 05 26 A3 [10:35:53]Write to MH i2c: E2 02 01 39 3D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 8D 2B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0A C1 00 00 35 04 06 00 7A 05 26 A3 00 00 B5 [10:35:53]Write i2c OK [10:35:53]MH_I2C_Read... [10:35:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:54]Read from MH i2c: E2 [10:35:54]MH_I2C_Read... [10:35:54]Read from MH i2c: E2 03 00 [10:35:54]MH_I2C_Read... [10:35:54]Read from MH i2c: E2 03 00 39 3D 00 90 00 EA [10:35:54]RAPDU: 90 00 [10:35:54]wFMCommunicate OK [10:35:54]wFMCommunicate request_size=7 [10:35:54]MH_SAM_APDU [10:35:54]CAPDU: 80 0D 02 02 02 FE F4 [10:35:54]Write to MH i2c: E2 0A 00 3A 3D 80 0D 02 02 02 00 FE F4 00 00 E7 [10:35:54]Write i2c OK [10:35:54]MH_I2C_Read... [10:35:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:54]Read from MH i2c: E2 [10:35:54]MH_I2C_Read... [10:35:54]Read from MH i2c: E2 03 00 [10:35:54]MH_I2C_Read... [10:35:54]Read from MH i2c: E2 03 00 3A 3D 00 90 00 EB [10:35:54]RAPDU: 90 00 [10:35:54]wFMCommunicate OK [10:35:54]wFMCommunicate request_size=4 [10:35:54]MH_SAM_APDU [10:35:54]CAPDU: 80 0D 03 02 [10:35:54]Write to MH i2c: E2 08 00 3B 3D 80 0D 03 02 00 00 00 00 F3 [10:35:54]Write i2c OK [10:35:54]MH_I2C_Read... [10:35:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:54]Read from MH i2c: E2 [10:35:54]MH_I2C_Read... [10:35:54]Read from MH i2c: E2 0B 00 [10:35:54]MH_I2C_Read... [10:35:54]Read from MH i2c: E2 0B 00 3B 3D 00 90 62 0A 7D 46 0D 8A DE 90 00 28 [10:35:54]RAPDU: 90 62 0A 7D 46 0D 8A DE 90 00 [10:35:54]wFMCommunicate OK [10:35:54]SAM_PROTO_SignData done [10:35:54]FM_MakeSignedData done [10:35:54]CreateOFDProtocolMessage [10:35:54]wFMCommunicate request_size=4 [10:35:54]MH_SAM_APDU [10:35:54]CAPDU: 80 11 00 00 [10:35:54]Write to MH i2c: E2 08 00 3C 3D 80 11 00 00 00 00 00 00 F3 [10:35:54]Write i2c OK [10:35:54]MH_I2C_Read... [10:35:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:54]Read from MH i2c: E2 [10:35:54]MH_I2C_Read... [10:35:54]Read from MH i2c: E2 17 00 [10:35:54]MH_I2C_Read... [10:35:54]Read from MH i2c: E2 17 00 3C 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3E [10:35:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:35:54]wFMCommunicate OK [10:35:54]CreateOFDProtocolMessage done [10:35:54]OFDSenderStorePacket 49418 [10:35:54]StoreOFDPacket docnum=49418 [10:35:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 76 FD 04 01 18 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 8D 2B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0A C1 00 00 35 04 06 00 7A 05 26 A3 FE F4 90 62 0A 7D 46 0D 8A DE [10:35:54]CheckFolder [10:35:54]dirname=/storage/ofd_packets [10:35:54]CheckFolder done [10:35:54]ProducePacketName [10:35:54]name=ofd_packets/00049418 [10:35:54]NVStorageSaveData ofd_packets/00049418 [10:35:54]File name is /storage/ofd_packets/00049418 [10:35:54]Write 298 bytes [10:35:54]NVStorageSaveData done [10:35:54]OFDSenderStorePacket done [10:35:54]KKMCreateOFDPacket done [10:35:54]NVStorageSaveData kkm_last_timestamp [10:35:54]File name is /storage/kkm_last_timestamp [10:35:54]Write 4 bytes [10:35:54]NVStorageSaveData done [10:35:54]ExternCall_PrintAddStr [10:35:54]wPrintStart [10:35:54]Write to MH i2c: 01 00 00 3D 3D 7A [10:35:54]Write i2c OK [10:35:54]MH_I2C_Read... [10:35:54]Read from MH i2c: 01 [10:35:54]MH_I2C_Read... [10:35:54]Read from MH i2c: 01 07 00 [10:35:54]MH_I2C_Read... [10:35:54]Read from MH i2c: 01 07 00 3D 3D 00 00 00 00 00 FF 0F 8F [10:35:54]RasterBufferAndPrint [10:35:54]line Счет N : (1)11325268 [10:35:54]line ИНН: 02508201610067 [10:35:54]line Контрольно-Кассовый Чек [10:35:54]line ПРОДАЖА [10:35:54]line ТРК (МРК, ГНК) : 51 [10:35:54]line Товар: 2710194210 [10:35:54]line ДТ-К-5 [10:35:54]line 20.000 * 0.00 [10:35:54]line = 0.00 [10:35:54]line НДС 12% НСП 1% [10:35:54]line > о реализуемом товаре [10:35:54]line ИТОГО: 0.00 [10:35:54]line НСП 1% : 0.00 [10:35:54]line НДС 12% : 0.00 [10:35:54]line Наличными: 0.00 [10:35:54]line Безнал.: 0.00 [10:35:54]line Место: АЗС № 95 "Партнер Нефть" [10:35:54]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:35:54]line СНО: Общий режим [10:35:54]line Чек 66 16.08.2024 10:35 [10:35:54]line Смена: 464 ФФД: 1.0 [10:35:54]line ЗНМ: 0300000078 [10:35:54]line РНМ: 0000000000092546 [10:35:54]line Версия ККМ: 001 [10:35:54]line Талоны: ТК ГПНА Online [10:35:54]line 30116570 [10:35:54]line ФМ: 0000000000871800 [10:35:54]line ФД: 49418 [10:35:54]line ФПД: 134162541706996 [10:35:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T103557&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49418&fm=134162541706996&tin=02508201610067®Number=0000000000092546&sum=0 [10:35:54]OFD Sender: Processing packet 49418 [packets to send 21, broken 20] [10:35:54]ProducePacketName [10:35:54]name=ofd_packets/00049418 [10:35:54]OFD Sender: To server: pG, [10:35:54]CommunicateWithHost lk.salyk.kg:30040 [10:35:54]ConnectInit lk.salyk.kg [10:35:54]written 0, free lines is 4095 [10:35:54]Connected sock=10 [10:35:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 76 FD 04 01 18 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 8D 2B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0A C1 00 00 35 04 06 00 7A 05 26 A3 FE F4 90 62 0A 7D 46 0D 8A DE [10:35:55]Write to MH i2c: 01 00 00 67 3D A4 [10:35:55]Write i2c OK [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: 01 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: 01 07 00 [10:35:55]MH_I2C_Read... [10:35:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 52 9B 47 00 76 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0A C1 00 00 F4 03 04 00 CC D6 BE 66 B6 04 01 00 00 EC 05 F7 06 5E B7 31 36 [10:35:55]CommunicateWithHost err = 0 [10:35:55]CheckOFDResponse [10:35:55]1017 (14) - 77093643461234 [10:35:55]1041 (16) - 0000000000871800 [10:35:55]1040 (4) - 49418 [10:35:55]1012 (4) - 16.08.2024 04:34 [10:35:55]1206 (1) - 0 [10:35:55]OFD Sender: Remove packet 49418 [10:35:55]ProducePacketName [10:35:55]name=ofd_packets/00049418 [10:35:55]NVStorageDeleteData [10:35:55]Read from MH i2c: 01 07 00 67 3D 00 00 00 00 00 E6 0C 9D [10:35:55]RasterBufferAndPrint [10:35:55]line [10:35:55]line [10:35:55]line [10:35:55]line [10:35:55]line [10:35:55]written 0, free lines is 3319 [10:35:55]MH_Cut [10:35:55]Write to MH i2c: D1 01 00 6E 3D 01 7D [10:35:55]Write i2c OK [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: D1 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: D1 01 00 [10:35:55]MH_I2C_Read... [10:35:55]Read from MH i2c: D1 01 00 6E 3D 00 7C [10:35:55]Write to MH i2c: 01 00 00 6F 3D AC [10:35:55]Write i2c OK [10:35:55]MH_I2C_Read... [10:35:55]OFD Sender: No OFD packet to send [10:35:55]*** Cut start [10:35:55]*** Purtial cut [10:35:55]*** CUTSNS_PIN = 0 [10:35:56]*** Stage 1: CUTSNS_PIN = 1 [10:35:57]Read from MH i2c: 01 [10:35:57]MH_I2C_Read... [10:35:57]*** Stop cut motor [10:35:57]*** Cut end [10:35:57]Read from MH i2c: 01 07 00 [10:35:57]MH_I2C_Read... [10:35:57]Read from MH i2c: 01 07 00 6F 3D 00 00 00 00 00 FF 0F C1 [10:35:57]process_action close_receipt done [10:35:57]requested_data is exist [10:35:57]produce_requested_data [10:35:57]requested_item fm.sn is exist - process it [10:35:57]wFMCommunicate request_size=4 [10:35:57]MH_SAM_APDU [10:35:57]CAPDU: 80 11 00 00 [10:35:57]Write to MH i2c: E2 08 00 70 3D 80 11 00 00 00 00 00 00 27 [10:35:57]Write i2c OK [10:35:57]MH_I2C_Read... [10:35:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:57]Read from MH i2c: E2 [10:35:57]MH_I2C_Read... [10:35:57]Read from MH i2c: E2 17 00 [10:35:57]MH_I2C_Read... [10:35:57]Read from MH i2c: E2 17 00 70 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 72 [10:35:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:35:57]wFMCommunicate OK [10:35:57]requested_item fd.num is exist - process it [10:35:57]SAM_PROTO_GetFieldsCounters [10:35:57]wFMCommunicate request_size=4 [10:35:57]MH_SAM_APDU [10:35:57]CAPDU: 80 13 00 00 [10:35:57]Write to MH i2c: E2 08 00 71 3D 80 13 00 00 00 00 00 00 2A [10:35:57]Write i2c OK [10:35:57]MH_I2C_Read... [10:35:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:58]Read from MH i2c: E2 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 62 00 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 62 00 71 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0A C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [10:35:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0A C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:58]wFMCommunicate OK [10:35:58]SAM_PROTO_GetFieldsCounters done [10:35:58]requested_item shift.num is exist - process it [10:35:58]requested_item shift.opened is exist - process it [10:35:58]req_shift_opened [10:35:58]FM_GetShiftState [10:35:58]SAM_PROTO_GetShiftState [10:35:58]wFMCommunicate request_size=4 [10:35:58]MH_SAM_APDU [10:35:58]CAPDU: 80 13 01 00 [10:35:58]Write to MH i2c: E2 08 00 72 3D 80 13 01 00 00 00 00 00 2C [10:35:58]Write i2c OK [10:35:58]MH_I2C_Read... [10:35:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:58]Read from MH i2c: E2 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 0E 00 [10:35:58]MH_I2C_Read... [10:35:58]Read from MH i2c: E2 0E 00 72 3D 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 A2 [10:35:58]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:35:58]wFMCommunicate OK [10:35:58]SAM_PROTO_GetShiftState done [10:35:58]FM_GetShiftState done [10:35:58]req_shift_opened done [10:35:58]requested_item shift.open_date is exist - process it [10:35:58]req_shift_open_date [10:35:58]req_shift_open_date done [10:35:58]produce_requested_data done [10:35:58]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49418,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [10:35:58]process_action_free close_receipt [10:35:58]json_value_free [10:35:58]json_value_free done [10:35:58]process_json_proto returns [10:35:58]Send response to host [10:35:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49418,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [10:35:58]free response buf [10:35:58]execute_script done [10:35:58]execute_script returns [10:35:58]free content buf [10:35:58]Sock 7.Close socket [10:35:58]Sock 7.Thread stoped [10:36:00]OFD Sender: No OFD packet to send [10:36:05]OFD Sender: No OFD packet to send [10:36:10]OFD Sender: No OFD packet to send [10:36:15]OFD Sender: No OFD packet to send [10:36:20]OFD Sender: No OFD packet to send [10:36:25]OFD Sender: No OFD packet to send [10:36:30]OFD Sender: No OFD packet to send [10:36:35]OFD Sender: No OFD packet to send [10:36:40]OFD Sender: No OFD packet to send [10:36:45]OFD Sender: No OFD packet to send [10:36:50]OFD Sender: No OFD packet to send [10:36:55]OFD Sender: No OFD packet to send [10:37:00]OFD Sender: No OFD packet to send [10:37:05]OFD Sender: No OFD packet to send [10:37:10]OFD Sender: No OFD packet to send [10:37:15]OFD Sender: No OFD packet to send [10:37:20]OFD Sender: No OFD packet to send [10:37:25]OFD Sender: No OFD packet to send [10:37:30]OFD Sender: No OFD packet to send [10:37:35]OFD Sender: No OFD packet to send [10:37:40]OFD Sender: No OFD packet to send [10:37:45]OFD Sender: No OFD packet to send [10:37:50]OFD Sender: No OFD packet to send [10:37:55]OFD Sender: No OFD packet to send [10:38:00]OFD Sender: No OFD packet to send [10:38:05]OFD Sender: No OFD packet to send [10:38:10]OFD Sender: No OFD packet to send [10:38:15]OFD Sender: No OFD packet to send [10:38:20]OFD Sender: No OFD packet to send [10:38:25]OFD Sender: No OFD packet to send [10:38:30]OFD Sender: No OFD packet to send [10:38:35]OFD Sender: No OFD packet to send [10:38:40]OFD Sender: No OFD packet to send [10:38:45]OFD Sender: No OFD packet to send [10:38:50]OFD Sender: No OFD packet to send [10:38:55]OFD Sender: No OFD packet to send [10:39:00]OFD Sender: No OFD packet to send [10:39:05]OFD Sender: No OFD packet to send [10:39:10]OFD Sender: No OFD packet to send [10:39:15]OFD Sender: No OFD packet to send [10:39:20]OFD Sender: No OFD packet to send [10:39:25]OFD Sender: No OFD packet to send [10:39:30]OFD Sender: No OFD packet to send [10:39:35]OFD Sender: No OFD packet to send [10:39:40]OFD Sender: No OFD packet to send [10:39:45]OFD Sender: No OFD packet to send [10:39:50]OFD Sender: No OFD packet to send [10:39:55]OFD Sender: No OFD packet to send [10:40:00]OFD Sender: No OFD packet to send [10:40:05]OFD Sender: No OFD packet to send [10:40:10]OFD Sender: No OFD packet to send [10:40:15]OFD Sender: No OFD packet to send [10:40:20]OFD Sender: No OFD packet to send [10:40:25]OFD Sender: No OFD packet to send [10:40:30]OFD Sender: No OFD packet to send [10:40:35]OFD Sender: No OFD packet to send [10:40:40]OFD Sender: No OFD packet to send [10:40:45]OFD Sender: No OFD packet to send [10:40:50]OFD Sender: No OFD packet to send [10:40:55]OFD Sender: No OFD packet to send [10:41:00]OFD Sender: No OFD packet to send [10:41:05]OFD Sender: No OFD packet to send [10:41:10]OFD Sender: No OFD packet to send [10:41:15]OFD Sender: No OFD packet to send [10:41:20]OFD Sender: No OFD packet to send [10:41:25]OFD Sender: No OFD packet to send [10:41:30]OFD Sender: No OFD packet to send [10:41:35]OFD Sender: No OFD packet to send [10:41:40]OFD Sender: No OFD packet to send [10:41:45]OFD Sender: No OFD packet to send [10:41:46]accept exits with 9 [10:41:46]New connection [10:41:46]New thread 3066973540 created [10:41:46]Thread 3066830180 joined [10:41:46]Waiting for new connection... [10:41:46] Sock 9.Parse request [10:41:46]Sock 9.Check first char [10:41:46]Sock 9.First char is OK [10:41:46]request: POST /json_proto HTTP/1.0 [10:41:46]Method: POST [10:41:46]URL: /json_proto [10:41:46]Method is POST - this is cgi request [10:41:46]url: /json_proto [10:41:46]query_string will be loaded in cgi processing [10:41:46]execute_cgi json_proto POST (null) [10:41:46]execute_cgi path=json_proto method=POST [10:41:46]POST find Content-Length [10:41:46]Host: 172.17.46.196:8080 [10:41:46]Content-Length: 649 [10:41:46]Content-Type: application/json [10:41:46] [10:41:46]POST finish read [10:41:46]Found Content-Length = 649 [10:41:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189644", "tax_sys" : 0, "items" : [ { "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:46]execute_script... [10:41: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 : (3)189644", "tax_sys" : 0, "items" : [ { "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:41:46]POST & json_proto [10:41:46]process_json_proto [10:41:46]json parsed OK: [10:41:46]protocol is kg_v1.0 [10:41:46]action value=close_receipt [10:41:46]process_action close_receipt [10:41:46]cmd_close_receipt [10:41:46]MH_GetDate [10:41:46]Write to MH i2c: F0 00 00 73 3D 9F [10:41:46]Write i2c OK [10:41:46]MH_I2C_Read... [10:41:46]Read from MH i2c: F0 [10:41:46]MH_I2C_Read... [10:41:46]Read from MH i2c: F0 09 00 [10:41:46]MH_I2C_Read... [10:41:46]Read from MH i2c: F0 09 00 73 3D 00 F0 2C BF 66 07 E8 5D 66 9B [10:41:46]GetLastDocTimeStamp 1723804557 [10:41:46]current date 1723804912 [10:41:46]FM_GetShiftState [10:41:46]SAM_PROTO_GetShiftState [10:41:46]wFMCommunicate request_size=4 [10:41:46]MH_SAM_APDU [10:41:46]CAPDU: 80 13 01 00 [10:41:46]Write to MH i2c: E2 08 00 74 3D 80 13 01 00 00 00 00 00 2E [10:41:46]Write i2c OK [10:41:46]MH_I2C_Read... [10:41:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:47]Read from MH i2c: E2 [10:41:47]MH_I2C_Read... [10:41:47]Read from MH i2c: E2 0E 00 [10:41:47]MH_I2C_Read... [10:41:47]Read from MH i2c: E2 0E 00 74 3D 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 A4 [10:41:47]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:41:47]wFMCommunicate OK [10:41:47]SAM_PROTO_GetShiftState done [10:41:47]FM_GetShiftState done [10:41:47]opened in 1723766958 [10:41:47]opened+sec_in_day 1723853358 [10:41:47]quantity*price = 8500 [10:41:47]sum+1 = 8501 [10:41:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 67 16.08.2024 10:41 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49419 ФПД: 185334649933376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T104152&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49419&fm=185334649933376&tin=02508201610067®Number=0000000000092546&sum=8500 0 [10:41:48]StoreToDocumentArchive [10:41:48]shift 464 fd 49419 [10:41:48]save to /storage/0464/doc_00049419 [10:41:48]save last doc name /storage/0464/doc_00049419 to /storage/kkm_last_doc_name [10:41:48]save OK [10:41:48]Clear old archive folders... [10:41:48]ProcessDocumentItem done err = 0, tmpTLVsize=280 [10:41:48]tlvbuf is 00EFADB0 [10:41:48]SAM_PROTO_ClearQueue [10:41:48]wFMCommunicate request_size=4 [10:41:48]MH_SAM_APDU [10:41:48]CAPDU: 80 09 00 00 [10:41:48]Write to MH i2c: E2 08 00 81 3D 80 09 00 00 00 00 00 00 30 [10:41:48]Write i2c OK [10:41:48]MH_I2C_Read... [10:41:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:41:48]Read from MH i2c: E2 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 03 00 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 03 00 81 3D 00 90 00 32 [10:41:48]RAPDU: 90 00 [10:41:48]wFMCommunicate OK [10:41:48]SAM_PROTO_ClearQueue done [10:41:48]KKMCreateOFDPacket [10:41:48]OFDProtocolAddRootSTLVToBuf [10:41:48]FM_MakeSignedData [10:41:48]FM_MakeSignedData [10:41:48]SAM_PROTO_SignData [10:41:48]wFMCommunicate request_size=4 [10:41:48]MH_SAM_APDU [10:41:48]CAPDU: 80 0D 01 02 [10:41:48]Write to MH i2c: E2 08 00 82 3D 80 0D 01 02 00 00 00 00 38 [10:41:48]Write i2c OK [10:41:48]MH_I2C_Read... [10:41:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:41:48]Read from MH i2c: E2 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 03 00 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 03 00 82 3D 00 90 00 33 [10:41:48]RAPDU: 90 00 [10:41:48]wFMCommunicate OK [10:41:48]wFMCommunicate request_size=255 [10:41:48]MH_SAM_APDU [10:41:48]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 F0 2C BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 [10:41:48]Write to MH i2c: E2 02 01 83 3D 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 F0 2C BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 00 A1 [10:41:48]Write i2c OK [10:41:48]MH_I2C_Read... [10:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:48]Read from MH i2c: E2 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 03 00 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 03 00 83 3D 00 90 00 34 [10:41:48]RAPDU: 90 00 [10:41:48]wFMCommunicate OK [10:41:48]wFMCommunicate request_size=39 [10:41:48]MH_SAM_APDU [10:41:48]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0B C1 00 00 35 04 06 00 A8 8F 95 F9 4E 40 [10:41:48]Write to MH i2c: E2 2A 00 84 3D 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0B C1 00 00 35 04 06 00 A8 8F 95 F9 4E 40 00 00 0D [10:41:48]Write i2c OK [10:41:48]MH_I2C_Read... [10:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:41:48]Read from MH i2c: E2 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 03 00 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 03 00 84 3D 00 90 00 35 [10:41:48]RAPDU: 90 00 [10:41:48]wFMCommunicate OK [10:41:48]wFMCommunicate request_size=4 [10:41:48]MH_SAM_APDU [10:41:48]CAPDU: 80 0D 03 02 [10:41:48]Write to MH i2c: E2 08 00 85 3D 80 0D 03 02 00 00 00 00 3D [10:41:48]Write i2c OK [10:41:48]MH_I2C_Read... [10:41:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:41:48]Read from MH i2c: E2 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 0B 00 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 0B 00 85 3D 00 C7 C4 5C B5 77 2D 6A E0 90 00 C8 [10:41:48]RAPDU: C7 C4 5C B5 77 2D 6A E0 90 00 [10:41:48]wFMCommunicate OK [10:41:48]SAM_PROTO_SignData done [10:41:48]FM_MakeSignedData done [10:41:48]CreateOFDProtocolMessage [10:41:48]wFMCommunicate request_size=4 [10:41:48]MH_SAM_APDU [10:41:48]CAPDU: 80 11 00 00 [10:41:48]Write to MH i2c: E2 08 00 86 3D 80 11 00 00 00 00 00 00 3D [10:41:48]Write i2c OK [10:41:48]MH_I2C_Read... [10:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:48]Read from MH i2c: E2 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 17 00 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: E2 17 00 86 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 88 [10:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:41:48]wFMCommunicate OK [10:41:48]CreateOFDProtocolMessage done [10:41:48]OFDSenderStorePacket 49419 [10:41:48]StoreOFDPacket docnum=49419 [10:41:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 99 62 24 01 C1 4B 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 F0 2C BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0B C1 00 00 35 04 06 00 A8 8F 95 F9 4E 40 C7 C4 5C B5 77 2D 6A E0 [10:41:48]CheckFolder [10:41:48]dirname=/storage/ofd_packets [10:41:48]CheckFolder done [10:41:48]ProducePacketName [10:41:48]name=ofd_packets/00049419 [10:41:48]NVStorageSaveData ofd_packets/00049419 [10:41:48]File name is /storage/ofd_packets/00049419 [10:41:48]Write 330 bytes [10:41:48]NVStorageSaveData done [10:41:48]OFDSenderStorePacket done [10:41:48]KKMCreateOFDPacket done [10:41:48]NVStorageSaveData kkm_last_timestamp [10:41:48]File name is /storage/kkm_last_timestamp [10:41:48]Write 4 bytes [10:41:48]NVStorageSaveData done [10:41:48]ExternCall_PrintAddStr [10:41:48]wPrintStart [10:41:48]Write to MH i2c: 01 00 00 87 3D C4 [10:41:48]Write i2c OK [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: 01 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: 01 07 00 [10:41:48]MH_I2C_Read... [10:41:48]Read from MH i2c: 01 07 00 87 3D 00 00 00 00 00 FF 0F D9 [10:41:48]RasterBufferAndPrint [10:41:48]line Счет N : (3)189644 [10:41:48]line ИНН: 02508201610067 [10:41:48]line Контрольно-Кассовый Чек [10:41:48]line ПРОДАЖА [10:41:48]line Товар: 4870227273831 [10:41:48]line Лимонад Sunbel Мохито 1л [10:41:48]line 1.000 * 85.00 [10:41:48]line = 85.00 [10:41:48]line НДС 12% НСП 1% [10:41:48]line > о реализуемом товаре [10:41:48]line ИТОГО: 85.00 [10:41:48]line НСП 1% : 0.75 [10:41:48]line НДС 12% : 9.03 [10:41:48]line Наличными: 85.00 [10:41:48]line Безнал.: 0.00 [10:41:48]line Место: АЗС № 95 "Партнер Нефть" [10:41:48]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:41:48]line СНО: Общий режим [10:41:48]line Чек 67 16.08.2024 10:41 [10:41:48]line Смена: 464 ФФД: 1.0 [10:41:48]line ЗНМ: 0300000078 [10:41:48]line РНМ: 0000000000092546 [10:41:48]line Версия ККМ: 001 [10:41:48]line ФМ: 0000000000871800 [10:41:48]line ФД: 49419 [10:41:48]line ФПД: 185334649933376 [10:41:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T104152&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49419&fm=185334649933376&tin=02508201610067®Number=0000000000092546&sum=8500 [10:41:49]line 0 [10:41:49]OFD Sender: Processing packet 49419 [packets to send 21, broken 20] [10:41:49]ProducePacketName [10:41:49]name=ofd_packets/00049419 [10:41:49]OFD Sender: To server: pG, [10:41:49]CommunicateWithHost lk.salyk.kg:30040 [10:41:49]ConnectInit lk.salyk.kg [10:41:49]written 0, free lines is 4095 [10:41:49]Connected sock=10 [10:41:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 99 62 24 01 C1 4B 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 F0 2C BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0B C1 00 00 35 04 06 00 A8 8F 95 F9 4E 40 C7 C4 5C B5 77 2D 6A E0 [10:41:49]Write to MH i2c: 01 00 00 AF 3D EC [10:41:49]Write i2c OK [10:41:49]MH_I2C_Read... [10:41:49]Read from MH i2c: 01 [10:41:49]MH_I2C_Read... [10:41:49]Read from MH i2c: 01 07 00 [10:41:49]MH_I2C_Read... [10:41:49]Read from MH i2c: 01 07 00 AF 3D 00 00 00 00 00 01 0D 01 [10:41:49]RasterBufferAndPrint [10:41:49]line [10:41:49]line [10:41:49]line [10:41:49]line [10:41:49]line [10:41:49]written 0, free lines is 3335 [10:41:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 76 32 47 00 79 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0B C1 00 00 F4 03 04 00 2F D8 BE 66 B6 04 01 00 00 D0 03 DD 15 B9 85 57 39 [10:41:49]CommunicateWithHost err = 0 [10:41:49]CheckOFDResponse [10:41:49]1017 (14) - 77093643461234 [10:41:49]1041 (16) - 0000000000871800 [10:41:49]1040 (4) - 49419 [10:41:49]1012 (4) - 16.08.2024 04:40 [10:41:49]1206 (1) - 0 [10:41:49]OFD Sender: Remove packet 49419 [10:41:49]ProducePacketName [10:41:49]name=ofd_packets/00049419 [10:41:49]NVStorageDeleteData [10:41:49]MH_Cut [10:41:49]Write to MH i2c: D1 01 00 B6 3D 01 C5 [10:41:49]Write i2c OK [10:41:49]MH_I2C_Read... [10:41:49]Read from MH i2c: D1 [10:41:49]MH_I2C_Read... [10:41:49]Read from MH i2c: D1 01 00 [10:41:49]MH_I2C_Read... [10:41:49]Read from MH i2c: D1 01 00 B6 3D 00 C4 [10:41:49]Write to MH i2c: 01 00 00 B7 3D F4 [10:41:49]Write i2c OK [10:41:49]MH_I2C_Read... [10:41:50]OFD Sender: No OFD packet to send [10:41:50]*** Cut start [10:41:50]*** Purtial cut [10:41:50]*** Stage 1: CUTSNS_PIN = 1 [10:41:50]Read from MH i2c: 01 [10:41:50]MH_I2C_Read... [10:41:50]*** Stop cut motor [10:41:50]*** Cut end [10:41:50]Read from MH i2c: 01 07 00 [10:41:50]MH_I2C_Read... [10:41:50]Read from MH i2c: 01 07 00 B7 3D 00 00 00 00 00 FF 0F 09 [10:41:50]process_action close_receipt done [10:41:50]requested_data is exist [10:41:50]produce_requested_data [10:41:50]requested_item fm.sn is exist - process it [10:41:50]wFMCommunicate request_size=4 [10:41:50]MH_SAM_APDU [10:41:50]CAPDU: 80 11 00 00 [10:41:50]Write to MH i2c: E2 08 00 B8 3D 80 11 00 00 00 00 00 00 6F [10:41:50]Write i2c OK [10:41:50]MH_I2C_Read... [10:41:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:41:50]Read from MH i2c: E2 [10:41:50]MH_I2C_Read... [10:41:50]Read from MH i2c: E2 17 00 [10:41:50]MH_I2C_Read... [10:41:50]Read from MH i2c: E2 17 00 B8 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BA [10:41:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:41:50]wFMCommunicate OK [10:41:50]requested_item fd.num is exist - process it [10:41:50]SAM_PROTO_GetFieldsCounters [10:41:50]wFMCommunicate request_size=4 [10:41:50]MH_SAM_APDU [10:41:50]CAPDU: 80 13 00 00 [10:41:50]Write to MH i2c: E2 08 00 B9 3D 80 13 00 00 00 00 00 00 72 [10:41:50]Write i2c OK [10:41:50]MH_I2C_Read... [10:41:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:41:50]Read from MH i2c: E2 [10:41:50]MH_I2C_Read... [10:41:50]Read from MH i2c: E2 62 00 [10:41:50]MH_I2C_Read... [10:41:50]Read from MH i2c: E2 62 00 B9 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0B C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [10:41:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0B C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:41:50]wFMCommunicate OK [10:41:50]SAM_PROTO_GetFieldsCounters done [10:41:50]requested_item shift.num is exist - process it [10:41:50]requested_item shift.opened is exist - process it [10:41:50]req_shift_opened [10:41:50]FM_GetShiftState [10:41:50]SAM_PROTO_GetShiftState [10:41:50]wFMCommunicate request_size=4 [10:41:50]MH_SAM_APDU [10:41:50]CAPDU: 80 13 01 00 [10:41:50]Write to MH i2c: E2 08 00 BA 3D 80 13 01 00 00 00 00 00 74 [10:41:50]Write i2c OK [10:41:50]MH_I2C_Read... [10:41:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:41:50]Read from MH i2c: E2 [10:41:50]MH_I2C_Read... [10:41:50]Read from MH i2c: E2 0E 00 [10:41:50]MH_I2C_Read... [10:41:50]Read from MH i2c: E2 0E 00 BA 3D 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 EA [10:41:50]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:41:50]wFMCommunicate OK [10:41:50]SAM_PROTO_GetShiftState done [10:41:50]FM_GetShiftState done [10:41:50]req_shift_opened done [10:41:50]requested_item shift.open_date is exist - process it [10:41:50]req_shift_open_date [10:41:50]req_shift_open_date done [10:41:50]produce_requested_data done [10:41:50]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49419,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [10:41:50]process_action_free close_receipt [10:41:50]json_value_free [10:41:50]json_value_free done [10:41:50]process_json_proto returns [10:41:50]Send response to host [10:41:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49419,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [10:41:50]free response buf [10:41:50]execute_script done [10:41:50]execute_script returns [10:41:50]free content buf [10:41:50]Sock 9.Close socket [10:41:50]Sock 9.Thread stoped [10:41:55]OFD Sender: No OFD packet to send [10:42:00]OFD Sender: No OFD packet to send [10:42:05]OFD Sender: No OFD packet to send [10:42:10]OFD Sender: No OFD packet to send [10:42:15]OFD Sender: No OFD packet to send [10:42:20]OFD Sender: No OFD packet to send [10:42:25]OFD Sender: No OFD packet to send [10:42:30]OFD Sender: No OFD packet to send [10:42:35]OFD Sender: No OFD packet to send [10:42:40]OFD Sender: No OFD packet to send [10:42:45]OFD Sender: No OFD packet to send [10:42:50]OFD Sender: No OFD packet to send [10:42:55]OFD Sender: No OFD packet to send [10:43:00]OFD Sender: No OFD packet to send [10:43:05]OFD Sender: No OFD packet to send [10:43:10]OFD Sender: No OFD packet to send [10:43:15]OFD Sender: No OFD packet to send [10:43:20]OFD Sender: No OFD packet to send [10:43:25]OFD Sender: No OFD packet to send [10:43:30]OFD Sender: No OFD packet to send [10:43:31]accept exits with 7 [10:43:31]New connection [10:43:31]New thread 3066830180 created [10:43:31]Thread 3066973540 joined [10:43:31]Waiting for new connection... [10:43:31] Sock 7.Parse request [10:43:31]Sock 7.Check first char [10:43:31]Sock 7.First char is OK [10:43:31]request: POST /json_proto HTTP/1.0 [10:43:31]Method: POST [10:43:31]URL: /json_proto [10:43:31]Method is POST - this is cgi request [10:43:31]url: /json_proto [10:43:31]query_string will be loaded in cgi processing [10:43:31]execute_cgi json_proto POST (null) [10:43:31]execute_cgi path=json_proto method=POST [10:43:31]POST find Content-Length [10:43:31]Host: 172.17.46.196:8080 [10:43:31]Content-Length: 623 [10:43:31]Content-Type: application/json [10:43:31] [10:43:31]POST finish read [10:43:31]Found Content-Length = 623 [10:43:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189645", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:31]execute_script... [10:43: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 : (3)189645", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:31]POST & json_proto [10:43:31]process_json_proto [10:43:31]json parsed OK: [10:43:31]protocol is kg_v1.0 [10:43:31]action value=close_receipt [10:43:31]process_action close_receipt [10:43:31]cmd_close_receipt [10:43:31]MH_GetDate [10:43:31]Write to MH i2c: F0 00 00 BB 3D E7 [10:43:31]Write i2c OK [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: F0 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: F0 09 00 [10:43:31]MH_I2C_Read... [10:43:31]Read from MH i2c: F0 09 00 BB 3D 00 59 2D BF 66 07 E8 5D 66 4D [10:43:31]GetLastDocTimeStamp 1723804912 [10:43:31]current date 1723805017 [10:43:31]FM_GetShiftState [10:43:31]SAM_PROTO_GetShiftState [10:43:31]wFMCommunicate request_size=4 [10:43:31]MH_SAM_APDU [10:43:31]CAPDU: 80 13 01 00 [10:43:31]Write to MH i2c: E2 08 00 BC 3D 80 13 01 00 00 00 00 00 76 [10:43:31]Write i2c OK [10:43:31]MH_I2C_Read... [10:43:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:32]Read from MH i2c: E2 [10:43:32]MH_I2C_Read... [10:43:32]Read from MH i2c: E2 0E 00 [10:43:32]MH_I2C_Read... [10:43:32]Read from MH i2c: E2 0E 00 BC 3D 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 EC [10:43:32]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:43:32]wFMCommunicate OK [10:43:32]SAM_PROTO_GetShiftState done [10:43:32]FM_GetShiftState done [10:43:32]opened in 1723766958 [10:43:32]opened+sec_in_day 1723853358 [10:43:32]quantity*price = 14000 [10:43:32]sum+1 = 14001 [10:43:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 68 16.08.2024 10:43 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49420 ФПД: 71339185476849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T104337&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49420&fm=71339185476849&tin=02508201610067®Number=0000000000092546&sum=14000 0 [10:43:33]StoreToDocumentArchive [10:43:33]shift 464 fd 49420 [10:43:33]save to /storage/0464/doc_00049420 [10:43:33]save last doc name /storage/0464/doc_00049420 to /storage/kkm_last_doc_name [10:43:33]save OK [10:43:33]Clear old archive folders... [10:43:33]ProcessDocumentItem done err = 0, tmpTLVsize=275 [10:43:33]tlvbuf is 00E8F420 [10:43:33]SAM_PROTO_ClearQueue [10:43:33]wFMCommunicate request_size=4 [10:43:33]MH_SAM_APDU [10:43:33]CAPDU: 80 09 00 00 [10:43:33]Write to MH i2c: E2 08 00 C9 3D 80 09 00 00 00 00 00 00 78 [10:43:33]Write i2c OK [10:43:33]MH_I2C_Read... [10:43:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:33]Read from MH i2c: E2 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 03 00 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 03 00 C9 3D 00 90 00 7A [10:43:33]RAPDU: 90 00 [10:43:33]wFMCommunicate OK [10:43:33]SAM_PROTO_ClearQueue done [10:43:33]KKMCreateOFDPacket [10:43:33]OFDProtocolAddRootSTLVToBuf [10:43:33]FM_MakeSignedData [10:43:33]FM_MakeSignedData [10:43:33]SAM_PROTO_SignData [10:43:33]wFMCommunicate request_size=4 [10:43:33]MH_SAM_APDU [10:43:33]CAPDU: 80 0D 01 02 [10:43:33]Write to MH i2c: E2 08 00 CA 3D 80 0D 01 02 00 00 00 00 80 [10:43:33]Write i2c OK [10:43:33]MH_I2C_Read... [10:43:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:33]Read from MH i2c: E2 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 03 00 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 03 00 CA 3D 00 90 00 7B [10:43:33]RAPDU: 90 00 [10:43:33]wFMCommunicate OK [10:43:33]wFMCommunicate request_size=255 [10:43:33]MH_SAM_APDU [10:43:33]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 59 2D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [10:43:33]Write to MH i2c: E2 02 01 CB 3D 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 59 2D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 D1 [10:43:33]Write i2c OK [10:43:33]MH_I2C_Read... [10:43:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:33]Read from MH i2c: E2 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 03 00 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 03 00 CB 3D 00 90 00 7C [10:43:33]RAPDU: 90 00 [10:43:33]wFMCommunicate OK [10:43:33]wFMCommunicate request_size=34 [10:43:33]MH_SAM_APDU [10:43:33]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0C C1 00 00 35 04 06 00 40 E1 F2 CF 14 F1 [10:43:33]Write to MH i2c: E2 25 00 CC 3D 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0C C1 00 00 35 04 06 00 40 E1 F2 CF 14 F1 00 00 F0 [10:43:33]Write i2c OK [10:43:33]MH_I2C_Read... [10:43:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:33]Read from MH i2c: E2 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 03 00 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 03 00 CC 3D 00 90 00 7D [10:43:33]RAPDU: 90 00 [10:43:33]wFMCommunicate OK [10:43:33]wFMCommunicate request_size=4 [10:43:33]MH_SAM_APDU [10:43:33]CAPDU: 80 0D 03 02 [10:43:33]Write to MH i2c: E2 08 00 CD 3D 80 0D 03 02 00 00 00 00 85 [10:43:33]Write i2c OK [10:43:33]MH_I2C_Read... [10:43:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:33]Read from MH i2c: E2 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 0B 00 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 0B 00 CD 3D 00 C0 DE 88 5E 75 3A 87 16 90 00 56 [10:43:33]RAPDU: C0 DE 88 5E 75 3A 87 16 90 00 [10:43:33]wFMCommunicate OK [10:43:33]SAM_PROTO_SignData done [10:43:33]FM_MakeSignedData done [10:43:33]CreateOFDProtocolMessage [10:43:33]wFMCommunicate request_size=4 [10:43:33]MH_SAM_APDU [10:43:33]CAPDU: 80 11 00 00 [10:43:33]Write to MH i2c: E2 08 00 CE 3D 80 11 00 00 00 00 00 00 85 [10:43:33]Write i2c OK [10:43:33]MH_I2C_Read... [10:43:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:33]Read from MH i2c: E2 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 17 00 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: E2 17 00 CE 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D0 [10:43:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:43:33]wFMCommunicate OK [10:43:33]CreateOFDProtocolMessage done [10:43:33]OFDSenderStorePacket 49420 [10:43:33]StoreOFDPacket docnum=49420 [10:43:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 90 C9 1F 01 61 B4 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 59 2D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0C C1 00 00 35 04 06 00 40 E1 F2 CF 14 F1 C0 DE 88 5E 75 3A 87 16 [10:43:33]CheckFolder [10:43:33]dirname=/storage/ofd_packets [10:43:33]CheckFolder done [10:43:33]ProducePacketName [10:43:33]name=ofd_packets/00049420 [10:43:33]NVStorageSaveData ofd_packets/00049420 [10:43:33]File name is /storage/ofd_packets/00049420 [10:43:33]Write 325 bytes [10:43:33]NVStorageSaveData done [10:43:33]OFDSenderStorePacket done [10:43:33]KKMCreateOFDPacket done [10:43:33]NVStorageSaveData kkm_last_timestamp [10:43:33]File name is /storage/kkm_last_timestamp [10:43:33]Write 4 bytes [10:43:33]NVStorageSaveData done [10:43:33]ExternCall_PrintAddStr [10:43:33]wPrintStart [10:43:33]Write to MH i2c: 01 00 00 CF 3D 0C [10:43:33]Write i2c OK [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: 01 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: 01 07 00 [10:43:33]MH_I2C_Read... [10:43:33]Read from MH i2c: 01 07 00 CF 3D 00 00 00 00 00 FF 0F 21 [10:43:33]RasterBufferAndPrint [10:43:33]line Счет N : (3)189645 [10:43:33]line ИНН: 02508201610067 [10:43:33]line Контрольно-Кассовый Чек [10:43:33]line ПРОДАЖА [10:43:33]line Товар: 48743587 [10:43:33]line Сигареты Winston XStyle Silver [10:43:33]line 1.000 * 140.00 [10:43:33]line = 140.00 [10:43:33]line НДС 12% НСП 1% [10:43:33]line > о реализуемом товаре [10:43:33]line ИТОГО: 140.00 [10:43:33]line НСП 1% : 1.24 [10:43:33]line НДС 12% : 14.87 [10:43:33]line Наличными: 140.00 [10:43:33]line Безнал.: 0.00 [10:43:33]line Место: АЗС № 95 "Партнер Нефть" [10:43:33]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:43:33]line СНО: Общий режим [10:43:33]line Чек 68 16.08.2024 10:43 [10:43:33]line Смена: 464 ФФД: 1.0 [10:43:33]line ЗНМ: 0300000078 [10:43:33]line РНМ: 0000000000092546 [10:43:33]line Версия ККМ: 001 [10:43:33]line ФМ: 0000000000871800 [10:43:33]line ФД: 49420 [10:43:33]line ФПД: 71339185476849 [10:43:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T104337&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49420&fm=71339185476849&tin=02508201610067®Number=0000000000092546&sum=14000 [10:43:34]OFD Sender: Processing packet 49420 [packets to send 21, broken 20] [10:43:34]ProducePacketName [10:43:34]name=ofd_packets/00049420 [10:43:34]OFD Sender: To server: pG, [10:43:34]CommunicateWithHost lk.salyk.kg:30040 [10:43:34]ConnectInit lk.salyk.kg [10:43:34]line 0 [10:43:34]written 0, free lines is 4095 [10:43:34]Connected sock=10 [10:43:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 90 C9 1F 01 61 B4 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 59 2D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0C C1 00 00 35 04 06 00 40 E1 F2 CF 14 F1 C0 DE 88 5E 75 3A 87 16 [10:43:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 74 48 47 00 92 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 38 37 31 38 30 30 10 04 04 00 0C C1 00 00 F4 03 04 00 98 D8 BE 66 B6 04 01 00 00 AB DE C1 1D 76 3F FB 9A [10:43:34]CommunicateWithHost err = 0 [10:43:34]CheckOFDResponse [10:43:34]1017 (14) - 77093643461234 [10:43:34]1041 (16) - 0000000000871800 [10:43:34]1040 (4) - 49420 [10:43:34]1012 (4) - 16.08.2024 04:42 [10:43:34]1206 (1) - 0 [10:43:34]OFD Sender: Remove packet 49420 [10:43:34]ProducePacketName [10:43:34]name=ofd_packets/00049420 [10:43:34]NVStorageDeleteData [10:43:34]Write to MH i2c: 01 00 00 F8 3D 35 [10:43:34]Write i2c OK [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: 01 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: 01 07 00 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: 01 07 00 F8 3D 00 00 00 00 00 E2 0C 2A [10:43:34]RasterBufferAndPrint [10:43:34]line [10:43:34]line [10:43:34]line [10:43:34]line [10:43:34]line [10:43:34]written 0, free lines is 3303 [10:43:34]MH_Cut [10:43:34]Write to MH i2c: D1 01 00 FF 3D 01 0E [10:43:34]Write i2c OK [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: D1 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: D1 01 00 [10:43:34]MH_I2C_Read... [10:43:34]Read from MH i2c: D1 01 00 FF 3D 00 0D [10:43:34]Write to MH i2c: 01 00 00 00 3E 3E [10:43:34]Write i2c OK [10:43:34]MH_I2C_Read... [10:43:34]OFD Sender: No OFD packet to send [10:43:35]*** Cut start [10:43:35]*** Purtial cut [10:43:35]*** CUTSNS_PIN = 0 [10:43:35]*** Stage 1: CUTSNS_PIN = 1 [10:43:37]Read from MH i2c: 01 [10:43:37]MH_I2C_Read... [10:43:37]*** Stop cut motor [10:43:37]*** Cut end [10:43:37]Read from MH i2c: 01 07 00 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: 01 07 00 00 3E 00 00 00 00 00 FF 0F 53 [10:43:37]process_action close_receipt done [10:43:37]requested_data is exist [10:43:37]produce_requested_data [10:43:37]requested_item fm.sn is exist - process it [10:43:37]wFMCommunicate request_size=4 [10:43:37]MH_SAM_APDU [10:43:37]CAPDU: 80 11 00 00 [10:43:37]Write to MH i2c: E2 08 00 01 3E 80 11 00 00 00 00 00 00 B9 [10:43:37]Write i2c OK [10:43:37]MH_I2C_Read... [10:43:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:37]Read from MH i2c: E2 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 17 00 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 17 00 01 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 04 [10:43:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:43:37]wFMCommunicate OK [10:43:37]requested_item fd.num is exist - process it [10:43:37]SAM_PROTO_GetFieldsCounters [10:43:37]wFMCommunicate request_size=4 [10:43:37]MH_SAM_APDU [10:43:37]CAPDU: 80 13 00 00 [10:43:37]Write to MH i2c: E2 08 00 02 3E 80 13 00 00 00 00 00 00 BC [10:43:37]Write i2c OK [10:43:37]MH_I2C_Read... [10:43:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:37]Read from MH i2c: E2 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 62 00 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 62 00 02 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0C C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [10:43:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0C C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:37]wFMCommunicate OK [10:43:37]SAM_PROTO_GetFieldsCounters done [10:43:37]requested_item shift.num is exist - process it [10:43:37]requested_item shift.opened is exist - process it [10:43:37]req_shift_opened [10:43:37]FM_GetShiftState [10:43:37]SAM_PROTO_GetShiftState [10:43:37]wFMCommunicate request_size=4 [10:43:37]MH_SAM_APDU [10:43:37]CAPDU: 80 13 01 00 [10:43:37]Write to MH i2c: E2 08 00 03 3E 80 13 01 00 00 00 00 00 BE [10:43:37]Write i2c OK [10:43:37]MH_I2C_Read... [10:43:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:37]Read from MH i2c: E2 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 0E 00 [10:43:37]MH_I2C_Read... [10:43:37]Read from MH i2c: E2 0E 00 03 3E 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 34 [10:43:37]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:43:37]wFMCommunicate OK [10:43:37]SAM_PROTO_GetShiftState done [10:43:37]FM_GetShiftState done [10:43:37]req_shift_opened done [10:43:37]requested_item shift.open_date is exist - process it [10:43:37]req_shift_open_date [10:43:37]req_shift_open_date done [10:43:37]produce_requested_data done [10:43:37]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49420,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [10:43:37]process_action_free close_receipt [10:43:37]json_value_free [10:43:37]json_value_free done [10:43:37]process_json_proto returns [10:43:37]Send response to host [10:43:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49420,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [10:43:37]free response buf [10:43:37]execute_script done [10:43:37]execute_script returns [10:43:37]free content buf [10:43:37]Sock 7.Close socket [10:43:37]Sock 7.Thread stoped [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:10]OFD Sender: No OFD packet to send [10:44:15]OFD Sender: No OFD packet to send [10:44:20]OFD Sender: No OFD packet to send [10:44:25]OFD Sender: No OFD packet to send [10:44:30]OFD Sender: No OFD packet to send [10:44:32]accept exits with 9 [10:44:32]New connection [10:44:32]New thread 3066973540 created [10:44:32]Thread 3066830180 joined [10:44:32]Waiting for new connection... [10:44:32] Sock 9.Parse request [10:44:32]Sock 9.Check first char [10:44:32]Sock 9.First char is OK [10:44:32]request: POST /json_proto HTTP/1.0 [10:44:32]Method: POST [10:44:32]URL: /json_proto [10:44:32]Method is POST - this is cgi request [10:44:32]url: /json_proto [10:44:32]query_string will be loaded in cgi processing [10:44:32]execute_cgi json_proto POST (null) [10:44:32]execute_cgi path=json_proto method=POST [10:44:32]POST find Content-Length [10:44:32]Host: 172.17.46.196:8080 [10:44:32]Content-Length: 675 [10:44:32]Content-Type: application/json [10:44:32] [10:44:32]POST finish read [10:44:32]Found Content-Length = 675 [10:44:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189646", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:32]execute_script... [10:44: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 : (3)189646", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:32]POST & json_proto [10:44:32]process_json_proto [10:44:32]json parsed OK: [10:44:32]protocol is kg_v1.0 [10:44:32]action value=close_receipt [10:44:32]process_action close_receipt [10:44:32]cmd_close_receipt [10:44:32]MH_GetDate [10:44:32]Write to MH i2c: F0 00 00 04 3E 31 [10:44:32]Write i2c OK [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: F0 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: F0 09 00 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: F0 09 00 04 3E 00 96 2D BF 66 07 E8 5D 66 D4 [10:44:32]GetLastDocTimeStamp 1723805017 [10:44:32]current date 1723805078 [10:44:32]FM_GetShiftState [10:44:32]SAM_PROTO_GetShiftState [10:44:32]wFMCommunicate request_size=4 [10:44:32]MH_SAM_APDU [10:44:32]CAPDU: 80 13 01 00 [10:44:32]Write to MH i2c: E2 08 00 05 3E 80 13 01 00 00 00 00 00 C0 [10:44:32]Write i2c OK [10:44:32]MH_I2C_Read... [10:44:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:32]Read from MH i2c: E2 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: E2 0E 00 [10:44:32]MH_I2C_Read... [10:44:32]Read from MH i2c: E2 0E 00 05 3E 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 36 [10:44:32]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:44:32]wFMCommunicate OK [10:44:32]SAM_PROTO_GetShiftState done [10:44:32]FM_GetShiftState done [10:44:32]opened in 1723766958 [10:44:32]opened+sec_in_day 1723853358 [10:44:32]quantity*price = 6500 [10:44:32]sum+1 = 6501 [10:44:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 69 16.08.2024 10:44 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49421 ФПД: 19582249666049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T104438&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49421&fm=19582249666049&tin=02508201610067®Number=0000000000092546&sum=6500 0 [10:44:34]StoreToDocumentArchive [10:44:34]shift 464 fd 49421 [10:44:34]save to /storage/0464/doc_00049421 [10:44:34]save last doc name /storage/0464/doc_00049421 to /storage/kkm_last_doc_name [10:44:34]save OK [10:44:34]Clear old archive folders... [10:44:34]ProcessDocumentItem done err = 0, tmpTLVsize=286 [10:44:34]tlvbuf is 00E6A5D0 [10:44:34]SAM_PROTO_ClearQueue [10:44:34]wFMCommunicate request_size=4 [10:44:34]MH_SAM_APDU [10:44:34]CAPDU: 80 09 00 00 [10:44:34]Write to MH i2c: E2 08 00 12 3E 80 09 00 00 00 00 00 00 C2 [10:44:34]Write i2c OK [10:44:34]MH_I2C_Read... [10:44:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:34]Read from MH i2c: E2 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: E2 03 00 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: E2 03 00 12 3E 00 90 00 C4 [10:44:34]RAPDU: 90 00 [10:44:34]wFMCommunicate OK [10:44:34]SAM_PROTO_ClearQueue done [10:44:34]KKMCreateOFDPacket [10:44:34]OFDProtocolAddRootSTLVToBuf [10:44:34]FM_MakeSignedData [10:44:34]FM_MakeSignedData [10:44:34]SAM_PROTO_SignData [10:44:34]wFMCommunicate request_size=4 [10:44:34]MH_SAM_APDU [10:44:34]CAPDU: 80 0D 01 02 [10:44:34]Write to MH i2c: E2 08 00 13 3E 80 0D 01 02 00 00 00 00 CA [10:44:34]Write i2c OK [10:44:34]MH_I2C_Read... [10:44:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:34]Read from MH i2c: E2 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: E2 03 00 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: E2 03 00 13 3E 00 90 00 C5 [10:44:34]RAPDU: 90 00 [10:44:34]wFMCommunicate OK [10:44:34]wFMCommunicate request_size=255 [10:44:34]MH_SAM_APDU [10:44:34]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 96 2D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 [10:44:34]Write to MH i2c: E2 02 01 14 3E 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 96 2D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 00 00 8F [10:44:34]Write i2c OK [10:44:34]MH_I2C_Read... [10:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:34]Read from MH i2c: E2 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: E2 03 00 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: E2 03 00 14 3E 00 90 00 C6 [10:44:34]RAPDU: 90 00 [10:44:34]wFMCommunicate OK [10:44:34]wFMCommunicate request_size=45 [10:44:34]MH_SAM_APDU [10:44:34]CAPDU: 80 0D 02 02 28 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0D C1 00 00 35 04 06 00 11 CF 59 09 06 01 [10:44:34]Write to MH i2c: E2 30 00 15 3E 80 0D 02 02 28 00 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0D C1 00 00 35 04 06 00 11 CF 59 09 06 01 00 00 32 [10:44:34]Write i2c OK [10:44:34]MH_I2C_Read... [10:44:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:34]Read from MH i2c: E2 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: E2 03 00 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: E2 03 00 15 3E 00 90 00 C7 [10:44:34]RAPDU: 90 00 [10:44:34]wFMCommunicate OK [10:44:34]wFMCommunicate request_size=4 [10:44:34]MH_SAM_APDU [10:44:34]CAPDU: 80 0D 03 02 [10:44:34]Write to MH i2c: E2 08 00 16 3E 80 0D 03 02 00 00 00 00 CF [10:44:34]Write i2c OK [10:44:34]MH_I2C_Read... [10:44:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:34]Read from MH i2c: E2 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: E2 0B 00 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: E2 0B 00 16 3E 00 08 8D 9D AF D7 BC 25 2E 90 00 97 [10:44:34]RAPDU: 08 8D 9D AF D7 BC 25 2E 90 00 [10:44:34]wFMCommunicate OK [10:44:34]SAM_PROTO_SignData done [10:44:34]FM_MakeSignedData done [10:44:34]CreateOFDProtocolMessage [10:44:34]wFMCommunicate request_size=4 [10:44:34]MH_SAM_APDU [10:44:34]CAPDU: 80 11 00 00 [10:44:34]Write to MH i2c: E2 08 00 17 3E 80 11 00 00 00 00 00 00 CF [10:44:34]Write i2c OK [10:44:34]MH_I2C_Read... [10:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:34]Read from MH i2c: E2 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: E2 17 00 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: E2 17 00 17 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1A [10:44:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:44:34]wFMCommunicate OK [10:44:34]CreateOFDProtocolMessage done [10:44:34]OFDSenderStorePacket 49421 [10:44:34]StoreOFDPacket docnum=49421 [10:44:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 32 01 00 00 6F F4 2A 01 D9 CB 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 96 2D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0D C1 00 00 35 04 06 00 11 CF 59 09 06 01 08 8D 9D AF D7 BC 25 2E [10:44:34]CheckFolder [10:44:34]dirname=/storage/ofd_packets [10:44:34]CheckFolder done [10:44:34]ProducePacketName [10:44:34]name=ofd_packets/00049421 [10:44:34]NVStorageSaveData ofd_packets/00049421 [10:44:34]File name is /storage/ofd_packets/00049421 [10:44:34]Write 336 bytes [10:44:34]NVStorageSaveData done [10:44:34]OFDSenderStorePacket done [10:44:34]KKMCreateOFDPacket done [10:44:34]NVStorageSaveData kkm_last_timestamp [10:44:34]File name is /storage/kkm_last_timestamp [10:44:34]Write 4 bytes [10:44:34]NVStorageSaveData done [10:44:34]ExternCall_PrintAddStr [10:44:34]wPrintStart [10:44:34]Write to MH i2c: 01 00 00 18 3E 56 [10:44:34]Write i2c OK [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: 01 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: 01 07 00 [10:44:34]MH_I2C_Read... [10:44:34]Read from MH i2c: 01 07 00 18 3E 00 00 00 00 00 FF 0F 6B [10:44:34]RasterBufferAndPrint [10:44:34]line Счет N : (3)189646 [10:44:34]line ИНН: 02508201610067 [10:44:34]line Контрольно-Кассовый Чек [10:44:34]line ПРОДАЖА [10:44:34]line Товар: 4700040114120 [10:44:34]line Султан чай 1л. чер персик [10:44:34]line 1.000 * 65.00 [10:44:34]line = 65.00 [10:44:34]line НДС 12% НСП 1% [10:44:34]line > о реализуемом товаре [10:44:34]line ИТОГО: 65.00 [10:44:34]line НСП 1% : 0.57 [10:44:34]line НДС 12% : 6.90 [10:44:34]line Наличными: 65.00 [10:44:34]line Безнал.: 0.00 [10:44:34]line Место: АЗС № 95 "Партнер Нефть" [10:44:34]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:44:34]line СНО: Общий режим [10:44:34]line Чек 69 16.08.2024 10:44 [10:44:34]line Смена: 464 ФФД: 1.0 [10:44:34]line ЗНМ: 0300000078 [10:44:34]line РНМ: 0000000000092546 [10:44:34]line Версия ККМ: 001 [10:44:34]line ФМ: 0000000000871800 [10:44:34]line ФД: 49421 [10:44:34]line ФПД: 19582249666049 [10:44:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T104438&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49421&fm=19582249666049&tin=02508201610067®Number=0000000000092546&sum=6500 [10:44:34]line 0 [10:44:34]OFD Sender: Processing packet 49421 [packets to send 21, broken 20] [10:44:34]ProducePacketName [10:44:34]name=ofd_packets/00049421 [10:44:34]OFD Sender: To server: pG, [10:44:34]CommunicateWithHost lk.salyk.kg:30040 [10:44:34]ConnectInit lk.salyk.kg [10:44:34]written 0, free lines is 4095 [10:44:35]Connected sock=7 [10:44:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 32 01 00 00 6F F4 2A 01 D9 CB 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 96 2D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0D C1 00 00 35 04 06 00 11 CF 59 09 06 01 08 8D 9D AF D7 BC 25 2E [10:44:35]Write to MH i2c: 01 00 00 40 3E 7E [10:44:35]Write i2c OK [10:44:35]MH_I2C_Read... [10:44:35]Read from MH i2c: 01 [10:44:35]MH_I2C_Read... [10:44:35]Read from MH i2c: 01 07 00 [10:44:35]MH_I2C_Read... [10:44:35]Read from MH i2c: 01 07 00 40 3E 00 00 00 00 00 07 0D 99 [10:44:35]RasterBufferAndPrint [10:44:35]line [10:44:35]line [10:44:35]line [10:44:35]line [10:44:35]line [10:44:35]written 0, free lines is 3341 [10:44:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 62 B9 47 00 81 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0D C1 00 00 F4 03 04 00 D5 D8 BE 66 B6 04 01 00 00 69 65 48 AF 92 CC BE F6 [10:44:35]CommunicateWithHost err = 0 [10:44:35]CheckOFDResponse [10:44:35]1017 (14) - 77093643461234 [10:44:35]1041 (16) - 0000000000871800 [10:44:35]1040 (4) - 49421 [10:44:35]1012 (4) - 16.08.2024 04:43 [10:44:35]1206 (1) - 0 [10:44:35]OFD Sender: Remove packet 49421 [10:44:35]ProducePacketName [10:44:35]name=ofd_packets/00049421 [10:44:35]NVStorageDeleteData [10:44:35]MH_Cut [10:44:35]Write to MH i2c: D1 01 00 47 3E 01 57 [10:44:35]Write i2c OK [10:44:35]MH_I2C_Read... [10:44:35]Read from MH i2c: D1 [10:44:35]MH_I2C_Read... [10:44:35]Read from MH i2c: D1 01 00 [10:44:35]MH_I2C_Read... [10:44:35]Read from MH i2c: D1 01 00 47 3E 00 56 [10:44:35]Write to MH i2c: 01 00 00 48 3E 86 [10:44:35]Write i2c OK [10:44:35]MH_I2C_Read... [10:44:35]OFD Sender: No OFD packet to send [10:44:36]*** Cut start [10:44:36]*** Purtial cut [10:44:36]*** Stage 1: CUTSNS_PIN = 1 [10:44:36]Read from MH i2c: 01 [10:44:36]MH_I2C_Read... [10:44:36]*** Stop cut motor [10:44:36]*** Cut end [10:44:36]Read from MH i2c: 01 07 00 [10:44:36]MH_I2C_Read... [10:44:36]Read from MH i2c: 01 07 00 48 3E 00 00 00 00 00 FF 0F 9B [10:44:36]process_action close_receipt done [10:44:36]requested_data is exist [10:44:36]produce_requested_data [10:44:36]requested_item fm.sn is exist - process it [10:44:36]wFMCommunicate request_size=4 [10:44:36]MH_SAM_APDU [10:44:36]CAPDU: 80 11 00 00 [10:44:36]Write to MH i2c: E2 08 00 49 3E 80 11 00 00 00 00 00 00 01 [10:44:36]Write i2c OK [10:44:36]MH_I2C_Read... [10:44:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:36]Read from MH i2c: E2 [10:44:36]MH_I2C_Read... [10:44:36]Read from MH i2c: E2 17 00 [10:44:36]MH_I2C_Read... [10:44:36]Read from MH i2c: E2 17 00 49 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4C [10:44:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:44:36]wFMCommunicate OK [10:44:36]requested_item fd.num is exist - process it [10:44:36]SAM_PROTO_GetFieldsCounters [10:44:36]wFMCommunicate request_size=4 [10:44:36]MH_SAM_APDU [10:44:36]CAPDU: 80 13 00 00 [10:44:36]Write to MH i2c: E2 08 00 4A 3E 80 13 00 00 00 00 00 00 04 [10:44:36]Write i2c OK [10:44:36]MH_I2C_Read... [10:44:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:36]Read from MH i2c: E2 [10:44:36]MH_I2C_Read... [10:44:36]Read from MH i2c: E2 62 00 [10:44:36]MH_I2C_Read... [10:44:36]Read from MH i2c: E2 62 00 4A 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0D C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [10:44:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0D C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:44:36]wFMCommunicate OK [10:44:36]SAM_PROTO_GetFieldsCounters done [10:44:36]requested_item shift.num is exist - process it [10:44:36]requested_item shift.opened is exist - process it [10:44:36]req_shift_opened [10:44:36]FM_GetShiftState [10:44:36]SAM_PROTO_GetShiftState [10:44:36]wFMCommunicate request_size=4 [10:44:36]MH_SAM_APDU [10:44:36]CAPDU: 80 13 01 00 [10:44:36]Write to MH i2c: E2 08 00 4B 3E 80 13 01 00 00 00 00 00 06 [10:44:36]Write i2c OK [10:44:36]MH_I2C_Read... [10:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:36]Read from MH i2c: E2 [10:44:36]MH_I2C_Read... [10:44:36]Read from MH i2c: E2 0E 00 [10:44:36]MH_I2C_Read... [10:44:36]Read from MH i2c: E2 0E 00 4B 3E 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 7C [10:44:36]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:44:36]wFMCommunicate OK [10:44:36]SAM_PROTO_GetShiftState done [10:44:36]FM_GetShiftState done [10:44:36]req_shift_opened done [10:44:36]requested_item shift.open_date is exist - process it [10:44:36]req_shift_open_date [10:44:36]req_shift_open_date done [10:44:36]produce_requested_data done [10:44:36]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49421,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [10:44:36]process_action_free close_receipt [10:44:36]json_value_free [10:44:36]json_value_free done [10:44:36]process_json_proto returns [10:44:36]Send response to host [10:44:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49421,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [10:44:36]free response buf [10:44:36]execute_script done [10:44:36]execute_script returns [10:44:36]free content buf [10:44:36]Sock 9.Close socket [10:44:36]Sock 9.Thread stoped [10:44:40]OFD Sender: No OFD packet to send [10:44:45]OFD Sender: No OFD packet to send [10:44:50]OFD Sender: No OFD packet to send [10:44:55]OFD Sender: No OFD packet to send [10:45:00]OFD Sender: No OFD packet to send [10:45:05]OFD Sender: No OFD packet to send [10:45:10]OFD Sender: No OFD packet to send [10:45:15]OFD Sender: No OFD packet to send [10:45:16]accept exits with 10 [10:45:16]New connection [10:45:16]New thread 3066830180 created [10:45:16]Thread 3066973540 joined [10:45:16]Waiting for new connection... [10:45:16] Sock 10.Parse request [10:45:16]Sock 10.Check first char [10:45:16]Sock 10.First char is OK [10:45:16]request: POST /json_proto HTTP/1.0 [10:45:16]Method: POST [10:45:16]URL: /json_proto [10:45:16]Method is POST - this is cgi request [10:45:16]url: /json_proto [10:45:16]query_string will be loaded in cgi processing [10:45:16]execute_cgi json_proto POST (null) [10:45:16]execute_cgi path=json_proto method=POST [10:45:16]POST find Content-Length [10:45:16]Host: 172.17.46.196:8080 [10:45:16]Content-Length: 756 [10:45:16]Content-Type: application/json [10:45:16] [10:45:16]POST finish read [10:45:16]Found Content-Length = 756 [10:45:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30069233", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:16]execute_script... [10:45: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)11325283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30069233", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:45:16]POST & json_proto [10:45:16]process_json_proto [10:45:16]json parsed OK: [10:45:16]protocol is kg_v1.0 [10:45:16]action value=close_receipt [10:45:16]process_action close_receipt [10:45:16]cmd_close_receipt [10:45:16]MH_GetDate [10:45:16]Write to MH i2c: F0 00 00 4C 3E 79 [10:45:16]Write i2c OK [10:45:16]MH_I2C_Read... [10:45:16]Read from MH i2c: F0 [10:45:16]MH_I2C_Read... [10:45:16]Read from MH i2c: F0 09 00 [10:45:16]MH_I2C_Read... [10:45:16]Read from MH i2c: F0 09 00 4C 3E 00 C1 2D BF 66 07 E8 5D 66 47 [10:45:16]GetLastDocTimeStamp 1723805078 [10:45:16]current date 1723805121 [10:45:16]FM_GetShiftState [10:45:16]SAM_PROTO_GetShiftState [10:45:16]wFMCommunicate request_size=4 [10:45:16]MH_SAM_APDU [10:45:16]CAPDU: 80 13 01 00 [10:45:16]Write to MH i2c: E2 08 00 4D 3E 80 13 01 00 00 00 00 00 08 [10:45:16]Write i2c OK [10:45:16]MH_I2C_Read... [10:45:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:16]Read from MH i2c: E2 [10:45:16]MH_I2C_Read... [10:45:16]Read from MH i2c: E2 0E 00 [10:45:16]MH_I2C_Read... [10:45:16]Read from MH i2c: E2 0E 00 4D 3E 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 7E [10:45:16]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:45:16]wFMCommunicate OK [10:45:16]SAM_PROTO_GetShiftState done [10:45:16]FM_GetShiftState done [10:45:16]opened in 1723766958 [10:45:16]opened+sec_in_day 1723853358 [10:45:16]quantity*price = 0 [10:45:16]sum+1 = 1 [10:45:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 70 16.08.2024 10:45 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30069233 ФМ: 0000000000871800 ФД: 49422 ФПД: 9369747016453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T104521&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49422&fm=9369747016453&tin=02508201610067®Number=0000000000092546&sum=0 [10:45:17]StoreToDocumentArchive [10:45:17]shift 464 fd 49422 [10:45:17]save to /storage/0464/doc_00049422 [10:45:17]save last doc name /storage/0464/doc_00049422 to /storage/kkm_last_doc_name [10:45:17]save OK [10:45:17]Clear old archive folders... [10:45:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:45:17]tlvbuf is B6DAD6B0 [10:45:17]SAM_PROTO_ClearQueue [10:45:17]wFMCommunicate request_size=4 [10:45:17]MH_SAM_APDU [10:45:17]CAPDU: 80 09 00 00 [10:45:17]Write to MH i2c: E2 08 00 5A 3E 80 09 00 00 00 00 00 00 0A [10:45:17]Write i2c OK [10:45:17]MH_I2C_Read... [10:45:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:17]Read from MH i2c: E2 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: E2 03 00 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: E2 03 00 5A 3E 00 90 00 0C [10:45:17]RAPDU: 90 00 [10:45:17]wFMCommunicate OK [10:45:17]SAM_PROTO_ClearQueue done [10:45:17]KKMCreateOFDPacket [10:45:17]OFDProtocolAddRootSTLVToBuf [10:45:17]FM_MakeSignedData [10:45:17]FM_MakeSignedData [10:45:17]SAM_PROTO_SignData [10:45:17]wFMCommunicate request_size=4 [10:45:17]MH_SAM_APDU [10:45:17]CAPDU: 80 0D 01 02 [10:45:17]Write to MH i2c: E2 08 00 5B 3E 80 0D 01 02 00 00 00 00 12 [10:45:17]Write i2c OK [10:45:17]MH_I2C_Read... [10:45:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:17]Read from MH i2c: E2 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: E2 03 00 [10:45:17]MH_I2C_Read... [10:45:17]Read from MH i2c: E2 03 00 5B 3E 00 90 00 0D [10:45:17]RAPDU: 90 00 [10:45:17]wFMCommunicate OK [10:45:17]wFMCommunicate request_size=255 [10:45:17]MH_SAM_APDU [10:45:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 C1 2D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0E C1 00 00 35 04 06 00 08 [10:45:17]Write to MH i2c: E2 02 01 5C 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 C1 2D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0E C1 00 00 35 04 06 00 08 00 00 83 [10:45:17]Write i2c OK [10:45:17]MH_I2C_Read... [10:45:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:18]Read from MH i2c: E2 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 5C 3E 00 90 00 0E [10:45:18]RAPDU: 90 00 [10:45:18]wFMCommunicate OK [10:45:18]wFMCommunicate request_size=10 [10:45:18]MH_SAM_APDU [10:45:18]CAPDU: 80 0D 02 02 05 85 90 71 4B 05 [10:45:18]Write to MH i2c: E2 0D 00 5D 3E 80 0D 02 02 05 00 85 90 71 4B 05 00 00 F5 [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:18]Read from MH i2c: E2 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 03 00 5D 3E 00 90 00 0F [10:45:18]RAPDU: 90 00 [10:45:18]wFMCommunicate OK [10:45:18]wFMCommunicate request_size=4 [10:45:18]MH_SAM_APDU [10:45:18]CAPDU: 80 0D 03 02 [10:45:18]Write to MH i2c: E2 08 00 5E 3E 80 0D 03 02 00 00 00 00 17 [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:18]Read from MH i2c: E2 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 0B 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 0B 00 5E 3E 00 63 6D 6E E9 10 57 9A 0D 90 00 4D [10:45:18]RAPDU: 63 6D 6E E9 10 57 9A 0D 90 00 [10:45:18]wFMCommunicate OK [10:45:18]SAM_PROTO_SignData done [10:45:18]FM_MakeSignedData done [10:45:18]CreateOFDProtocolMessage [10:45:18]wFMCommunicate request_size=4 [10:45:18]MH_SAM_APDU [10:45:18]CAPDU: 80 11 00 00 [10:45:18]Write to MH i2c: E2 08 00 5F 3E 80 11 00 00 00 00 00 00 17 [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:18]Read from MH i2c: E2 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 17 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: E2 17 00 5F 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 62 [10:45:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:45:18]wFMCommunicate OK [10:45:18]CreateOFDProtocolMessage done [10:45:18]OFDSenderStorePacket 49422 [10:45:18]StoreOFDPacket docnum=49422 [10:45:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 42 B4 07 01 C6 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 C1 2D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0E C1 00 00 35 04 06 00 08 85 90 71 4B 05 63 6D 6E E9 10 57 9A 0D [10:45:18]CheckFolder [10:45:18]dirname=/storage/ofd_packets [10:45:18]CheckFolder done [10:45:18]ProducePacketName [10:45:18]name=ofd_packets/00049422 [10:45:18]NVStorageSaveData ofd_packets/00049422 [10:45:18]File name is /storage/ofd_packets/00049422 [10:45:18]Write 301 bytes [10:45:18]NVStorageSaveData done [10:45:18]OFDSenderStorePacket done [10:45:18]KKMCreateOFDPacket done [10:45:18]NVStorageSaveData kkm_last_timestamp [10:45:18]File name is /storage/kkm_last_timestamp [10:45:18]Write 4 bytes [10:45:18]NVStorageSaveData done [10:45:18]OFD Sender: Processing packet 49422 [packets to send 21, broken 20] [10:45:18]ProducePacketName [10:45:18]name=ofd_packets/00049422 [10:45:18]OFD Sender: To server: pG, [10:45:18]CommunicateWithHost lk.salyk.kg:30040 [10:45:18]ConnectInit lk.salyk.kg [10:45:18]ExternCall_PrintAddStr [10:45:18]wPrintStart [10:45:18]Write to MH i2c: 01 00 00 60 3E 9E [10:45:18]Write i2c OK [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: 01 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: 01 07 00 [10:45:18]MH_I2C_Read... [10:45:18]Read from MH i2c: 01 07 00 60 3E 00 00 00 00 00 FF 0F B3 [10:45:18]RasterBufferAndPrint [10:45:18]line Счет N : (1)11325283 [10:45:18]line ИНН: 02508201610067 [10:45:18]line Контрольно-Кассовый Чек [10:45:18]line ПРОДАЖА [10:45:18]line ТРК (МРК, ГНК) : 32 [10:45:18]line Товар: 2710124130 [10:45:18]line Аи-92-К-4 [10:45:18]line 20.000 * 0.00 [10:45:18]line = 0.00 [10:45:18]line НДС 12% НСП 1% [10:45:18]line > о реализуемом товаре [10:45:18]line ИТОГО: 0.00 [10:45:18]line НСП 1% : 0.00 [10:45:18]line НДС 12% : 0.00 [10:45:18]line Наличными: 0.00 [10:45:18]line Безнал.: 0.00 [10:45:18]line Место: АЗС № 95 "Партнер Нефть" [10:45:18]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:45:18]line СНО: Общий режим [10:45:18]line Чек 70 16.08.2024 10:45 [10:45:18]line Смена: 464 ФФД: 1.0 [10:45:18]line ЗНМ: 0300000078 [10:45:18]line РНМ: 0000000000092546 [10:45:18]line Версия ККМ: 001 [10:45:18]line Талоны: ТК ГПНА Online [10:45:18]line 30069233 [10:45:18]line ФМ: 0000000000871800 [10:45:18]line ФД: 49422 [10:45:18]line ФПД: 9369747016453 [10:45:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T104521&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49422&fm=9369747016453&tin=02508201610067®Number=0000000000092546&sum=0 [10:45:18]Connected sock=11 [10:45:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 42 B4 07 01 C6 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 00 00 00 F4 03 04 00 C1 2D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0E C1 00 00 35 04 06 00 08 85 90 71 4B 05 63 6D 6E E9 10 57 9A 0D [10:45:18]written 0, free lines is 4095 [10:45:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F8 9E 47 00 75 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0E C1 00 00 F4 03 04 00 00 D9 BE 66 B6 04 01 00 00 5B C2 B8 E9 51 9E 36 9C [10:45:18]CommunicateWithHost err = 0 [10:45:18]CheckOFDResponse [10:45:18]1017 (14) - 77093643461234 [10:45:18]1041 (16) - 0000000000871800 [10:45:18]1040 (4) - 49422 [10:45:18]1012 (4) - 16.08.2024 04:43 [10:45:18]1206 (1) - 0 [10:45:18]OFD Sender: Remove packet 49422 [10:45:18]ProducePacketName [10:45:18]name=ofd_packets/00049422 [10:45:18]NVStorageDeleteData [10:45:19]Write to MH i2c: 01 00 00 8A 3E C8 [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: 01 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: 01 07 00 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: 01 07 00 8A 3E 00 00 00 00 00 D3 0C AE [10:45:19]RasterBufferAndPrint [10:45:19]line [10:45:19]line [10:45:19]line [10:45:19]line [10:45:19]line [10:45:19]written 0, free lines is 3289 [10:45:19]MH_Cut [10:45:19]Write to MH i2c: D1 01 00 91 3E 01 A1 [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: D1 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: D1 01 00 [10:45:19]MH_I2C_Read... [10:45:19]Read from MH i2c: D1 01 00 91 3E 00 A0 [10:45:19]Write to MH i2c: 01 00 00 92 3E D0 [10:45:19]Write i2c OK [10:45:19]MH_I2C_Read... [10:45:19]OFD Sender: No OFD packet to send [10:45:19]*** Cut start [10:45:19]*** Purtial cut [10:45:19]*** CUTSNS_PIN = 0 [10:45:20]*** Stage 1: CUTSNS_PIN = 1 [10:45:21]Read from MH i2c: 01 [10:45:21]MH_I2C_Read... [10:45:21]*** Stop cut motor [10:45:21]*** Cut end [10:45:21]Read from MH i2c: 01 07 00 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: 01 07 00 92 3E 00 00 00 00 00 FF 0F E5 [10:45:21]process_action close_receipt done [10:45:21]requested_data is exist [10:45:21]produce_requested_data [10:45:21]requested_item fm.sn is exist - process it [10:45:21]wFMCommunicate request_size=4 [10:45:21]MH_SAM_APDU [10:45:21]CAPDU: 80 11 00 00 [10:45:21]Write to MH i2c: E2 08 00 93 3E 80 11 00 00 00 00 00 00 4B [10:45:21]Write i2c OK [10:45:21]MH_I2C_Read... [10:45:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:21]Read from MH i2c: E2 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 17 00 [10:45:21]MH_I2C_Read... [10:45:21]Read from MH i2c: E2 17 00 93 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 96 [10:45:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:45:21]wFMCommunicate OK [10:45:21]requested_item fd.num is exist - process it [10:45:21]SAM_PROTO_GetFieldsCounters [10:45:21]wFMCommunicate request_size=4 [10:45:21]MH_SAM_APDU [10:45:21]CAPDU: 80 13 00 00 [10:45:21]Write to MH i2c: E2 08 00 94 3E 80 13 00 00 00 00 00 00 4E [10:45:21]Write i2c OK [10:45:21]MH_I2C_Read... [10:45:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:22]Read from MH i2c: E2 [10:45:22]MH_I2C_Read... [10:45:22]Read from MH i2c: E2 62 00 [10:45:22]MH_I2C_Read... [10:45:22]Read from MH i2c: E2 62 00 94 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0E C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [10:45:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0E C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:22]wFMCommunicate OK [10:45:22]SAM_PROTO_GetFieldsCounters done [10:45:22]requested_item shift.num is exist - process it [10:45:22]requested_item shift.opened is exist - process it [10:45:22]req_shift_opened [10:45:22]FM_GetShiftState [10:45:22]SAM_PROTO_GetShiftState [10:45:22]wFMCommunicate request_size=4 [10:45:22]MH_SAM_APDU [10:45:22]CAPDU: 80 13 01 00 [10:45:22]Write to MH i2c: E2 08 00 95 3E 80 13 01 00 00 00 00 00 50 [10:45:22]Write i2c OK [10:45:22]MH_I2C_Read... [10:45:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:22]Read from MH i2c: E2 [10:45:22]MH_I2C_Read... [10:45:22]Read from MH i2c: E2 0E 00 [10:45:22]MH_I2C_Read... [10:45:22]Read from MH i2c: E2 0E 00 95 3E 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 C6 [10:45:22]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:45:22]wFMCommunicate OK [10:45:22]SAM_PROTO_GetShiftState done [10:45:22]FM_GetShiftState done [10:45:22]req_shift_opened done [10:45:22]requested_item shift.open_date is exist - process it [10:45:22]req_shift_open_date [10:45:22]req_shift_open_date done [10:45:22]produce_requested_data done [10:45:22]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49422,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [10:45:22]process_action_free close_receipt [10:45:22]json_value_free [10:45:22]json_value_free done [10:45:22]process_json_proto returns [10:45:22]Send response to host [10:45:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49422,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [10:45:22]free response buf [10:45:22]execute_script done [10:45:22]execute_script returns [10:45:22]free content buf [10:45:22]Sock 10.Close socket [10:45:22]Sock 10.Thread stoped [10:45:24]OFD Sender: No OFD packet to send [10:45:29]OFD Sender: No OFD packet to send [10:45:34]OFD Sender: No OFD packet to send [10:45:39]OFD Sender: No OFD packet to send [10:45:44]OFD Sender: No OFD packet to send [10:45:49]OFD Sender: No OFD packet to send [10:45:54]OFD Sender: No OFD packet to send [10:45:59]OFD Sender: No OFD packet to send [10:46:04]OFD Sender: No OFD packet to send [10:46:09]OFD Sender: No OFD packet to send [10:46:14]OFD Sender: No OFD packet to send [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:29]OFD Sender: No OFD packet to send [10:46:34]OFD Sender: No OFD packet to send [10:46:39]OFD Sender: No OFD packet to send [10:46:42]accept exits with 9 [10:46:42]New connection [10:46:42]New thread 3066973540 created [10:46:42]Thread 3066830180 joined [10:46:42]Waiting for new connection... [10:46:42] Sock 9.Parse request [10:46:42]Sock 9.Check first char [10:46:42]Sock 9.First char is OK [10:46:42]request: POST /json_proto HTTP/1.0 [10:46:42]Method: POST [10:46:42]URL: /json_proto [10:46:42]Method is POST - this is cgi request [10:46:42]url: /json_proto [10:46:42]query_string will be loaded in cgi processing [10:46:42]execute_cgi json_proto POST (null) [10:46:42]execute_cgi path=json_proto method=POST [10:46:42]POST find Content-Length [10:46:42]Host: 172.17.46.196:8080 [10:46:42]Content-Length: 972 [10:46:42]Content-Type: application/json [10:46:42] [10:46:42]POST finish read [10:46:42]Found Content-Length = 972 [10:46:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189647", "tax_sys" : 0, "items" : [ { "code": "4607015235784", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 183.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:42]execute_script... [10:46: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 : (3)189647", "tax_sys" : 0, "items" : [ { "code": "4607015235784", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u043A\u043B\u0443\u0431\u043D\u0438\u043A\u0430 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 183.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:42]POST & json_proto [10:46:42]process_json_proto [10:46:42]json parsed OK: [10:46:42]protocol is kg_v1.0 [10:46:42]action value=close_receipt [10:46:42]process_action close_receipt [10:46:42]cmd_close_receipt [10:46:42]MH_GetDate [10:46:42]Write to MH i2c: F0 00 00 96 3E C3 [10:46:42]Write i2c OK [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: F0 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: F0 09 00 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: F0 09 00 96 3E 00 17 2E BF 66 07 E8 5D 66 E8 [10:46:42]GetLastDocTimeStamp 1723805121 [10:46:42]current date 1723805207 [10:46:42]FM_GetShiftState [10:46:42]SAM_PROTO_GetShiftState [10:46:42]wFMCommunicate request_size=4 [10:46:42]MH_SAM_APDU [10:46:42]CAPDU: 80 13 01 00 [10:46:42]Write to MH i2c: E2 08 00 97 3E 80 13 01 00 00 00 00 00 52 [10:46:42]Write i2c OK [10:46:42]MH_I2C_Read... [10:46:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:42]Read from MH i2c: E2 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: E2 0E 00 [10:46:42]MH_I2C_Read... [10:46:42]Read from MH i2c: E2 0E 00 97 3E 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 C8 [10:46:42]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:46:42]wFMCommunicate OK [10:46:42]SAM_PROTO_GetShiftState done [10:46:42]FM_GetShiftState done [10:46:42]opened in 1723766958 [10:46:42]opened+sec_in_day 1723853358 [10:46:42]quantity*price = 9000 [10:46:42]sum+1 = 9001 [10:46:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4603290004862 Печ.сах.FORSITE Сэнд.шок-ор.вк 1.000 * 93.00 = 93.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 183.00 НСП 1% : 1.62 НДС 12% : 19.44 Наличными: 183.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 71 16.08.2024 10:46 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49423 ФПД: 213466198700520 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T104647&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49423&fm=213466198700520&tin=02508201610067®Number=0000000000092546&sum=18300 0 [10:46:43]StoreToDocumentArchive [10:46:43]shift 464 fd 49423 [10:46:43]save to /storage/0464/doc_00049423 [10:46:43]save last doc name /storage/0464/doc_00049423 to /storage/kkm_last_doc_name [10:46:43]save OK [10:46:43]Clear old archive folders... [10:46:43]ProcessDocumentItem done err = 0, tmpTLVsize=410 [10:46:43]tlvbuf is 00E00210 [10:46:43]SAM_PROTO_ClearQueue [10:46:43]wFMCommunicate request_size=4 [10:46:43]MH_SAM_APDU [10:46:43]CAPDU: 80 09 00 00 [10:46:43]Write to MH i2c: E2 08 00 A4 3E 80 09 00 00 00 00 00 00 54 [10:46:43]Write i2c OK [10:46:43]MH_I2C_Read... [10:46:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:43]Read from MH i2c: E2 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 03 00 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 03 00 A4 3E 00 90 00 56 [10:46:43]RAPDU: 90 00 [10:46:43]wFMCommunicate OK [10:46:43]SAM_PROTO_ClearQueue done [10:46:43]KKMCreateOFDPacket [10:46:43]OFDProtocolAddRootSTLVToBuf [10:46:43]FM_MakeSignedData [10:46:43]FM_MakeSignedData [10:46:43]SAM_PROTO_SignData [10:46:43]wFMCommunicate request_size=4 [10:46:43]MH_SAM_APDU [10:46:43]CAPDU: 80 0D 01 02 [10:46:43]Write to MH i2c: E2 08 00 A5 3E 80 0D 01 02 00 00 00 00 5C [10:46:43]Write i2c OK [10:46:43]MH_I2C_Read... [10:46:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:43]Read from MH i2c: E2 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 03 00 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 03 00 A5 3E 00 90 00 57 [10:46:43]RAPDU: 90 00 [10:46:43]wFMCommunicate OK [10:46:43]wFMCommunicate request_size=255 [10:46:43]MH_SAM_APDU [10:46:43]CAPDU: 80 0D 02 02 FA 03 00 9A 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC [10:46:43]Write to MH i2c: E2 02 01 A6 3E 80 0D 02 02 FA 00 03 00 9A 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 00 00 C6 [10:46:43]Write i2c OK [10:46:43]MH_I2C_Read... [10:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:43]Read from MH i2c: E2 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 03 00 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 03 00 A6 3E 00 90 00 58 [10:46:43]RAPDU: 90 00 [10:46:43]wFMCommunicate OK [10:46:43]wFMCommunicate request_size=169 [10:46:43]MH_SAM_APDU [10:46:43]CAPDU: 80 0D 02 02 A4 03 06 00 7C 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 07 00 00 00 00 07 04 06 00 7C 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 17 2E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0F C1 00 00 35 04 06 00 C2 25 78 F1 F1 E8 [10:46:43]Write to MH i2c: E2 AC 00 A7 3E 80 0D 02 02 A4 00 03 06 00 7C 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 07 00 00 00 00 07 04 06 00 7C 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 17 2E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0F C1 00 00 35 04 06 00 C2 25 78 F1 F1 E8 00 00 28 [10:46:43]Write i2c OK [10:46:43]MH_I2C_Read... [10:46:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:43]Read from MH i2c: E2 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 03 00 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 03 00 A7 3E 00 90 00 59 [10:46:43]RAPDU: 90 00 [10:46:43]wFMCommunicate OK [10:46:43]wFMCommunicate request_size=4 [10:46:43]MH_SAM_APDU [10:46:43]CAPDU: 80 0D 03 02 [10:46:43]Write to MH i2c: E2 08 00 A8 3E 80 0D 03 02 00 00 00 00 61 [10:46:43]Write i2c OK [10:46:43]MH_I2C_Read... [10:46:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:43]Read from MH i2c: E2 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 0B 00 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 0B 00 A8 3E 00 EE 74 6D 6D 09 D4 0E 74 90 00 FD [10:46:43]RAPDU: EE 74 6D 6D 09 D4 0E 74 90 00 [10:46:43]wFMCommunicate OK [10:46:43]SAM_PROTO_SignData done [10:46:43]FM_MakeSignedData done [10:46:43]CreateOFDProtocolMessage [10:46:43]wFMCommunicate request_size=4 [10:46:43]MH_SAM_APDU [10:46:43]CAPDU: 80 11 00 00 [10:46:43]Write to MH i2c: E2 08 00 A9 3E 80 11 00 00 00 00 00 00 61 [10:46:43]Write i2c OK [10:46:43]MH_I2C_Read... [10:46:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:43]Read from MH i2c: E2 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 17 00 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: E2 17 00 A9 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AC [10:46:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:46:43]wFMCommunicate OK [10:46:43]CreateOFDProtocolMessage done [10:46:43]OFDSenderStorePacket 49423 [10:46:43]StoreOFDPacket docnum=49423 [10:46:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 AE 01 00 00 20 5F A6 01 F1 5F 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 07 00 00 00 00 07 04 06 00 7C 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 17 2E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0F C1 00 00 35 04 06 00 C2 25 78 F1 F1 E8 EE 74 6D 6D 09 D4 0E 74 [10:46:43]CheckFolder [10:46:43]dirname=/storage/ofd_packets [10:46:43]CheckFolder done [10:46:43]ProducePacketName [10:46:43]name=ofd_packets/00049423 [10:46:43]NVStorageSaveData ofd_packets/00049423 [10:46:43]File name is /storage/ofd_packets/00049423 [10:46:43]Write 460 bytes [10:46:43]NVStorageSaveData done [10:46:43]OFDSenderStorePacket done [10:46:43]KKMCreateOFDPacket done [10:46:43]NVStorageSaveData kkm_last_timestamp [10:46:43]File name is /storage/kkm_last_timestamp [10:46:43]Write 4 bytes [10:46:43]NVStorageSaveData done [10:46:43]ExternCall_PrintAddStr [10:46:43]wPrintStart [10:46:43]Write to MH i2c: 01 00 00 AA 3E E8 [10:46:43]Write i2c OK [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: 01 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: 01 07 00 [10:46:43]MH_I2C_Read... [10:46:43]Read from MH i2c: 01 07 00 AA 3E 00 00 00 00 00 FF 0F FD [10:46:44]RasterBufferAndPrint [10:46:44]line Счет N : (3)189647 [10:46:44]line ИНН: 02508201610067 [10:46:44]line Контрольно-Кассовый Чек [10:46:44]line ПРОДАЖА [10:46:44]line Товар: 4607015235784 [10:46:44]line Печ. сд. Яшкино клубника 137г [10:46:44]line 1.000 * 90.00 [10:46:44]line = 90.00 [10:46:44]line НДС 12% НСП 1% [10:46:44]line > о реализуемом товаре [10:46:44]line Товар: 4603290004862 [10:46:44]line Печ.сах.FORSITE Сэнд.шок-ор.вк [10:46:44]line 1.000 * 93.00 [10:46:44]line = 93.00 [10:46:44]line НДС 12% НСП 1% [10:46:44]line > о реализуемом товаре [10:46:44]line ИТОГО: 183.00 [10:46:44]line НСП 1% : 1.62 [10:46:44]line НДС 12% : 19.44 [10:46:44]line Наличными: 183.00 [10:46:44]line Безнал.: 0.00 [10:46:44]line Место: АЗС № 95 "Партнер Нефть" [10:46:44]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:46:44]line СНО: Общий режим [10:46:44]line Чек 71 16.08.2024 10:46 [10:46:44]line Смена: 464 ФФД: 1.0 [10:46:44]line ЗНМ: 0300000078 [10:46:44]line РНМ: 0000000000092546 [10:46:44]line Версия ККМ: 001 [10:46:44]line ФМ: 0000000000871800 [10:46:44]line ФД: 49423 [10:46:44]line ФПД: 213466198700520 [10:46:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T104647&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49423&fm=213466198700520&tin=02508201610067®Number=0000000000092546&sum=18300 [10:46:44]line 0 [10:46:44]OFD Sender: Processing packet 49423 [packets to send 21, broken 20] [10:46:44]ProducePacketName [10:46:44]name=ofd_packets/00049423 [10:46:44]OFD Sender: To server: pG, [10:46:44]CommunicateWithHost lk.salyk.kg:30040 [10:46:44]ConnectInit lk.salyk.kg [10:46:44]written 0, free lines is 4095 [10:46:44]Connected sock=10 [10:46:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 AE 01 00 00 20 5F A6 01 F1 5F 5A 03 01 00 03 00 9A 01 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 38 34 06 04 31 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 07 00 00 00 00 07 04 06 00 7C 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 00 00 00 F4 03 04 00 17 2E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0F C1 00 00 35 04 06 00 C2 25 78 F1 F1 E8 EE 74 6D 6D 09 D4 0E 74 [10:46:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C1 51 47 00 6C C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 0F C1 00 00 F4 03 04 00 56 D9 BE 66 B6 04 01 00 00 46 86 F8 D5 F5 B6 E2 58 [10:46:44]CommunicateWithHost err = 0 [10:46:44]CheckOFDResponse [10:46:44]1017 (14) - 77093643461234 [10:46:44]1041 (16) - 0000000000871800 [10:46:44]1040 (4) - 49423 [10:46:44]1012 (4) - 16.08.2024 04:45 [10:46:44]1206 (1) - 0 [10:46:44]OFD Sender: Remove packet 49423 [10:46:44]ProducePacketName [10:46:44]name=ofd_packets/00049423 [10:46:44]NVStorageDeleteData [10:46:44]Write to MH i2c: 01 00 00 DA 3E 18 [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: 01 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: 01 07 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: 01 07 00 DA 3E 00 00 00 00 00 71 0C 9C [10:46:44]RasterBufferAndPrint [10:46:44]line [10:46:44]line [10:46:44]line [10:46:44]line [10:46:44]line [10:46:44]written 0, free lines is 3191 [10:46:44]MH_Cut [10:46:44]Write to MH i2c: D1 01 00 E1 3E 01 F1 [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: D1 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: D1 01 00 [10:46:44]MH_I2C_Read... [10:46:44]Read from MH i2c: D1 01 00 E1 3E 00 F0 [10:46:44]Write to MH i2c: 01 00 00 E2 3E 20 [10:46:44]Write i2c OK [10:46:44]MH_I2C_Read... [10:46:45]OFD Sender: No OFD packet to send [10:46:45]*** Cut start [10:46:45]*** Purtial cut [10:46:45]*** Stage 1: CUTSNS_PIN = 1 [10:46:45]Read from MH i2c: 01 [10:46:45]MH_I2C_Read... [10:46:45]*** Stop cut motor [10:46:45]*** Cut end [10:46:45]Read from MH i2c: 01 07 00 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: 01 07 00 E2 3E 00 00 00 00 00 FF 0F 35 [10:46:45]process_action close_receipt done [10:46:45]requested_data is exist [10:46:45]produce_requested_data [10:46:45]requested_item fm.sn is exist - process it [10:46:45]wFMCommunicate request_size=4 [10:46:45]MH_SAM_APDU [10:46:45]CAPDU: 80 11 00 00 [10:46:45]Write to MH i2c: E2 08 00 E3 3E 80 11 00 00 00 00 00 00 9B [10:46:45]Write i2c OK [10:46:45]MH_I2C_Read... [10:46:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:45]Read from MH i2c: E2 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: E2 17 00 [10:46:45]MH_I2C_Read... [10:46:45]Read from MH i2c: E2 17 00 E3 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E6 [10:46:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:46:45]wFMCommunicate OK [10:46:45]requested_item fd.num is exist - process it [10:46:45]SAM_PROTO_GetFieldsCounters [10:46:45]wFMCommunicate request_size=4 [10:46:45]MH_SAM_APDU [10:46:45]CAPDU: 80 13 00 00 [10:46:45]Write to MH i2c: E2 08 00 E4 3E 80 13 00 00 00 00 00 00 9E [10:46:45]Write i2c OK [10:46:45]MH_I2C_Read... [10:46:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:46]Read from MH i2c: E2 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 62 00 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 62 00 E4 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0F C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 2E [10:46:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 0F C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 47 00 00 00 5E 04 04 00 47 00 00 00 57 04 04 00 48 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:46]wFMCommunicate OK [10:46:46]SAM_PROTO_GetFieldsCounters done [10:46:46]requested_item shift.num is exist - process it [10:46:46]requested_item shift.opened is exist - process it [10:46:46]req_shift_opened [10:46:46]FM_GetShiftState [10:46:46]SAM_PROTO_GetShiftState [10:46:46]wFMCommunicate request_size=4 [10:46:46]MH_SAM_APDU [10:46:46]CAPDU: 80 13 01 00 [10:46:46]Write to MH i2c: E2 08 00 E5 3E 80 13 01 00 00 00 00 00 A0 [10:46:46]Write i2c OK [10:46:46]MH_I2C_Read... [10:46:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:46]Read from MH i2c: E2 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 0E 00 [10:46:46]MH_I2C_Read... [10:46:46]Read from MH i2c: E2 0E 00 E5 3E 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 16 [10:46:46]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:46:46]wFMCommunicate OK [10:46:46]SAM_PROTO_GetShiftState done [10:46:46]FM_GetShiftState done [10:46:46]req_shift_opened done [10:46:46]requested_item shift.open_date is exist - process it [10:46:46]req_shift_open_date [10:46:46]req_shift_open_date done [10:46:46]produce_requested_data done [10:46:46]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49423,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [10:46:46]process_action_free close_receipt [10:46:46]json_value_free [10:46:46]json_value_free done [10:46:46]process_json_proto returns [10:46:46]Send response to host [10:46:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49423,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [10:46:46]free response buf [10:46:46]execute_script done [10:46:46]execute_script returns [10:46:46]free content buf [10:46:46]Sock 9.Close socket [10:46:46]Sock 9.Thread stoped [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:40]OFD Sender: No OFD packet to send [10:47:45]OFD Sender: No OFD packet to send [10:47:50]OFD Sender: No OFD packet to send [10:47:55]OFD Sender: No OFD packet to send [10:48:00]OFD Sender: No OFD packet to send [10:48:05]OFD Sender: No OFD packet to send [10:48:10]OFD Sender: No OFD packet to send [10:48:15]OFD Sender: No OFD packet to send [10:48:20]OFD Sender: No OFD packet to send [10:48:25]OFD Sender: No OFD packet to send [10:48:30]OFD Sender: No OFD packet to send [10:48:35]OFD Sender: No OFD packet to send [10:48:37]accept exits with 7 [10:48:37]New connection [10:48:37]New thread 3066830180 created [10:48:37]Thread 3066973540 joined [10:48:37]Waiting for new connection... [10:48:37] Sock 7.Parse request [10:48:37]Sock 7.Check first char [10:48:37]Sock 7.First char is OK [10:48:37]request: POST /json_proto HTTP/1.0 [10:48:37]Method: POST [10:48:37]URL: /json_proto [10:48:37]Method is POST - this is cgi request [10:48:37]url: /json_proto [10:48:37]query_string will be loaded in cgi processing [10:48:37]execute_cgi json_proto POST (null) [10:48:37]execute_cgi path=json_proto method=POST [10:48:37]POST find Content-Length [10:48:37]Host: 172.17.46.196:8080 [10:48:37]Content-Length: 783 [10:48:37]Content-Type: application/json [10:48:37] [10:48:37]POST finish read [10:48:37]Found Content-Length = 783 [10:48:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189648", "tax_sys" : 0, "items" : [ { "code": "4860114390178", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A\u043E\u0433\u043E\u043B\u044C\u043D\u044B\u0439 \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0422\u0430\u0440\u0445", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:37]execute_script... [10:48: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 : (3)189648", "tax_sys" : 0, "items" : [ { "code": "4860114390178", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A\u043E\u0433\u043E\u043B\u044C\u043D\u044B\u0439 \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 \u0422\u0430\u0440\u0445", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:48:37]POST & json_proto [10:48:37]process_json_proto [10:48:37]json parsed OK: [10:48:37]protocol is kg_v1.0 [10:48:37]action value=close_receipt [10:48:37]process_action close_receipt [10:48:37]cmd_close_receipt [10:48:37]MH_GetDate [10:48:37]Write to MH i2c: F0 00 00 E6 3E 13 [10:48:37]Write i2c OK [10:48:37]MH_I2C_Read... [10:48:37]Read from MH i2c: F0 [10:48:37]MH_I2C_Read... [10:48:37]Read from MH i2c: F0 09 00 [10:48:37]MH_I2C_Read... [10:48:37]Read from MH i2c: F0 09 00 E6 3E 00 8B 2E BF 66 07 E8 5D 66 AC [10:48:37]GetLastDocTimeStamp 1723805207 [10:48:37]current date 1723805323 [10:48:37]FM_GetShiftState [10:48:37]SAM_PROTO_GetShiftState [10:48:37]wFMCommunicate request_size=4 [10:48:37]MH_SAM_APDU [10:48:37]CAPDU: 80 13 01 00 [10:48:37]Write to MH i2c: E2 08 00 E7 3E 80 13 01 00 00 00 00 00 A2 [10:48:37]Write i2c OK [10:48:37]MH_I2C_Read... [10:48:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:38]Read from MH i2c: E2 [10:48:38]MH_I2C_Read... [10:48:38]Read from MH i2c: E2 0E 00 [10:48:38]MH_I2C_Read... [10:48:38]Read from MH i2c: E2 0E 00 E7 3E 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 18 [10:48:38]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:48:38]wFMCommunicate OK [10:48:38]SAM_PROTO_GetShiftState done [10:48:38]FM_GetShiftState done [10:48:38]opened in 1723766958 [10:48:38]opened+sec_in_day 1723853358 [10:48:38]quantity*price = 15500 [10:48:38]sum+1 = 15501 [10:48:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 72 16.08.2024 10:48 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49424 ФПД: 2157083705990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T104843&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49424&fm=2157083705990&tin=02508201610067®Number=0000000000092546&sum=15500 0 [10:48:39]StoreToDocumentArchive [10:48:39]shift 464 fd 49424 [10:48:39]save to /storage/0464/doc_00049424 [10:48:39]save last doc name /storage/0464/doc_00049424 to /storage/kkm_last_doc_name [10:48:39]save OK [10:48:39]Clear old archive folders... [10:48:39]ProcessDocumentItem done err = 0, tmpTLVsize=319 [10:48:39]tlvbuf is 00EBF5D0 [10:48:39]SAM_PROTO_ClearQueue [10:48:39]wFMCommunicate request_size=4 [10:48:39]MH_SAM_APDU [10:48:39]CAPDU: 80 09 00 00 [10:48:39]Write to MH i2c: E2 08 00 F4 3E 80 09 00 00 00 00 00 00 A4 [10:48:39]Write i2c OK [10:48:39]MH_I2C_Read... [10:48:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:48:39]Read from MH i2c: E2 [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: E2 03 00 [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: E2 03 00 F4 3E 00 90 00 A6 [10:48:39]RAPDU: 90 00 [10:48:39]wFMCommunicate OK [10:48:39]SAM_PROTO_ClearQueue done [10:48:39]KKMCreateOFDPacket [10:48:39]OFDProtocolAddRootSTLVToBuf [10:48:39]FM_MakeSignedData [10:48:39]FM_MakeSignedData [10:48:39]SAM_PROTO_SignData [10:48:39]wFMCommunicate request_size=4 [10:48:39]MH_SAM_APDU [10:48:39]CAPDU: 80 0D 01 02 [10:48:39]Write to MH i2c: E2 08 00 F5 3E 80 0D 01 02 00 00 00 00 AC [10:48:39]Write i2c OK [10:48:39]MH_I2C_Read... [10:48:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:48:39]Read from MH i2c: E2 [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: E2 03 00 [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: E2 03 00 F5 3E 00 90 00 A7 [10:48:39]RAPDU: 90 00 [10:48:39]wFMCommunicate OK [10:48:39]wFMCommunicate request_size=255 [10:48:39]MH_SAM_APDU [10:48:39]CAPDU: 80 0D 02 02 FA 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 37 38 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 A2 D0 B0 D1 80 D1 85 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 8B 2E [10:48:39]Write to MH i2c: E2 02 01 F6 3E 80 0D 02 02 FA 00 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 37 38 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 A2 D0 B0 D1 80 D1 85 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 8B 2E 00 00 8C [10:48:39]Write i2c OK [10:48:39]MH_I2C_Read... [10:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:39]Read from MH i2c: E2 [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: E2 03 00 [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: E2 03 00 F6 3E 00 90 00 A8 [10:48:39]RAPDU: 90 00 [10:48:39]wFMCommunicate OK [10:48:39]wFMCommunicate request_size=78 [10:48:39]MH_SAM_APDU [10:48:39]CAPDU: 80 0D 02 02 49 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 10 C1 00 00 35 04 06 00 01 F6 3C 35 42 86 [10:48:39]Write to MH i2c: E2 51 00 F7 3E 80 0D 02 02 49 00 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 10 C1 00 00 35 04 06 00 01 F6 3C 35 42 86 00 00 DC [10:48:39]Write i2c OK [10:48:39]MH_I2C_Read... [10:48:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:48:39]Read from MH i2c: E2 [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: E2 03 00 [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: E2 03 00 F7 3E 00 90 00 A9 [10:48:39]RAPDU: 90 00 [10:48:39]wFMCommunicate OK [10:48:39]wFMCommunicate request_size=4 [10:48:39]MH_SAM_APDU [10:48:39]CAPDU: 80 0D 03 02 [10:48:39]Write to MH i2c: E2 08 00 F8 3E 80 0D 03 02 00 00 00 00 B1 [10:48:39]Write i2c OK [10:48:39]MH_I2C_Read... [10:48:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:48:39]Read from MH i2c: E2 [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: E2 0B 00 [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: E2 0B 00 F8 3E 00 9A 9F 3D 16 BD 6A 70 F8 90 00 CD [10:48:39]RAPDU: 9A 9F 3D 16 BD 6A 70 F8 90 00 [10:48:39]wFMCommunicate OK [10:48:39]SAM_PROTO_SignData done [10:48:39]FM_MakeSignedData done [10:48:39]CreateOFDProtocolMessage [10:48:39]wFMCommunicate request_size=4 [10:48:39]MH_SAM_APDU [10:48:39]CAPDU: 80 11 00 00 [10:48:39]Write to MH i2c: E2 08 00 F9 3E 80 11 00 00 00 00 00 00 B1 [10:48:39]Write i2c OK [10:48:39]MH_I2C_Read... [10:48:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:39]Read from MH i2c: E2 [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: E2 17 00 [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: E2 17 00 F9 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FC [10:48:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:48:39]wFMCommunicate OK [10:48:39]CreateOFDProtocolMessage done [10:48:39]OFDSenderStorePacket 49424 [10:48:39]StoreOFDPacket docnum=49424 [10:48:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 53 01 00 00 6F 55 4B 01 31 82 5A 03 01 00 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 37 38 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 A2 D0 B0 D1 80 D1 85 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 8B 2E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 10 C1 00 00 35 04 06 00 01 F6 3C 35 42 86 9A 9F 3D 16 BD 6A 70 F8 [10:48:39]CheckFolder [10:48:39]dirname=/storage/ofd_packets [10:48:39]CheckFolder done [10:48:39]ProducePacketName [10:48:39]name=ofd_packets/00049424 [10:48:39]NVStorageSaveData ofd_packets/00049424 [10:48:39]File name is /storage/ofd_packets/00049424 [10:48:39]Write 369 bytes [10:48:39]NVStorageSaveData done [10:48:39]OFDSenderStorePacket done [10:48:39]KKMCreateOFDPacket done [10:48:39]NVStorageSaveData kkm_last_timestamp [10:48:39]File name is /storage/kkm_last_timestamp [10:48:39]Write 4 bytes [10:48:39]NVStorageSaveData done [10:48:39]ExternCall_PrintAddStr [10:48:39]wPrintStart [10:48:39]Write to MH i2c: 01 00 00 FA 3E 38 [10:48:39]Write i2c OK [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: 01 [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: 01 07 00 [10:48:39]MH_I2C_Read... [10:48:39]Read from MH i2c: 01 07 00 FA 3E 00 00 00 00 00 FF 0F 4D [10:48:39]RasterBufferAndPrint [10:48:39]line Счет N : (3)189648 [10:48:39]line ИНН: 02508201610067 [10:48:39]line Контрольно-Кассовый Чек [10:48:39]line ПРОДАЖА [10:48:39]line Товар: 4860114390178 [10:48:39]line Напиток безалкогольный газированный Тарх [10:48:39]line 1.000 * 155.00 [10:48:39]line = 155.00 [10:48:39]line НДС 12% НСП 1% [10:48:39]line > о реализуемом товаре [10:48:39]line ИТОГО: 155.00 [10:48:39]line НСП 1% : 1.37 [10:48:39]line НДС 12% : 16.46 [10:48:39]line Наличными: 155.00 [10:48:39]line Безнал.: 0.00 [10:48:39]line Место: АЗС № 95 "Партнер Нефть" [10:48:39]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [10:48:39]line СНО: Общий режим [10:48:39]line Чек 72 16.08.2024 10:48 [10:48:39]line Смена: 464 ФФД: 1.0 [10:48:39]line ЗНМ: 0300000078 [10:48:39]line РНМ: 0000000000092546 [10:48:39]line Версия ККМ: 001 [10:48:39]line ФМ: 0000000000871800 [10:48:39]line ФД: 49424 [10:48:39]line ФПД: 2157083705990 [10:48:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T104843&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49424&fm=2157083705990&tin=02508201610067®Number=0000000000092546&sum=15500 [10:48:40]OFD Sender: Processing packet 49424 [packets to send 21, broken 20] [10:48:40]ProducePacketName [10:48:40]name=ofd_packets/00049424 [10:48:40]OFD Sender: To server: pG, [10:48:40]CommunicateWithHost lk.salyk.kg:30040 [10:48:40]ConnectInit lk.salyk.kg [10:48:40]line 0 [10:48:40]written 0, free lines is 4095 [10:48:40]Connected sock=10 [10:48:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 53 01 00 00 6F 55 4B 01 31 82 5A 03 01 00 03 00 3F 01 1E 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 37 38 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 A2 D0 B0 D1 80 D1 85 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 8B 2E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 10 C1 00 00 35 04 06 00 01 F6 3C 35 42 86 9A 9F 3D 16 BD 6A 70 F8 [10:48:40]Write to MH i2c: 01 00 00 23 3F 62 [10:48:40]Write i2c OK [10:48:40]MH_I2C_Read... [10:48:40]Read from MH i2c: 01 [10:48:40]MH_I2C_Read... [10:48:40]Read from MH i2c: 01 07 00 [10:48:40]MH_I2C_Read... [10:48:40]Read from MH i2c: 01 07 00 23 3F 00 00 00 00 00 CB 0C 40 [10:48:40]RasterBufferAndPrint [10:48:40]line [10:48:40]line [10:48:40]line [10:48:40]line [10:48:40]line [10:48:40]written 0, free lines is 3283 [10:48:40]MH_Cut [10:48:40]Write to MH i2c: D1 01 00 2A 3F 01 3B [10:48:40]Write i2c OK [10:48:40]MH_I2C_Read... [10:48:40]Read from MH i2c: D1 [10:48:40]MH_I2C_Read... [10:48:40]Read from MH i2c: D1 01 00 [10:48:40]MH_I2C_Read... [10:48:40]Read from MH i2c: D1 01 00 2A 3F 00 3A [10:48:40]Write to MH i2c: 01 00 00 2B 3F 6A [10:48:40]Write i2c OK [10:48:40]MH_I2C_Read... [10:48:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 56 09 47 00 1C 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 38 37 31 38 30 30 10 04 04 00 10 C1 00 00 F4 03 04 00 CA D9 BE 66 B6 04 01 00 00 A4 0A 21 F8 F5 AC 1B 5C [10:48:40]CommunicateWithHost err = 0 [10:48:40]CheckOFDResponse [10:48:40]1017 (14) - 77093643461234 [10:48:40]1041 (16) - 0000000000871800 [10:48:40]1040 (4) - 49424 [10:48:40]1012 (4) - 16.08.2024 04:47 [10:48:40]1206 (1) - 0 [10:48:40]OFD Sender: Remove packet 49424 [10:48:40]ProducePacketName [10:48:40]name=ofd_packets/00049424 [10:48:40]NVStorageDeleteData [10:48:41]OFD Sender: No OFD packet to send [10:48:41]*** Cut start [10:48:41]*** Purtial cut [10:48:41]*** CUTSNS_PIN = 0 [10:48:41]*** Stage 1: CUTSNS_PIN = 1 [10:48:43]Read from MH i2c: 01 [10:48:43]MH_I2C_Read... [10:48:43]*** Stop cut motor [10:48:43]*** Cut end [10:48:43]Read from MH i2c: 01 07 00 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: 01 07 00 2B 3F 00 00 00 00 00 FF 0F 7F [10:48:43]process_action close_receipt done [10:48:43]requested_data is exist [10:48:43]produce_requested_data [10:48:43]requested_item fm.sn is exist - process it [10:48:43]wFMCommunicate request_size=4 [10:48:43]MH_SAM_APDU [10:48:43]CAPDU: 80 11 00 00 [10:48:43]Write to MH i2c: E2 08 00 2C 3F 80 11 00 00 00 00 00 00 E5 [10:48:43]Write i2c OK [10:48:43]MH_I2C_Read... [10:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:48:43]Read from MH i2c: E2 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 17 00 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 17 00 2C 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 30 [10:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [10:48:43]wFMCommunicate OK [10:48:43]requested_item fd.num is exist - process it [10:48:43]SAM_PROTO_GetFieldsCounters [10:48:43]wFMCommunicate request_size=4 [10:48:43]MH_SAM_APDU [10:48:43]CAPDU: 80 13 00 00 [10:48:43]Write to MH i2c: E2 08 00 2D 3F 80 13 00 00 00 00 00 00 E8 [10:48:43]Write i2c OK [10:48:43]MH_I2C_Read... [10:48:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:48:43]Read from MH i2c: E2 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 62 00 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 62 00 2D 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 10 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [10:48:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 10 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:48:43]wFMCommunicate OK [10:48:43]SAM_PROTO_GetFieldsCounters done [10:48:43]requested_item shift.num is exist - process it [10:48:43]requested_item shift.opened is exist - process it [10:48:43]req_shift_opened [10:48:43]FM_GetShiftState [10:48:43]SAM_PROTO_GetShiftState [10:48:43]wFMCommunicate request_size=4 [10:48:43]MH_SAM_APDU [10:48:43]CAPDU: 80 13 01 00 [10:48:43]Write to MH i2c: E2 08 00 2E 3F 80 13 01 00 00 00 00 00 EA [10:48:43]Write i2c OK [10:48:43]MH_I2C_Read... [10:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:48:43]Read from MH i2c: E2 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 0E 00 [10:48:43]MH_I2C_Read... [10:48:43]Read from MH i2c: E2 0E 00 2E 3F 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 60 [10:48:43]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [10:48:43]wFMCommunicate OK [10:48:43]SAM_PROTO_GetShiftState done [10:48:43]FM_GetShiftState done [10:48:43]req_shift_opened done [10:48:43]requested_item shift.open_date is exist - process it [10:48:43]req_shift_open_date [10:48:43]req_shift_open_date done [10:48:43]produce_requested_data done [10:48:43]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49424,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [10:48:43]process_action_free close_receipt [10:48:43]json_value_free [10:48:43]json_value_free done [10:48:43]process_json_proto returns [10:48:43]Send response to host [10:48:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49424,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [10:48:43]free response buf [10:48:43]execute_script done [10:48:43]execute_script returns [10:48:43]free content buf [10:48:43]Sock 7.Close socket [10:48:43]Sock 7.Thread stoped [10:48:46]OFD Sender: No OFD packet to send [10:48:51]OFD Sender: No OFD packet to send [10:48:56]OFD Sender: No OFD packet to send [10:49:01]OFD Sender: No OFD packet to send [10:49:06]OFD Sender: No OFD packet to send [10:49:11]OFD Sender: No OFD packet to send [10:49:16]OFD Sender: No OFD packet to send [10:49:21]OFD Sender: No OFD packet to send [10:49:26]OFD Sender: No OFD packet to send [10:49:31]OFD Sender: No OFD packet to send [10:49:36]OFD Sender: No OFD packet to send [10:49:41]OFD Sender: No OFD packet to send [10:49:46]OFD Sender: No OFD packet to send [10:49:51]OFD Sender: No OFD packet to send [10:49:56]OFD Sender: No OFD packet to send [10:50:01]OFD Sender: No OFD packet to send [10:50:06]OFD Sender: No OFD packet to send [10:50:11]OFD Sender: No OFD packet to send [10:50:16]OFD Sender: No OFD packet to send [10:50:21]OFD Sender: No OFD packet to send [10:50:26]OFD Sender: No OFD packet to send [10:50:31]OFD Sender: No OFD packet to send [10:50:36]OFD Sender: No OFD packet to send [10:50:41]OFD Sender: No OFD packet to send [10:50:46]OFD Sender: No OFD packet to send [10:50:51]OFD Sender: No OFD packet to send [10:50:56]OFD Sender: No OFD packet to send [10:51:01]OFD Sender: No OFD packet to send [10:51:06]OFD Sender: No OFD packet to send [10:51:11]OFD Sender: No OFD packet to send [10:51:16]OFD Sender: No OFD packet to send [10:51:21]OFD Sender: No OFD packet to send [10:51:26]OFD Sender: No OFD packet to send [10:51:31]OFD Sender: No OFD packet to send [10:51:36]OFD Sender: No OFD packet to send [10:51:41]OFD Sender: No OFD packet to send [10:51:46]OFD Sender: No OFD packet to send [10:51:51]OFD Sender: No OFD packet to send [10:51:56]OFD Sender: No OFD packet to send [10:52:01]OFD Sender: No OFD packet to send [10:52:06]OFD Sender: No OFD packet to send [10:52:16]OFD Sender: No OFD packet to send [10:52:21]OFD Sender: No OFD packet to send [10:52:26]OFD Sender: No OFD packet to send [10:52:31]OFD Sender: No OFD packet to send [10:52:36]OFD Sender: No OFD packet to send [10:52:41]OFD Sender: No OFD packet to send [10:52:46]OFD Sender: No OFD packet to send [10:52:51]OFD Sender: No OFD packet to send [10:52:56]OFD Sender: No OFD packet to send [10:53:01]OFD Sender: No OFD packet to send [10:53:06]OFD Sender: No OFD packet to send [10:53:11]OFD Sender: No OFD packet to send [10:53:16]OFD Sender: No OFD packet to send [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:21]ConnectInit Can't connect to host [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:51]OFD Sender: No OFD packet to send [10:54:56]OFD Sender: No OFD packet to send [10:55:01]OFD Sender: No OFD packet to send [10:55:06]OFD Sender: No OFD packet to send [10:55:11]OFD Sender: No OFD packet to send [10:55:16]OFD Sender: No OFD packet to send [10:55:21]OFD Sender: No OFD packet to send [10:55:26]OFD Sender: No OFD packet to send [10:55:31]OFD Sender: No OFD packet to send [10:55:36]OFD Sender: No OFD packet to send [10:55:41]OFD Sender: No OFD packet to send [10:55:46]OFD Sender: No OFD packet to send [10:55:51]OFD Sender: No OFD packet to send [10:55:56]OFD Sender: No OFD packet to send [10:56:01]OFD Sender: No OFD packet to send [10:56:06]OFD Sender: No OFD packet to send [10:56:11]OFD Sender: No OFD packet to send [10:56:16]OFD Sender: No OFD packet to send [10:56:21]OFD Sender: No OFD packet to send [10:56:26]OFD Sender: No OFD packet to send [10:56:31]OFD Sender: No OFD packet to send [10:56:36]OFD Sender: No OFD packet to send [10:56:41]OFD Sender: No OFD packet to send [10:56:46]OFD Sender: No OFD packet to send [10:56:51]OFD Sender: No OFD packet to send [10:56:56]OFD Sender: No OFD packet to send [10:57:01]OFD Sender: No OFD packet to send [10:57:06]OFD Sender: No OFD packet to send [10:57:11]OFD Sender: No OFD packet to send [10:57:16]OFD Sender: No OFD packet to send [10:57:21]OFD Sender: No OFD packet to send [10:57:26]OFD Sender: No OFD packet to send [10:57:31]OFD Sender: No OFD packet to send [10:57:36]OFD Sender: No OFD packet to send [10:57:41]OFD Sender: No OFD packet to send [10:57:46]OFD Sender: No OFD packet to send [10:57:51]OFD Sender: No OFD packet to send [10:57:56]OFD Sender: No OFD packet to send [10:58:01]OFD Sender: No OFD packet to send [10:58:06]OFD Sender: No OFD packet to send [10:58:11]OFD Sender: No OFD packet to send [10:58:16]OFD Sender: No OFD packet to send [10:58:21]OFD Sender: No OFD packet to send [10:58:26]OFD Sender: No OFD packet to send [10:58:31]OFD Sender: No OFD packet to send [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:16]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:46]OFD Sender: No OFD packet to send [11:02:51]OFD Sender: No OFD packet to send [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:11]OFD Sender: No OFD packet to send [11:05:16]OFD Sender: No OFD packet to send [11:05:21]OFD Sender: No OFD packet to send [11:05:26]OFD Sender: No OFD packet to send [11:05:32]OFD Sender: No OFD packet to send [11:05:37]OFD Sender: No OFD packet to send [11:05:42]OFD Sender: No OFD packet to send [11:05:47]OFD Sender: No OFD packet to send [11:05:52]OFD Sender: No OFD packet to send [11:05:57]OFD Sender: No OFD packet to send [11:06:02]OFD Sender: No OFD packet to send [11:06:07]OFD Sender: No OFD packet to send [11:06:12]OFD Sender: No OFD packet to send [11:06:17]OFD Sender: No OFD packet to send [11:06:22]OFD Sender: No OFD packet to send [11:06:27]OFD Sender: No OFD packet to send [11:06:32]OFD Sender: No OFD packet to send [11:06:37]OFD Sender: No OFD packet to send [11:06:42]OFD Sender: No OFD packet to send [11:06:47]OFD Sender: No OFD packet to send [11:06:52]OFD Sender: No OFD packet to send [11:06:57]OFD Sender: No OFD packet to send [11:07:02]OFD Sender: No OFD packet to send [11:07:07]OFD Sender: No OFD packet to send [11:07:12]OFD Sender: No OFD packet to send [11:07:17]OFD Sender: No OFD packet to send [11:07:22]OFD Sender: No OFD packet to send [11:07:27]OFD Sender: No OFD packet to send [11:07:32]OFD Sender: No OFD packet to send [11:07:37]OFD Sender: No OFD packet to send [11:07:42]OFD Sender: No OFD packet to send [11:07:47]OFD Sender: No OFD packet to send [11:07:52]OFD Sender: No OFD packet to send [11:07:57]OFD Sender: No OFD packet to send [11:08:02]OFD Sender: No OFD packet to send [11:08:07]OFD Sender: No OFD packet to send [11:08:12]OFD Sender: No OFD packet to send [11:08:17]OFD Sender: No OFD packet to send [11:08:22]OFD Sender: No OFD packet to send [11:08:27]OFD Sender: No OFD packet to send [11:08:32]OFD Sender: No OFD packet to send [11:08:37]OFD Sender: No OFD packet to send [11:08:42]OFD Sender: No OFD packet to send [11:08:47]OFD Sender: No OFD packet to send [11:08:52]OFD Sender: No OFD packet to send [11:08:57]OFD Sender: No OFD packet to send [11:09:02]OFD Sender: No OFD packet to send [11:09:04]accept exits with 9 [11:09:04]New connection [11:09:04]New thread 3066973540 created [11:09:04]Thread 3066830180 joined [11:09:04]Waiting for new connection... [11:09:04] Sock 9.Parse request [11:09:04]Sock 9.Check first char [11:09:04]Sock 9.First char is OK [11:09:04]request: POST /json_proto HTTP/1.0 [11:09:04]Method: POST [11:09:04]URL: /json_proto [11:09:04]Method is POST - this is cgi request [11:09:04]url: /json_proto [11:09:04]query_string will be loaded in cgi processing [11:09:04]execute_cgi json_proto POST (null) [11:09:04]execute_cgi path=json_proto method=POST [11:09:04]POST find Content-Length [11:09:04]Host: 172.17.46.196:8080 [11:09:04]Content-Length: 626 [11:09:04]Content-Type: application/json [11:09:04] [11:09:04]POST finish read [11:09:04]Found Content-Length = 626 [11:09:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189649", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:04]execute_script... [11:09: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 : (3)189649", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:09:04]POST & json_proto [11:09:04]process_json_proto [11:09:04]json parsed OK: [11:09:04]protocol is kg_v1.0 [11:09:04]action value=close_receipt [11:09:04]process_action close_receipt [11:09:04]cmd_close_receipt [11:09:04]MH_GetDate [11:09:04]Write to MH i2c: F0 00 00 2F 3F 5D [11:09:04]Write i2c OK [11:09:04]MH_I2C_Read... [11:09:04]Read from MH i2c: F0 [11:09:04]MH_I2C_Read... [11:09:04]Read from MH i2c: F0 09 00 [11:09:04]MH_I2C_Read... [11:09:04]Read from MH i2c: F0 09 00 2F 3F 00 56 33 BF 66 07 E8 5D 66 C6 [11:09:04]GetLastDocTimeStamp 1723805323 [11:09:04]current date 1723806550 [11:09:04]FM_GetShiftState [11:09:04]SAM_PROTO_GetShiftState [11:09:04]wFMCommunicate request_size=4 [11:09:04]MH_SAM_APDU [11:09:04]CAPDU: 80 13 01 00 [11:09:04]Write to MH i2c: E2 08 00 30 3F 80 13 01 00 00 00 00 00 EC [11:09:04]Write i2c OK [11:09:04]MH_I2C_Read... [11:09:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:05]Read from MH i2c: E2 [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: E2 0E 00 [11:09:05]MH_I2C_Read... [11:09:05]Read from MH i2c: E2 0E 00 30 3F 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 62 [11:09:05]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [11:09:05]wFMCommunicate OK [11:09:05]SAM_PROTO_GetShiftState done [11:09:05]FM_GetShiftState done [11:09:05]opened in 1723766958 [11:09:05]opened+sec_in_day 1723853358 [11:09:05]quantity*price = 11500 [11:09:05]sum+1 = 11501 [11:09:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 73 16.08.2024 11:09 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49425 ФПД: 34291798950098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T110910&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49425&fm=34291798950098&tin=02508201610067®Number=0000000000092546&sum=11500 0 [11:09:06]StoreToDocumentArchive [11:09:06]shift 464 fd 49425 [11:09:06]save to /storage/0464/doc_00049425 [11:09:06]save last doc name /storage/0464/doc_00049425 to /storage/kkm_last_doc_name [11:09:06]save OK [11:09:06]Clear old archive folders... [11:09:06]ProcessDocumentItem done err = 0, tmpTLVsize=274 [11:09:06]tlvbuf is 00F4A080 [11:09:06]SAM_PROTO_ClearQueue [11:09:06]wFMCommunicate request_size=4 [11:09:06]MH_SAM_APDU [11:09:06]CAPDU: 80 09 00 00 [11:09:06]Write to MH i2c: E2 08 00 3D 3F 80 09 00 00 00 00 00 00 EE [11:09:06]Write i2c OK [11:09:06]MH_I2C_Read... [11:09:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:09:06]Read from MH i2c: E2 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: E2 03 00 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: E2 03 00 3D 3F 00 90 00 F0 [11:09:06]RAPDU: 90 00 [11:09:06]wFMCommunicate OK [11:09:06]SAM_PROTO_ClearQueue done [11:09:06]KKMCreateOFDPacket [11:09:06]OFDProtocolAddRootSTLVToBuf [11:09:06]FM_MakeSignedData [11:09:06]FM_MakeSignedData [11:09:06]SAM_PROTO_SignData [11:09:06]wFMCommunicate request_size=4 [11:09:06]MH_SAM_APDU [11:09:06]CAPDU: 80 0D 01 02 [11:09:06]Write to MH i2c: E2 08 00 3E 3F 80 0D 01 02 00 00 00 00 F6 [11:09:06]Write i2c OK [11:09:06]MH_I2C_Read... [11:09:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:09:06]Read from MH i2c: E2 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: E2 03 00 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: E2 03 00 3E 3F 00 90 00 F1 [11:09:06]RAPDU: 90 00 [11:09:06]wFMCommunicate OK [11:09:06]wFMCommunicate request_size=255 [11:09:06]MH_SAM_APDU [11:09:06]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 56 33 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 [11:09:06]Write to MH i2c: E2 02 01 3F 3F 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 56 33 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 00 00 5B [11:09:06]Write i2c OK [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: E2 [11:09:06]MH_I2C_Read... [11:09:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:06]Read from MH i2c: E2 03 00 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: E2 03 00 3F 3F 00 90 00 F2 [11:09:06]RAPDU: 90 00 [11:09:06]wFMCommunicate OK [11:09:06]wFMCommunicate request_size=33 [11:09:06]MH_SAM_APDU [11:09:06]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 38 30 30 10 04 04 00 11 C1 00 00 35 04 06 00 1F 30 2E 7E C0 D2 [11:09:06]Write to MH i2c: E2 24 00 40 3F 80 0D 02 02 1C 00 30 30 30 30 38 37 31 38 30 30 10 04 04 00 11 C1 00 00 35 04 06 00 1F 30 2E 7E C0 D2 00 00 DF [11:09:06]Write i2c OK [11:09:06]MH_I2C_Read... [11:09:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:09:06]Read from MH i2c: E2 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: E2 03 00 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: E2 03 00 40 3F 00 90 00 F3 [11:09:06]RAPDU: 90 00 [11:09:06]wFMCommunicate OK [11:09:06]wFMCommunicate request_size=4 [11:09:06]MH_SAM_APDU [11:09:06]CAPDU: 80 0D 03 02 [11:09:06]Write to MH i2c: E2 08 00 41 3F 80 0D 03 02 00 00 00 00 FB [11:09:06]Write i2c OK [11:09:06]MH_I2C_Read... [11:09:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:09:06]Read from MH i2c: E2 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: E2 0B 00 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: E2 0B 00 41 3F 00 6D 24 43 C4 2B 5C 6E DA 90 00 63 [11:09:06]RAPDU: 6D 24 43 C4 2B 5C 6E DA 90 00 [11:09:06]wFMCommunicate OK [11:09:06]SAM_PROTO_SignData done [11:09:06]FM_MakeSignedData done [11:09:06]CreateOFDProtocolMessage [11:09:06]wFMCommunicate request_size=4 [11:09:06]MH_SAM_APDU [11:09:06]CAPDU: 80 11 00 00 [11:09:06]Write to MH i2c: E2 08 00 42 3F 80 11 00 00 00 00 00 00 FB [11:09:06]Write i2c OK [11:09:06]MH_I2C_Read... [11:09:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:06]Read from MH i2c: E2 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: E2 17 00 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: E2 17 00 42 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 46 [11:09:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:09:06]wFMCommunicate OK [11:09:06]CreateOFDProtocolMessage done [11:09:06]OFDSenderStorePacket 49425 [11:09:06]StoreOFDPacket docnum=49425 [11:09:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 64 2D 1E 01 B6 8F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 56 33 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 11 C1 00 00 35 04 06 00 1F 30 2E 7E C0 D2 6D 24 43 C4 2B 5C 6E DA [11:09:06]CheckFolder [11:09:06]dirname=/storage/ofd_packets [11:09:06]CheckFolder done [11:09:06]ProducePacketName [11:09:06]name=ofd_packets/00049425 [11:09:06]NVStorageSaveData ofd_packets/00049425 [11:09:06]File name is /storage/ofd_packets/00049425 [11:09:06]Write 324 bytes [11:09:06]NVStorageSaveData done [11:09:06]OFDSenderStorePacket done [11:09:06]KKMCreateOFDPacket done [11:09:06]NVStorageSaveData kkm_last_timestamp [11:09:06]File name is /storage/kkm_last_timestamp [11:09:06]Write 4 bytes [11:09:06]NVStorageSaveData done [11:09:06]ExternCall_PrintAddStr [11:09:06]wPrintStart [11:09:06]Write to MH i2c: 01 00 00 43 3F 82 [11:09:06]Write i2c OK [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: 01 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: 01 07 00 [11:09:06]MH_I2C_Read... [11:09:06]Read from MH i2c: 01 07 00 43 3F 00 00 00 00 00 FF 0F 97 [11:09:06]RasterBufferAndPrint [11:09:06]line Счет N : (3)189649 [11:09:06]line ИНН: 02508201610067 [11:09:06]line Контрольно-Кассовый Чек [11:09:06]line ПРОДАЖА [11:09:06]line Товар: 2000036240010 [11:09:06]line Кофе Латте (GABB TRADE) [11:09:06]line 1.000 * 115.00 [11:09:06]line = 115.00 [11:09:06]line НДС 12% НСП 1% [11:09:06]line > о реализуемом товаре [11:09:06]line ИТОГО: 115.00 [11:09:06]line НСП 1% : 1.02 [11:09:06]line НДС 12% : 12.21 [11:09:06]line Наличными: 115.00 [11:09:06]line Безнал.: 0.00 [11:09:06]line Место: АЗС № 95 "Партнер Нефть" [11:09:06]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:09:06]line СНО: Общий режим [11:09:06]line Чек 73 16.08.2024 11:09 [11:09:06]line Смена: 464 ФФД: 1.0 [11:09:06]line ЗНМ: 0300000078 [11:09:06]line РНМ: 0000000000092546 [11:09:06]line Версия ККМ: 001 [11:09:06]line ФМ: 0000000000871800 [11:09:06]line ФД: 49425 [11:09:06]line ФПД: 34291798950098 [11:09:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T110910&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49425&fm=34291798950098&tin=02508201610067®Number=0000000000092546&sum=11500 [11:09:07]line 0 [11:09:07]OFD Sender: Processing packet 49425 [packets to send 21, broken 20] [11:09:07]ProducePacketName [11:09:07]name=ofd_packets/00049425 [11:09:07]OFD Sender: To server: pG, [11:09:07]CommunicateWithHost lk.salyk.kg:30040 [11:09:07]ConnectInit lk.salyk.kg [11:09:07]written 0, free lines is 4095 [11:09:07]Connected sock=10 [11:09:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 64 2D 1E 01 B6 8F 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 56 33 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 11 C1 00 00 35 04 06 00 1F 30 2E 7E C0 D2 6D 24 43 C4 2B 5C 6E DA [11:09:07]Write to MH i2c: 01 00 00 6B 3F AA [11:09:07]Write i2c OK [11:09:07]MH_I2C_Read... [11:09:07]Read from MH i2c: 01 [11:09:07]MH_I2C_Read... [11:09:07]Read from MH i2c: 01 07 00 [11:09:07]MH_I2C_Read... [11:09:07]Read from MH i2c: 01 07 00 6B 3F 00 00 00 00 00 F4 0C B1 [11:09:07]RasterBufferAndPrint [11:09:07]line [11:09:07]line [11:09:07]line [11:09:07]line [11:09:07]line [11:09:07]written 0, free lines is 3322 [11:09:07]MH_Cut [11:09:07]Write to MH i2c: D1 01 00 72 3F 01 83 [11:09:07]Write i2c OK [11:09:07]MH_I2C_Read... [11:09:07]Read from MH i2c: D1 [11:09:07]MH_I2C_Read... [11:09:07]Read from MH i2c: D1 01 00 [11:09:07]MH_I2C_Read... [11:09:07]Read from MH i2c: D1 01 00 72 3F 00 82 [11:09:07]Write to MH i2c: 01 00 00 73 3F B2 [11:09:07]Write i2c OK [11:09:07]MH_I2C_Read... [11:09:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 28 09 47 00 46 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 11 C1 00 00 F4 03 04 00 95 DE BE 66 B6 04 01 00 00 5F E3 6E 99 56 E8 FA EA [11:09:07]CommunicateWithHost err = 0 [11:09:07]CheckOFDResponse [11:09:07]1017 (14) - 77093643461234 [11:09:07]1041 (16) - 0000000000871800 [11:09:07]1040 (4) - 49425 [11:09:07]1012 (4) - 16.08.2024 05:07 [11:09:07]1206 (1) - 0 [11:09:07]OFD Sender: Remove packet 49425 [11:09:07]ProducePacketName [11:09:07]name=ofd_packets/00049425 [11:09:07]NVStorageDeleteData [11:09:07]OFD Sender: No OFD packet to send [11:09:08]*** Cut start [11:09:08]*** Purtial cut [11:09:08]*** Stage 1: CUTSNS_PIN = 1 [11:09:08]Read from MH i2c: 01 [11:09:08]MH_I2C_Read... [11:09:08]*** Stop cut motor [11:09:08]*** Cut end [11:09:08]Read from MH i2c: 01 07 00 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: 01 07 00 73 3F 00 00 00 00 00 FF 0F C7 [11:09:08]process_action close_receipt done [11:09:08]requested_data is exist [11:09:08]produce_requested_data [11:09:08]requested_item fm.sn is exist - process it [11:09:08]wFMCommunicate request_size=4 [11:09:08]MH_SAM_APDU [11:09:08]CAPDU: 80 11 00 00 [11:09:08]Write to MH i2c: E2 08 00 74 3F 80 11 00 00 00 00 00 00 2D [11:09:08]Write i2c OK [11:09:08]MH_I2C_Read... [11:09:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:09:08]Read from MH i2c: E2 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 17 00 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 17 00 74 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 78 [11:09:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:09:08]wFMCommunicate OK [11:09:08]requested_item fd.num is exist - process it [11:09:08]SAM_PROTO_GetFieldsCounters [11:09:08]wFMCommunicate request_size=4 [11:09:08]MH_SAM_APDU [11:09:08]CAPDU: 80 13 00 00 [11:09:08]Write to MH i2c: E2 08 00 75 3F 80 13 00 00 00 00 00 00 30 [11:09:08]Write i2c OK [11:09:08]MH_I2C_Read... [11:09:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:09:08]Read from MH i2c: E2 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 62 00 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 62 00 75 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 11 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [11:09:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 11 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:09:08]wFMCommunicate OK [11:09:08]SAM_PROTO_GetFieldsCounters done [11:09:08]requested_item shift.num is exist - process it [11:09:08]requested_item shift.opened is exist - process it [11:09:08]req_shift_opened [11:09:08]FM_GetShiftState [11:09:08]SAM_PROTO_GetShiftState [11:09:08]wFMCommunicate request_size=4 [11:09:08]MH_SAM_APDU [11:09:08]CAPDU: 80 13 01 00 [11:09:08]Write to MH i2c: E2 08 00 76 3F 80 13 01 00 00 00 00 00 32 [11:09:08]Write i2c OK [11:09:08]MH_I2C_Read... [11:09:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:09:08]Read from MH i2c: E2 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 0E 00 [11:09:08]MH_I2C_Read... [11:09:08]Read from MH i2c: E2 0E 00 76 3F 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 A8 [11:09:08]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [11:09:08]wFMCommunicate OK [11:09:08]SAM_PROTO_GetShiftState done [11:09:08]FM_GetShiftState done [11:09:08]req_shift_opened done [11:09:08]requested_item shift.open_date is exist - process it [11:09:08]req_shift_open_date [11:09:08]req_shift_open_date done [11:09:08]produce_requested_data done [11:09:08]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49425,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [11:09:08]process_action_free close_receipt [11:09:08]json_value_free [11:09:08]json_value_free done [11:09:08]process_json_proto returns [11:09:08]Send response to host [11:09:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49425,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [11:09:08]free response buf [11:09:08]execute_script done [11:09:08]execute_script returns [11:09:08]free content buf [11:09:08]Sock 9.Close socket [11:09:08]Sock 9.Thread stoped [11:09:12]OFD Sender: No OFD packet to send [11:09:17]OFD Sender: No OFD packet to send [11:09:22]OFD Sender: No OFD packet to send [11:09:27]OFD Sender: No OFD packet to send [11:09:33]OFD Sender: No OFD packet to send [11:09:38]OFD Sender: No OFD packet to send [11:09:43]OFD Sender: No OFD packet to send [11:09:48]OFD Sender: No OFD packet to send [11:09:53]OFD Sender: No OFD packet to send [11:09:58]OFD Sender: No OFD packet to send [11:10:03]OFD Sender: No OFD packet to send [11:10:08]OFD Sender: No OFD packet to send [11:10:13]OFD Sender: No OFD packet to send [11:10:18]OFD Sender: No OFD packet to send [11:10:23]OFD Sender: No OFD packet to send [11:10:28]OFD Sender: No OFD packet to send [11:10:33]OFD Sender: No OFD packet to send [11:10:38]OFD Sender: No OFD packet to send [11:10:43]OFD Sender: No OFD packet to send [11:10:48]OFD Sender: No OFD packet to send [11:10:53]OFD Sender: No OFD packet to send [11:10:58]OFD Sender: No OFD packet to send [11:11:03]OFD Sender: No OFD packet to send [11:11:08]OFD Sender: No OFD packet to send [11:11:13]OFD Sender: No OFD packet to send [11:11:18]OFD Sender: No OFD packet to send [11:11:23]OFD Sender: No OFD packet to send [11:11:28]OFD Sender: No OFD packet to send [11:11:33]OFD Sender: No OFD packet to send [11:11:38]OFD Sender: No OFD packet to send [11:11:43]OFD Sender: No OFD packet to send [11:11:48]OFD Sender: No OFD packet to send [11:11:53]OFD Sender: No OFD packet to send [11:11:58]OFD Sender: No OFD packet to send [11:12:03]OFD Sender: No OFD packet to send [11:12:08]OFD Sender: No OFD packet to send [11:12:13]OFD Sender: No OFD packet to send [11:12:18]OFD Sender: No OFD packet to send [11:12:23]OFD Sender: No OFD packet to send [11:12:28]OFD Sender: No OFD packet to send [11:12:33]OFD Sender: No OFD packet to send [11:12:38]OFD Sender: No OFD packet to send [11:12:43]OFD Sender: No OFD packet to send [11:12:48]OFD Sender: No OFD packet to send [11:12:53]OFD Sender: No OFD packet to send [11:12:55]accept exits with 7 [11:12:55]New connection [11:12:55]New thread 3066830180 created [11:12:55]Thread 3066973540 joined [11:12:55]Waiting for new connection... [11:12:55] Sock 7.Parse request [11:12:55]Sock 7.Check first char [11:12:55]Sock 7.First char is OK [11:12:55]request: POST /json_proto HTTP/1.0 [11:12:55]Method: POST [11:12:55]URL: /json_proto [11:12:55]Method is POST - this is cgi request [11:12:55]url: /json_proto [11:12:55]query_string will be loaded in cgi processing [11:12:55]execute_cgi json_proto POST (null) [11:12:55]execute_cgi path=json_proto method=POST [11:12:55]POST find Content-Length [11:12:55]Host: 172.17.46.196:8080 [11:12:55]Content-Length: 632 [11:12:55]Content-Type: application/json [11:12:55] [11:12:55]POST finish read [11:12:55]Found Content-Length = 632 [11:12:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189650", "tax_sys" : 0, "items" : [ { "code": "48745031", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:55]execute_script... [11:12: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 : (3)189650", "tax_sys" : 0, "items" : [ { "code": "48745031", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:12:55]POST & json_proto [11:12:55]process_json_proto [11:12:55]json parsed OK: [11:12:55]protocol is kg_v1.0 [11:12:55]action value=close_receipt [11:12:55]process_action close_receipt [11:12:55]cmd_close_receipt [11:12:55]MH_GetDate [11:12:55]Write to MH i2c: F0 00 00 77 3F A5 [11:12:55]Write i2c OK [11:12:55]MH_I2C_Read... [11:12:55]Read from MH i2c: F0 [11:12:55]MH_I2C_Read... [11:12:55]Read from MH i2c: F0 09 00 [11:12:55]MH_I2C_Read... [11:12:55]Read from MH i2c: F0 09 00 77 3F 00 3D 34 BF 66 07 E8 5D 66 F6 [11:12:55]GetLastDocTimeStamp 1723806550 [11:12:55]current date 1723806781 [11:12:55]FM_GetShiftState [11:12:55]SAM_PROTO_GetShiftState [11:12:55]wFMCommunicate request_size=4 [11:12:55]MH_SAM_APDU [11:12:55]CAPDU: 80 13 01 00 [11:12:55]Write to MH i2c: E2 08 00 78 3F 80 13 01 00 00 00 00 00 34 [11:12:55]Write i2c OK [11:12:55]MH_I2C_Read... [11:12:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:12:56]Read from MH i2c: E2 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 0E 00 [11:12:56]MH_I2C_Read... [11:12:56]Read from MH i2c: E2 0E 00 78 3F 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 AA [11:12:56]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [11:12:56]wFMCommunicate OK [11:12:56]SAM_PROTO_GetShiftState done [11:12:56]FM_GetShiftState done [11:12:56]opened in 1723766958 [11:12:56]opened+sec_in_day 1723853358 [11:12:56]quantity*price = 14000 [11:12:56]sum+1 = 14001 [11:12:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 74 16.08.2024 11:13 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49426 ФПД: 171326463741990 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T111301&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49426&fm=171326463741990&tin=02508201610067®Number=0000000000092546&sum=14000 0 [11:12:57]StoreToDocumentArchive [11:12:57]shift 464 fd 49426 [11:12:57]save to /storage/0464/doc_00049426 [11:12:57]save last doc name /storage/0464/doc_00049426 to /storage/kkm_last_doc_name [11:12:57]save OK [11:12:57]Clear old archive folders... [11:12:57]ProcessDocumentItem done err = 0, tmpTLVsize=284 [11:12:57]tlvbuf is 00EFAE70 [11:12:57]SAM_PROTO_ClearQueue [11:12:57]wFMCommunicate request_size=4 [11:12:57]MH_SAM_APDU [11:12:57]CAPDU: 80 09 00 00 [11:12:57]Write to MH i2c: E2 08 00 85 3F 80 09 00 00 00 00 00 00 36 [11:12:57]Write i2c OK [11:12:57]MH_I2C_Read... [11:12:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:12:57]Read from MH i2c: E2 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 03 00 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 03 00 85 3F 00 90 00 38 [11:12:57]RAPDU: 90 00 [11:12:57]wFMCommunicate OK [11:12:57]SAM_PROTO_ClearQueue done [11:12:57]KKMCreateOFDPacket [11:12:57]OFDProtocolAddRootSTLVToBuf [11:12:57]FM_MakeSignedData [11:12:57]FM_MakeSignedData [11:12:57]SAM_PROTO_SignData [11:12:57]wFMCommunicate request_size=4 [11:12:57]MH_SAM_APDU [11:12:57]CAPDU: 80 0D 01 02 [11:12:57]Write to MH i2c: E2 08 00 86 3F 80 0D 01 02 00 00 00 00 3E [11:12:57]Write i2c OK [11:12:57]MH_I2C_Read... [11:12:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:12:57]Read from MH i2c: E2 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 03 00 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 03 00 86 3F 00 90 00 39 [11:12:57]RAPDU: 90 00 [11:12:57]wFMCommunicate OK [11:12:57]wFMCommunicate request_size=255 [11:12:57]MH_SAM_APDU [11:12:57]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 3D 34 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 [11:12:57]Write to MH i2c: E2 02 01 87 3F 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 3D 34 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 00 00 D9 [11:12:57]Write i2c OK [11:12:57]MH_I2C_Read... [11:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:57]Read from MH i2c: E2 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 03 00 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 03 00 87 3F 00 90 00 3A [11:12:57]RAPDU: 90 00 [11:12:57]wFMCommunicate OK [11:12:57]wFMCommunicate request_size=43 [11:12:57]MH_SAM_APDU [11:12:57]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 12 C1 00 00 35 04 06 00 9B D2 0D 03 10 26 [11:12:57]Write to MH i2c: E2 2E 00 88 3F 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 12 C1 00 00 35 04 06 00 9B D2 0D 03 10 26 00 00 A7 [11:12:57]Write i2c OK [11:12:57]MH_I2C_Read... [11:12:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:12:57]Read from MH i2c: E2 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 03 00 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 03 00 88 3F 00 90 00 3B [11:12:57]RAPDU: 90 00 [11:12:57]wFMCommunicate OK [11:12:57]wFMCommunicate request_size=4 [11:12:57]MH_SAM_APDU [11:12:57]CAPDU: 80 0D 03 02 [11:12:57]Write to MH i2c: E2 08 00 89 3F 80 0D 03 02 00 00 00 00 43 [11:12:57]Write i2c OK [11:12:57]MH_I2C_Read... [11:12:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:12:57]Read from MH i2c: E2 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 0B 00 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 0B 00 89 3F 00 EE 2F E8 BA B9 87 79 E1 90 00 9D [11:12:57]RAPDU: EE 2F E8 BA B9 87 79 E1 90 00 [11:12:57]wFMCommunicate OK [11:12:57]SAM_PROTO_SignData done [11:12:57]FM_MakeSignedData done [11:12:57]CreateOFDProtocolMessage [11:12:57]wFMCommunicate request_size=4 [11:12:57]MH_SAM_APDU [11:12:57]CAPDU: 80 11 00 00 [11:12:57]Write to MH i2c: E2 08 00 8A 3F 80 11 00 00 00 00 00 00 43 [11:12:57]Write i2c OK [11:12:57]MH_I2C_Read... [11:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:12:57]Read from MH i2c: E2 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 17 00 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: E2 17 00 8A 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 8E [11:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:12:57]wFMCommunicate OK [11:12:57]CreateOFDProtocolMessage done [11:12:57]OFDSenderStorePacket 49426 [11:12:57]StoreOFDPacket docnum=49426 [11:12:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 30 01 00 00 54 45 28 01 AB F7 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 3D 34 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 12 C1 00 00 35 04 06 00 9B D2 0D 03 10 26 EE 2F E8 BA B9 87 79 E1 [11:12:57]CheckFolder [11:12:57]dirname=/storage/ofd_packets [11:12:57]CheckFolder done [11:12:57]ProducePacketName [11:12:57]name=ofd_packets/00049426 [11:12:57]NVStorageSaveData ofd_packets/00049426 [11:12:57]File name is /storage/ofd_packets/00049426 [11:12:57]Write 334 bytes [11:12:57]NVStorageSaveData done [11:12:57]OFDSenderStorePacket done [11:12:57]KKMCreateOFDPacket done [11:12:57]NVStorageSaveData kkm_last_timestamp [11:12:57]File name is /storage/kkm_last_timestamp [11:12:57]Write 4 bytes [11:12:57]NVStorageSaveData done [11:12:57]ExternCall_PrintAddStr [11:12:57]wPrintStart [11:12:57]Write to MH i2c: 01 00 00 8B 3F CA [11:12:57]Write i2c OK [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: 01 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: 01 07 00 [11:12:57]MH_I2C_Read... [11:12:57]Read from MH i2c: 01 07 00 8B 3F 00 00 00 00 00 FF 0F DF [11:12:57]RasterBufferAndPrint [11:12:57]line Счет N : (3)189650 [11:12:57]line ИНН: 02508201610067 [11:12:57]line Контрольно-Кассовый Чек [11:12:57]line ПРОДАЖА [11:12:57]line Товар: 48745031 [11:12:57]line Сигареты Winston Superslims Expand Blue [11:12:57]line 1.000 * 140.00 [11:12:57]line = 140.00 [11:12:57]line НДС 12% НСП 1% [11:12:57]line > о реализуемом товаре [11:12:57]line ИТОГО: 140.00 [11:12:57]line НСП 1% : 1.24 [11:12:57]line НДС 12% : 14.87 [11:12:57]line Наличными: 140.00 [11:12:57]line Безнал.: 0.00 [11:12:57]line Место: АЗС № 95 "Партнер Нефть" [11:12:57]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:12:57]line СНО: Общий режим [11:12:57]line Чек 74 16.08.2024 11:13 [11:12:57]line Смена: 464 ФФД: 1.0 [11:12:57]line ЗНМ: 0300000078 [11:12:57]line РНМ: 0000000000092546 [11:12:57]line Версия ККМ: 001 [11:12:57]line ФМ: 0000000000871800 [11:12:57]line ФД: 49426 [11:12:57]line ФПД: 171326463741990 [11:12:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T111301&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49426&fm=171326463741990&tin=02508201610067®Number=0000000000092546&sum=14000 [11:12:58]line 0 [11:12:58]OFD Sender: Processing packet 49426 [packets to send 21, broken 20] [11:12:58]ProducePacketName [11:12:58]name=ofd_packets/00049426 [11:12:58]OFD Sender: To server: pG, [11:12:58]CommunicateWithHost lk.salyk.kg:30040 [11:12:58]ConnectInit lk.salyk.kg [11:12:58]written 0, free lines is 4095 [11:12:58]Connected sock=10 [11:12:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 30 01 00 00 54 45 28 01 AB F7 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 3D 34 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 12 C1 00 00 35 04 06 00 9B D2 0D 03 10 26 EE 2F E8 BA B9 87 79 E1 [11:12:58]Write to MH i2c: 01 00 00 B4 3F F3 [11:12:58]Write i2c OK [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: 01 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: 01 07 00 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: 01 07 00 B4 3F 00 00 00 00 00 CD 0C D3 [11:12:58]RasterBufferAndPrint [11:12:58]line [11:12:58]line [11:12:58]line [11:12:58]line [11:12:58]line [11:12:58]written 0, free lines is 3283 [11:12:58]MH_Cut [11:12:58]Write to MH i2c: D1 01 00 BB 3F 01 CC [11:12:58]Write i2c OK [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: D1 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: D1 01 00 [11:12:58]MH_I2C_Read... [11:12:58]Read from MH i2c: D1 01 00 BB 3F 00 CB [11:12:58]Write to MH i2c: 01 00 00 BC 3F FB [11:12:58]Write i2c OK [11:12:58]MH_I2C_Read... [11:12:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 99 8E 47 00 EA 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 12 C1 00 00 F4 03 04 00 7C DF BE 66 B6 04 01 00 00 DD 96 74 87 95 8C DD 92 [11:12:58]CommunicateWithHost err = 0 [11:12:58]CheckOFDResponse [11:12:58]1017 (14) - 77093643461234 [11:12:58]1041 (16) - 0000000000871800 [11:12:58]1040 (4) - 49426 [11:12:58]1012 (4) - 16.08.2024 05:11 [11:12:58]1206 (1) - 0 [11:12:58]OFD Sender: Remove packet 49426 [11:12:58]ProducePacketName [11:12:58]name=ofd_packets/00049426 [11:12:58]NVStorageDeleteData [11:12:59]OFD Sender: No OFD packet to send [11:12:59]*** Cut start [11:12:59]*** Purtial cut [11:12:59]*** CUTSNS_PIN = 0 [11:12:59]*** Stage 1: CUTSNS_PIN = 1 [11:13:01]Read from MH i2c: 01 [11:13:01]MH_I2C_Read... [11:13:01]*** Stop cut motor [11:13:01]*** Cut end [11:13:01]Read from MH i2c: 01 07 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: 01 07 00 BC 3F 00 00 00 00 00 FF 0F 10 [11:13:01]process_action close_receipt done [11:13:01]requested_data is exist [11:13:01]produce_requested_data [11:13:01]requested_item fm.sn is exist - process it [11:13:01]wFMCommunicate request_size=4 [11:13:01]MH_SAM_APDU [11:13:01]CAPDU: 80 11 00 00 [11:13:01]Write to MH i2c: E2 08 00 BD 3F 80 11 00 00 00 00 00 00 76 [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:01]Read from MH i2c: E2 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 17 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 17 00 BD 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C1 [11:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:13:01]wFMCommunicate OK [11:13:01]requested_item fd.num is exist - process it [11:13:01]SAM_PROTO_GetFieldsCounters [11:13:01]wFMCommunicate request_size=4 [11:13:01]MH_SAM_APDU [11:13:01]CAPDU: 80 13 00 00 [11:13:01]Write to MH i2c: E2 08 00 BE 3F 80 13 00 00 00 00 00 00 79 [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:01]Read from MH i2c: E2 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 62 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 62 00 BE 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 12 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [11:13:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 12 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:01]wFMCommunicate OK [11:13:01]SAM_PROTO_GetFieldsCounters done [11:13:01]requested_item shift.num is exist - process it [11:13:01]requested_item shift.opened is exist - process it [11:13:01]req_shift_opened [11:13:01]FM_GetShiftState [11:13:01]SAM_PROTO_GetShiftState [11:13:01]wFMCommunicate request_size=4 [11:13:01]MH_SAM_APDU [11:13:01]CAPDU: 80 13 01 00 [11:13:01]Write to MH i2c: E2 08 00 BF 3F 80 13 01 00 00 00 00 00 7B [11:13:01]Write i2c OK [11:13:01]MH_I2C_Read... [11:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:01]Read from MH i2c: E2 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 0E 00 [11:13:01]MH_I2C_Read... [11:13:01]Read from MH i2c: E2 0E 00 BF 3F 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 F1 [11:13:01]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [11:13:01]wFMCommunicate OK [11:13:01]SAM_PROTO_GetShiftState done [11:13:01]FM_GetShiftState done [11:13:01]req_shift_opened done [11:13:01]requested_item shift.open_date is exist - process it [11:13:01]req_shift_open_date [11:13:01]req_shift_open_date done [11:13:01]produce_requested_data done [11:13:01]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49426,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [11:13:01]process_action_free close_receipt [11:13:01]json_value_free [11:13:01]json_value_free done [11:13:01]process_json_proto returns [11:13:01]Send response to host [11:13:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49426,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [11:13:01]free response buf [11:13:01]execute_script done [11:13:01]execute_script returns [11:13:01]free content buf [11:13:01]Sock 7.Close socket [11:13:01]Sock 7.Thread stoped [11:13:04]OFD Sender: No OFD packet to send [11:13:08]accept exits with 9 [11:13:08]New connection [11:13:08]New thread 3066973540 created [11:13:08]Thread 3066830180 joined [11:13:08]Waiting for new connection... [11:13:08] Sock 9.Parse request [11:13:08]Sock 9.Check first char [11:13:08]Sock 9.First char is OK [11:13:08]request: POST /json_proto HTTP/1.0 [11:13:08]Method: POST [11:13:08]URL: /json_proto [11:13:08]Method is POST - this is cgi request [11:13:08]url: /json_proto [11:13:08]query_string will be loaded in cgi processing [11:13:08]execute_cgi json_proto POST (null) [11:13:08]execute_cgi path=json_proto method=POST [11:13:08]POST find Content-Length [11:13:08]Host: 172.17.46.196:8080 [11:13:08]Content-Length: 813 [11:13:08]Content-Type: application/json [11:13:08] [11:13:08]POST finish read [11:13:08]Found Content-Length = 813 [11:13:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189651", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:08]execute_script... [11:13: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 : (3)189651", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:13:08]POST & json_proto [11:13:08]process_json_proto [11:13:08]json parsed OK: [11:13:08]protocol is kg_v1.0 [11:13:08]action value=close_receipt [11:13:08]process_action close_receipt [11:13:08]cmd_close_receipt [11:13:08]MH_GetDate [11:13:08]Write to MH i2c: F0 00 00 C0 3F EE [11:13:08]Write i2c OK [11:13:08]MH_I2C_Read... [11:13:08]Read from MH i2c: F0 [11:13:08]MH_I2C_Read... [11:13:08]Read from MH i2c: F0 09 00 [11:13:08]MH_I2C_Read... [11:13:08]Read from MH i2c: F0 09 00 C0 3F 00 4A 34 BF 66 07 E8 5D 66 4C [11:13:08]GetLastDocTimeStamp 1723806781 [11:13:08]current date 1723806794 [11:13:08]FM_GetShiftState [11:13:08]SAM_PROTO_GetShiftState [11:13:08]wFMCommunicate request_size=4 [11:13:08]MH_SAM_APDU [11:13:08]CAPDU: 80 13 01 00 [11:13:08]Write to MH i2c: E2 08 00 C1 3F 80 13 01 00 00 00 00 00 7D [11:13:08]Write i2c OK [11:13:08]MH_I2C_Read... [11:13:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:08]Read from MH i2c: E2 [11:13:08]MH_I2C_Read... [11:13:08]Read from MH i2c: E2 0E 00 [11:13:08]MH_I2C_Read... [11:13:08]Read from MH i2c: E2 0E 00 C1 3F 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 F3 [11:13:08]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [11:13:08]wFMCommunicate OK [11:13:08]SAM_PROTO_GetShiftState done [11:13:08]FM_GetShiftState done [11:13:08]opened in 1723766958 [11:13:08]opened+sec_in_day 1723853358 [11:13:08]quantity*price = 12500 [11:13:08]sum+1 = 12501 [11:13:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 75 16.08.2024 11:13 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49427 ФПД: 271242076480431 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T111314&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49427&fm=271242076480431&tin=02508201610067®Number=0000000000092546&sum=12500 0 [11:13:09]StoreToDocumentArchive [11:13:09]shift 464 fd 49427 [11:13:09]save to /storage/0464/doc_00049427 [11:13:09]save last doc name /storage/0464/doc_00049427 to /storage/kkm_last_doc_name [11:13:09]save OK [11:13:09]Clear old archive folders... [11:13:09]ProcessDocumentItem done err = 0, tmpTLVsize=284 [11:13:09]tlvbuf is 00F191F0 [11:13:09]SAM_PROTO_ClearQueue [11:13:09]wFMCommunicate request_size=4 [11:13:09]MH_SAM_APDU [11:13:09]CAPDU: 80 09 00 00 [11:13:09]Write to MH i2c: E2 08 00 CE 3F 80 09 00 00 00 00 00 00 7F [11:13:09]Write i2c OK [11:13:09]MH_I2C_Read... [11:13:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:10]Read from MH i2c: E2 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 03 00 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 03 00 CE 3F 00 90 00 81 [11:13:10]RAPDU: 90 00 [11:13:10]wFMCommunicate OK [11:13:10]SAM_PROTO_ClearQueue done [11:13:10]KKMCreateOFDPacket [11:13:10]OFDProtocolAddRootSTLVToBuf [11:13:10]FM_MakeSignedData [11:13:10]FM_MakeSignedData [11:13:10]SAM_PROTO_SignData [11:13:10]wFMCommunicate request_size=4 [11:13:10]MH_SAM_APDU [11:13:10]CAPDU: 80 0D 01 02 [11:13:10]Write to MH i2c: E2 08 00 CF 3F 80 0D 01 02 00 00 00 00 87 [11:13:10]Write i2c OK [11:13:10]MH_I2C_Read... [11:13:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:10]Read from MH i2c: E2 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 03 00 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 03 00 CF 3F 00 90 00 82 [11:13:10]RAPDU: 90 00 [11:13:10]wFMCommunicate OK [11:13:10]wFMCommunicate request_size=255 [11:13:10]MH_SAM_APDU [11:13:10]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 4A 34 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 [11:13:10]Write to MH i2c: E2 02 01 D0 3F 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 4A 34 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 00 00 E9 [11:13:10]Write i2c OK [11:13:10]MH_I2C_Read... [11:13:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:10]Read from MH i2c: E2 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 03 00 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 03 00 D0 3F 00 90 00 83 [11:13:10]RAPDU: 90 00 [11:13:10]wFMCommunicate OK [11:13:10]wFMCommunicate request_size=43 [11:13:10]MH_SAM_APDU [11:13:10]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 13 C1 00 00 35 04 06 00 F6 B1 77 9D E3 AF [11:13:10]Write to MH i2c: E2 2E 00 D1 3F 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 13 C1 00 00 35 04 06 00 F6 B1 77 9D E3 AF 00 00 8B [11:13:10]Write i2c OK [11:13:10]MH_I2C_Read... [11:13:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:10]Read from MH i2c: E2 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 03 00 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 03 00 D1 3F 00 90 00 84 [11:13:10]RAPDU: 90 00 [11:13:10]wFMCommunicate OK [11:13:10]wFMCommunicate request_size=4 [11:13:10]MH_SAM_APDU [11:13:10]CAPDU: 80 0D 03 02 [11:13:10]Write to MH i2c: E2 08 00 D2 3F 80 0D 03 02 00 00 00 00 8C [11:13:10]Write i2c OK [11:13:10]MH_I2C_Read... [11:13:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:10]Read from MH i2c: E2 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 0B 00 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 0B 00 D2 3F 00 D9 94 9D AC 30 33 A7 DD 90 00 2A [11:13:10]RAPDU: D9 94 9D AC 30 33 A7 DD 90 00 [11:13:10]wFMCommunicate OK [11:13:10]SAM_PROTO_SignData done [11:13:10]FM_MakeSignedData done [11:13:10]CreateOFDProtocolMessage [11:13:10]wFMCommunicate request_size=4 [11:13:10]MH_SAM_APDU [11:13:10]CAPDU: 80 11 00 00 [11:13:10]Write to MH i2c: E2 08 00 D3 3F 80 11 00 00 00 00 00 00 8C [11:13:10]Write i2c OK [11:13:10]MH_I2C_Read... [11:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:10]Read from MH i2c: E2 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 17 00 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: E2 17 00 D3 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D7 [11:13:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:13:10]wFMCommunicate OK [11:13:10]CreateOFDProtocolMessage done [11:13:10]OFDSenderStorePacket 49427 [11:13:10]StoreOFDPacket docnum=49427 [11:13:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 30 01 00 00 09 EE 28 01 1D 6F 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 4A 34 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 13 C1 00 00 35 04 06 00 F6 B1 77 9D E3 AF D9 94 9D AC 30 33 A7 DD [11:13:10]CheckFolder [11:13:10]dirname=/storage/ofd_packets [11:13:10]CheckFolder done [11:13:10]ProducePacketName [11:13:10]name=ofd_packets/00049427 [11:13:10]NVStorageSaveData ofd_packets/00049427 [11:13:10]File name is /storage/ofd_packets/00049427 [11:13:10]Write 334 bytes [11:13:10]NVStorageSaveData done [11:13:10]OFDSenderStorePacket done [11:13:10]KKMCreateOFDPacket done [11:13:10]NVStorageSaveData kkm_last_timestamp [11:13:10]File name is /storage/kkm_last_timestamp [11:13:10]Write 4 bytes [11:13:10]NVStorageSaveData done [11:13:10]ExternCall_PrintAddStr [11:13:10]wPrintStart [11:13:10]Write to MH i2c: 01 00 00 D4 3F 13 [11:13:10]Write i2c OK [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: 01 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: 01 07 00 [11:13:10]MH_I2C_Read... [11:13:10]Read from MH i2c: 01 07 00 D4 3F 00 00 00 00 00 FF 0F 28 [11:13:10]RasterBufferAndPrint [11:13:10]line Счет N : (3)189651 [11:13:10]line ИНН: 02508201610067 [11:13:10]line Контрольно-Кассовый Чек [11:13:10]line ПРОДАЖА [11:13:10]line Товар: 2000036190018 [11:13:10]line Кофе Американо XL(GABB TRADE) [11:13:10]line 1.000 * 125.00 [11:13:10]line = 125.00 [11:13:10]line НДС 12% НСП 1% [11:13:10]line > о реализуемом товаре [11:13:10]line ИТОГО: 125.00 [11:13:10]line НСП 1% : 1.11 [11:13:10]line НДС 12% : 13.27 [11:13:10]line Наличными: 0.00 [11:13:10]line Безнал.: 125.00 [11:13:10]line Место: АЗС № 95 "Партнер Нефть" [11:13:10]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:13:10]line СНО: Общий режим [11:13:10]line Чек 75 16.08.2024 11:13 [11:13:10]line Смена: 464 ФФД: 1.0 [11:13:10]line ЗНМ: 0300000078 [11:13:10]line РНМ: 0000000000092546 [11:13:10]line Версия ККМ: 001 [11:13:10]line Платежная система: O! деньги [11:13:10]line ФМ: 0000000000871800 [11:13:10]line ФД: 49427 [11:13:10]line ФПД: 271242076480431 [11:13:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T111314&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49427&fm=271242076480431&tin=02508201610067®Number=0000000000092546&sum=12500 [11:13:10]line 0 [11:13:10]written 0, free lines is 4095 [11:13:10]OFD Sender: Processing packet 49427 [packets to send 21, broken 20] [11:13:10]ProducePacketName [11:13:10]name=ofd_packets/00049427 [11:13:10]OFD Sender: To server: pG, [11:13:10]CommunicateWithHost lk.salyk.kg:30040 [11:13:10]ConnectInit lk.salyk.kg [11:13:10]Connected sock=10 [11:13:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 30 01 00 00 09 EE 28 01 1D 6F 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 4A 34 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 13 C1 00 00 35 04 06 00 F6 B1 77 9D E3 AF D9 94 9D AC 30 33 A7 DD [11:13:11]Write to MH i2c: 01 00 00 FF 3F 3E [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: 01 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: 01 07 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: 01 07 00 FF 3F 00 00 00 00 00 CF 0C 20 [11:13:11]RasterBufferAndPrint [11:13:11]line [11:13:11]line [11:13:11]line [11:13:11]line [11:13:11]line [11:13:11]written 0, free lines is 3285 [11:13:11]MH_Cut [11:13:11]Write to MH i2c: D1 01 00 06 40 01 18 [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: D1 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: D1 01 00 [11:13:11]MH_I2C_Read... [11:13:11]Read from MH i2c: D1 01 00 06 40 00 17 [11:13:11]Write to MH i2c: 01 00 00 07 40 47 [11:13:11]Write i2c OK [11:13:11]MH_I2C_Read... [11:13:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 24 DD 47 00 0C 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 38 37 31 38 30 30 10 04 04 00 13 C1 00 00 F4 03 04 00 88 DF BE 66 B6 04 01 00 00 FD 1F ED F1 A5 48 74 C2 [11:13:11]CommunicateWithHost err = 0 [11:13:11]CheckOFDResponse [11:13:11]1017 (14) - 77093643461234 [11:13:11]1041 (16) - 0000000000871800 [11:13:11]1040 (4) - 49427 [11:13:11]1012 (4) - 16.08.2024 05:11 [11:13:11]1206 (1) - 0 [11:13:11]OFD Sender: Remove packet 49427 [11:13:11]ProducePacketName [11:13:11]name=ofd_packets/00049427 [11:13:11]NVStorageDeleteData [11:13:11]OFD Sender: No OFD packet to send [11:13:11]*** Cut start [11:13:11]*** Purtial cut [11:13:11]*** Stage 1: CUTSNS_PIN = 1 [11:13:12]Read from MH i2c: 01 [11:13:12]MH_I2C_Read... [11:13:12]*** Stop cut motor [11:13:12]*** Cut end [11:13:12]Read from MH i2c: 01 07 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: 01 07 00 07 40 00 00 00 00 00 FF 0F 5C [11:13:12]process_action close_receipt done [11:13:12]requested_data is exist [11:13:12]produce_requested_data [11:13:12]requested_item fm.sn is exist - process it [11:13:12]wFMCommunicate request_size=4 [11:13:12]MH_SAM_APDU [11:13:12]CAPDU: 80 11 00 00 [11:13:12]Write to MH i2c: E2 08 00 08 40 80 11 00 00 00 00 00 00 C2 [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 [11:13:12]MH_I2C_Read... [11:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:12]Read from MH i2c: E2 17 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 17 00 08 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 0D [11:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:13:12]wFMCommunicate OK [11:13:12]requested_item fd.num is exist - process it [11:13:12]SAM_PROTO_GetFieldsCounters [11:13:12]wFMCommunicate request_size=4 [11:13:12]MH_SAM_APDU [11:13:12]CAPDU: 80 13 00 00 [11:13:12]Write to MH i2c: E2 08 00 09 40 80 13 00 00 00 00 00 00 C5 [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:12]Read from MH i2c: E2 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 62 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 62 00 09 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 13 C1 00 00 0E 04 04 00 D0 01 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 65 [11:13:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 13 C1 00 00 0E 04 04 00 D0 01 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 [11:13:12]wFMCommunicate OK [11:13:12]SAM_PROTO_GetFieldsCounters done [11:13:12]requested_item shift.num is exist - process it [11:13:12]requested_item shift.opened is exist - process it [11:13:12]req_shift_opened [11:13:12]FM_GetShiftState [11:13:12]SAM_PROTO_GetShiftState [11:13:12]wFMCommunicate request_size=4 [11:13:12]MH_SAM_APDU [11:13:12]CAPDU: 80 13 01 00 [11:13:12]Write to MH i2c: E2 08 00 0A 40 80 13 01 00 00 00 00 00 C7 [11:13:12]Write i2c OK [11:13:12]MH_I2C_Read... [11:13:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:12]Read from MH i2c: E2 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 0E 00 [11:13:12]MH_I2C_Read... [11:13:12]Read from MH i2c: E2 0E 00 0A 40 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 3D [11:13:12]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [11:13:12]wFMCommunicate OK [11:13:12]SAM_PROTO_GetShiftState done [11:13:12]FM_GetShiftState done [11:13:12]req_shift_opened done [11:13:12]requested_item shift.open_date is exist - process it [11:13:12]req_shift_open_date [11:13:12]req_shift_open_date done [11:13:12]produce_requested_data done [11:13:12]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49427,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [11:13:12]process_action_free close_receipt [11:13:12]json_value_free [11:13:12]json_value_free done [11:13:12]process_json_proto returns [11:13:12]Send response to host [11:13:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49427,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [11:13:12]free response buf [11:13:12]execute_script done [11:13:12]execute_script returns [11:13:12]free content buf [11:13:12]Sock 9.Close socket [11:13:12]Sock 9.Thread stoped [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:22:52]ConnectInit Can't connect to host [11:22:56]OFD Sender: Processing packet 49428 [packets to send 21, broken 20] [11:22:56]ProducePacketName [11:22:56]name=ofd_packets/00049428 [11:22:56]OFD Sender: To server: pG, [11:22:56]CommunicateWithHost lk.salyk.kg:30040 [11:22:56]ConnectInit lk.salyk.kg [11:22:56]Connected sock=7 [11:22:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 26 10 04 01 F8 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 54 38 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 F4 35 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 14 C1 00 00 35 04 06 00 A4 93 C4 6A CA 6A 5E 50 54 52 C1 5D 64 A8 [11:22:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 8C 64 47 00 BC 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 38 37 31 38 30 30 10 04 04 00 14 C1 00 00 F4 03 04 00 D2 E1 BE 66 B6 04 01 00 00 89 F5 18 4B 6E 7A 88 76 [11:22:57]CommunicateWithHost err = 0 [11:22:57]CheckOFDResponse [11:22:57]1017 (14) - 77093643461234 [11:22:57]1041 (16) - 0000000000871800 [11:22:57]1040 (4) - 49428 [11:22:57]1012 (4) - 16.08.2024 05:21 [11:22:57]1206 (1) - 0 [11:22:57]OFD Sender: Remove packet 49428 [11:22:57]ProducePacketName [11:22:57]name=ofd_packets/00049428 [11:22:57]NVStorageDeleteData [11:22:57]OFD Sender: No OFD packet to send [11:22:58]accept exits with 9 [11:22:58]New connection [11:22:58]New thread 3066973540 created [11:22:58]Thread 3066830180 joined [11:22:58]Waiting for new connection... [11:22:58] Sock 9.Parse request [11:22:58]Sock 9.Check first char [11:22:58]Sock 9.First char is OK [11:22:58]request: POST /json_proto HTTP/1.0 [11:22:58]Method: POST [11:22:58]URL: /json_proto [11:22:58]Method is POST - this is cgi request [11:22:58]url: /json_proto [11:22:58]query_string will be loaded in cgi processing [11:22:58]execute_cgi json_proto POST (null) [11:22:58]execute_cgi path=json_proto method=POST [11:22:58]POST find Content-Length [11:22:58]Host: 172.17.46.196:8080 [11:22:58]Content-Length: 1166 [11:22:58]Content-Type: application/json [11:22:58] [11:22:58]POST finish read [11:22:58]Found Content-Length = 1166 [11:22:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189652", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 153.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:58]execute_script... [11:22:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189652", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 1.000, "sum" : 7.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 153.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:58]POST & json_proto [11:22:58]process_json_proto [11:22:58]json parsed OK: [11:22:58]protocol is kg_v1.0 [11:22:58]action value=close_receipt [11:22:58]process_action close_receipt [11:22:58]cmd_close_receipt [11:22:58]MH_GetDate [11:22:58]Write to MH i2c: F0 00 00 55 40 84 [11:22:58]Write i2c OK [11:22:58]MH_I2C_Read... [11:22:58]Read from MH i2c: F0 [11:22:58]MH_I2C_Read... [11:22:58]Read from MH i2c: F0 09 00 [11:22:58]MH_I2C_Read... [11:22:58]Read from MH i2c: F0 09 00 55 40 00 97 36 BF 66 07 E8 5D 66 31 [11:22:58]GetLastDocTimeStamp 1723807220 [11:22:58]current date 1723807383 [11:22:58]FM_GetShiftState [11:22:58]SAM_PROTO_GetShiftState [11:22:58]wFMCommunicate request_size=4 [11:22:58]MH_SAM_APDU [11:22:58]CAPDU: 80 13 01 00 [11:22:58]Write to MH i2c: E2 08 00 56 40 80 13 01 00 00 00 00 00 13 [11:22:58]Write i2c OK [11:22:58]MH_I2C_Read... [11:22:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:58]Read from MH i2c: E2 [11:22:58]MH_I2C_Read... [11:22:58]Read from MH i2c: E2 0E 00 [11:22:58]MH_I2C_Read... [11:22:58]Read from MH i2c: E2 0E 00 56 40 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 89 [11:22:58]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [11:22:58]wFMCommunicate OK [11:22:58]SAM_PROTO_GetShiftState done [11:22:58]FM_GetShiftState done [11:22:58]opened in 1723766958 [11:22:58]opened+sec_in_day 1723853358 [11:22:58]quantity*price = 11100 [11:22:58]sum+1 = 11101 [11:22:58]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310326 Вода Адыгене 1л б/г 1.000 * 35.00 = 35.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 1.000 * 7.00 = 7.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 153.00 НСП 1% : 1.35 НДС 12% : 16.25 Наличными: 153.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 77 16.08.2024 11:23 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49429 ФПД: 22619480959267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T112303&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49429&fm=22619480959267&tin=02508201610067®Number=0000000000092546&sum=15300 0 [11:22:59]StoreToDocumentArchive [11:22:59]shift 464 fd 49429 [11:22:59]save to /storage/0464/doc_00049429 [11:22:59]save last doc name /storage/0464/doc_00049429 to /storage/kkm_last_doc_name [11:22:59]save OK [11:22:59]Clear old archive folders... [11:22:59]ProcessDocumentItem done err = 0, tmpTLVsize=488 [11:22:59]tlvbuf is B6F5DCC0 [11:22:59]SAM_PROTO_ClearQueue [11:22:59]wFMCommunicate request_size=4 [11:22:59]MH_SAM_APDU [11:22:59]CAPDU: 80 09 00 00 [11:22:59]Write to MH i2c: E2 08 00 63 40 80 09 00 00 00 00 00 00 15 [11:22:59]Write i2c OK [11:22:59]MH_I2C_Read... [11:22:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:59]Read from MH i2c: E2 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: E2 03 00 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: E2 03 00 63 40 00 90 00 17 [11:22:59]RAPDU: 90 00 [11:22:59]wFMCommunicate OK [11:22:59]SAM_PROTO_ClearQueue done [11:22:59]KKMCreateOFDPacket [11:22:59]OFDProtocolAddRootSTLVToBuf [11:22:59]FM_MakeSignedData [11:22:59]FM_MakeSignedData [11:22:59]SAM_PROTO_SignData [11:22:59]wFMCommunicate request_size=4 [11:22:59]MH_SAM_APDU [11:22:59]CAPDU: 80 0D 01 02 [11:22:59]Write to MH i2c: E2 08 00 64 40 80 0D 01 02 00 00 00 00 1D [11:22:59]Write i2c OK [11:22:59]MH_I2C_Read... [11:22:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:59]Read from MH i2c: E2 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: E2 03 00 [11:22:59]MH_I2C_Read... [11:22:59]Read from MH i2c: E2 03 00 64 40 00 90 00 18 [11:22:59]RAPDU: 90 00 [11:22:59]wFMCommunicate OK [11:22:59]wFMCommunicate request_size=255 [11:22:59]MH_SAM_APDU [11:22:59]CAPDU: 80 0D 02 02 FA 03 00 E8 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 [11:22:59]Write to MH i2c: E2 02 01 65 40 80 0D 02 02 FA 00 03 00 E8 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 00 00 61 [11:22:59]Write i2c OK [11:22:59]MH_I2C_Read... [11:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:00]Read from MH i2c: E2 [11:23:00]MH_I2C_Read... [11:23:00]Read from MH i2c: E2 03 00 [11:23:00]MH_I2C_Read... [11:23:00]Read from MH i2c: E2 03 00 65 40 00 90 00 19 [11:23:00]RAPDU: 90 00 [11:23:00]wFMCommunicate OK [11:23:00]wFMCommunicate request_size=247 [11:23:00]MH_SAM_APDU [11:23:00]CAPDU: 80 0D 02 02 F2 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 06 00 00 00 00 07 04 06 00 C4 3B 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 97 36 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 15 C1 00 00 35 04 06 00 14 92 82 20 A9 23 [11:23:00]Write to MH i2c: E2 FA 00 66 40 80 0D 02 02 F2 00 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 06 00 00 00 00 07 04 06 00 C4 3B 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 97 36 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 15 C1 00 00 35 04 06 00 14 92 82 20 A9 23 00 00 5B [11:23:00]Write i2c OK [11:23:00]MH_I2C_Read... [11:23:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:23:00]Read from MH i2c: E2 [11:23:00]MH_I2C_Read... [11:23:00]Read from MH i2c: E2 03 00 [11:23:00]MH_I2C_Read... [11:23:00]Read from MH i2c: E2 03 00 66 40 00 90 00 1A [11:23:00]RAPDU: 90 00 [11:23:00]wFMCommunicate OK [11:23:00]wFMCommunicate request_size=4 [11:23:00]MH_SAM_APDU [11:23:00]CAPDU: 80 0D 03 02 [11:23:00]Write to MH i2c: E2 08 00 67 40 80 0D 03 02 00 00 00 00 22 [11:23:00]Write i2c OK [11:23:00]MH_I2C_Read... [11:23:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:23:00]Read from MH i2c: E2 [11:23:00]MH_I2C_Read... [11:23:00]Read from MH i2c: E2 0B 00 [11:23:00]MH_I2C_Read... [11:23:00]Read from MH i2c: E2 0B 00 67 40 00 99 02 C8 FD 1B 86 52 26 90 00 9C [11:23:00]RAPDU: 99 02 C8 FD 1B 86 52 26 90 00 [11:23:00]wFMCommunicate OK [11:23:00]SAM_PROTO_SignData done [11:23:00]FM_MakeSignedData done [11:23:00]CreateOFDProtocolMessage [11:23:00]wFMCommunicate request_size=4 [11:23:00]MH_SAM_APDU [11:23:00]CAPDU: 80 11 00 00 [11:23:00]Write to MH i2c: E2 08 00 68 40 80 11 00 00 00 00 00 00 22 [11:23:00]Write i2c OK [11:23:00]MH_I2C_Read... [11:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:00]Read from MH i2c: E2 [11:23:00]MH_I2C_Read... [11:23:00]Read from MH i2c: E2 17 00 [11:23:00]MH_I2C_Read... [11:23:00]Read from MH i2c: E2 17 00 68 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6D [11:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:23:00]wFMCommunicate OK [11:23:00]CreateOFDProtocolMessage done [11:23:00]OFDSenderStorePacket 49429 [11:23:00]StoreOFDPacket docnum=49429 [11:23:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 FC 01 00 00 B4 3F F4 01 B8 E4 5A 03 01 00 03 00 E8 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 06 00 00 00 00 07 04 06 00 C4 3B 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 97 36 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 15 C1 00 00 35 04 06 00 14 92 82 20 A9 23 99 02 C8 FD 1B 86 52 26 [11:23:00]CheckFolder [11:23:00]dirname=/storage/ofd_packets [11:23:00]CheckFolder done [11:23:00]ProducePacketName [11:23:00]name=ofd_packets/00049429 [11:23:00]NVStorageSaveData ofd_packets/00049429 [11:23:00]File name is /storage/ofd_packets/00049429 [11:23:00]Write 538 bytes [11:23:00]NVStorageSaveData done [11:23:00]OFDSenderStorePacket done [11:23:00]KKMCreateOFDPacket done [11:23:00]NVStorageSaveData kkm_last_timestamp [11:23:00]File name is /storage/kkm_last_timestamp [11:23:00]Write 4 bytes [11:23:00]NVStorageSaveData done [11:23:00]ExternCall_PrintAddStr [11:23:00]wPrintStart [11:23:00]Write to MH i2c: 01 00 00 69 40 A9 [11:23:00]Write i2c OK [11:23:00]MH_I2C_Read... [11:23:00]Read from MH i2c: 01 [11:23:00]MH_I2C_Read... [11:23:00]Read from MH i2c: 01 07 00 [11:23:00]MH_I2C_Read... [11:23:00]Read from MH i2c: 01 07 00 69 40 00 00 00 00 00 FF 0F BE [11:23:00]RasterBufferAndPrint [11:23:00]line Счет N : (3)189652 [11:23:00]line ИНН: 02508201610067 [11:23:00]line Контрольно-Кассовый Чек [11:23:00]line ПРОДАЖА [11:23:00]line Товар: 4870001570071 [11:23:00]line Напиток Pepsi 1л [11:23:00]line 1.000 * 111.00 [11:23:00]line = 111.00 [11:23:00]line НДС 12% НСП 1% [11:23:00]line > о реализуемом товаре [11:23:00]line Товар: 4700000310326 [11:23:00]line Вода Адыгене 1л б/г [11:23:00]line 1.000 * 35.00 [11:23:00]line = 35.00 [11:23:00]line НДС 12% НСП 1% [11:23:00]line > о реализуемом товаре [11:23:00]line Товар: 2000053020015 [11:23:00]line Бумажные стаканы 250мл 1шт [11:23:00]line 1.000 * 7.00 [11:23:00]line = 7.00 [11:23:00]line НДС 12% НСП 1% [11:23:00]line > о реализуемом товаре [11:23:00]line ИТОГО: 153.00 [11:23:00]line НСП 1% : 1.35 [11:23:00]line НДС 12% : 16.25 [11:23:00]line Наличными: 153.00 [11:23:00]line Безнал.: 0.00 [11:23:00]line Место: АЗС № 95 "Партнер Нефть" [11:23:00]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:23:00]line СНО: Общий режим [11:23:00]line Чек 77 16.08.2024 11:23 [11:23:00]line Смена: 464 ФФД: 1.0 [11:23:00]line ЗНМ: 0300000078 [11:23:00]line РНМ: 0000000000092546 [11:23:00]line Версия ККМ: 001 [11:23:00]line ФМ: 0000000000871800 [11:23:00]line ФД: 49429 [11:23:00]line ФПД: 22619480959267 [11:23:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T112303&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49429&fm=22619480959267&tin=02508201610067®Number=0000000000092546&sum=15300 [11:23:00]line 0 [11:23:00]written 0, free lines is 4095 [11:23:00]OFD Sender: Processing packet 49429 [packets to send 21, broken 20] [11:23:00]ProducePacketName [11:23:00]name=ofd_packets/00049429 [11:23:00]OFD Sender: To server: pG, [11:23:00]CommunicateWithHost lk.salyk.kg:30040 [11:23:00]ConnectInit lk.salyk.kg [11:23:00]Connected sock=10 [11:23:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 FC 01 00 00 B4 3F F4 01 B8 E4 5A 03 01 00 03 00 E8 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 87 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 59 06 00 00 00 00 07 04 06 00 C4 3B 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 97 36 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 15 C1 00 00 35 04 06 00 14 92 82 20 A9 23 99 02 C8 FD 1B 86 52 26 [11:23:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 9C 2E 47 00 0B 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 15 C1 00 00 F4 03 04 00 D6 E1 BE 66 B6 04 01 00 00 CD 6A 25 0C D9 E9 76 AE [11:23:01]CommunicateWithHost err = 0 [11:23:01]CheckOFDResponse [11:23:01]1017 (14) - 77093643461234 [11:23:01]1041 (16) - 0000000000871800 [11:23:01]1040 (4) - 49429 [11:23:01]1012 (4) - 16.08.2024 05:21 [11:23:01]1206 (1) - 0 [11:23:01]OFD Sender: Remove packet 49429 [11:23:01]ProducePacketName [11:23:01]name=ofd_packets/00049429 [11:23:01]NVStorageDeleteData [11:23:01]Write to MH i2c: 01 00 00 9E 40 DE [11:23:01]Write i2c OK [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: 01 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: 01 07 00 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: 01 07 00 9E 40 00 00 00 00 00 1A 0C 0B [11:23:01]RasterBufferAndPrint [11:23:01]line [11:23:01]line [11:23:01]line [11:23:01]line [11:23:01]line [11:23:01]written 0, free lines is 3104 [11:23:01]MH_Cut [11:23:01]Write to MH i2c: D1 01 00 A5 40 01 B7 [11:23:01]Write i2c OK [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: D1 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: D1 01 00 [11:23:01]MH_I2C_Read... [11:23:01]Read from MH i2c: D1 01 00 A5 40 00 B6 [11:23:01]Write to MH i2c: 01 00 00 A6 40 E6 [11:23:01]Write i2c OK [11:23:01]MH_I2C_Read... [11:23:01]OFD Sender: No OFD packet to send [11:23:01]*** Cut start [11:23:01]*** Purtial cut [11:23:01]*** Stage 1: CUTSNS_PIN = 1 [11:23:02]Read from MH i2c: 01 [11:23:02]MH_I2C_Read... [11:23:02]*** Stop cut motor [11:23:02]*** Cut end [11:23:02]Read from MH i2c: 01 07 00 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: 01 07 00 A6 40 00 00 00 00 00 FF 0F FB [11:23:02]process_action close_receipt done [11:23:02]requested_data is exist [11:23:02]produce_requested_data [11:23:02]requested_item fm.sn is exist - process it [11:23:02]wFMCommunicate request_size=4 [11:23:02]MH_SAM_APDU [11:23:02]CAPDU: 80 11 00 00 [11:23:02]Write to MH i2c: E2 08 00 A7 40 80 11 00 00 00 00 00 00 61 [11:23:02]Write i2c OK [11:23:02]MH_I2C_Read... [11:23:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:23:02]Read from MH i2c: E2 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 17 00 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 17 00 A7 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AC [11:23:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:23:02]wFMCommunicate OK [11:23:02]requested_item fd.num is exist - process it [11:23:02]SAM_PROTO_GetFieldsCounters [11:23:02]wFMCommunicate request_size=4 [11:23:02]MH_SAM_APDU [11:23:02]CAPDU: 80 13 00 00 [11:23:02]Write to MH i2c: E2 08 00 A8 40 80 13 00 00 00 00 00 00 64 [11:23:02]Write i2c OK [11:23:02]MH_I2C_Read... [11:23:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:23:02]Read from MH i2c: E2 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 62 00 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 62 00 A8 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 15 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 0C [11:23:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 15 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 4D 00 00 00 5E 04 04 00 4D 00 00 00 57 04 04 00 4E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:23:02]wFMCommunicate OK [11:23:02]SAM_PROTO_GetFieldsCounters done [11:23:02]requested_item shift.num is exist - process it [11:23:02]requested_item shift.opened is exist - process it [11:23:02]req_shift_opened [11:23:02]FM_GetShiftState [11:23:02]SAM_PROTO_GetShiftState [11:23:02]wFMCommunicate request_size=4 [11:23:02]MH_SAM_APDU [11:23:02]CAPDU: 80 13 01 00 [11:23:02]Write to MH i2c: E2 08 00 A9 40 80 13 01 00 00 00 00 00 66 [11:23:02]Write i2c OK [11:23:02]MH_I2C_Read... [11:23:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:23:02]Read from MH i2c: E2 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 0E 00 [11:23:02]MH_I2C_Read... [11:23:02]Read from MH i2c: E2 0E 00 A9 40 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 DC [11:23:02]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [11:23:02]wFMCommunicate OK [11:23:02]SAM_PROTO_GetShiftState done [11:23:02]FM_GetShiftState done [11:23:02]req_shift_opened done [11:23:02]requested_item shift.open_date is exist - process it [11:23:02]req_shift_open_date [11:23:02]req_shift_open_date done [11:23:02]produce_requested_data done [11:23:02]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49429,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [11:23:02]process_action_free close_receipt [11:23:02]json_value_free [11:23:02]json_value_free done [11:23:02]process_json_proto returns [11:23:02]Send response to host [11:23:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49429,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [11:23:02]free response buf [11:23:02]execute_script done [11:23:02]execute_script returns [11:23:02]free content buf [11:23:02]Sock 9.Close socket [11:23:02]Sock 9.Thread stoped [11:23:06]OFD Sender: No OFD packet to send [11:23:11]OFD Sender: No OFD packet to send [11:23:16]OFD Sender: No OFD packet to send [11:23:21]OFD Sender: No OFD packet to send [11:23:26]OFD Sender: No OFD packet to send [11:23:31]OFD Sender: No OFD packet to send [11:23:36]OFD Sender: No OFD packet to send [11:23:41]OFD Sender: No OFD packet to send [11:23:46]OFD Sender: No OFD packet to send [11:23:51]OFD Sender: No OFD packet to send [11:23:56]OFD Sender: No OFD packet to send [11:24:01]OFD Sender: No OFD packet to send [11:24:06]OFD Sender: No OFD packet to send [11:24:11]OFD Sender: No OFD packet to send [11:24:16]OFD Sender: No OFD packet to send [11:24:21]OFD Sender: No OFD packet to send [11:24:26]OFD Sender: No OFD packet to send [11:24:31]OFD Sender: No OFD packet to send [11:24:36]OFD Sender: No OFD packet to send [11:24:41]OFD Sender: No OFD packet to send [11:24:46]OFD Sender: No OFD packet to send [11:24:51]OFD Sender: No OFD packet to send [11:24:56]OFD Sender: No OFD packet to send [11:25:01]OFD Sender: No OFD packet to send [11:25:06]OFD Sender: No OFD packet to send [11:25:11]OFD Sender: No OFD packet to send [11:25:16]OFD Sender: No OFD packet to send [11:25:21]OFD Sender: No OFD packet to send [11:25:26]OFD Sender: No OFD packet to send [11:25:31]OFD Sender: No OFD packet to send [11:25:35]accept exits with 7 [11:25:35]New connection [11:25:35]New thread 3066830180 created [11:25:35]Thread 3066973540 joined [11:25:35]Waiting for new connection... [11:25:35] Sock 7.Parse request [11:25:35]Sock 7.Check first char [11:25:35]Sock 7.First char is OK [11:25:35]request: POST /json_proto HTTP/1.0 [11:25:35]Method: POST [11:25:35]URL: /json_proto [11:25:35]Method is POST - this is cgi request [11:25:35]url: /json_proto [11:25:35]query_string will be loaded in cgi processing [11:25:35]execute_cgi json_proto POST (null) [11:25:35]execute_cgi path=json_proto method=POST [11:25:35]POST find Content-Length [11:25:35]Host: 172.17.46.196:8080 [11:25:35]Content-Length: 714 [11:25:35]Content-Type: application/json [11:25:35] [11:25:35]POST finish read [11:25:35]Found Content-Length = 714 [11:25:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189653", "tax_sys" : 0, "items" : [ { "code": "4700003010049", "name": "Let`s GO \u0427\u0430\u0439 \u0437\u0435\u043B\u0435\u043D\u044B\u0439 \u0433\u0440\u0435\u0439\u043F\u0444\u0440\u0443\u0442 0,5\u043B \u041F\u042D\u0422", "price" : 50.00, "quantity" : 20.000, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:35]execute_script... [11:25: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 : (3)189653", "tax_sys" : 0, "items" : [ { "code": "4700003010049", "name": "Let`s GO \u0427\u0430\u0439 \u0437\u0435\u043B\u0435\u043D\u044B\u0439 \u0433\u0440\u0435\u0439\u043F\u0444\u0440\u0443\u0442 0,5\u043B \u041F\u042D\u0422", "price" : 50.00, "quantity" : 20.000, "sum" : 1000.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1000.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:35]POST & json_proto [11:25:35]process_json_proto [11:25:35]json parsed OK: [11:25:35]protocol is kg_v1.0 [11:25:35]action value=close_receipt [11:25:35]process_action close_receipt [11:25:35]cmd_close_receipt [11:25:35]MH_GetDate [11:25:35]Write to MH i2c: F0 00 00 AA 40 D9 [11:25:35]Write i2c OK [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: F0 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: F0 09 00 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: F0 09 00 AA 40 00 35 37 BF 66 07 E8 5D 66 25 [11:25:35]GetLastDocTimeStamp 1723807383 [11:25:35]current date 1723807541 [11:25:35]FM_GetShiftState [11:25:35]SAM_PROTO_GetShiftState [11:25:35]wFMCommunicate request_size=4 [11:25:35]MH_SAM_APDU [11:25:35]CAPDU: 80 13 01 00 [11:25:35]Write to MH i2c: E2 08 00 AB 40 80 13 01 00 00 00 00 00 68 [11:25:35]Write i2c OK [11:25:35]MH_I2C_Read... [11:25:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:35]Read from MH i2c: E2 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 0E 00 [11:25:35]MH_I2C_Read... [11:25:35]Read from MH i2c: E2 0E 00 AB 40 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 DE [11:25:35]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [11:25:35]wFMCommunicate OK [11:25:35]SAM_PROTO_GetShiftState done [11:25:35]FM_GetShiftState done [11:25:35]opened in 1723766958 [11:25:35]opened+sec_in_day 1723853358 [11:25:35]quantity*price = 100000 [11:25:35]sum+1 = 100001 [11:25:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.00 НСП 1% : 8.85 НДС 12% : 106.19 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 78 16.08.2024 11:25 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49430 ФПД: 48357675129222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T112541&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49430&fm=48357675129222&tin=02508201610067®Number=0000000000092546&sum=100000 0 [11:25:36]StoreToDocumentArchive [11:25:36]shift 464 fd 49430 [11:25:36]save to /storage/0464/doc_00049430 [11:25:36]save last doc name /storage/0464/doc_00049430 to /storage/kkm_last_doc_name [11:25:36]save OK [11:25:36]Clear old archive folders... [11:25:36]ProcessDocumentItem done err = 0, tmpTLVsize=304 [11:25:36]tlvbuf is B6DAD4F0 [11:25:36]SAM_PROTO_ClearQueue [11:25:36]wFMCommunicate request_size=4 [11:25:36]MH_SAM_APDU [11:25:36]CAPDU: 80 09 00 00 [11:25:36]Write to MH i2c: E2 08 00 B8 40 80 09 00 00 00 00 00 00 6A [11:25:36]Write i2c OK [11:25:36]MH_I2C_Read... [11:25:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:36]Read from MH i2c: E2 [11:25:36]MH_I2C_Read... [11:25:36]Read from MH i2c: E2 03 00 [11:25:36]MH_I2C_Read... [11:25:36]Read from MH i2c: E2 03 00 B8 40 00 90 00 6C [11:25:36]RAPDU: 90 00 [11:25:36]wFMCommunicate OK [11:25:36]SAM_PROTO_ClearQueue done [11:25:36]KKMCreateOFDPacket [11:25:36]OFDProtocolAddRootSTLVToBuf [11:25:36]FM_MakeSignedData [11:25:36]FM_MakeSignedData [11:25:36]SAM_PROTO_SignData [11:25:36]wFMCommunicate request_size=4 [11:25:36]MH_SAM_APDU [11:25:36]CAPDU: 80 0D 01 02 [11:25:36]Write to MH i2c: E2 08 00 B9 40 80 0D 01 02 00 00 00 00 72 [11:25:36]Write i2c OK [11:25:37]MH_I2C_Read... [11:25:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:37]Read from MH i2c: E2 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 03 00 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 03 00 B9 40 00 90 00 6D [11:25:37]RAPDU: 90 00 [11:25:37]wFMCommunicate OK [11:25:37]wFMCommunicate request_size=255 [11:25:37]MH_SAM_APDU [11:25:37]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 34 39 06 04 3E 00 4C 65 74 60 73 20 47 4F 20 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 35 37 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 [11:25:37]Write to MH i2c: E2 02 01 BA 40 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 34 39 06 04 3E 00 4C 65 74 60 73 20 47 4F 20 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 35 37 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 00 00 42 [11:25:37]Write i2c OK [11:25:37]MH_I2C_Read... [11:25:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:37]Read from MH i2c: E2 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 03 00 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 03 00 BA 40 00 90 00 6E [11:25:37]RAPDU: 90 00 [11:25:37]wFMCommunicate OK [11:25:37]wFMCommunicate request_size=63 [11:25:37]MH_SAM_APDU [11:25:37]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 16 C1 00 00 35 04 06 00 2B FB 26 0C 59 86 [11:25:37]Write to MH i2c: E2 42 00 BB 40 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 16 C1 00 00 35 04 06 00 2B FB 26 0C 59 86 00 00 C6 [11:25:37]Write i2c OK [11:25:37]MH_I2C_Read... [11:25:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:37]Read from MH i2c: E2 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 03 00 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 03 00 BB 40 00 90 00 6F [11:25:37]RAPDU: 90 00 [11:25:37]wFMCommunicate OK [11:25:37]wFMCommunicate request_size=4 [11:25:37]MH_SAM_APDU [11:25:37]CAPDU: 80 0D 03 02 [11:25:37]Write to MH i2c: E2 08 00 BC 40 80 0D 03 02 00 00 00 00 77 [11:25:37]Write i2c OK [11:25:37]MH_I2C_Read... [11:25:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:37]Read from MH i2c: E2 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 0B 00 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 0B 00 BC 40 00 E3 C2 60 9B F6 65 F8 E1 90 00 4C [11:25:37]RAPDU: E3 C2 60 9B F6 65 F8 E1 90 00 [11:25:37]wFMCommunicate OK [11:25:37]SAM_PROTO_SignData done [11:25:37]FM_MakeSignedData done [11:25:37]CreateOFDProtocolMessage [11:25:37]wFMCommunicate request_size=4 [11:25:37]MH_SAM_APDU [11:25:37]CAPDU: 80 11 00 00 [11:25:37]Write to MH i2c: E2 08 00 BD 40 80 11 00 00 00 00 00 00 77 [11:25:37]Write i2c OK [11:25:37]MH_I2C_Read... [11:25:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:37]Read from MH i2c: E2 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 17 00 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: E2 17 00 BD 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C2 [11:25:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:25:37]wFMCommunicate OK [11:25:37]CreateOFDProtocolMessage done [11:25:37]OFDSenderStorePacket 49430 [11:25:37]StoreOFDPacket docnum=49430 [11:25:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 44 01 00 00 B3 15 3C 01 90 01 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 34 39 06 04 3E 00 4C 65 74 60 73 20 47 4F 20 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 35 37 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 16 C1 00 00 35 04 06 00 2B FB 26 0C 59 86 E3 C2 60 9B F6 65 F8 E1 [11:25:37]CheckFolder [11:25:37]dirname=/storage/ofd_packets [11:25:37]CheckFolder done [11:25:37]ProducePacketName [11:25:37]name=ofd_packets/00049430 [11:25:37]NVStorageSaveData ofd_packets/00049430 [11:25:37]File name is /storage/ofd_packets/00049430 [11:25:37]Write 354 bytes [11:25:37]NVStorageSaveData done [11:25:37]OFDSenderStorePacket done [11:25:37]KKMCreateOFDPacket done [11:25:37]NVStorageSaveData kkm_last_timestamp [11:25:37]File name is /storage/kkm_last_timestamp [11:25:37]Write 4 bytes [11:25:37]NVStorageSaveData done [11:25:37]OFD Sender: Processing packet 49430 [packets to send 21, broken 20] [11:25:37]ProducePacketName [11:25:37]name=ofd_packets/00049430 [11:25:37]OFD Sender: To server: pG, [11:25:37]CommunicateWithHost lk.salyk.kg:30040 [11:25:37]ConnectInit lk.salyk.kg [11:25:37]ExternCall_PrintAddStr [11:25:37]wPrintStart [11:25:37]Write to MH i2c: 01 00 00 BE 40 FE [11:25:37]Write i2c OK [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: 01 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: 01 07 00 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: 01 07 00 BE 40 00 00 00 00 00 FF 0F 13 [11:25:37]RasterBufferAndPrint [11:25:37]line Счет N : (3)189653 [11:25:37]line ИНН: 02508201610067 [11:25:37]line Контрольно-Кассовый Чек [11:25:37]line ПРОДАЖА [11:25:37]line Товар: 4700003010049 [11:25:37]line Let`s GO Чай зеленый грейпфрут 0,5л ПЭТ [11:25:37]line 20.000 * 50.00 [11:25:37]line = 1000.00 [11:25:37]line НДС 12% НСП 1% [11:25:37]line > о реализуемом товаре [11:25:37]line ИТОГО: 1000.00 [11:25:37]line НСП 1% : 8.85 [11:25:37]line НДС 12% : 106.19 [11:25:37]line Наличными: 1000.00 [11:25:37]line Безнал.: 0.00 [11:25:37]line Место: АЗС № 95 "Партнер Нефть" [11:25:37]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:25:37]line СНО: Общий режим [11:25:37]line Чек 78 16.08.2024 11:25 [11:25:37]line Смена: 464 ФФД: 1.0 [11:25:37]line ЗНМ: 0300000078 [11:25:37]line РНМ: 0000000000092546 [11:25:37]line Версия ККМ: 001 [11:25:37]line ФМ: 0000000000871800 [11:25:37]line ФД: 49430 [11:25:37]line ФПД: 48357675129222 [11:25:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T112541&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49430&fm=48357675129222&tin=02508201610067®Number=0000000000092546&sum=100000 [11:25:37]line 0 [11:25:37]written 0, free lines is 4095 [11:25:37]Connected sock=11 [11:25:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 44 01 00 00 B3 15 3C 01 90 01 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 34 39 06 04 3E 00 4C 65 74 60 73 20 47 4F 20 D0 A7 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB D0 B5 D0 BD D1 8B D0 B9 20 D0 B3 D1 80 D0 B5 D0 B9 D0 BF D1 84 D1 80 D1 83 D1 82 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 A0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7B 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 35 37 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 16 C1 00 00 35 04 06 00 2B FB 26 0C 59 86 E3 C2 60 9B F6 65 F8 E1 [11:25:37]Write to MH i2c: 01 00 00 E7 40 27 [11:25:37]Write i2c OK [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: 01 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: 01 07 00 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: 01 07 00 E7 40 00 00 00 00 00 DF 0C 19 [11:25:37]RasterBufferAndPrint [11:25:37]line [11:25:37]line [11:25:37]line [11:25:37]line [11:25:37]line [11:25:37]written 0, free lines is 3301 [11:25:37]MH_Cut [11:25:37]Write to MH i2c: D1 01 00 EE 40 01 00 [11:25:37]Write i2c OK [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: D1 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: D1 01 00 [11:25:37]MH_I2C_Read... [11:25:37]Read from MH i2c: D1 01 00 EE 40 00 FF [11:25:37]Write to MH i2c: 01 00 00 EF 40 2F [11:25:37]Write i2c OK [11:25:37]MH_I2C_Read... [11:25:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 2C 3E 47 00 58 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 38 37 31 38 30 30 10 04 04 00 16 C1 00 00 F4 03 04 00 73 E2 BE 66 B6 04 01 00 00 2C 3E 77 AE 1F EF 38 55 [11:25:38]CommunicateWithHost err = 0 [11:25:38]CheckOFDResponse [11:25:38]1017 (14) - 77093643461234 [11:25:38]1041 (16) - 0000000000871800 [11:25:38]1040 (4) - 49430 [11:25:38]1012 (4) - 16.08.2024 05:24 [11:25:38]1206 (1) - 0 [11:25:38]OFD Sender: Remove packet 49430 [11:25:38]ProducePacketName [11:25:38]name=ofd_packets/00049430 [11:25:38]NVStorageDeleteData [11:25:38]OFD Sender: No OFD packet to send [11:25:38]*** Cut start [11:25:38]*** Purtial cut [11:25:38]*** CUTSNS_PIN = 0 [11:25:38]*** Stage 1: CUTSNS_PIN = 1 [11:25:40]Read from MH i2c: 01 [11:25:40]MH_I2C_Read... [11:25:40]*** Stop cut motor [11:25:40]*** Cut end [11:25:40]Read from MH i2c: 01 07 00 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: 01 07 00 EF 40 00 00 00 00 00 FF 0F 44 [11:25:40]process_action close_receipt done [11:25:40]requested_data is exist [11:25:40]produce_requested_data [11:25:40]requested_item fm.sn is exist - process it [11:25:40]wFMCommunicate request_size=4 [11:25:40]MH_SAM_APDU [11:25:40]CAPDU: 80 11 00 00 [11:25:40]Write to MH i2c: E2 08 00 F0 40 80 11 00 00 00 00 00 00 AA [11:25:40]Write i2c OK [11:25:40]MH_I2C_Read... [11:25:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:40]Read from MH i2c: E2 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: E2 17 00 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: E2 17 00 F0 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F5 [11:25:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:25:40]wFMCommunicate OK [11:25:40]requested_item fd.num is exist - process it [11:25:40]SAM_PROTO_GetFieldsCounters [11:25:40]wFMCommunicate request_size=4 [11:25:40]MH_SAM_APDU [11:25:40]CAPDU: 80 13 00 00 [11:25:40]Write to MH i2c: E2 08 00 F1 40 80 13 00 00 00 00 00 00 AD [11:25:40]Write i2c OK [11:25:40]MH_I2C_Read... [11:25:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:40]Read from MH i2c: E2 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: E2 62 00 [11:25:40]MH_I2C_Read... [11:25:40]Read from MH i2c: E2 62 00 F1 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 16 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 59 [11:25:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 16 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 4E 00 00 00 5E 04 04 00 4E 00 00 00 57 04 04 00 4F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:40]wFMCommunicate OK [11:25:40]SAM_PROTO_GetFieldsCounters done [11:25:40]requested_item shift.num is exist - process it [11:25:40]requested_item shift.opened is exist - process it [11:25:40]req_shift_opened [11:25:40]FM_GetShiftState [11:25:40]SAM_PROTO_GetShiftState [11:25:40]wFMCommunicate request_size=4 [11:25:40]MH_SAM_APDU [11:25:40]CAPDU: 80 13 01 00 [11:25:40]Write to MH i2c: E2 08 00 F2 40 80 13 01 00 00 00 00 00 AF [11:25:40]Write i2c OK [11:25:40]MH_I2C_Read... [11:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:41]Read from MH i2c: E2 [11:25:41]MH_I2C_Read... [11:25:41]Read from MH i2c: E2 0E 00 [11:25:41]MH_I2C_Read... [11:25:41]Read from MH i2c: E2 0E 00 F2 40 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 25 [11:25:41]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [11:25:41]wFMCommunicate OK [11:25:41]SAM_PROTO_GetShiftState done [11:25:41]FM_GetShiftState done [11:25:41]req_shift_opened done [11:25:41]requested_item shift.open_date is exist - process it [11:25:41]req_shift_open_date [11:25:41]req_shift_open_date done [11:25:41]produce_requested_data done [11:25:41]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49430,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [11:25:41]process_action_free close_receipt [11:25:41]json_value_free [11:25:41]json_value_free done [11:25:41]process_json_proto returns [11:25:41]Send response to host [11:25:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49430,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [11:25:41]free response buf [11:25:41]execute_script done [11:25:41]execute_script returns [11:25:41]free content buf [11:25:41]Sock 7.Close socket [11:25:41]Sock 7.Thread stoped [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:02]accept exits with 9 [11:28:02]New connection [11:28:02]New thread 3066973540 created [11:28:02]Thread 3066830180 joined [11:28:02]Waiting for new connection... [11:28:02] Sock 9.Parse request [11:28:02]Sock 9.Check first char [11:28:02]Sock 9.First char is OK [11:28:02]request: POST /json_proto HTTP/1.0 [11:28:02]Method: POST [11:28:02]URL: /json_proto [11:28:02]Method is POST - this is cgi request [11:28:02]url: /json_proto [11:28:02]query_string will be loaded in cgi processing [11:28:02]execute_cgi json_proto POST (null) [11:28:02]execute_cgi path=json_proto method=POST [11:28:02]POST find Content-Length [11:28:02]Host: 172.17.46.196:8080 [11:28:02]Content-Length: 906 [11:28:02]Content-Type: application/json [11:28:02] [11:28:02]POST finish read [11:28:02]Found Content-Length = 906 [11:28:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189654", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:02]execute_script... [11:28: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 : (3)189654", "tax_sys" : 0, "items" : [ { "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 111.00, "quantity" : 1.000, "sum" : 111.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:02]POST & json_proto [11:28:02]process_json_proto [11:28:02]json parsed OK: [11:28:02]protocol is kg_v1.0 [11:28:02]action value=close_receipt [11:28:02]process_action close_receipt [11:28:02]cmd_close_receipt [11:28:02]MH_GetDate [11:28:02]Write to MH i2c: F0 00 00 F3 40 22 [11:28:02]Write i2c OK [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: F0 [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: F0 09 00 [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: F0 09 00 F3 40 00 C7 37 BF 66 07 E8 5D 66 00 [11:28:02]GetLastDocTimeStamp 1723807541 [11:28:02]current date 1723807687 [11:28:02]FM_GetShiftState [11:28:02]SAM_PROTO_GetShiftState [11:28:02]wFMCommunicate request_size=4 [11:28:02]MH_SAM_APDU [11:28:02]CAPDU: 80 13 01 00 [11:28:02]Write to MH i2c: E2 08 00 F4 40 80 13 01 00 00 00 00 00 B1 [11:28:02]Write i2c OK [11:28:02]MH_I2C_Read... [11:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:02]Read from MH i2c: E2 [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: E2 0E 00 [11:28:02]MH_I2C_Read... [11:28:02]Read from MH i2c: E2 0E 00 F4 40 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 27 [11:28:02]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [11:28:02]wFMCommunicate OK [11:28:02]SAM_PROTO_GetShiftState done [11:28:02]FM_GetShiftState done [11:28:02]opened in 1723766958 [11:28:02]opened+sec_in_day 1723853358 [11:28:02]quantity*price = 1400 [11:28:02]sum+1 = 1401 [11:28:02]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 111.00 = 111.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.10 НДС 12% : 13.28 Наличными: 125.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 79 16.08.2024 11:28 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49431 ФПД: 177704659484065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T112807&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49431&fm=177704659484065&tin=02508201610067®Number=0000000000092546&sum=12500 0 [11:28:03]StoreToDocumentArchive [11:28:03]shift 464 fd 49431 [11:28:03]save to /storage/0464/doc_00049431 [11:28:03]save last doc name /storage/0464/doc_00049431 to /storage/kkm_last_doc_name [11:28:03]save OK [11:28:03]Clear old archive folders... [11:28:03]ProcessDocumentItem done err = 0, tmpTLVsize=383 [11:28:03]tlvbuf is 00E11EE0 [11:28:03]SAM_PROTO_ClearQueue [11:28:03]wFMCommunicate request_size=4 [11:28:03]MH_SAM_APDU [11:28:03]CAPDU: 80 09 00 00 [11:28:03]Write to MH i2c: E2 08 00 01 41 80 09 00 00 00 00 00 00 B4 [11:28:03]Write i2c OK [11:28:03]MH_I2C_Read... [11:28:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:03]Read from MH i2c: E2 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 01 41 00 90 00 B6 [11:28:03]RAPDU: 90 00 [11:28:03]wFMCommunicate OK [11:28:03]SAM_PROTO_ClearQueue done [11:28:03]KKMCreateOFDPacket [11:28:03]OFDProtocolAddRootSTLVToBuf [11:28:03]FM_MakeSignedData [11:28:03]FM_MakeSignedData [11:28:03]SAM_PROTO_SignData [11:28:03]wFMCommunicate request_size=4 [11:28:03]MH_SAM_APDU [11:28:03]CAPDU: 80 0D 01 02 [11:28:03]Write to MH i2c: E2 08 00 02 41 80 0D 01 02 00 00 00 00 BC [11:28:03]Write i2c OK [11:28:03]MH_I2C_Read... [11:28:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:03]Read from MH i2c: E2 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 02 41 00 90 00 B7 [11:28:03]RAPDU: 90 00 [11:28:03]wFMCommunicate OK [11:28:03]wFMCommunicate request_size=255 [11:28:03]MH_SAM_APDU [11:28:03]CAPDU: 80 0D 02 02 FA 03 00 7F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E [11:28:03]Write to MH i2c: E2 02 01 03 41 80 0D 02 02 FA 00 03 00 7F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 12 [11:28:03]Write i2c OK [11:28:03]MH_I2C_Read... [11:28:03]OFD Sender: No OFD packet to send [11:28:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:03]Read from MH i2c: E2 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 03 41 00 90 00 B8 [11:28:03]RAPDU: 90 00 [11:28:03]wFMCommunicate OK [11:28:03]wFMCommunicate request_size=142 [11:28:03]MH_SAM_APDU [11:28:03]CAPDU: 80 0D 02 02 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 C7 37 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 17 C1 00 00 35 04 06 00 A1 9F 17 1A 7D A1 [11:28:03]Write to MH i2c: E2 91 00 04 41 80 0D 02 02 89 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 C7 37 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 17 C1 00 00 35 04 06 00 A1 9F 17 1A 7D A1 00 00 DA [11:28:03]Write i2c OK [11:28:03]MH_I2C_Read... [11:28:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:03]Read from MH i2c: E2 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 03 00 04 41 00 90 00 B9 [11:28:03]RAPDU: 90 00 [11:28:03]wFMCommunicate OK [11:28:03]wFMCommunicate request_size=4 [11:28:03]MH_SAM_APDU [11:28:03]CAPDU: 80 0D 03 02 [11:28:03]Write to MH i2c: E2 08 00 05 41 80 0D 03 02 00 00 00 00 C1 [11:28:03]Write i2c OK [11:28:03]MH_I2C_Read... [11:28:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:03]Read from MH i2c: E2 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 0B 00 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 0B 00 05 41 00 A4 87 65 B7 A7 2F 19 DC 90 00 D4 [11:28:03]RAPDU: A4 87 65 B7 A7 2F 19 DC 90 00 [11:28:03]wFMCommunicate OK [11:28:03]SAM_PROTO_SignData done [11:28:03]FM_MakeSignedData done [11:28:03]CreateOFDProtocolMessage [11:28:03]wFMCommunicate request_size=4 [11:28:03]MH_SAM_APDU [11:28:03]CAPDU: 80 11 00 00 [11:28:03]Write to MH i2c: E2 08 00 06 41 80 11 00 00 00 00 00 00 C1 [11:28:03]Write i2c OK [11:28:03]MH_I2C_Read... [11:28:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:03]Read from MH i2c: E2 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 17 00 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: E2 17 00 06 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 0C [11:28:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:28:03]wFMCommunicate OK [11:28:03]CreateOFDProtocolMessage done [11:28:03]OFDSenderStorePacket 49431 [11:28:03]StoreOFDPacket docnum=49431 [11:28:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 93 01 00 00 76 98 8B 01 F3 2A 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 C7 37 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 17 C1 00 00 35 04 06 00 A1 9F 17 1A 7D A1 A4 87 65 B7 A7 2F 19 DC [11:28:03]CheckFolder [11:28:03]dirname=/storage/ofd_packets [11:28:03]CheckFolder done [11:28:03]ProducePacketName [11:28:03]name=ofd_packets/00049431 [11:28:03]NVStorageSaveData ofd_packets/00049431 [11:28:03]File name is /storage/ofd_packets/00049431 [11:28:03]Write 433 bytes [11:28:03]NVStorageSaveData done [11:28:03]OFDSenderStorePacket done [11:28:03]KKMCreateOFDPacket done [11:28:03]NVStorageSaveData kkm_last_timestamp [11:28:03]File name is /storage/kkm_last_timestamp [11:28:03]Write 4 bytes [11:28:03]NVStorageSaveData done [11:28:03]ExternCall_PrintAddStr [11:28:03]wPrintStart [11:28:03]Write to MH i2c: 01 00 00 07 41 48 [11:28:03]Write i2c OK [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: 01 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: 01 07 00 [11:28:03]MH_I2C_Read... [11:28:03]Read from MH i2c: 01 07 00 07 41 00 00 00 00 00 FF 0F 5D [11:28:03]RasterBufferAndPrint [11:28:03]line Счет N : (3)189654 [11:28:03]line ИНН: 02508201610067 [11:28:03]line Контрольно-Кассовый Чек [11:28:03]line ПРОДАЖА [11:28:03]line Товар: 2000053020015 [11:28:03]line Бумажные стаканы 250мл 1шт [11:28:03]line 2.000 * 7.00 [11:28:03]line = 14.00 [11:28:03]line НДС 12% НСП 1% [11:28:04]line > о реализуемом товаре [11:28:04]line Товар: 4870001570071 [11:28:04]line Напиток Pepsi 1л [11:28:04]line 1.000 * 111.00 [11:28:04]line = 111.00 [11:28:04]line НДС 12% НСП 1% [11:28:04]line > о реализуемом товаре [11:28:04]line ИТОГО: 125.00 [11:28:04]line НСП 1% : 1.10 [11:28:04]line НДС 12% : 13.28 [11:28:04]line Наличными: 125.00 [11:28:04]line Безнал.: 0.00 [11:28:04]line Место: АЗС № 95 "Партнер Нефть" [11:28:04]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:28:04]line СНО: Общий режим [11:28:04]line Чек 79 16.08.2024 11:28 [11:28:04]line Смена: 464 ФФД: 1.0 [11:28:04]line ЗНМ: 0300000078 [11:28:04]line РНМ: 0000000000092546 [11:28:04]line Версия ККМ: 001 [11:28:04]line ФМ: 0000000000871800 [11:28:04]line ФД: 49431 [11:28:04]line ФПД: 177704659484065 [11:28:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T112807&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49431&fm=177704659484065&tin=02508201610067®Number=0000000000092546&sum=12500 [11:28:04]OFD Sender: Processing packet 49431 [packets to send 21, broken 20] [11:28:04]ProducePacketName [11:28:04]name=ofd_packets/00049431 [11:28:04]OFD Sender: To server: pG, [11:28:04]CommunicateWithHost lk.salyk.kg:30040 [11:28:04]ConnectInit lk.salyk.kg [11:28:04]line 0 [11:28:04]written 0, free lines is 4095 [11:28:04]Connected sock=10 [11:28:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 93 01 00 00 76 98 8B 01 F3 2A 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 30 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 C7 37 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 17 C1 00 00 35 04 06 00 A1 9F 17 1A 7D A1 A4 87 65 B7 A7 2F 19 DC [11:28:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 CF 41 47 00 7B AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 17 C1 00 00 F4 03 04 00 06 E3 BE 66 B6 04 01 00 00 4D 96 8D 3F 84 70 51 19 [11:28:04]CommunicateWithHost err = 0 [11:28:04]CheckOFDResponse [11:28:04]1017 (14) - 77093643461234 [11:28:04]1041 (16) - 0000000000871800 [11:28:04]1040 (4) - 49431 [11:28:04]1012 (4) - 16.08.2024 05:26 [11:28:04]1206 (1) - 0 [11:28:04]OFD Sender: Remove packet 49431 [11:28:04]ProducePacketName [11:28:04]name=ofd_packets/00049431 [11:28:04]NVStorageDeleteData [11:28:04]Write to MH i2c: 01 00 00 36 41 77 [11:28:04]Write i2c OK [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: 01 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: 01 07 00 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: 01 07 00 36 41 00 00 00 00 00 6D 0C F7 [11:28:04]RasterBufferAndPrint [11:28:04]line [11:28:04]line [11:28:04]line [11:28:04]line [11:28:04]line [11:28:04]written 0, free lines is 3189 [11:28:04]MH_Cut [11:28:04]Write to MH i2c: D1 01 00 3D 41 01 50 [11:28:04]Write i2c OK [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: D1 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: D1 01 00 [11:28:04]MH_I2C_Read... [11:28:04]Read from MH i2c: D1 01 00 3D 41 00 4F [11:28:04]Write to MH i2c: 01 00 00 3E 41 7F [11:28:04]Write i2c OK [11:28:04]MH_I2C_Read... [11:28:05]OFD Sender: No OFD packet to send [11:28:05]*** Cut start [11:28:05]*** Purtial cut [11:28:05]*** Stage 1: CUTSNS_PIN = 1 [11:28:05]Read from MH i2c: 01 [11:28:05]MH_I2C_Read... [11:28:05]*** Stop cut motor [11:28:05]*** Cut end [11:28:05]Read from MH i2c: 01 07 00 [11:28:05]MH_I2C_Read... [11:28:05]Read from MH i2c: 01 07 00 3E 41 00 00 00 00 00 FF 0F 94 [11:28:05]process_action close_receipt done [11:28:05]requested_data is exist [11:28:05]produce_requested_data [11:28:05]requested_item fm.sn is exist - process it [11:28:05]wFMCommunicate request_size=4 [11:28:05]MH_SAM_APDU [11:28:05]CAPDU: 80 11 00 00 [11:28:05]Write to MH i2c: E2 08 00 3F 41 80 11 00 00 00 00 00 00 FA [11:28:05]Write i2c OK [11:28:05]MH_I2C_Read... [11:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:06]Read from MH i2c: E2 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 17 00 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 17 00 3F 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 45 [11:28:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:28:06]wFMCommunicate OK [11:28:06]requested_item fd.num is exist - process it [11:28:06]SAM_PROTO_GetFieldsCounters [11:28:06]wFMCommunicate request_size=4 [11:28:06]MH_SAM_APDU [11:28:06]CAPDU: 80 13 00 00 [11:28:06]Write to MH i2c: E2 08 00 40 41 80 13 00 00 00 00 00 00 FD [11:28:06]Write i2c OK [11:28:06]MH_I2C_Read... [11:28:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:06]Read from MH i2c: E2 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 62 00 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 62 00 40 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 17 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 AD [11:28:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 17 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 4F 00 00 00 5E 04 04 00 4F 00 00 00 57 04 04 00 50 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:06]wFMCommunicate OK [11:28:06]SAM_PROTO_GetFieldsCounters done [11:28:06]requested_item shift.num is exist - process it [11:28:06]requested_item shift.opened is exist - process it [11:28:06]req_shift_opened [11:28:06]FM_GetShiftState [11:28:06]SAM_PROTO_GetShiftState [11:28:06]wFMCommunicate request_size=4 [11:28:06]MH_SAM_APDU [11:28:06]CAPDU: 80 13 01 00 [11:28:06]Write to MH i2c: E2 08 00 41 41 80 13 01 00 00 00 00 00 FF [11:28:06]Write i2c OK [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 [11:28:06]MH_I2C_Read... [11:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:06]Read from MH i2c: E2 0E 00 [11:28:06]MH_I2C_Read... [11:28:06]Read from MH i2c: E2 0E 00 41 41 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 75 [11:28:06]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [11:28:06]wFMCommunicate OK [11:28:06]SAM_PROTO_GetShiftState done [11:28:06]FM_GetShiftState done [11:28:06]req_shift_opened done [11:28:06]requested_item shift.open_date is exist - process it [11:28:06]req_shift_open_date [11:28:06]req_shift_open_date done [11:28:06]produce_requested_data done [11:28:06]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49431,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [11:28:06]process_action_free close_receipt [11:28:06]json_value_free [11:28:06]json_value_free done [11:28:06]process_json_proto returns [11:28:06]Send response to host [11:28:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49431,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [11:28:06]free response buf [11:28:06]execute_script done [11:28:06]execute_script returns [11:28:06]free content buf [11:28:06]Sock 9.Close socket [11:28:06]Sock 9.Thread stoped [11:28:10]OFD Sender: No OFD packet to send [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29: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: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:20]OFD Sender: No OFD packet to send [11:36:25]OFD Sender: No OFD packet to send [11:36:30]OFD Sender: No OFD packet to send [11:36:35]OFD Sender: No OFD packet to send [11:36:40]OFD Sender: No OFD packet to send [11:36:45]OFD Sender: No OFD packet to send [11:36:50]OFD Sender: No OFD packet to send [11:36:55]OFD Sender: No OFD packet to send [11:37:00]OFD Sender: No OFD packet to send [11:37:05]OFD Sender: No OFD packet to send [11:37:10]OFD Sender: No OFD packet to send [11:37:15]OFD Sender: No OFD packet to send [11:37:20]OFD Sender: No OFD packet to send [11:37:25]OFD Sender: No OFD packet to send [11:37:30]OFD Sender: No OFD packet to send [11:37:35]OFD Sender: No OFD packet to send [11:37:40]OFD Sender: No OFD packet to send [11:37:45]OFD Sender: No OFD packet to send [11:37:50]OFD Sender: No OFD packet to send [11:37:55]OFD Sender: No OFD packet to send [11:38:00]OFD Sender: No OFD packet to send [11:38:05]OFD Sender: No OFD packet to send [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:35]OFD Sender: No OFD packet to send [11:38:40]OFD Sender: No OFD packet to send [11:38:45]OFD Sender: No OFD packet to send [11:38:50]OFD Sender: No OFD packet to send [11:38:55]OFD Sender: No OFD packet to send [11:39:00]OFD Sender: No OFD packet to send [11:39:05]OFD Sender: No OFD packet to send [11:39:10]OFD Sender: No OFD packet to send [11:39:15]OFD Sender: No OFD packet to send [11:39:20]OFD Sender: No OFD packet to send [11:39:25]OFD Sender: No OFD packet to send [11:39:30]OFD Sender: No OFD packet to send [11:39:35]OFD Sender: No OFD packet to send [11:39:40]OFD Sender: No OFD packet to send [11:39:45]OFD Sender: No OFD packet to send [11:39:50]OFD Sender: No OFD packet to send [11:39:55]OFD Sender: No OFD packet to send [11:40:00]OFD Sender: No OFD packet to send [11:40:05]OFD Sender: No OFD packet to send [11:40:10]OFD Sender: No OFD packet to send [11:40:15]OFD Sender: No OFD packet to send [11:40:20]OFD Sender: No OFD packet to send [11:40:25]OFD Sender: No OFD packet to send [11:40:30]OFD Sender: No OFD packet to send [11:40:35]OFD Sender: No OFD packet to send [11:40:40]OFD Sender: No OFD packet to send [11:40:45]OFD Sender: No OFD packet to send [11:40:50]OFD Sender: No OFD packet to send [11:40:55]OFD Sender: No OFD packet to send [11:41:00]OFD Sender: No OFD packet to send [11:41:05]OFD Sender: No OFD packet to send [11:41:10]OFD Sender: No OFD packet to send [11:41:15]OFD Sender: No OFD packet to send [11:41:20]OFD Sender: No OFD packet to send [11:41:25]OFD Sender: No OFD packet to send [11:41:30]OFD Sender: No OFD packet to send [11:41:35]OFD Sender: No OFD packet to send [11:41:40]OFD Sender: No OFD packet to send [11:41:45]OFD Sender: No OFD packet to send [11:41:50]OFD Sender: No OFD packet to send [11:41:55]OFD Sender: No OFD packet to send [11:42:00]OFD Sender: No OFD packet to send [11:42:05]OFD Sender: No OFD packet to send [11:42:10]OFD Sender: No OFD packet to send [11:42:15]OFD Sender: No OFD packet to send [11:42:20]OFD Sender: No OFD packet to send [11:42:25]OFD Sender: No OFD packet to send [11:42:30]OFD Sender: No OFD packet to send [11:42:35]OFD Sender: No OFD packet to send [11:42:40]OFD Sender: No OFD packet to send [11:42:45]OFD Sender: No OFD packet to send [11:42:50]OFD Sender: No OFD packet to send [11:42:55]OFD Sender: No OFD packet to send [11:43: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:49]accept exits with 7 [11:44:49]New connection [11:44:49]New thread 3066830180 created [11:44:49]Thread 3066973540 joined [11:44:49]Waiting for new connection... [11:44:49] Sock 7.Parse request [11:44:49]Sock 7.Check first char [11:44:49]Sock 7.First char is OK [11:44:49]request: POST /json_proto HTTP/1.0 [11:44:49]Method: POST [11:44:49]URL: /json_proto [11:44:49]Method is POST - this is cgi request [11:44:49]url: /json_proto [11:44:49]query_string will be loaded in cgi processing [11:44:49]execute_cgi json_proto POST (null) [11:44:49]execute_cgi path=json_proto method=POST [11:44:49]POST find Content-Length [11:44:49]Host: 172.17.46.196:8080 [11:44:49]Content-Length: 668 [11:44:49]Content-Type: application/json [11:44:49] [11:44:49]POST finish read [11:44:49]Found Content-Length = 668 [11:44:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189655", "tax_sys" : 0, "items" : [ { "code": "4670003190037", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0437\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 2.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:49]execute_script... [11:44:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189655", "tax_sys" : 0, "items" : [ { "code": "4670003190037", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0437\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 2.000, "sum" : 450.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 450.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:49]POST & json_proto [11:44:49]process_json_proto [11:44:49]json parsed OK: [11:44:49]protocol is kg_v1.0 [11:44:49]action value=close_receipt [11:44:49]process_action close_receipt [11:44:49]cmd_close_receipt [11:44:49]MH_GetDate [11:44:49]Write to MH i2c: F0 00 00 42 41 72 [11:44:49]Write i2c OK [11:44:49]MH_I2C_Read... [11:44:49]Read from MH i2c: F0 [11:44:49]MH_I2C_Read... [11:44:49]Read from MH i2c: F0 09 00 [11:44:49]MH_I2C_Read... [11:44:49]Read from MH i2c: F0 09 00 42 41 00 B7 3B BF 66 07 E8 5D 66 44 [11:44:49]GetLastDocTimeStamp 1723807687 [11:44:49]current date 1723808695 [11:44:49]FM_GetShiftState [11:44:49]SAM_PROTO_GetShiftState [11:44:49]wFMCommunicate request_size=4 [11:44:49]MH_SAM_APDU [11:44:49]CAPDU: 80 13 01 00 [11:44:49]Write to MH i2c: E2 08 00 43 41 80 13 01 00 00 00 00 00 01 [11:44:49]Write i2c OK [11:44:49]MH_I2C_Read... [11:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:49]Read from MH i2c: E2 [11:44:49]MH_I2C_Read... [11:44:49]Read from MH i2c: E2 0E 00 [11:44:49]MH_I2C_Read... [11:44:49]Read from MH i2c: E2 0E 00 43 41 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 77 [11:44:49]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [11:44:49]wFMCommunicate OK [11:44:49]SAM_PROTO_GetShiftState done [11:44:49]FM_GetShiftState done [11:44:49]opened in 1723766958 [11:44:49]opened+sec_in_day 1723853358 [11:44:49]quantity*price = 45000 [11:44:49]sum+1 = 45001 [11:44:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.00 НСП 1% : 3.98 НДС 12% : 47.79 Наличными: 450.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 80 16.08.2024 11:44 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49432 ФПД: 13554484793931 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T114455&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49432&fm=13554484793931&tin=02508201610067®Number=0000000000092546&sum=45000 0 [11:44:51]StoreToDocumentArchive [11:44:51]shift 464 fd 49432 [11:44:51]save to /storage/0464/doc_00049432 [11:44:51]save last doc name /storage/0464/doc_00049432 to /storage/kkm_last_doc_name [11:44:51]save OK [11:44:51]Clear old archive folders... [11:44:51]ProcessDocumentItem done err = 0, tmpTLVsize=296 [11:44:51]tlvbuf is 00E286E0 [11:44:51]SAM_PROTO_ClearQueue [11:44:51]wFMCommunicate request_size=4 [11:44:51]MH_SAM_APDU [11:44:51]CAPDU: 80 09 00 00 [11:44:51]Write to MH i2c: E2 08 00 50 41 80 09 00 00 00 00 00 00 03 [11:44:51]Write i2c OK [11:44:51]MH_I2C_Read... [11:44:51]OFD Sender: No OFD packet to send [11:44:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:51]Read from MH i2c: E2 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: E2 03 00 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: E2 03 00 50 41 00 90 00 05 [11:44:51]RAPDU: 90 00 [11:44:51]wFMCommunicate OK [11:44:51]SAM_PROTO_ClearQueue done [11:44:51]KKMCreateOFDPacket [11:44:51]OFDProtocolAddRootSTLVToBuf [11:44:51]FM_MakeSignedData [11:44:51]FM_MakeSignedData [11:44:51]SAM_PROTO_SignData [11:44:51]wFMCommunicate request_size=4 [11:44:51]MH_SAM_APDU [11:44:51]CAPDU: 80 0D 01 02 [11:44:51]Write to MH i2c: E2 08 00 51 41 80 0D 01 02 00 00 00 00 0B [11:44:51]Write i2c OK [11:44:51]MH_I2C_Read... [11:44:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:51]Read from MH i2c: E2 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: E2 03 00 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: E2 03 00 51 41 00 90 00 06 [11:44:51]RAPDU: 90 00 [11:44:51]wFMCommunicate OK [11:44:51]wFMCommunicate request_size=255 [11:44:51]MH_SAM_APDU [11:44:51]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 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 AB 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 50 00 00 00 F4 03 04 00 B7 3B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [11:44:51]Write to MH i2c: E2 02 01 52 41 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 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 AB 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 50 00 00 00 F4 03 04 00 B7 3B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 92 [11:44:51]Write i2c OK [11:44:51]MH_I2C_Read... [11:44:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:51]Read from MH i2c: E2 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: E2 03 00 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: E2 03 00 52 41 00 90 00 07 [11:44:51]RAPDU: 90 00 [11:44:51]wFMCommunicate OK [11:44:51]wFMCommunicate request_size=55 [11:44:51]MH_SAM_APDU [11:44:51]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 18 C1 00 00 35 04 06 00 0C 53 E6 40 52 4B [11:44:51]Write to MH i2c: E2 3A 00 53 41 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 18 C1 00 00 35 04 06 00 0C 53 E6 40 52 4B 00 00 5B [11:44:51]Write i2c OK [11:44:51]MH_I2C_Read... [11:44:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:51]Read from MH i2c: E2 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: E2 03 00 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: E2 03 00 53 41 00 90 00 08 [11:44:51]RAPDU: 90 00 [11:44:51]wFMCommunicate OK [11:44:51]wFMCommunicate request_size=4 [11:44:51]MH_SAM_APDU [11:44:51]CAPDU: 80 0D 03 02 [11:44:51]Write to MH i2c: E2 08 00 54 41 80 0D 03 02 00 00 00 00 10 [11:44:51]Write i2c OK [11:44:51]MH_I2C_Read... [11:44:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:51]Read from MH i2c: E2 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: E2 0B 00 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: E2 0B 00 54 41 00 22 DC 3A 0D 76 35 DA 06 90 00 E1 [11:44:51]RAPDU: 22 DC 3A 0D 76 35 DA 06 90 00 [11:44:51]wFMCommunicate OK [11:44:51]SAM_PROTO_SignData done [11:44:51]FM_MakeSignedData done [11:44:51]CreateOFDProtocolMessage [11:44:51]wFMCommunicate request_size=4 [11:44:51]MH_SAM_APDU [11:44:51]CAPDU: 80 11 00 00 [11:44:51]Write to MH i2c: E2 08 00 55 41 80 11 00 00 00 00 00 00 10 [11:44:51]Write i2c OK [11:44:51]MH_I2C_Read... [11:44:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:51]Read from MH i2c: E2 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: E2 17 00 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: E2 17 00 55 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5B [11:44:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:44:51]wFMCommunicate OK [11:44:51]CreateOFDProtocolMessage done [11:44:51]OFDSenderStorePacket 49432 [11:44:51]StoreOFDPacket docnum=49432 [11:44:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3C 01 00 00 E5 BC 34 01 36 DC 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 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 AB 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 50 00 00 00 F4 03 04 00 B7 3B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 18 C1 00 00 35 04 06 00 0C 53 E6 40 52 4B 22 DC 3A 0D 76 35 DA 06 [11:44:51]CheckFolder [11:44:51]dirname=/storage/ofd_packets [11:44:51]CheckFolder done [11:44:51]ProducePacketName [11:44:51]name=ofd_packets/00049432 [11:44:51]NVStorageSaveData ofd_packets/00049432 [11:44:51]File name is /storage/ofd_packets/00049432 [11:44:51]Write 346 bytes [11:44:51]NVStorageSaveData done [11:44:51]OFDSenderStorePacket done [11:44:51]KKMCreateOFDPacket done [11:44:51]NVStorageSaveData kkm_last_timestamp [11:44:51]File name is /storage/kkm_last_timestamp [11:44:51]Write 4 bytes [11:44:51]NVStorageSaveData done [11:44:51]ExternCall_PrintAddStr [11:44:51]wPrintStart [11:44:51]Write to MH i2c: 01 00 00 56 41 97 [11:44:51]Write i2c OK [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: 01 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: 01 07 00 [11:44:51]MH_I2C_Read... [11:44:51]Read from MH i2c: 01 07 00 56 41 00 00 00 00 00 FF 0F AC [11:44:51]RasterBufferAndPrint [11:44:51]line Счет N : (3)189655 [11:44:51]line ИНН: 02508201610067 [11:44:51]line Контрольно-Кассовый Чек [11:44:51]line ПРОДАЖА [11:44:51]line Товар: 4670003190037 [11:44:51]line Антифриз SIBIRIA ANTIFREEZE ОЖ-40 зел 1л [11:44:51]line 2.000 * 225.00 [11:44:51]line = 450.00 [11:44:51]line НДС 12% НСП 1% [11:44:51]line > о реализуемом товаре [11:44:51]line ИТОГО: 450.00 [11:44:51]line НСП 1% : 3.98 [11:44:51]line НДС 12% : 47.79 [11:44:51]line Наличными: 450.00 [11:44:51]line Безнал.: 0.00 [11:44:51]line Место: АЗС № 95 "Партнер Нефть" [11:44:51]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:44:51]line СНО: Общий режим [11:44:51]line Чек 80 16.08.2024 11:44 [11:44:51]line Смена: 464 ФФД: 1.0 [11:44:51]line ЗНМ: 0300000078 [11:44:51]line РНМ: 0000000000092546 [11:44:51]line Версия ККМ: 001 [11:44:51]line ФМ: 0000000000871800 [11:44:51]line ФД: 49432 [11:44:51]line ФПД: 13554484793931 [11:44:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T114455&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49432&fm=13554484793931&tin=02508201610067®Number=0000000000092546&sum=45000 [11:44:51]line 0 [11:44:51]OFD Sender: Processing packet 49432 [packets to send 21, broken 20] [11:44:51]ProducePacketName [11:44:51]name=ofd_packets/00049432 [11:44:51]OFD Sender: To server: pG, [11:44:51]CommunicateWithHost lk.salyk.kg:30040 [11:44:51]ConnectInit lk.salyk.kg [11:44:51]written 0, free lines is 4095 [11:44:52]Connected sock=10 [11:44:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3C 01 00 00 E5 BC 34 01 36 DC 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 C8 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 AB 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 50 00 00 00 F4 03 04 00 B7 3B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 18 C1 00 00 35 04 06 00 0C 53 E6 40 52 4B 22 DC 3A 0D 76 35 DA 06 [11:44:52]Write to MH i2c: 01 00 00 7F 41 C0 [11:44:52]Write i2c OK [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: 01 [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: 01 07 00 [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: 01 07 00 7F 41 00 00 00 00 00 EC 0C BF [11:44:52]RasterBufferAndPrint [11:44:52]line [11:44:52]line [11:44:52]line [11:44:52]line [11:44:52]line [11:44:52]written 0, free lines is 3314 [11:44:52]MH_Cut [11:44:52]Write to MH i2c: D1 01 00 86 41 01 99 [11:44:52]Write i2c OK [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: D1 [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: D1 01 00 [11:44:52]MH_I2C_Read... [11:44:52]Read from MH i2c: D1 01 00 86 41 00 98 [11:44:52]Write to MH i2c: 01 00 00 87 41 C8 [11:44:52]Write i2c OK [11:44:52]MH_I2C_Read... [11:44:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E8 69 47 00 C6 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 18 C1 00 00 F4 03 04 00 F6 E6 BE 66 B6 04 01 00 00 86 1B 01 AF AE 86 8D C6 [11:44:52]CommunicateWithHost err = 0 [11:44:52]CheckOFDResponse [11:44:52]1017 (14) - 77093643461234 [11:44:52]1041 (16) - 0000000000871800 [11:44:52]1040 (4) - 49432 [11:44:52]1012 (4) - 16.08.2024 05:43 [11:44:52]1206 (1) - 0 [11:44:52]OFD Sender: Remove packet 49432 [11:44:52]ProducePacketName [11:44:52]name=ofd_packets/00049432 [11:44:52]NVStorageDeleteData [11:44:52]OFD Sender: No OFD packet to send [11:44:53]*** Cut start [11:44:53]*** Purtial cut [11:44:53]*** CUTSNS_PIN = 0 [11:44:53]*** Stage 1: CUTSNS_PIN = 1 [11:44:55]Read from MH i2c: 01 [11:44:55]MH_I2C_Read... [11:44:55]*** Stop cut motor [11:44:55]*** Cut end [11:44:55]Read from MH i2c: 01 07 00 [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: 01 07 00 87 41 00 00 00 00 00 FF 0F DD [11:44:55]process_action close_receipt done [11:44:55]requested_data is exist [11:44:55]produce_requested_data [11:44:55]requested_item fm.sn is exist - process it [11:44:55]wFMCommunicate request_size=4 [11:44:55]MH_SAM_APDU [11:44:55]CAPDU: 80 11 00 00 [11:44:55]Write to MH i2c: E2 08 00 88 41 80 11 00 00 00 00 00 00 43 [11:44:55]Write i2c OK [11:44:55]MH_I2C_Read... [11:44:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:55]Read from MH i2c: E2 [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: E2 17 00 [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: E2 17 00 88 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 8E [11:44:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:44:55]wFMCommunicate OK [11:44:55]requested_item fd.num is exist - process it [11:44:55]SAM_PROTO_GetFieldsCounters [11:44:55]wFMCommunicate request_size=4 [11:44:55]MH_SAM_APDU [11:44:55]CAPDU: 80 13 00 00 [11:44:55]Write to MH i2c: E2 08 00 89 41 80 13 00 00 00 00 00 00 46 [11:44:55]Write i2c OK [11:44:55]MH_I2C_Read... [11:44:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:55]Read from MH i2c: E2 [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: E2 62 00 [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: E2 62 00 89 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 18 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 FA [11:44:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 18 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 50 00 00 00 5E 04 04 00 50 00 00 00 57 04 04 00 51 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:44:55]wFMCommunicate OK [11:44:55]SAM_PROTO_GetFieldsCounters done [11:44:55]requested_item shift.num is exist - process it [11:44:55]requested_item shift.opened is exist - process it [11:44:55]req_shift_opened [11:44:55]FM_GetShiftState [11:44:55]SAM_PROTO_GetShiftState [11:44:55]wFMCommunicate request_size=4 [11:44:55]MH_SAM_APDU [11:44:55]CAPDU: 80 13 01 00 [11:44:55]Write to MH i2c: E2 08 00 8A 41 80 13 01 00 00 00 00 00 48 [11:44:55]Write i2c OK [11:44:55]MH_I2C_Read... [11:44:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:55]Read from MH i2c: E2 [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: E2 0E 00 [11:44:55]MH_I2C_Read... [11:44:55]Read from MH i2c: E2 0E 00 8A 41 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 BE [11:44:55]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [11:44:55]wFMCommunicate OK [11:44:55]SAM_PROTO_GetShiftState done [11:44:55]FM_GetShiftState done [11:44:55]req_shift_opened done [11:44:55]requested_item shift.open_date is exist - process it [11:44:55]req_shift_open_date [11:44:55]req_shift_open_date done [11:44:55]produce_requested_data done [11:44:55]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49432,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [11:44:55]process_action_free close_receipt [11:44:55]json_value_free [11:44:55]json_value_free done [11:44:55]process_json_proto returns [11:44:55]Send response to host [11:44:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49432,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [11:44:55]free response buf [11:44:55]execute_script done [11:44:55]execute_script returns [11:44:55]free content buf [11:44:55]Sock 7.Close socket [11:44:55]Sock 7.Thread stoped [11:44:57]OFD Sender: No OFD packet to send [11:45:02]OFD Sender: No OFD packet to send [11:45:07]OFD Sender: No OFD packet to send [11:45:12]OFD Sender: No OFD packet to send [11:45:17]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:28]OFD Sender: No OFD packet to send [11:53:33]OFD Sender: No OFD packet to send [11:53:38]OFD Sender: No OFD packet to send [11:53:43]OFD Sender: No OFD packet to send [11:53:48]OFD Sender: No OFD packet to send [11:53:53]OFD Sender: No OFD packet to send [11:53:58]OFD Sender: No OFD packet to send [11:54:03]OFD Sender: No OFD packet to send [11:54:08]OFD Sender: No OFD packet to send [11:54:13]OFD Sender: No OFD packet to send [11:54:18]OFD Sender: No OFD packet to send [11:54:23]OFD Sender: No OFD packet to send [11:54:28]OFD Sender: No OFD packet to send [11:54:33]OFD Sender: No OFD packet to send [11:54:38]OFD Sender: No OFD packet to send [11:54:43]OFD Sender: No OFD packet to send [11:54:48]OFD Sender: No OFD packet to send [11:54:53]OFD Sender: No OFD packet to send [11:54:58]OFD Sender: No OFD packet to send [11:55:03]OFD Sender: No OFD packet to send [11:55:03]accept exits with 9 [11:55:03]New connection [11:55:03]New thread 3066973540 created [11:55:03]Thread 3066830180 joined [11:55:03]Waiting for new connection... [11:55:03] Sock 9.Parse request [11:55:03]Sock 9.Check first char [11:55:03]Sock 9.First char is OK [11:55:03]request: POST /json_proto HTTP/1.0 [11:55:03]Method: POST [11:55:03]URL: /json_proto [11:55:03]Method is POST - this is cgi request [11:55:03]url: /json_proto [11:55:03]query_string will be loaded in cgi processing [11:55:03]execute_cgi json_proto POST (null) [11:55:03]execute_cgi path=json_proto method=POST [11:55:03]POST find Content-Length [11:55:03]Host: 172.17.46.196:8080 [11:55:03]Content-Length: 753 [11:55:03]Content-Type: application/json [11:55:03] [11:55:03]POST finish read [11:55:03]Found Content-Length = 753 [11:55:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104840", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:03]execute_script... [11:55:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30104840", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:03]POST & json_proto [11:55:03]process_json_proto [11:55:03]json parsed OK: [11:55:03]protocol is kg_v1.0 [11:55:03]action value=close_receipt [11:55:03]process_action close_receipt [11:55:03]cmd_close_receipt [11:55:03]MH_GetDate [11:55:03]Write to MH i2c: F0 00 00 8B 41 BB [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: F0 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: F0 09 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: F0 09 00 8B 41 00 1D 3E BF 66 07 E8 5D 66 F6 [11:55:03]GetLastDocTimeStamp 1723808695 [11:55:03]current date 1723809309 [11:55:03]FM_GetShiftState [11:55:03]SAM_PROTO_GetShiftState [11:55:03]wFMCommunicate request_size=4 [11:55:03]MH_SAM_APDU [11:55:03]CAPDU: 80 13 01 00 [11:55:03]Write to MH i2c: E2 08 00 8C 41 80 13 01 00 00 00 00 00 4A [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:03]Read from MH i2c: E2 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 0E 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 0E 00 8C 41 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 C0 [11:55:03]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [11:55:03]wFMCommunicate OK [11:55:03]SAM_PROTO_GetShiftState done [11:55:03]FM_GetShiftState done [11:55:03]opened in 1723766958 [11:55:03]opened+sec_in_day 1723853358 [11:55:03]quantity*price = 0 [11:55:03]sum+1 = 1 [11:55:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 81 16.08.2024 11:55 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30104840 ФМ: 0000000000871800 ФД: 49433 ФПД: 86567149751258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T115509&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49433&fm=86567149751258&tin=02508201610067®Number=0000000000092546&sum=0 [11:55:04]StoreToDocumentArchive [11:55:04]shift 464 fd 49433 [11:55:04]save to /storage/0464/doc_00049433 [11:55:04]save last doc name /storage/0464/doc_00049433 to /storage/kkm_last_doc_name [11:55:04]save OK [11:55:04]Clear old archive folders... [11:55:04]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:55:04]tlvbuf is 00E997B0 [11:55:04]SAM_PROTO_ClearQueue [11:55:04]wFMCommunicate request_size=4 [11:55:04]MH_SAM_APDU [11:55:04]CAPDU: 80 09 00 00 [11:55:04]Write to MH i2c: E2 08 00 99 41 80 09 00 00 00 00 00 00 4C [11:55:04]Write i2c OK [11:55:04]MH_I2C_Read... [11:55:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:04]Read from MH i2c: E2 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: E2 03 00 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: E2 03 00 99 41 00 90 00 4E [11:55:04]RAPDU: 90 00 [11:55:04]wFMCommunicate OK [11:55:04]SAM_PROTO_ClearQueue done [11:55:04]KKMCreateOFDPacket [11:55:04]OFDProtocolAddRootSTLVToBuf [11:55:04]FM_MakeSignedData [11:55:04]FM_MakeSignedData [11:55:04]SAM_PROTO_SignData [11:55:04]wFMCommunicate request_size=4 [11:55:04]MH_SAM_APDU [11:55:04]CAPDU: 80 0D 01 02 [11:55:04]Write to MH i2c: E2 08 00 9A 41 80 0D 01 02 00 00 00 00 54 [11:55:04]Write i2c OK [11:55:04]MH_I2C_Read... [11:55:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:04]Read from MH i2c: E2 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: E2 03 00 [11:55:04]MH_I2C_Read... [11:55:04]Read from MH i2c: E2 03 00 9A 41 00 90 00 4F [11:55:04]RAPDU: 90 00 [11:55:04]wFMCommunicate OK [11:55:04]wFMCommunicate request_size=255 [11:55:05]MH_SAM_APDU [11:55:05]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 1D 3E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 19 C1 00 00 35 04 06 00 4E BB 7C 35 [11:55:05]Write to MH i2c: E2 02 01 9B 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 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 1D 3E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 19 C1 00 00 35 04 06 00 4E BB 7C 35 00 00 E9 [11:55:05]Write i2c OK [11:55:05]MH_I2C_Read... [11:55:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:05]Read from MH i2c: E2 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 03 00 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 03 00 9B 41 00 90 00 50 [11:55:05]RAPDU: 90 00 [11:55:05]wFMCommunicate OK [11:55:05]wFMCommunicate request_size=7 [11:55:05]MH_SAM_APDU [11:55:05]CAPDU: 80 0D 02 02 02 CB DA [11:55:05]Write to MH i2c: E2 0A 00 9C 41 80 0D 02 02 02 00 CB DA 00 00 00 [11:55:05]Write i2c OK [11:55:05]MH_I2C_Read... [11:55:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:05]Read from MH i2c: E2 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 03 00 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 03 00 9C 41 00 90 00 51 [11:55:05]RAPDU: 90 00 [11:55:05]wFMCommunicate OK [11:55:05]wFMCommunicate request_size=4 [11:55:05]MH_SAM_APDU [11:55:05]CAPDU: 80 0D 03 02 [11:55:05]Write to MH i2c: E2 08 00 9D 41 80 0D 03 02 00 00 00 00 59 [11:55:05]Write i2c OK [11:55:05]MH_I2C_Read... [11:55:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:05]Read from MH i2c: E2 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 0B 00 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 0B 00 9D 41 00 5D 31 77 7F A2 C3 63 6E 90 00 14 [11:55:05]RAPDU: 5D 31 77 7F A2 C3 63 6E 90 00 [11:55:05]wFMCommunicate OK [11:55:05]SAM_PROTO_SignData done [11:55:05]FM_MakeSignedData done [11:55:05]CreateOFDProtocolMessage [11:55:05]wFMCommunicate request_size=4 [11:55:05]MH_SAM_APDU [11:55:05]CAPDU: 80 11 00 00 [11:55:05]Write to MH i2c: E2 08 00 9E 41 80 11 00 00 00 00 00 00 59 [11:55:05]Write i2c OK [11:55:05]MH_I2C_Read... [11:55:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:05]Read from MH i2c: E2 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 17 00 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: E2 17 00 9E 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A4 [11:55:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:55:05]wFMCommunicate OK [11:55:05]CreateOFDProtocolMessage done [11:55:05]OFDSenderStorePacket 49433 [11:55:05]StoreOFDPacket docnum=49433 [11:55:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 65 21 04 01 4F 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 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 1D 3E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 19 C1 00 00 35 04 06 00 4E BB 7C 35 CB DA 5D 31 77 7F A2 C3 63 6E [11:55:05]CheckFolder [11:55:05]dirname=/storage/ofd_packets [11:55:05]CheckFolder done [11:55:05]ProducePacketName [11:55:05]name=ofd_packets/00049433 [11:55:05]NVStorageSaveData ofd_packets/00049433 [11:55:05]File name is /storage/ofd_packets/00049433 [11:55:05]Write 298 bytes [11:55:05]NVStorageSaveData done [11:55:05]OFDSenderStorePacket done [11:55:05]KKMCreateOFDPacket done [11:55:05]NVStorageSaveData kkm_last_timestamp [11:55:05]File name is /storage/kkm_last_timestamp [11:55:05]Write 4 bytes [11:55:05]NVStorageSaveData done [11:55:05]ExternCall_PrintAddStr [11:55:05]wPrintStart [11:55:05]Write to MH i2c: 01 00 00 9F 41 E0 [11:55:05]Write i2c OK [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: 01 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: 01 07 00 [11:55:05]MH_I2C_Read... [11:55:05]Read from MH i2c: 01 07 00 9F 41 00 00 00 00 00 FF 0F F5 [11:55:05]RasterBufferAndPrint [11:55:05]line Счет N : (1)11325338 [11:55:05]line ИНН: 02508201610067 [11:55:05]line Контрольно-Кассовый Чек [11:55:05]line ПРОДАЖА [11:55:05]line ТРК (МРК, ГНК) : 51 [11:55:05]line Товар: 2710194210 [11:55:05]line ДТ-К-5 [11:55:05]line 25.000 * 0.00 [11:55:05]line = 0.00 [11:55:05]line НДС 12% НСП 1% [11:55:05]line > о реализуемом товаре [11:55:05]line ИТОГО: 0.00 [11:55:05]line НСП 1% : 0.00 [11:55:05]line НДС 12% : 0.00 [11:55:05]line Наличными: 0.00 [11:55:05]line Безнал.: 0.00 [11:55:05]line Место: АЗС № 95 "Партнер Нефть" [11:55:05]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [11:55:05]line СНО: Общий режим [11:55:05]line Чек 81 16.08.2024 11:55 [11:55:05]line Смена: 464 ФФД: 1.0 [11:55:05]line ЗНМ: 0300000078 [11:55:05]line РНМ: 0000000000092546 [11:55:05]line Версия ККМ: 001 [11:55:05]line Талоны: ТК ГПНА Online [11:55:05]line 30104840 [11:55:05]line ФМ: 0000000000871800 [11:55:05]line ФД: 49433 [11:55:05]line ФПД: 86567149751258 [11:55:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T115509&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49433&fm=86567149751258&tin=02508201610067®Number=0000000000092546&sum=0 [11:55:05]OFD Sender: Processing packet 49433 [packets to send 21, broken 20] [11:55:05]ProducePacketName [11:55:05]name=ofd_packets/00049433 [11:55:05]OFD Sender: To server: pG, [11:55:05]CommunicateWithHost lk.salyk.kg:30040 [11:55:05]ConnectInit lk.salyk.kg [11:55:05]written 0, free lines is 4095 [11:55:06]Connected sock=11 [11:55:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 65 21 04 01 4F 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 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 1D 3E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 19 C1 00 00 35 04 06 00 4E BB 7C 35 CB DA 5D 31 77 7F A2 C3 63 6E [11:55:06]Write to MH i2c: 01 00 00 C9 41 0A [11:55:06]Write i2c OK [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: 01 [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: 01 07 00 [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: 01 07 00 C9 41 00 00 00 00 00 C6 0C E3 [11:55:06]RasterBufferAndPrint [11:55:06]line [11:55:06]line [11:55:06]line [11:55:06]line [11:55:06]line [11:55:06]written 0, free lines is 3276 [11:55:06]MH_Cut [11:55:06]Write to MH i2c: D1 01 00 D0 41 01 E3 [11:55:06]Write i2c OK [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: D1 [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: D1 01 00 [11:55:06]MH_I2C_Read... [11:55:06]Read from MH i2c: D1 01 00 D0 41 00 E2 [11:55:06]Write to MH i2c: 01 00 00 D1 41 12 [11:55:06]Write i2c OK [11:55:06]MH_I2C_Read... [11:55:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E8 1E 47 00 81 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 38 37 31 38 30 30 10 04 04 00 19 C1 00 00 F4 03 04 00 5C E9 BE 66 B6 04 01 00 00 09 0F 42 E9 66 73 7C 0B [11:55:06]CommunicateWithHost err = 0 [11:55:06]CheckOFDResponse [11:55:06]1017 (14) - 77093643461234 [11:55:06]1041 (16) - 0000000000871800 [11:55:06]1040 (4) - 49433 [11:55:06]1012 (4) - 16.08.2024 05:53 [11:55:06]1206 (1) - 0 [11:55:06]OFD Sender: Remove packet 49433 [11:55:06]ProducePacketName [11:55:06]name=ofd_packets/00049433 [11:55:06]NVStorageDeleteData [11:55:06]OFD Sender: No OFD packet to send [11:55:06]*** Cut start [11:55:06]*** Purtial cut [11:55:06]*** Stage 1: CUTSNS_PIN = 1 [11:55:07]Read from MH i2c: 01 [11:55:07]MH_I2C_Read... [11:55:07]*** Stop cut motor [11:55:07]*** Cut end [11:55:07]Read from MH i2c: 01 07 00 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: 01 07 00 D1 41 00 00 00 00 00 FF 0F 27 [11:55:07]process_action close_receipt done [11:55:07]requested_data is exist [11:55:07]produce_requested_data [11:55:07]requested_item fm.sn is exist - process it [11:55:07]wFMCommunicate request_size=4 [11:55:07]MH_SAM_APDU [11:55:07]CAPDU: 80 11 00 00 [11:55:07]Write to MH i2c: E2 08 00 D2 41 80 11 00 00 00 00 00 00 8D [11:55:07]Write i2c OK [11:55:07]MH_I2C_Read... [11:55:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:07]Read from MH i2c: E2 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 17 00 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 17 00 D2 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D8 [11:55:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [11:55:07]wFMCommunicate OK [11:55:07]requested_item fd.num is exist - process it [11:55:07]SAM_PROTO_GetFieldsCounters [11:55:07]wFMCommunicate request_size=4 [11:55:07]MH_SAM_APDU [11:55:07]CAPDU: 80 13 00 00 [11:55:07]Write to MH i2c: E2 08 00 D3 41 80 13 00 00 00 00 00 00 90 [11:55:07]Write i2c OK [11:55:07]MH_I2C_Read... [11:55:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:07]Read from MH i2c: E2 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 62 00 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 62 00 D3 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 19 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 48 [11:55:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 19 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 51 00 00 00 5E 04 04 00 51 00 00 00 57 04 04 00 52 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:07]wFMCommunicate OK [11:55:07]SAM_PROTO_GetFieldsCounters done [11:55:07]requested_item shift.num is exist - process it [11:55:07]requested_item shift.opened is exist - process it [11:55:07]req_shift_opened [11:55:07]FM_GetShiftState [11:55:07]SAM_PROTO_GetShiftState [11:55:07]wFMCommunicate request_size=4 [11:55:07]MH_SAM_APDU [11:55:07]CAPDU: 80 13 01 00 [11:55:07]Write to MH i2c: E2 08 00 D4 41 80 13 01 00 00 00 00 00 92 [11:55:07]Write i2c OK [11:55:07]MH_I2C_Read... [11:55:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:07]Read from MH i2c: E2 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 0E 00 [11:55:07]MH_I2C_Read... [11:55:07]Read from MH i2c: E2 0E 00 D4 41 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 08 [11:55:07]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [11:55:07]wFMCommunicate OK [11:55:07]SAM_PROTO_GetShiftState done [11:55:07]FM_GetShiftState done [11:55:07]req_shift_opened done [11:55:07]requested_item shift.open_date is exist - process it [11:55:07]req_shift_open_date [11:55:07]req_shift_open_date done [11:55:07]produce_requested_data done [11:55:07]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49433,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [11:55:07]process_action_free close_receipt [11:55:07]json_value_free [11:55:07]json_value_free done [11:55:07]process_json_proto returns [11:55:07]Send response to host [11:55:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49433,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [11:55:07]free response buf [11:55:07]execute_script done [11:55:07]execute_script returns [11:55:07]free content buf [11:55:07]Sock 9.Close socket [11:55:07]Sock 9.Thread stoped [11:55:11]OFD Sender: No OFD packet to send [11:55:16]OFD Sender: No OFD packet to send [11:55:21]OFD Sender: No OFD packet to send [11:55:26]OFD Sender: No OFD packet to send [11:55:31]OFD Sender: No OFD packet to send [11:55:36]OFD Sender: No OFD packet to send [11:55:41]OFD Sender: No OFD packet to send [11:55:46]OFD Sender: No OFD packet to send [11:55:51]OFD Sender: No OFD packet to send [11:55:56]OFD Sender: No OFD packet to send [11:56:01]OFD Sender: No OFD packet to send [11:56:06]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:33]ConnectInit Can't connect to host [11:58:37]OFD Sender: No OFD packet to send [11:58:42]OFD Sender: No OFD packet to send [11:58:47]OFD Sender: No OFD packet to send [11:58:59]ConnectInit Can't connect to host [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:51]accept exits with 7 [12:00:51]New connection [12:00:51]New thread 3066830180 created [12:00:51]Thread 3066973540 joined [12:00:51]Waiting for new connection... [12:00:51] Sock 7.Parse request [12:00:51]Sock 7.Check first char [12:00:51]Sock 7.First char is OK [12:00:51]request: POST /json_proto HTTP/1.0 [12:00:51]Method: POST [12:00:51]URL: /json_proto [12:00:51]Method is POST - this is cgi request [12:00:51]url: /json_proto [12:00:51]query_string will be loaded in cgi processing [12:00:51]execute_cgi json_proto POST (null) [12:00:51]execute_cgi path=json_proto method=POST [12:00:51]POST find Content-Length [12:00:51]Host: 172.17.46.196:8080 [12:00:51]Content-Length: 909 [12:00:51]Content-Type: application/json [12:00:51] [12:00:51]POST finish read [12:00:51]Found Content-Length = 909 [12:00:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189656", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48746526", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 395.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:51]execute_script... [12:00: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 : (3)189656", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 2.000, "sum" : 240.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48746526", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 395.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:51]POST & json_proto [12:00:51]process_json_proto [12:00:51]json parsed OK: [12:00:51]protocol is kg_v1.0 [12:00:51]action value=close_receipt [12:00:51]process_action close_receipt [12:00:51]cmd_close_receipt [12:00:51]MH_GetDate [12:00:51]Write to MH i2c: F0 00 00 D5 41 05 [12:00:51]Write i2c OK [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: F0 [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: F0 09 00 [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: F0 09 00 D5 41 00 78 3F BF 66 07 E8 5D 66 9C [12:00:51]GetLastDocTimeStamp 1723809309 [12:00:51]current date 1723809656 [12:00:51]FM_GetShiftState [12:00:51]SAM_PROTO_GetShiftState [12:00:51]wFMCommunicate request_size=4 [12:00:51]MH_SAM_APDU [12:00:51]CAPDU: 80 13 01 00 [12:00:51]Write to MH i2c: E2 08 00 D6 41 80 13 01 00 00 00 00 00 94 [12:00:51]Write i2c OK [12:00:51]MH_I2C_Read... [12:00:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:51]Read from MH i2c: E2 [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: E2 0E 00 [12:00:51]MH_I2C_Read... [12:00:51]Read from MH i2c: E2 0E 00 D6 41 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 0A [12:00:51]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:00:51]wFMCommunicate OK [12:00:51]SAM_PROTO_GetShiftState done [12:00:51]FM_GetShiftState done [12:00:51]opened in 1723766958 [12:00:51]opened+sec_in_day 1723853358 [12:00:51]quantity*price = 24000 [12:00:51]sum+1 = 24001 [12:00:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48746526 Сигареты Mevius Wind Blue 1.000 * 155.00 = 155.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 395.00 НСП 1% : 3.49 НДС 12% : 41.95 Наличными: 395.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 82 16.08.2024 12:00 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49434 ФПД: 119850774999046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T120056&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49434&fm=119850774999046&tin=02508201610067®Number=0000000000092546&sum=39500 0 [12:00:52]StoreToDocumentArchive [12:00:52]shift 464 fd 49434 [12:00:52]save to /storage/0464/doc_00049434 [12:00:52]save last doc name /storage/0464/doc_00049434 to /storage/kkm_last_doc_name [12:00:52]save OK [12:00:52]Clear old archive folders... [12:00:52]ProcessDocumentItem done err = 0, tmpTLVsize=387 [12:00:52]tlvbuf is 00E8BA80 [12:00:52]SAM_PROTO_ClearQueue [12:00:52]wFMCommunicate request_size=4 [12:00:52]MH_SAM_APDU [12:00:52]CAPDU: 80 09 00 00 [12:00:52]Write to MH i2c: E2 08 00 E3 41 80 09 00 00 00 00 00 00 96 [12:00:52]Write i2c OK [12:00:52]MH_I2C_Read... [12:00:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:52]Read from MH i2c: E2 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 03 00 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 03 00 E3 41 00 90 00 98 [12:00:52]RAPDU: 90 00 [12:00:52]wFMCommunicate OK [12:00:52]SAM_PROTO_ClearQueue done [12:00:52]KKMCreateOFDPacket [12:00:52]OFDProtocolAddRootSTLVToBuf [12:00:52]FM_MakeSignedData [12:00:52]FM_MakeSignedData [12:00:52]SAM_PROTO_SignData [12:00:52]wFMCommunicate request_size=4 [12:00:52]MH_SAM_APDU [12:00:52]CAPDU: 80 0D 01 02 [12:00:52]Write to MH i2c: E2 08 00 E4 41 80 0D 01 02 00 00 00 00 9E [12:00:52]Write i2c OK [12:00:52]MH_I2C_Read... [12:00:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:52]Read from MH i2c: E2 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 03 00 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 03 00 E4 41 00 90 00 99 [12:00:52]RAPDU: 90 00 [12:00:52]wFMCommunicate OK [12:00:52]wFMCommunicate request_size=255 [12:00:52]MH_SAM_APDU [12:00:52]CAPDU: 80 0D 02 02 FA 03 00 83 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 [12:00:52]Write to MH i2c: E2 02 01 E5 41 80 0D 02 02 FA 00 03 00 83 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 00 00 68 [12:00:52]Write i2c OK [12:00:52]MH_I2C_Read... [12:00:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:52]Read from MH i2c: E2 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 03 00 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 03 00 E5 41 00 90 00 9A [12:00:52]RAPDU: 90 00 [12:00:52]wFMCommunicate OK [12:00:52]wFMCommunicate request_size=146 [12:00:52]MH_SAM_APDU [12:00:52]CAPDU: 80 0D 02 02 8D 03 06 00 5D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 78 3F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1A C1 00 00 35 04 06 00 6D 00 EE DE B0 06 [12:00:52]Write to MH i2c: E2 95 00 E6 41 80 0D 02 02 8D 00 03 06 00 5D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 78 3F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1A C1 00 00 35 04 06 00 6D 00 EE DE B0 06 00 00 6A [12:00:52]Write i2c OK [12:00:52]MH_I2C_Read... [12:00:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:52]Read from MH i2c: E2 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 03 00 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 03 00 E6 41 00 90 00 9B [12:00:52]RAPDU: 90 00 [12:00:52]wFMCommunicate OK [12:00:52]wFMCommunicate request_size=4 [12:00:52]MH_SAM_APDU [12:00:52]CAPDU: 80 0D 03 02 [12:00:52]Write to MH i2c: E2 08 00 E7 41 80 0D 03 02 00 00 00 00 A3 [12:00:52]Write i2c OK [12:00:52]MH_I2C_Read... [12:00:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:52]Read from MH i2c: E2 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 0B 00 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 0B 00 E7 41 00 20 30 EF F3 55 6E E7 74 90 00 F4 [12:00:52]RAPDU: 20 30 EF F3 55 6E E7 74 90 00 [12:00:52]wFMCommunicate OK [12:00:52]SAM_PROTO_SignData done [12:00:52]FM_MakeSignedData done [12:00:52]CreateOFDProtocolMessage [12:00:52]wFMCommunicate request_size=4 [12:00:52]MH_SAM_APDU [12:00:52]CAPDU: 80 11 00 00 [12:00:52]Write to MH i2c: E2 08 00 E8 41 80 11 00 00 00 00 00 00 A3 [12:00:52]Write i2c OK [12:00:52]MH_I2C_Read... [12:00:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:52]Read from MH i2c: E2 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 17 00 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: E2 17 00 E8 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 EE [12:00:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:00:52]wFMCommunicate OK [12:00:52]CreateOFDProtocolMessage done [12:00:52]OFDSenderStorePacket 49434 [12:00:52]StoreOFDPacket docnum=49434 [12:00:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 97 01 00 00 BB A1 8F 01 AB 98 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 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 63 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 78 3F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1A C1 00 00 35 04 06 00 6D 00 EE DE B0 06 20 30 EF F3 55 6E E7 74 [12:00:52]CheckFolder [12:00:52]dirname=/storage/ofd_packets [12:00:52]CheckFolder done [12:00:52]ProducePacketName [12:00:52]name=ofd_packets/00049434 [12:00:52]NVStorageSaveData ofd_packets/00049434 [12:00:52]File name is /storage/ofd_packets/00049434 [12:00:52]Write 437 bytes [12:00:52]NVStorageSaveData done [12:00:52]OFDSenderStorePacket done [12:00:52]KKMCreateOFDPacket done [12:00:52]NVStorageSaveData kkm_last_timestamp [12:00:52]File name is /storage/kkm_last_timestamp [12:00:52]Write 4 bytes [12:00:52]NVStorageSaveData done [12:00:52]ExternCall_PrintAddStr [12:00:52]wPrintStart [12:00:52]Write to MH i2c: 01 00 00 E9 41 2A [12:00:52]Write i2c OK [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: 01 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: 01 07 00 [12:00:52]MH_I2C_Read... [12:00:52]Read from MH i2c: 01 07 00 E9 41 00 00 00 00 00 FF 0F 3F [12:00:52]RasterBufferAndPrint [12:00:52]line Счет N : (3)189656 [12:00:52]line ИНН: 02508201610067 [12:00:53]line Контрольно-Кассовый Чек [12:00:53]line ПРОДАЖА [12:00:53]line Товар: 5449000189332 [12:00:53]line Холодный чай Fuse персик 1л [12:00:53]line 2.000 * 120.00 [12:00:53]line = 240.00 [12:00:53]line НДС 12% НСП 1% [12:00:53]line > о реализуемом товаре [12:00:53]line Товар: 48746526 [12:00:53]line Сигареты Mevius Wind Blue [12:00:53]line 1.000 * 155.00 [12:00:53]line = 155.00 [12:00:53]line НДС 12% НСП 1% [12:00:53]line > о реализуемом товаре [12:00:53]line ИТОГО: 395.00 [12:00:53]line НСП 1% : 3.49 [12:00:53]line НДС 12% : 41.95 [12:00:53]line Наличными: 395.00 [12:00:53]line Безнал.: 0.00 [12:00:53]line Место: АЗС № 95 "Партнер Нефть" [12:00:53]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:00:53]line СНО: Общий режим [12:00:53]line Чек 82 16.08.2024 12:00 [12:00:53]line Смена: 464 ФФД: 1.0 [12:00:53]line ЗНМ: 0300000078 [12:00:53]line РНМ: 0000000000092546 [12:00:53]line Версия ККМ: 001 [12:00:53]line ФМ: 0000000000871800 [12:00:53]line ФД: 49434 [12:00:53]line ФПД: 119850774999046 [12:00:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T120056&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49434&fm=119850774999046&tin=02508201610067®Number=0000000000092546&sum=39500 [12:00:53]line 0 [12:00:53]OFD Sender: Processing packet 49434 [packets to send 21, broken 20] [12:00:53]ProducePacketName [12:00:53]name=ofd_packets/00049434 [12:00:53]OFD Sender: To server: pG, [12:00:53]CommunicateWithHost lk.salyk.kg:30040 [12:00:53]ConnectInit lk.salyk.kg [12:00:53]written 0, free lines is 4095 [12:00:53]Connected sock=10 [12:00:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 97 01 00 00 BB A1 8F 01 AB 98 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 C0 5D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 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 63 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 78 3F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1A C1 00 00 35 04 06 00 6D 00 EE DE B0 06 20 30 EF F3 55 6E E7 74 [12:00:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 96 C3 47 00 24 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1A C1 00 00 F4 03 04 00 B7 EA BE 66 B6 04 01 00 00 53 CC 69 46 54 C9 E0 24 [12:00:53]CommunicateWithHost err = 0 [12:00:53]CheckOFDResponse [12:00:53]1017 (14) - 77093643461234 [12:00:53]1041 (16) - 0000000000871800 [12:00:53]1040 (4) - 49434 [12:00:53]1012 (4) - 16.08.2024 05:59 [12:00:53]1206 (1) - 0 [12:00:53]OFD Sender: Remove packet 49434 [12:00:53]ProducePacketName [12:00:53]name=ofd_packets/00049434 [12:00:53]NVStorageDeleteData [12:00:53]Write to MH i2c: 01 00 00 17 42 59 [12:00:53]Write i2c OK [12:00:53]MH_I2C_Read... [12:00:53]Read from MH i2c: 01 [12:00:53]MH_I2C_Read... [12:00:53]Read from MH i2c: 01 07 00 [12:00:53]MH_I2C_Read... [12:00:53]Read from MH i2c: 01 07 00 17 42 00 00 00 00 00 95 0C 01 [12:00:53]RasterBufferAndPrint [12:00:53]line [12:00:53]line [12:00:53]line [12:00:53]line [12:00:53]line [12:00:53]written 0, free lines is 3227 [12:00:53]MH_Cut [12:00:53]Write to MH i2c: D1 01 00 1E 42 01 32 [12:00:53]Write i2c OK [12:00:53]MH_I2C_Read... [12:00:53]Read from MH i2c: D1 [12:00:53]MH_I2C_Read... [12:00:53]Read from MH i2c: D1 01 00 [12:00:53]MH_I2C_Read... [12:00:53]Read from MH i2c: D1 01 00 1E 42 00 31 [12:00:53]Write to MH i2c: 01 00 00 1F 42 61 [12:00:53]Write i2c OK [12:00:53]MH_I2C_Read... [12:00:54]OFD Sender: No OFD packet to send [12:00:54]*** Cut start [12:00:54]*** Purtial cut [12:00:54]*** CUTSNS_PIN = 0 [12:00:54]*** Stage 1: CUTSNS_PIN = 1 [12:00:56]Read from MH i2c: 01 [12:00:56]MH_I2C_Read... [12:00:56]*** Stop cut motor [12:00:56]*** Cut end [12:00:56]Read from MH i2c: 01 07 00 [12:00:56]MH_I2C_Read... [12:00:56]Read from MH i2c: 01 07 00 1F 42 00 00 00 00 00 FF 0F 76 [12:00:56]process_action close_receipt done [12:00:56]requested_data is exist [12:00:56]produce_requested_data [12:00:56]requested_item fm.sn is exist - process it [12:00:56]wFMCommunicate request_size=4 [12:00:56]MH_SAM_APDU [12:00:56]CAPDU: 80 11 00 00 [12:00:56]Write to MH i2c: E2 08 00 20 42 80 11 00 00 00 00 00 00 DC [12:00:56]Write i2c OK [12:00:56]MH_I2C_Read... [12:00:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:56]Read from MH i2c: E2 [12:00:56]MH_I2C_Read... [12:00:56]Read from MH i2c: E2 17 00 [12:00:56]MH_I2C_Read... [12:00:56]Read from MH i2c: E2 17 00 20 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 27 [12:00:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:00:56]wFMCommunicate OK [12:00:56]requested_item fd.num is exist - process it [12:00:56]SAM_PROTO_GetFieldsCounters [12:00:56]wFMCommunicate request_size=4 [12:00:56]MH_SAM_APDU [12:00:56]CAPDU: 80 13 00 00 [12:00:56]Write to MH i2c: E2 08 00 21 42 80 13 00 00 00 00 00 00 DF [12:00:56]Write i2c OK [12:00:56]MH_I2C_Read... [12:00:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:56]Read from MH i2c: E2 [12:00:56]MH_I2C_Read... [12:00:56]Read from MH i2c: E2 62 00 [12:00:56]MH_I2C_Read... [12:00:56]Read from MH i2c: E2 62 00 21 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1A C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [12:00:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1A C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 52 00 00 00 5E 04 04 00 52 00 00 00 57 04 04 00 53 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:56]wFMCommunicate OK [12:00:56]SAM_PROTO_GetFieldsCounters done [12:00:56]requested_item shift.num is exist - process it [12:00:56]requested_item shift.opened is exist - process it [12:00:56]req_shift_opened [12:00:56]FM_GetShiftState [12:00:56]SAM_PROTO_GetShiftState [12:00:56]wFMCommunicate request_size=4 [12:00:56]MH_SAM_APDU [12:00:56]CAPDU: 80 13 01 00 [12:00:56]Write to MH i2c: E2 08 00 22 42 80 13 01 00 00 00 00 00 E1 [12:00:56]Write i2c OK [12:00:56]MH_I2C_Read... [12:00:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:56]Read from MH i2c: E2 [12:00:56]MH_I2C_Read... [12:00:56]Read from MH i2c: E2 0E 00 [12:00:56]MH_I2C_Read... [12:00:56]Read from MH i2c: E2 0E 00 22 42 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 57 [12:00:56]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:00:56]wFMCommunicate OK [12:00:56]SAM_PROTO_GetShiftState done [12:00:56]FM_GetShiftState done [12:00:56]req_shift_opened done [12:00:56]requested_item shift.open_date is exist - process it [12:00:56]req_shift_open_date [12:00:56]req_shift_open_date done [12:00:56]produce_requested_data done [12:00:56]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49434,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [12:00:56]process_action_free close_receipt [12:00:56]json_value_free [12:00:56]json_value_free done [12:00:56]process_json_proto returns [12:00:56]Send response to host [12:00:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49434,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [12:00:56]free response buf [12:00:56]execute_script done [12:00:56]execute_script returns [12:00:56]free content buf [12:00:56]Sock 7.Close socket [12:00:56]Sock 7.Thread stoped [12:00:57]accept exits with 9 [12:00:57]New connection [12:00:57]New thread 3066973540 created [12:00:57]Thread 3066830180 joined [12:00:57]Waiting for new connection... [12:00:57] Sock 9.Parse request [12:00:57]Sock 9.Check first char [12:00:57]Sock 9.First char is OK [12:00:57]request: POST /json_proto HTTP/1.0 [12:00:57]Method: POST [12:00:57]URL: /json_proto [12:00:57]Method is POST - this is cgi request [12:00:57]url: /json_proto [12:00:57]query_string will be loaded in cgi processing [12:00:57]execute_cgi json_proto POST (null) [12:00:57]execute_cgi path=json_proto method=POST [12:00:57]POST find Content-Length [12:00:57]Host: 172.17.46.196:8080 [12:00:57]Content-Length: 644 [12:00:57]Content-Type: application/json [12:00:57] [12:00:57]POST finish read [12:00:57]Found Content-Length = 644 [12:00:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189657", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:57]execute_script... [12:00: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 : (3)189657", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:00:57]POST & json_proto [12:00:57]process_json_proto [12:00:57]json parsed OK: [12:00:57]protocol is kg_v1.0 [12:00:57]action value=close_receipt [12:00:57]process_action close_receipt [12:00:57]cmd_close_receipt [12:00:57]MH_GetDate [12:00:57]Write to MH i2c: F0 00 00 23 42 54 [12:00:57]Write i2c OK [12:00:57]MH_I2C_Read... [12:00:57]Read from MH i2c: F0 [12:00:57]MH_I2C_Read... [12:00:57]Read from MH i2c: F0 09 00 [12:00:57]MH_I2C_Read... [12:00:57]Read from MH i2c: F0 09 00 23 42 00 7F 3F BF 66 07 E8 5D 66 F2 [12:00:57]GetLastDocTimeStamp 1723809656 [12:00:57]current date 1723809663 [12:00:57]FM_GetShiftState [12:00:57]SAM_PROTO_GetShiftState [12:00:57]wFMCommunicate request_size=4 [12:00:57]MH_SAM_APDU [12:00:57]CAPDU: 80 13 01 00 [12:00:57]Write to MH i2c: E2 08 00 24 42 80 13 01 00 00 00 00 00 E3 [12:00:57]Write i2c OK [12:00:57]MH_I2C_Read... [12:00:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:57]Read from MH i2c: E2 [12:00:57]MH_I2C_Read... [12:00:57]Read from MH i2c: E2 0E 00 [12:00:57]MH_I2C_Read... [12:00:57]Read from MH i2c: E2 0E 00 24 42 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 59 [12:00:57]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:00:57]wFMCommunicate OK [12:00:57]SAM_PROTO_GetShiftState done [12:00:57]FM_GetShiftState done [12:00:57]opened in 1723766958 [12:00:57]opened+sec_in_day 1723853358 [12:00:57]quantity*price = 11500 [12:00:57]sum+1 = 11501 [12:00:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 115.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 83 16.08.2024 12:01 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49435 ФПД: 58814912392768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T120103&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49435&fm=58814912392768&tin=02508201610067®Number=0000000000092546&sum=11500 0 [12:00:59]StoreToDocumentArchive [12:00:59]shift 464 fd 49435 [12:00:59]save to /storage/0464/doc_00049435 [12:00:59]save last doc name /storage/0464/doc_00049435 to /storage/kkm_last_doc_name [12:00:59]save OK [12:00:59]Clear old archive folders... [12:00:59]ProcessDocumentItem done err = 0, tmpTLVsize=280 [12:00:59]tlvbuf is 00EA3000 [12:00:59]SAM_PROTO_ClearQueue [12:00:59]wFMCommunicate request_size=4 [12:00:59]MH_SAM_APDU [12:00:59]CAPDU: 80 09 00 00 [12:00:59]Write to MH i2c: E2 08 00 31 42 80 09 00 00 00 00 00 00 E5 [12:00:59]Write i2c OK [12:00:59]MH_I2C_Read... [12:00:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:59]Read from MH i2c: E2 [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: E2 03 00 [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: E2 03 00 31 42 00 90 00 E7 [12:00:59]RAPDU: 90 00 [12:00:59]wFMCommunicate OK [12:00:59]SAM_PROTO_ClearQueue done [12:00:59]KKMCreateOFDPacket [12:00:59]OFDProtocolAddRootSTLVToBuf [12:00:59]FM_MakeSignedData [12:00:59]FM_MakeSignedData [12:00:59]SAM_PROTO_SignData [12:00:59]wFMCommunicate request_size=4 [12:00:59]MH_SAM_APDU [12:00:59]CAPDU: 80 0D 01 02 [12:00:59]Write to MH i2c: E2 08 00 32 42 80 0D 01 02 00 00 00 00 ED [12:00:59]Write i2c OK [12:00:59]MH_I2C_Read... [12:00:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:59]Read from MH i2c: E2 [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: E2 03 00 [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: E2 03 00 32 42 00 90 00 E8 [12:00:59]RAPDU: 90 00 [12:00:59]wFMCommunicate OK [12:00:59]wFMCommunicate request_size=255 [12:00:59]MH_SAM_APDU [12:00:59]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 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 7F 3F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 [12:00:59]Write to MH i2c: E2 02 01 33 42 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 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 7F 3F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 00 35 [12:00:59]Write i2c OK [12:00:59]MH_I2C_Read... [12:00:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:59]Read from MH i2c: E2 [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: E2 03 00 [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: E2 03 00 33 42 00 90 00 E9 [12:00:59]RAPDU: 90 00 [12:00:59]wFMCommunicate OK [12:00:59]wFMCommunicate request_size=39 [12:00:59]MH_SAM_APDU [12:00:59]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1B C1 00 00 35 04 06 00 35 7D E9 F5 EE 40 [12:00:59]Write to MH i2c: E2 2A 00 34 42 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1B C1 00 00 35 04 06 00 35 7D E9 F5 EE 40 00 00 3D [12:00:59]Write i2c OK [12:00:59]MH_I2C_Read... [12:00:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:59]Read from MH i2c: E2 [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: E2 03 00 [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: E2 03 00 34 42 00 90 00 EA [12:00:59]RAPDU: 90 00 [12:00:59]wFMCommunicate OK [12:00:59]wFMCommunicate request_size=4 [12:00:59]MH_SAM_APDU [12:00:59]CAPDU: 80 0D 03 02 [12:00:59]Write to MH i2c: E2 08 00 35 42 80 0D 03 02 00 00 00 00 F2 [12:00:59]Write i2c OK [12:00:59]MH_I2C_Read... [12:00:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:59]Read from MH i2c: E2 [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: E2 0B 00 [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: E2 0B 00 35 42 00 55 99 1F 46 F2 3B 11 EA 90 00 6E [12:00:59]RAPDU: 55 99 1F 46 F2 3B 11 EA 90 00 [12:00:59]wFMCommunicate OK [12:00:59]SAM_PROTO_SignData done [12:00:59]FM_MakeSignedData done [12:00:59]CreateOFDProtocolMessage [12:00:59]wFMCommunicate request_size=4 [12:00:59]MH_SAM_APDU [12:00:59]CAPDU: 80 11 00 00 [12:00:59]Write to MH i2c: E2 08 00 36 42 80 11 00 00 00 00 00 00 F2 [12:00:59]Write i2c OK [12:00:59]MH_I2C_Read... [12:00:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:59]Read from MH i2c: E2 [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: E2 17 00 [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: E2 17 00 36 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3D [12:00:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:00:59]wFMCommunicate OK [12:00:59]CreateOFDProtocolMessage done [12:00:59]OFDSenderStorePacket 49435 [12:00:59]StoreOFDPacket docnum=49435 [12:00:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 F5 02 24 01 21 9D 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 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 7F 3F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1B C1 00 00 35 04 06 00 35 7D E9 F5 EE 40 55 99 1F 46 F2 3B 11 EA [12:00:59]CheckFolder [12:00:59]dirname=/storage/ofd_packets [12:00:59]CheckFolder done [12:00:59]ProducePacketName [12:00:59]name=ofd_packets/00049435 [12:00:59]NVStorageSaveData ofd_packets/00049435 [12:00:59]File name is /storage/ofd_packets/00049435 [12:00:59]Write 330 bytes [12:00:59]NVStorageSaveData done [12:00:59]OFDSenderStorePacket done [12:00:59]KKMCreateOFDPacket done [12:00:59]NVStorageSaveData kkm_last_timestamp [12:00:59]File name is /storage/kkm_last_timestamp [12:00:59]Write 4 bytes [12:00:59]NVStorageSaveData done [12:00:59]ExternCall_PrintAddStr [12:00:59]wPrintStart [12:00:59]Write to MH i2c: 01 00 00 37 42 79 [12:00:59]Write i2c OK [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: 01 [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: 01 07 00 [12:00:59]MH_I2C_Read... [12:00:59]Read from MH i2c: 01 07 00 37 42 00 00 00 00 00 FF 0F 8E [12:00:59]RasterBufferAndPrint [12:00:59]line Счет N : (3)189657 [12:00:59]line ИНН: 02508201610067 [12:00:59]line Контрольно-Кассовый Чек [12:00:59]line ПРОДАЖА [12:00:59]line Товар: 2000036210013 [12:00:59]line Кофе Капучино (GABB TRADE) [12:00:59]line 1.000 * 115.00 [12:00:59]line = 115.00 [12:00:59]line НДС 12% НСП 1% [12:00:59]line > о реализуемом товаре [12:00:59]line ИТОГО: 115.00 [12:00:59]line НСП 1% : 1.02 [12:00:59]line НДС 12% : 12.21 [12:00:59]line Наличными: 115.00 [12:00:59]line Безнал.: 0.00 [12:00:59]line Место: АЗС № 95 "Партнер Нефть" [12:00:59]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:00:59]line СНО: Общий режим [12:00:59]line Чек 83 16.08.2024 12:01 [12:00:59]line Смена: 464 ФФД: 1.0 [12:00:59]line ЗНМ: 0300000078 [12:00:59]line РНМ: 0000000000092546 [12:00:59]line Версия ККМ: 001 [12:00:59]line ФМ: 0000000000871800 [12:00:59]line ФД: 49435 [12:00:59]line ФПД: 58814912392768 [12:01:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T120103&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49435&fm=58814912392768&tin=02508201610067®Number=0000000000092546&sum=11500 [12:01:00]line 0 [12:01:00]OFD Sender: Processing packet 49435 [packets to send 21, broken 20] [12:01:00]ProducePacketName [12:01:00]name=ofd_packets/00049435 [12:01:00]OFD Sender: To server: pG, [12:01:00]CommunicateWithHost lk.salyk.kg:30040 [12:01:00]ConnectInit lk.salyk.kg [12:01:00]written 0, free lines is 4095 [12:01:00]Connected sock=7 [12:01:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 F5 02 24 01 21 9D 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 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 7F 3F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1B C1 00 00 35 04 06 00 35 7D E9 F5 EE 40 55 99 1F 46 F2 3B 11 EA [12:01:00]Write to MH i2c: 01 00 00 5F 42 A1 [12:01:00]Write i2c OK [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: 01 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: 01 07 00 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: 01 07 00 5F 42 00 00 00 00 00 03 0D B8 [12:01:00]RasterBufferAndPrint [12:01:00]line [12:01:00]line [12:01:00]line [12:01:00]line [12:01:00]line [12:01:00]written 0, free lines is 3342 [12:01:00]MH_Cut [12:01:00]Write to MH i2c: D1 01 00 66 42 01 7A [12:01:00]Write i2c OK [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: D1 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: D1 01 00 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: D1 01 00 66 42 00 79 [12:01:00]Write to MH i2c: 01 00 00 67 42 A9 [12:01:00]Write i2c OK [12:01:00]MH_I2C_Read... [12:01:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 73 CE 47 00 14 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1B C1 00 00 F4 03 04 00 BE EA BE 66 B6 04 01 00 00 6A 26 4E 8F 8D A9 8E B4 [12:01:00]CommunicateWithHost err = 0 [12:01:00]CheckOFDResponse [12:01:00]1017 (14) - 77093643461234 [12:01:00]1041 (16) - 0000000000871800 [12:01:00]1040 (4) - 49435 [12:01:00]1012 (4) - 16.08.2024 05:59 [12:01:00]1206 (1) - 0 [12:01:00]OFD Sender: Remove packet 49435 [12:01:00]ProducePacketName [12:01:00]name=ofd_packets/00049435 [12:01:00]NVStorageDeleteData [12:01:01]OFD Sender: No OFD packet to send [12:01:01]*** Cut start [12:01:01]*** Purtial cut [12:01:01]*** Stage 1: CUTSNS_PIN = 1 [12:01:01]Read from MH i2c: 01 [12:01:01]MH_I2C_Read... [12:01:01]*** Stop cut motor [12:01:01]*** Cut end [12:01:01]Read from MH i2c: 01 07 00 [12:01:01]MH_I2C_Read... [12:01:01]Read from MH i2c: 01 07 00 67 42 00 00 00 00 00 FF 0F BE [12:01:01]process_action close_receipt done [12:01:01]requested_data is exist [12:01:01]produce_requested_data [12:01:01]requested_item fm.sn is exist - process it [12:01:01]wFMCommunicate request_size=4 [12:01:01]MH_SAM_APDU [12:01:01]CAPDU: 80 11 00 00 [12:01:01]Write to MH i2c: E2 08 00 68 42 80 11 00 00 00 00 00 00 24 [12:01:01]Write i2c OK [12:01:01]MH_I2C_Read... [12:01:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:01]Read from MH i2c: E2 [12:01:01]MH_I2C_Read... [12:01:01]Read from MH i2c: E2 17 00 [12:01:01]MH_I2C_Read... [12:01:01]Read from MH i2c: E2 17 00 68 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6F [12:01:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:01:01]wFMCommunicate OK [12:01:01]requested_item fd.num is exist - process it [12:01:01]SAM_PROTO_GetFieldsCounters [12:01:01]wFMCommunicate request_size=4 [12:01:01]MH_SAM_APDU [12:01:01]CAPDU: 80 13 00 00 [12:01:01]Write to MH i2c: E2 08 00 69 42 80 13 00 00 00 00 00 00 27 [12:01:01]Write i2c OK [12:01:01]MH_I2C_Read... [12:01:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:01]Read from MH i2c: E2 [12:01:01]MH_I2C_Read... [12:01:01]Read from MH i2c: E2 62 00 [12:01:01]MH_I2C_Read... [12:01:01]Read from MH i2c: E2 62 00 69 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1B C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 E7 [12:01:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1B C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 53 00 00 00 5E 04 04 00 53 00 00 00 57 04 04 00 54 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:01]wFMCommunicate OK [12:01:01]SAM_PROTO_GetFieldsCounters done [12:01:01]requested_item shift.num is exist - process it [12:01:01]requested_item shift.opened is exist - process it [12:01:01]req_shift_opened [12:01:01]FM_GetShiftState [12:01:01]SAM_PROTO_GetShiftState [12:01:01]wFMCommunicate request_size=4 [12:01:01]MH_SAM_APDU [12:01:01]CAPDU: 80 13 01 00 [12:01:01]Write to MH i2c: E2 08 00 6A 42 80 13 01 00 00 00 00 00 29 [12:01:01]Write i2c OK [12:01:01]MH_I2C_Read... [12:01:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:01]Read from MH i2c: E2 [12:01:01]MH_I2C_Read... [12:01:01]Read from MH i2c: E2 0E 00 [12:01:01]MH_I2C_Read... [12:01:01]Read from MH i2c: E2 0E 00 6A 42 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 9F [12:01:01]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:01:01]wFMCommunicate OK [12:01:01]SAM_PROTO_GetShiftState done [12:01:01]FM_GetShiftState done [12:01:01]req_shift_opened done [12:01:01]requested_item shift.open_date is exist - process it [12:01:01]req_shift_open_date [12:01:01]req_shift_open_date done [12:01:01]produce_requested_data done [12:01:01]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49435,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [12:01:01]process_action_free close_receipt [12:01:01]json_value_free [12:01:01]json_value_free done [12:01:01]process_json_proto returns [12:01:01]Send response to host [12:01:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49435,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [12:01:01]free response buf [12:01:01]execute_script done [12:01:01]execute_script returns [12:01:01]free content buf [12:01:01]Sock 9.Close socket [12:01:01]Sock 9.Thread stoped [12:01:06]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]OFD Sender: No OFD packet to send [12:03:41]OFD Sender: No OFD packet to send [12:03:46]OFD Sender: No OFD packet to send [12:03:51]OFD Sender: No OFD packet to send [12:03:56]OFD Sender: No OFD packet to send [12:04:01]OFD Sender: No OFD packet to send [12:04:06]OFD Sender: No OFD packet to send [12:04:11]OFD Sender: No OFD packet to send [12:04:16]OFD Sender: No OFD packet to send [12:04:21]OFD Sender: No OFD packet to send [12:04:26]OFD Sender: No OFD packet to send [12:04:31]OFD Sender: No OFD packet to send [12:04:36]OFD Sender: No OFD packet to send [12:04:41]OFD Sender: No OFD packet to send [12:04:46]OFD Sender: No OFD packet to send [12:04:51]OFD Sender: No OFD packet to send [12:04:56]OFD Sender: No OFD packet to send [12:05:01]OFD Sender: No OFD packet to send [12:05:06]OFD Sender: No OFD packet to send [12:05:11]OFD Sender: No OFD packet to send [12:05:16]OFD Sender: No OFD packet to send [12:05:21]OFD Sender: No OFD packet to send [12:05:26]OFD Sender: No OFD packet to send [12:05:31]OFD Sender: No OFD packet to send [12:05:36]OFD Sender: No OFD packet to send [12:05:41]OFD Sender: No OFD packet to send [12:05:46]OFD Sender: No OFD packet to send [12:05:51]OFD Sender: No OFD packet to send [12:05:56]OFD Sender: No OFD packet to send [12:05:57]accept exits with 10 [12:05:57]New connection [12:05:57]New thread 3066830180 created [12:05:57]Thread 3066973540 joined [12:05:57]Waiting for new connection... [12:05:57] Sock 10.Parse request [12:05:57]Sock 10.Check first char [12:05:57]Sock 10.First char is OK [12:05:57]request: POST /json_proto HTTP/1.0 [12:05:57]Method: POST [12:05:57]URL: /json_proto [12:05:57]Method is POST - this is cgi request [12:05:57]url: /json_proto [12:05:57]query_string will be loaded in cgi processing [12:05:57]execute_cgi json_proto POST (null) [12:05:57]execute_cgi path=json_proto method=POST [12:05:57]POST find Content-Length [12:05:57]Host: 172.17.46.196:8080 [12:05:57]Content-Length: 884 [12:05:57]Content-Type: application/json [12:05:57] [12:05:57]POST finish read [12:05:57]Found Content-Length = 884 [12:05:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189658", "tax_sys" : 0, "items" : [ { "code": "4700000160198", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:57]execute_script... [12: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 : (3)189658", "tax_sys" : 0, "items" : [ { "code": "4700000160198", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822426", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 0,5\u043B \u0431/\u0433", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:05:57]POST & json_proto [12:05:57]process_json_proto [12:05:57]json parsed OK: [12:05:57]protocol is kg_v1.0 [12:05:57]action value=close_receipt [12:05:57]process_action close_receipt [12:05:57]cmd_close_receipt [12:05:57]MH_GetDate [12:05:57]Write to MH i2c: F0 00 00 6B 42 9C [12:05:57]Write i2c OK [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: F0 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: F0 09 00 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: F0 09 00 6B 42 00 AA 40 BF 66 07 E8 5D 66 66 [12:05:57]GetLastDocTimeStamp 1723809663 [12:05:57]current date 1723809962 [12:05:57]FM_GetShiftState [12:05:57]SAM_PROTO_GetShiftState [12:05:57]wFMCommunicate request_size=4 [12:05:57]MH_SAM_APDU [12:05:57]CAPDU: 80 13 01 00 [12:05:57]Write to MH i2c: E2 08 00 6C 42 80 13 01 00 00 00 00 00 2B [12:05:57]Write i2c OK [12:05:57]MH_I2C_Read... [12:05:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:05:57]Read from MH i2c: E2 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 0E 00 [12:05:57]MH_I2C_Read... [12:05:57]Read from MH i2c: E2 0E 00 6C 42 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 A1 [12:05:57]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:05:57]wFMCommunicate OK [12:05:57]SAM_PROTO_GetShiftState done [12:05:57]FM_GetShiftState done [12:05:57]opened in 1723766958 [12:05:57]opened+sec_in_day 1723853358 [12:05:57]quantity*price = 4000 [12:05:57]sum+1 = 4001 [12:05:57]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 40822426 Вода Бонаква 0,5л б/г 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.70 НДС 12% : 8.50 Наличными: 80.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 84 16.08.2024 12:06 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49436 ФПД: 89894722129575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T120602&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49436&fm=89894722129575&tin=02508201610067®Number=0000000000092546&sum=8000 0 [12:05:58]StoreToDocumentArchive [12:05:58]shift 464 fd 49436 [12:05:58]save to /storage/0464/doc_00049436 [12:05:58]save last doc name /storage/0464/doc_00049436 to /storage/kkm_last_doc_name [12:05:58]save OK [12:05:58]Clear old archive folders... [12:05:58]ProcessDocumentItem done err = 0, tmpTLVsize=371 [12:05:58]tlvbuf is 00E999B0 [12:05:58]SAM_PROTO_ClearQueue [12:05:58]wFMCommunicate request_size=4 [12:05:58]MH_SAM_APDU [12:05:58]CAPDU: 80 09 00 00 [12:05:58]Write to MH i2c: E2 08 00 79 42 80 09 00 00 00 00 00 00 2D [12:05:58]Write i2c OK [12:05:58]MH_I2C_Read... [12:05:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:05:58]Read from MH i2c: E2 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: E2 03 00 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: E2 03 00 79 42 00 90 00 2F [12:05:58]RAPDU: 90 00 [12:05:58]wFMCommunicate OK [12:05:58]SAM_PROTO_ClearQueue done [12:05:58]KKMCreateOFDPacket [12:05:58]OFDProtocolAddRootSTLVToBuf [12:05:58]FM_MakeSignedData [12:05:58]FM_MakeSignedData [12:05:58]SAM_PROTO_SignData [12:05:58]wFMCommunicate request_size=4 [12:05:58]MH_SAM_APDU [12:05:58]CAPDU: 80 0D 01 02 [12:05:58]Write to MH i2c: E2 08 00 7A 42 80 0D 01 02 00 00 00 00 35 [12:05:58]Write i2c OK [12:05:58]MH_I2C_Read... [12:05:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:05:58]Read from MH i2c: E2 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: E2 03 00 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: E2 03 00 7A 42 00 90 00 30 [12:05:58]RAPDU: 90 00 [12:05:58]wFMCommunicate OK [12:05:58]wFMCommunicate request_size=255 [12:05:58]MH_SAM_APDU [12:05:58]CAPDU: 80 0D 02 02 FA 03 00 73 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 [12:05:58]Write to MH i2c: E2 02 01 7B 42 80 0D 02 02 FA 00 03 00 73 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 00 53 [12:05:58]Write i2c OK [12:05:58]MH_I2C_Read... [12:05:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:58]Read from MH i2c: E2 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: E2 03 00 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: E2 03 00 7B 42 00 90 00 31 [12:05:58]RAPDU: 90 00 [12:05:58]wFMCommunicate OK [12:05:58]wFMCommunicate request_size=130 [12:05:58]MH_SAM_APDU [12:05:58]CAPDU: 80 0D 02 02 7D 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 AA 40 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1C C1 00 00 35 04 06 00 51 C2 3E FA CE A7 [12:05:58]Write to MH i2c: E2 85 00 7C 42 80 0D 02 02 7D 00 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 AA 40 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1C C1 00 00 35 04 06 00 51 C2 3E FA CE A7 00 00 E7 [12:05:58]Write i2c OK [12:05:58]MH_I2C_Read... [12:05:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:05:58]Read from MH i2c: E2 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: E2 03 00 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: E2 03 00 7C 42 00 90 00 32 [12:05:58]RAPDU: 90 00 [12:05:58]wFMCommunicate OK [12:05:58]wFMCommunicate request_size=4 [12:05:58]MH_SAM_APDU [12:05:58]CAPDU: 80 0D 03 02 [12:05:58]Write to MH i2c: E2 08 00 7D 42 80 0D 03 02 00 00 00 00 3A [12:05:58]Write i2c OK [12:05:58]MH_I2C_Read... [12:05:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:05:58]Read from MH i2c: E2 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: E2 0B 00 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: E2 0B 00 7D 42 00 59 4D 6B D3 68 6B F2 88 90 00 6C [12:05:58]RAPDU: 59 4D 6B D3 68 6B F2 88 90 00 [12:05:58]wFMCommunicate OK [12:05:58]SAM_PROTO_SignData done [12:05:58]FM_MakeSignedData done [12:05:58]CreateOFDProtocolMessage [12:05:58]wFMCommunicate request_size=4 [12:05:58]MH_SAM_APDU [12:05:58]CAPDU: 80 11 00 00 [12:05:58]Write to MH i2c: E2 08 00 7E 42 80 11 00 00 00 00 00 00 3A [12:05:58]Write i2c OK [12:05:58]MH_I2C_Read... [12:05:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:05:58]Read from MH i2c: E2 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: E2 17 00 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: E2 17 00 7E 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 85 [12:05:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:05:58]wFMCommunicate OK [12:05:58]CreateOFDProtocolMessage done [12:05:58]OFDSenderStorePacket 49436 [12:05:58]StoreOFDPacket docnum=49436 [12:05:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 87 01 00 00 46 10 7F 01 C9 88 5A 03 01 00 03 00 73 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 AA 40 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1C C1 00 00 35 04 06 00 51 C2 3E FA CE A7 59 4D 6B D3 68 6B F2 88 [12:05:58]CheckFolder [12:05:58]dirname=/storage/ofd_packets [12:05:58]CheckFolder done [12:05:58]ProducePacketName [12:05:58]name=ofd_packets/00049436 [12:05:58]NVStorageSaveData ofd_packets/00049436 [12:05:58]File name is /storage/ofd_packets/00049436 [12:05:58]Write 421 bytes [12:05:58]NVStorageSaveData done [12:05:58]OFDSenderStorePacket done [12:05:58]KKMCreateOFDPacket done [12:05:58]NVStorageSaveData kkm_last_timestamp [12:05:58]File name is /storage/kkm_last_timestamp [12:05:58]Write 4 bytes [12:05:58]NVStorageSaveData done [12:05:58]ExternCall_PrintAddStr [12:05:58]wPrintStart [12:05:58]Write to MH i2c: 01 00 00 7F 42 C1 [12:05:58]Write i2c OK [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: 01 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: 01 07 00 [12:05:58]MH_I2C_Read... [12:05:58]Read from MH i2c: 01 07 00 7F 42 00 00 00 00 00 FF 0F D6 [12:05:58]RasterBufferAndPrint [12:05:58]line Счет N : (3)189658 [12:05:58]line ИНН: 02508201610067 [12:05:58]line Контрольно-Кассовый Чек [12:05:58]line ПРОДАЖА [12:05:58]line Товар: 4700000160198 [12:05:58]line Вода Байтик 0,5л [12:05:58]line 1.000 * 40.00 [12:05:58]line = 40.00 [12:05:58]line НДС 12% НСП 1% [12:05:58]line > о реализуемом товаре [12:05:58]line Товар: 40822426 [12:05:59]line Вода Бонаква 0,5л б/г [12:05:59]line 1.000 * 40.00 [12:05:59]line = 40.00 [12:05:59]line НДС 12% НСП 1% [12:05:59]line > о реализуемом товаре [12:05:59]line ИТОГО: 80.00 [12:05:59]line НСП 1% : 0.70 [12:05:59]line НДС 12% : 8.50 [12:05:59]line Наличными: 80.00 [12:05:59]line Безнал.: 0.00 [12:05:59]line Место: АЗС № 95 "Партнер Нефть" [12:05:59]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:05:59]line СНО: Общий режим [12:05:59]line Чек 84 16.08.2024 12:06 [12:05:59]line Смена: 464 ФФД: 1.0 [12:05:59]line ЗНМ: 0300000078 [12:05:59]line РНМ: 0000000000092546 [12:05:59]line Версия ККМ: 001 [12:05:59]line ФМ: 0000000000871800 [12:05:59]line ФД: 49436 [12:05:59]line ФПД: 89894722129575 [12:05:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T120602&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49436&fm=89894722129575&tin=02508201610067®Number=0000000000092546&sum=8000 [12:05:59]line 0 [12:05:59]OFD Sender: Processing packet 49436 [packets to send 21, broken 20] [12:05:59]ProducePacketName [12:05:59]name=ofd_packets/00049436 [12:05:59]OFD Sender: To server: pG, [12:05:59]CommunicateWithHost lk.salyk.kg:30040 [12:05:59]ConnectInit lk.salyk.kg [12:05:59]written 0, free lines is 4095 [12:05:59]Connected sock=9 [12:05:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 87 01 00 00 46 10 7F 01 C9 88 5A 03 01 00 03 00 73 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 30 38 32 32 34 32 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 00 00 00 F4 03 04 00 AA 40 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1C C1 00 00 35 04 06 00 51 C2 3E FA CE A7 59 4D 6B D3 68 6B F2 88 [12:05:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 64 25 47 00 F5 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1C C1 00 00 F4 03 04 00 E9 EB BE 66 B6 04 01 00 00 89 DA 07 3A 01 D6 62 51 [12:05:59]CommunicateWithHost err = 0 [12:05:59]CheckOFDResponse [12:05:59]1017 (14) - 77093643461234 [12:05:59]1041 (16) - 0000000000871800 [12:05:59]1040 (4) - 49436 [12:05:59]1012 (4) - 16.08.2024 06:04 [12:05:59]1206 (1) - 0 [12:05:59]OFD Sender: Remove packet 49436 [12:05:59]ProducePacketName [12:05:59]name=ofd_packets/00049436 [12:05:59]NVStorageDeleteData [12:05:59]Write to MH i2c: 01 00 00 AD 42 EF [12:05:59]Write i2c OK [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: 01 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: 01 07 00 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: 01 07 00 AD 42 00 00 00 00 00 A9 0C AB [12:05:59]RasterBufferAndPrint [12:05:59]line [12:05:59]line [12:05:59]line [12:05:59]line [12:05:59]line [12:05:59]written 0, free lines is 3247 [12:05:59]MH_Cut [12:05:59]Write to MH i2c: D1 01 00 B4 42 01 C8 [12:05:59]Write i2c OK [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: D1 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: D1 01 00 [12:05:59]MH_I2C_Read... [12:05:59]Read from MH i2c: D1 01 00 B4 42 00 C7 [12:05:59]Write to MH i2c: 01 00 00 B5 42 F7 [12:05:59]Write i2c OK [12:05:59]MH_I2C_Read... [12:06:00]OFD Sender: No OFD packet to send [12:06:00]*** Cut start [12:06:00]*** Purtial cut [12:06:00]*** CUTSNS_PIN = 0 [12:06:00]*** Stage 1: CUTSNS_PIN = 1 [12:06:02]Read from MH i2c: 01 [12:06:02]MH_I2C_Read... [12:06:02]*** Stop cut motor [12:06:02]*** Cut end [12:06:02]Read from MH i2c: 01 07 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: 01 07 00 B5 42 00 00 00 00 00 FF 0F 0C [12:06:02]process_action close_receipt done [12:06:02]requested_data is exist [12:06:02]produce_requested_data [12:06:02]requested_item fm.sn is exist - process it [12:06:02]wFMCommunicate request_size=4 [12:06:02]MH_SAM_APDU [12:06:02]CAPDU: 80 11 00 00 [12:06:02]Write to MH i2c: E2 08 00 B6 42 80 11 00 00 00 00 00 00 72 [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:06:02]Read from MH i2c: E2 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 17 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 17 00 B6 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BD [12:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:06:02]wFMCommunicate OK [12:06:02]requested_item fd.num is exist - process it [12:06:02]SAM_PROTO_GetFieldsCounters [12:06:02]wFMCommunicate request_size=4 [12:06:02]MH_SAM_APDU [12:06:02]CAPDU: 80 13 00 00 [12:06:02]Write to MH i2c: E2 08 00 B7 42 80 13 00 00 00 00 00 00 75 [12:06:02]Write i2c OK [12:06:02]MH_I2C_Read... [12:06:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:06:02]Read from MH i2c: E2 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 62 00 [12:06:02]MH_I2C_Read... [12:06:02]Read from MH i2c: E2 62 00 B7 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1C C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 39 [12:06:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1C C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 54 00 00 00 5E 04 04 00 54 00 00 00 57 04 04 00 55 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:06:02]wFMCommunicate OK [12:06:02]SAM_PROTO_GetFieldsCounters done [12:06:02]requested_item shift.num is exist - process it [12:06:02]requested_item shift.opened is exist - process it [12:06:02]req_shift_opened [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 B8 42 80 13 01 00 00 00 00 00 77 [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 B8 42 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 ED [12:06:02]RAPDU: 09 00 01 AE 98 BE 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]req_shift_opened done [12:06:02]requested_item shift.open_date is exist - process it [12:06:02]req_shift_open_date [12:06:02]req_shift_open_date done [12:06:02]produce_requested_data done [12:06:02]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49436,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [12:06:02]process_action_free close_receipt [12:06:02]json_value_free [12:06:02]json_value_free done [12:06:02]process_json_proto returns [12:06:02]Send response to host [12:06:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49436,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [12:06:02]free response buf [12:06:02]execute_script done [12:06:02]execute_script returns [12:06:02]free content buf [12:06:02]Sock 10.Close socket [12:06:02]Sock 10.Thread stoped [12:06:05]OFD Sender: No OFD packet to send [12:06:10]OFD Sender: No OFD packet to send [12:06:15]OFD Sender: No OFD packet to send [12:06:20]OFD Sender: No OFD packet to send [12:06:25]OFD Sender: No OFD packet to send [12:06:30]OFD Sender: No OFD packet to send [12:06:35]OFD Sender: No OFD packet to send [12:06:40]OFD Sender: No OFD packet to send [12:06:45]OFD Sender: No OFD packet to send [12:06:50]OFD Sender: No OFD packet to send [12:06:55]OFD Sender: No OFD packet to send [12:07:00]OFD Sender: No OFD packet to send [12:07:05]OFD Sender: No OFD packet to send [12:07:10]OFD Sender: No OFD packet to send [12:07:15]OFD Sender: No OFD packet to send [12:07:20]OFD Sender: No OFD packet to send [12:07:20]accept exits with 7 [12:07:20]New connection [12:07:20]New thread 3066973540 created [12:07:20]Thread 3066830180 joined [12:07:20]Waiting for new connection... [12:07:20] Sock 7.Parse request [12:07:20]Sock 7.Check first char [12:07:20]Sock 7.First char is OK [12:07:20]request: POST /json_proto HTTP/1.0 [12:07:20]Method: POST [12:07:20]URL: /json_proto [12:07:20]Method is POST - this is cgi request [12:07:20]url: /json_proto [12:07:20]query_string will be loaded in cgi processing [12:07:20]execute_cgi json_proto POST (null) [12:07:20]execute_cgi path=json_proto method=POST [12:07:20]POST find Content-Length [12:07:20]Host: 172.17.46.196:8080 [12:07:20]Content-Length: 871 [12:07:20]Content-Type: application/json [12:07:20] [12:07:20]POST finish read [12:07:20]Found Content-Length = 871 [12:07:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189659", "tax_sys" : 0, "items" : [ { "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.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" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:20]execute_script... [12: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 : (3)189659", "tax_sys" : 0, "items" : [ { "code": "4870001571535", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043F\u0435\u0440\u0441\u0438\u043A \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.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" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:20]POST & json_proto [12:07:20]process_json_proto [12:07:20]json parsed OK: [12:07:20]protocol is kg_v1.0 [12:07:20]action value=close_receipt [12:07:20]process_action close_receipt [12:07:20]cmd_close_receipt [12:07:20]MH_GetDate [12:07:20]Write to MH i2c: F0 00 00 B9 42 EA [12:07:20]Write i2c OK [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: F0 [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: F0 09 00 [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: F0 09 00 B9 42 00 FE 40 BF 66 07 E8 5D 66 08 [12:07:20]GetLastDocTimeStamp 1723809962 [12:07:20]current date 1723810046 [12:07:20]FM_GetShiftState [12:07:20]SAM_PROTO_GetShiftState [12:07:20]wFMCommunicate request_size=4 [12:07:20]MH_SAM_APDU [12:07:20]CAPDU: 80 13 01 00 [12:07:20]Write to MH i2c: E2 08 00 BA 42 80 13 01 00 00 00 00 00 79 [12:07:20]Write i2c OK [12:07:20]MH_I2C_Read... [12:07:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:20]Read from MH i2c: E2 [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: E2 0E 00 [12:07:20]MH_I2C_Read... [12:07:20]Read from MH i2c: E2 0E 00 BA 42 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 EF [12:07:20]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:07:20]wFMCommunicate OK [12:07:20]SAM_PROTO_GetShiftState done [12:07:20]FM_GetShiftState done [12:07:20]opened in 1723766958 [12:07:20]opened+sec_in_day 1723853358 [12:07:20]quantity*price = 6500 [12:07:20]sum+1 = 6501 [12:07:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 0.00 Безнал.: 65.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 85 16.08.2024 12:07 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 49437 ФПД: 175117483005017 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T120726&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49437&fm=175117483005017&tin=02508201610067®Number=0000000000092546&sum=6500 0 [12:07:22]StoreToDocumentArchive [12:07:22]shift 464 fd 49437 [12:07:22]save to /storage/0464/doc_00049437 [12:07:22]save last doc name /storage/0464/doc_00049437 to /storage/kkm_last_doc_name [12:07:22]save OK [12:07:22]Clear old archive folders... [12:07:22]ProcessDocumentItem done err = 0, tmpTLVsize=297 [12:07:22]tlvbuf is 00EED520 [12:07:22]SAM_PROTO_ClearQueue [12:07:22]wFMCommunicate request_size=4 [12:07:22]MH_SAM_APDU [12:07:22]CAPDU: 80 09 00 00 [12:07:22]Write to MH i2c: E2 08 00 C7 42 80 09 00 00 00 00 00 00 7B [12:07:22]Write i2c OK [12:07:22]MH_I2C_Read... [12:07:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:22]Read from MH i2c: E2 [12:07:22]MH_I2C_Read... [12:07:22]Read from MH i2c: E2 03 00 [12:07:22]MH_I2C_Read... [12:07:22]Read from MH i2c: E2 03 00 C7 42 00 90 00 7D [12:07:22]RAPDU: 90 00 [12:07:22]wFMCommunicate OK [12:07:22]SAM_PROTO_ClearQueue done [12:07:22]KKMCreateOFDPacket [12:07:22]OFDProtocolAddRootSTLVToBuf [12:07:22]FM_MakeSignedData [12:07:22]FM_MakeSignedData [12:07:22]SAM_PROTO_SignData [12:07:22]wFMCommunicate request_size=4 [12:07:22]MH_SAM_APDU [12:07:22]CAPDU: 80 0D 01 02 [12:07:22]Write to MH i2c: E2 08 00 C8 42 80 0D 01 02 00 00 00 00 83 [12:07:22]Write i2c OK [12:07:22]MH_I2C_Read... [12:07:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:22]Read from MH i2c: E2 [12:07:22]MH_I2C_Read... [12:07:22]Read from MH i2c: E2 03 00 [12:07:22]MH_I2C_Read... [12:07:22]Read from MH i2c: E2 03 00 C8 42 00 90 00 7E [12:07:22]RAPDU: 90 00 [12:07:22]wFMCommunicate OK [12:07:22]wFMCommunicate request_size=255 [12:07:22]MH_SAM_APDU [12:07:22]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 FE 40 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [12:07:22]Write to MH i2c: E2 02 01 C9 42 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 FE 40 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 07 [12:07:22]Write i2c OK [12:07:22]MH_I2C_Read... [12:07:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:22]Read from MH i2c: E2 [12:07:22]MH_I2C_Read... [12:07:22]Read from MH i2c: E2 03 00 [12:07:22]MH_I2C_Read... [12:07:22]Read from MH i2c: E2 03 00 C9 42 00 90 00 7F [12:07:22]RAPDU: 90 00 [12:07:22]wFMCommunicate OK [12:07:22]wFMCommunicate request_size=56 [12:07:22]MH_SAM_APDU [12:07:22]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1D C1 00 00 35 04 06 00 9F 44 B7 5E 54 59 [12:07:22]Write to MH i2c: E2 3B 00 CA 42 80 0D 02 02 33 00 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1D C1 00 00 35 04 06 00 9F 44 B7 5E 54 59 00 00 8D [12:07:22]Write i2c OK [12:07:22]MH_I2C_Read... [12:07:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:22]Read from MH i2c: E2 [12:07:22]MH_I2C_Read... [12:07:22]Read from MH i2c: E2 03 00 [12:07:22]MH_I2C_Read... [12:07:22]Read from MH i2c: E2 03 00 CA 42 00 90 00 80 [12:07:22]RAPDU: 90 00 [12:07:22]wFMCommunicate OK [12:07:22]wFMCommunicate request_size=4 [12:07:22]MH_SAM_APDU [12:07:22]CAPDU: 80 0D 03 02 [12:07:22]Write to MH i2c: E2 08 00 CB 42 80 0D 03 02 00 00 00 00 88 [12:07:22]Write i2c OK [12:07:22]MH_I2C_Read... [12:07:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:22]Read from MH i2c: E2 [12:07:22]MH_I2C_Read... [12:07:22]Read from MH i2c: E2 0B 00 [12:07:22]MH_I2C_Read... [12:07:22]Read from MH i2c: E2 0B 00 CB 42 00 9A 05 61 F4 57 FD A5 17 90 00 8D [12:07:22]RAPDU: 9A 05 61 F4 57 FD A5 17 90 00 [12:07:22]wFMCommunicate OK [12:07:22]SAM_PROTO_SignData done [12:07:22]FM_MakeSignedData done [12:07:22]CreateOFDProtocolMessage [12:07:22]wFMCommunicate request_size=4 [12:07:22]MH_SAM_APDU [12:07:22]CAPDU: 80 11 00 00 [12:07:22]Write to MH i2c: E2 08 00 CC 42 80 11 00 00 00 00 00 00 88 [12:07:22]Write i2c OK [12:07:22]MH_I2C_Read... [12:07:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:22]Read from MH i2c: E2 [12:07:22]MH_I2C_Read... [12:07:22]Read from MH i2c: E2 17 00 [12:07:22]MH_I2C_Read... [12:07:22]Read from MH i2c: E2 17 00 CC 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D3 [12:07:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:07:22]wFMCommunicate OK [12:07:22]CreateOFDProtocolMessage done [12:07:22]OFDSenderStorePacket 49437 [12:07:22]StoreOFDPacket docnum=49437 [12:07:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3D 01 00 00 A1 5A 35 01 34 29 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 FE 40 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1D C1 00 00 35 04 06 00 9F 44 B7 5E 54 59 9A 05 61 F4 57 FD A5 17 [12:07:22]CheckFolder [12:07:22]dirname=/storage/ofd_packets [12:07:22]CheckFolder done [12:07:22]ProducePacketName [12:07:22]name=ofd_packets/00049437 [12:07:22]NVStorageSaveData ofd_packets/00049437 [12:07:22]File name is /storage/ofd_packets/00049437 [12:07:22]Write 347 bytes [12:07:22]NVStorageSaveData done [12:07:22]OFDSenderStorePacket done [12:07:22]KKMCreateOFDPacket done [12:07:22]NVStorageSaveData kkm_last_timestamp [12:07:22]File name is /storage/kkm_last_timestamp [12:07:22]Write 4 bytes [12:07:22]NVStorageSaveData done [12:07:22]ExternCall_PrintAddStr [12:07:22]wPrintStart [12:07:22]Write to MH i2c: 01 00 00 CD 42 0F [12:07:22]Write i2c OK [12:07:22]MH_I2C_Read... [12:07:22]Read from MH i2c: 01 [12:07:22]MH_I2C_Read... [12:07:22]Read from MH i2c: 01 07 00 [12:07:22]MH_I2C_Read... [12:07:22]Read from MH i2c: 01 07 00 CD 42 00 00 00 00 00 FF 0F 24 [12:07:22]RasterBufferAndPrint [12:07:22]line Счет N : (3)189659 [12:07:22]line ИНН: 02508201610067 [12:07:22]line Контрольно-Кассовый Чек [12:07:22]line ПРОДАЖА [12:07:22]line Товар: 4870001571535 [12:07:22]line Вода ASU пит н.газ персик ПЭТ 0,5л [12:07:22]line 1.000 * 65.00 [12:07:22]line = 65.00 [12:07:22]line НДС 12% НСП 1% [12:07:22]line > о реализуемом товаре [12:07:22]line ИТОГО: 65.00 [12:07:22]line НСП 1% : 0.57 [12:07:22]line НДС 12% : 6.90 [12:07:22]line Наличными: 0.00 [12:07:22]line Безнал.: 65.00 [12:07:22]line Место: АЗС № 95 "Партнер Нефть" [12:07:22]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:07:22]line СНО: Общий режим [12:07:22]line Чек 85 16.08.2024 12:07 [12:07:22]line Смена: 464 ФФД: 1.0 [12:07:22]line ЗНМ: 0300000078 [12:07:22]line РНМ: 0000000000092546 [12:07:22]line Версия ККМ: 001 [12:07:22]line Платежная система: Бакай Банк [12:07:22]line ФМ: 0000000000871800 [12:07:22]line ФД: 49437 [12:07:22]line ФПД: 175117483005017 [12:07:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T120726&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49437&fm=175117483005017&tin=02508201610067®Number=0000000000092546&sum=6500 [12:07:22]line 0 [12:07:22]OFD Sender: Processing packet 49437 [packets to send 21, broken 20] [12:07:22]ProducePacketName [12:07:22]name=ofd_packets/00049437 [12:07:22]OFD Sender: To server: pG, [12:07:22]CommunicateWithHost lk.salyk.kg:30040 [12:07:22]ConnectInit lk.salyk.kg [12:07:22]written 0, free lines is 4095 [12:07:23]Connected sock=10 [12:07:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3D 01 00 00 A1 5A 35 01 34 29 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 33 35 06 04 37 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 FE 40 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1D C1 00 00 35 04 06 00 9F 44 B7 5E 54 59 9A 05 61 F4 57 FD A5 17 [12:07:23]Write to MH i2c: 01 00 00 F8 42 3A [12:07:23]Write i2c OK [12:07:23]MH_I2C_Read... [12:07:23]Read from MH i2c: 01 [12:07:23]MH_I2C_Read... [12:07:23]Read from MH i2c: 01 07 00 [12:07:23]MH_I2C_Read... [12:07:23]Read from MH i2c: 01 07 00 F8 42 00 00 00 00 00 B1 0C FE [12:07:23]RasterBufferAndPrint [12:07:23]line [12:07:23]line [12:07:23]line [12:07:23]line [12:07:23]line [12:07:23]written 0, free lines is 3255 [12:07:23]MH_Cut [12:07:23]Write to MH i2c: D1 01 00 FF 42 01 13 [12:07:23]Write i2c OK [12:07:23]MH_I2C_Read... [12:07:23]Read from MH i2c: D1 [12:07:23]MH_I2C_Read... [12:07:23]Read from MH i2c: D1 01 00 [12:07:23]MH_I2C_Read... [12:07:23]Read from MH i2c: D1 01 00 FF 42 00 12 [12:07:23]Write to MH i2c: 01 00 00 00 43 43 [12:07:23]Write i2c OK [12:07:23]MH_I2C_Read... [12:07:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 B8 55 47 00 71 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 38 37 31 38 30 30 10 04 04 00 1D C1 00 00 F4 03 04 00 3D EC BE 66 B6 04 01 00 00 7B F3 39 F5 7D 87 04 37 [12:07:23]CommunicateWithHost err = 0 [12:07:23]CheckOFDResponse [12:07:23]1017 (14) - 77093643461234 [12:07:23]1041 (16) - 0000000000871800 [12:07:23]1040 (4) - 49437 [12:07:23]1012 (4) - 16.08.2024 06:05 [12:07:23]1206 (1) - 0 [12:07:23]OFD Sender: Remove packet 49437 [12:07:23]ProducePacketName [12:07:23]name=ofd_packets/00049437 [12:07:23]NVStorageDeleteData [12:07:23]OFD Sender: No OFD packet to send [12:07:24]*** Cut start [12:07:24]*** Purtial cut [12:07:24]*** Stage 1: CUTSNS_PIN = 1 [12:07:24]Read from MH i2c: 01 [12:07:24]MH_I2C_Read... [12:07:24]*** Stop cut motor [12:07:24]*** Cut end [12:07:24]Read from MH i2c: 01 07 00 [12:07:24]MH_I2C_Read... [12:07:24]Read from MH i2c: 01 07 00 00 43 00 00 00 00 00 FF 0F 58 [12:07:24]process_action close_receipt done [12:07:24]requested_data is exist [12:07:24]produce_requested_data [12:07:24]requested_item fm.sn is exist - process it [12:07:24]wFMCommunicate request_size=4 [12:07:24]MH_SAM_APDU [12:07:24]CAPDU: 80 11 00 00 [12:07:24]Write to MH i2c: E2 08 00 01 43 80 11 00 00 00 00 00 00 BE [12:07:24]Write i2c OK [12:07:24]MH_I2C_Read... [12:07:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:24]Read from MH i2c: E2 [12:07:24]MH_I2C_Read... [12:07:24]Read from MH i2c: E2 17 00 [12:07:24]MH_I2C_Read... [12:07:24]Read from MH i2c: E2 17 00 01 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 09 [12:07:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:07:24]wFMCommunicate OK [12:07:24]requested_item fd.num is exist - process it [12:07:24]SAM_PROTO_GetFieldsCounters [12:07:24]wFMCommunicate request_size=4 [12:07:24]MH_SAM_APDU [12:07:24]CAPDU: 80 13 00 00 [12:07:24]Write to MH i2c: E2 08 00 02 43 80 13 00 00 00 00 00 00 C1 [12:07:24]Write i2c OK [12:07:24]MH_I2C_Read... [12:07:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:24]Read from MH i2c: E2 [12:07:24]MH_I2C_Read... [12:07:24]Read from MH i2c: E2 62 00 [12:07:24]MH_I2C_Read... [12:07:24]Read from MH i2c: E2 62 00 02 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1D C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [12:07:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1D C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 55 00 00 00 5E 04 04 00 55 00 00 00 57 04 04 00 56 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:24]wFMCommunicate OK [12:07:24]SAM_PROTO_GetFieldsCounters done [12:07:24]requested_item shift.num is exist - process it [12:07:24]requested_item shift.opened is exist - process it [12:07:24]req_shift_opened [12:07:24]FM_GetShiftState [12:07:24]SAM_PROTO_GetShiftState [12:07:24]wFMCommunicate request_size=4 [12:07:24]MH_SAM_APDU [12:07:24]CAPDU: 80 13 01 00 [12:07:24]Write to MH i2c: E2 08 00 03 43 80 13 01 00 00 00 00 00 C3 [12:07:24]Write i2c OK [12:07:24]MH_I2C_Read... [12:07:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:24]Read from MH i2c: E2 [12:07:24]MH_I2C_Read... [12:07:24]Read from MH i2c: E2 0E 00 [12:07:24]MH_I2C_Read... [12:07:24]Read from MH i2c: E2 0E 00 03 43 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 39 [12:07:24]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:07:24]wFMCommunicate OK [12:07:24]SAM_PROTO_GetShiftState done [12:07:24]FM_GetShiftState done [12:07:24]req_shift_opened done [12:07:24]requested_item shift.open_date is exist - process it [12:07:24]req_shift_open_date [12:07:24]req_shift_open_date done [12:07:24]produce_requested_data done [12:07:24]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49437,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [12:07:24]process_action_free close_receipt [12:07:24]json_value_free [12:07:24]json_value_free done [12:07:24]process_json_proto returns [12:07:24]Send response to host [12:07:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49437,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [12:07:24]free response buf [12:07:24]execute_script done [12:07:24]execute_script returns [12:07:24]free content buf [12:07:24]Sock 7.Close socket [12:07:24]Sock 7.Thread stoped [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:56]accept exits with 9 [12:07:56]New connection [12:07:56]New thread 3066830180 created [12:07:56]Thread 3066973540 joined [12:07:56]Waiting for new connection... [12:07:56] Sock 9.Parse request [12:07:56]Sock 9.Check first char [12:07:56]Sock 9.First char is OK [12:07:56]request: POST /json_proto HTTP/1.0 [12:07:56]Method: POST [12:07:56]URL: /json_proto [12:07:56]Method is POST - this is cgi request [12:07:56]url: /json_proto [12:07:56]query_string will be loaded in cgi processing [12:07:56]execute_cgi json_proto POST (null) [12:07:56]execute_cgi path=json_proto method=POST [12:07:56]POST find Content-Length [12:07:56]Host: 172.17.46.196:8080 [12:07:56]Content-Length: 621 [12:07:56]Content-Type: application/json [12:07:56] [12:07:56]POST finish read [12:07:56]Found Content-Length = 621 [12:07:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189660", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:56]execute_script... [12:07: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 : (3)189660", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:56]POST & json_proto [12:07:56]process_json_proto [12:07:56]json parsed OK: [12:07:56]protocol is kg_v1.0 [12:07:56]action value=close_receipt [12:07:56]process_action close_receipt [12:07:56]cmd_close_receipt [12:07:56]MH_GetDate [12:07:56]Write to MH i2c: F0 00 00 04 43 36 [12:07:56]Write i2c OK [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: F0 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: F0 09 00 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: F0 09 00 04 43 00 22 41 BF 66 07 E8 5D 66 79 [12:07:56]GetLastDocTimeStamp 1723810046 [12:07:56]current date 1723810082 [12:07:56]FM_GetShiftState [12:07:56]SAM_PROTO_GetShiftState [12:07:56]wFMCommunicate request_size=4 [12:07:56]MH_SAM_APDU [12:07:56]CAPDU: 80 13 01 00 [12:07:56]Write to MH i2c: E2 08 00 05 43 80 13 01 00 00 00 00 00 C5 [12:07:56]Write i2c OK [12:07:56]MH_I2C_Read... [12:07:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:56]Read from MH i2c: E2 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 0E 00 [12:07:56]MH_I2C_Read... [12:07:56]Read from MH i2c: E2 0E 00 05 43 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 3B [12:07:56]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:07:56]wFMCommunicate OK [12:07:56]SAM_PROTO_GetShiftState done [12:07:56]FM_GetShiftState done [12:07:56]opened in 1723766958 [12:07:56]opened+sec_in_day 1723853358 [12:07:56]quantity*price = 13000 [12:07:56]sum+1 = 13001 [12:07:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 86 16.08.2024 12:08 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49438 ФПД: 12935351876887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T120802&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49438&fm=12935351876887&tin=02508201610067®Number=0000000000092546&sum=13000 0 [12:07:57]StoreToDocumentArchive [12:07:57]shift 464 fd 49438 [12:07:57]save to /storage/0464/doc_00049438 [12:07:57]save last doc name /storage/0464/doc_00049438 to /storage/kkm_last_doc_name [12:07:57]save OK [12:07:57]Clear old archive folders... [12:07:57]ProcessDocumentItem done err = 0, tmpTLVsize=273 [12:07:57]tlvbuf is 00E208A0 [12:07:57]SAM_PROTO_ClearQueue [12:07:57]wFMCommunicate request_size=4 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 09 00 00 [12:07:57]Write to MH i2c: E2 08 00 12 43 80 09 00 00 00 00 00 00 C7 [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:57]Read from MH i2c: E2 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 [12:07:57]MH_I2C_Read... [12:07:57]Read from MH i2c: E2 03 00 12 43 00 90 00 C9 [12:07:57]RAPDU: 90 00 [12:07:57]wFMCommunicate OK [12:07:57]SAM_PROTO_ClearQueue done [12:07:57]KKMCreateOFDPacket [12:07:57]OFDProtocolAddRootSTLVToBuf [12:07:57]FM_MakeSignedData [12:07:57]FM_MakeSignedData [12:07:57]SAM_PROTO_SignData [12:07:57]wFMCommunicate request_size=4 [12:07:57]MH_SAM_APDU [12:07:57]CAPDU: 80 0D 01 02 [12:07:57]Write to MH i2c: E2 08 00 13 43 80 0D 01 02 00 00 00 00 CF [12:07:57]Write i2c OK [12:07:57]MH_I2C_Read... [12:07:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:58]Read from MH i2c: E2 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 03 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 03 00 13 43 00 90 00 CA [12:07:58]RAPDU: 90 00 [12:07:58]wFMCommunicate OK [12:07:58]wFMCommunicate request_size=255 [12:07:58]MH_SAM_APDU [12:07:58]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 22 41 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [12:07:58]Write to MH i2c: E2 02 01 14 43 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 22 41 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 79 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:58]Read from MH i2c: E2 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 03 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 03 00 14 43 00 90 00 CB [12:07:58]RAPDU: 90 00 [12:07:58]wFMCommunicate OK [12:07:58]wFMCommunicate request_size=32 [12:07:58]MH_SAM_APDU [12:07:58]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 1E C1 00 00 35 04 06 00 0B C3 BF 0D BD 17 [12:07:58]Write to MH i2c: E2 23 00 15 43 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 1E C1 00 00 35 04 06 00 0B C3 BF 0D BD 17 00 00 74 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:58]Read from MH i2c: E2 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 03 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 03 00 15 43 00 90 00 CC [12:07:58]RAPDU: 90 00 [12:07:58]wFMCommunicate OK [12:07:58]wFMCommunicate request_size=4 [12:07:58]MH_SAM_APDU [12:07:58]CAPDU: 80 0D 03 02 [12:07:58]Write to MH i2c: E2 08 00 16 43 80 0D 03 02 00 00 00 00 D4 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:58]Read from MH i2c: E2 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 0B 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 0B 00 16 43 00 42 94 60 7C F1 40 38 3D 90 00 2D [12:07:58]RAPDU: 42 94 60 7C F1 40 38 3D 90 00 [12:07:58]wFMCommunicate OK [12:07:58]SAM_PROTO_SignData done [12:07:58]FM_MakeSignedData done [12:07:58]CreateOFDProtocolMessage [12:07:58]wFMCommunicate request_size=4 [12:07:58]MH_SAM_APDU [12:07:58]CAPDU: 80 11 00 00 [12:07:58]Write to MH i2c: E2 08 00 17 43 80 11 00 00 00 00 00 00 D4 [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:58]Read from MH i2c: E2 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 17 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: E2 17 00 17 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1F [12:07:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:07:58]wFMCommunicate OK [12:07:58]CreateOFDProtocolMessage done [12:07:58]OFDSenderStorePacket 49438 [12:07:58]StoreOFDPacket docnum=49438 [12:07:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 CF 04 1D 01 99 A4 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 22 41 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1E C1 00 00 35 04 06 00 0B C3 BF 0D BD 17 42 94 60 7C F1 40 38 3D [12:07:58]CheckFolder [12:07:58]dirname=/storage/ofd_packets [12:07:58]CheckFolder done [12:07:58]ProducePacketName [12:07:58]name=ofd_packets/00049438 [12:07:58]NVStorageSaveData ofd_packets/00049438 [12:07:58]File name is /storage/ofd_packets/00049438 [12:07:58]Write 323 bytes [12:07:58]NVStorageSaveData done [12:07:58]OFDSenderStorePacket done [12:07:58]KKMCreateOFDPacket done [12:07:58]NVStorageSaveData kkm_last_timestamp [12:07:58]File name is /storage/kkm_last_timestamp [12:07:58]Write 4 bytes [12:07:58]NVStorageSaveData done [12:07:58]ExternCall_PrintAddStr [12:07:58]wPrintStart [12:07:58]Write to MH i2c: 01 00 00 18 43 5B [12:07:58]Write i2c OK [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 07 00 [12:07:58]MH_I2C_Read... [12:07:58]Read from MH i2c: 01 07 00 18 43 00 00 00 00 00 FF 0F 70 [12:07:58]RasterBufferAndPrint [12:07:58]line Счет N : (3)189660 [12:07:58]line ИНН: 02508201610067 [12:07:58]line Контрольно-Кассовый Чек [12:07:58]line ПРОДАЖА [12:07:58]line Товар: 4780014240406 [12:07:58]line Сигареты Sovereign Blue [12:07:58]line 1.000 * 130.00 [12:07:58]line = 130.00 [12:07:58]line НДС 12% НСП 1% [12:07:58]line > о реализуемом товаре [12:07:58]line ИТОГО: 130.00 [12:07:58]line НСП 1% : 1.15 [12:07:58]line НДС 12% : 13.80 [12:07:58]line Наличными: 130.00 [12:07:58]line Безнал.: 0.00 [12:07:58]line Место: АЗС № 95 "Партнер Нефть" [12:07:58]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:07:58]line СНО: Общий режим [12:07:58]line Чек 86 16.08.2024 12:08 [12:07:58]line Смена: 464 ФФД: 1.0 [12:07:58]line ЗНМ: 0300000078 [12:07:58]line РНМ: 0000000000092546 [12:07:58]line Версия ККМ: 001 [12:07:58]line ФМ: 0000000000871800 [12:07:58]line ФД: 49438 [12:07:58]line ФПД: 12935351876887 [12:07:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T120802&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49438&fm=12935351876887&tin=02508201610067®Number=0000000000092546&sum=13000 [12:07:58]OFD Sender: Processing packet 49438 [packets to send 21, broken 20] [12:07:58]ProducePacketName [12:07:58]name=ofd_packets/00049438 [12:07:58]OFD Sender: To server: pG, [12:07:58]CommunicateWithHost lk.salyk.kg:30040 [12:07:58]ConnectInit lk.salyk.kg [12:07:58]line 0 [12:07:58]written 0, free lines is 4095 [12:07:58]Connected sock=10 [12:07:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 CF 04 1D 01 99 A4 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 22 41 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1E C1 00 00 35 04 06 00 0B C3 BF 0D BD 17 42 94 60 7C F1 40 38 3D [12:07:59]Write to MH i2c: 01 00 00 40 43 83 [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 07 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: 01 07 00 40 43 00 00 00 00 00 FE 0C 94 [12:07:59]RasterBufferAndPrint [12:07:59]line [12:07:59]line [12:07:59]line [12:07:59]line [12:07:59]line [12:07:59]written 0, free lines is 3332 [12:07:59]MH_Cut [12:07:59]Write to MH i2c: D1 01 00 47 43 01 5C [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: D1 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: D1 01 00 [12:07:59]MH_I2C_Read... [12:07:59]Read from MH i2c: D1 01 00 47 43 00 5B [12:07:59]Write to MH i2c: 01 00 00 48 43 8B [12:07:59]Write i2c OK [12:07:59]MH_I2C_Read... [12:07:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 99 A6 47 00 93 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1E C1 00 00 F4 03 04 00 61 EC BE 66 B6 04 01 00 00 D3 E4 B5 92 38 75 28 BB [12:07:59]CommunicateWithHost err = 0 [12:07:59]CheckOFDResponse [12:07:59]1017 (14) - 77093643461234 [12:07:59]1041 (16) - 0000000000871800 [12:07:59]1040 (4) - 49438 [12:07:59]1012 (4) - 16.08.2024 06:06 [12:07:59]1206 (1) - 0 [12:07:59]OFD Sender: Remove packet 49438 [12:07:59]ProducePacketName [12:07:59]name=ofd_packets/00049438 [12:07:59]NVStorageDeleteData [12:07:59]OFD Sender: No OFD packet to send [12:08:00]*** Cut start [12:08:00]*** Purtial cut [12:08:00]*** CUTSNS_PIN = 0 [12:08:00]*** Stage 1: CUTSNS_PIN = 1 [12:08:02]Read from MH i2c: 01 [12:08:02]MH_I2C_Read... [12:08:02]*** Stop cut motor [12:08:02]*** Cut end [12:08:02]Read from MH i2c: 01 07 00 [12:08:02]MH_I2C_Read... [12:08:02]Read from MH i2c: 01 07 00 48 43 00 00 00 00 00 FF 0F A0 [12:08:02]process_action close_receipt done [12:08:02]requested_data is exist [12:08:02]produce_requested_data [12:08:02]requested_item fm.sn is exist - process it [12:08:02]wFMCommunicate request_size=4 [12:08:02]MH_SAM_APDU [12:08:02]CAPDU: 80 11 00 00 [12:08:02]Write to MH i2c: E2 08 00 49 43 80 11 00 00 00 00 00 00 06 [12:08:02]Write i2c OK [12:08:02]MH_I2C_Read... [12:08:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:08:02]Read from MH i2c: E2 [12:08:02]MH_I2C_Read... [12:08:02]Read from MH i2c: E2 17 00 [12:08:02]MH_I2C_Read... [12:08:02]Read from MH i2c: E2 17 00 49 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 51 [12:08:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:08:02]wFMCommunicate OK [12:08:02]requested_item fd.num is exist - process it [12:08:02]SAM_PROTO_GetFieldsCounters [12:08:02]wFMCommunicate request_size=4 [12:08:02]MH_SAM_APDU [12:08:02]CAPDU: 80 13 00 00 [12:08:02]Write to MH i2c: E2 08 00 4A 43 80 13 00 00 00 00 00 00 09 [12:08:02]Write i2c OK [12:08:02]MH_I2C_Read... [12:08:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:08:02]Read from MH i2c: E2 [12:08:02]MH_I2C_Read... [12:08:02]Read from MH i2c: E2 62 00 [12:08:02]MH_I2C_Read... [12:08:02]Read from MH i2c: E2 62 00 4A 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1E C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [12:08:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1E C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 56 00 00 00 5E 04 04 00 56 00 00 00 57 04 04 00 57 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:08:02]wFMCommunicate OK [12:08:02]SAM_PROTO_GetFieldsCounters done [12:08:02]requested_item shift.num is exist - process it [12:08:02]requested_item shift.opened is exist - process it [12:08:02]req_shift_opened [12:08:02]FM_GetShiftState [12:08:02]SAM_PROTO_GetShiftState [12:08:02]wFMCommunicate request_size=4 [12:08:02]MH_SAM_APDU [12:08:02]CAPDU: 80 13 01 00 [12:08:02]Write to MH i2c: E2 08 00 4B 43 80 13 01 00 00 00 00 00 0B [12:08:02]Write i2c OK [12:08:02]MH_I2C_Read... [12:08:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:08:02]Read from MH i2c: E2 [12:08:02]MH_I2C_Read... [12:08:02]Read from MH i2c: E2 0E 00 [12:08:02]MH_I2C_Read... [12:08:02]Read from MH i2c: E2 0E 00 4B 43 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 81 [12:08:02]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:08:02]wFMCommunicate OK [12:08:02]SAM_PROTO_GetShiftState done [12:08:02]FM_GetShiftState done [12:08:02]req_shift_opened done [12:08:02]requested_item shift.open_date is exist - process it [12:08:02]req_shift_open_date [12:08:02]req_shift_open_date done [12:08:02]produce_requested_data done [12:08:02]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49438,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [12:08:02]process_action_free close_receipt [12:08:02]json_value_free [12:08:02]json_value_free done [12:08:02]process_json_proto returns [12:08:02]Send response to host [12:08:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49438,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [12:08:02]free response buf [12:08:02]execute_script done [12:08:02]execute_script returns [12:08:02]free content buf [12:08:02]Sock 9.Close socket [12:08:02]Sock 9.Thread stoped [12:08:04]OFD Sender: No OFD packet to send [12:08:09]OFD Sender: No OFD packet to send [12:08:14]OFD Sender: No OFD packet to send [12:08:19]OFD Sender: No OFD packet to send [12:08:24]OFD Sender: No OFD packet to send [12:08:29]OFD Sender: No OFD packet to send [12:08:34]OFD Sender: No OFD packet to send [12:08:39]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:14]OFD Sender: No OFD packet to send [12:09:19]OFD Sender: No OFD packet to send [12:09:24]OFD Sender: No OFD packet to send [12:09:29]OFD Sender: No OFD packet to send [12:09:34]OFD Sender: No OFD packet to send [12:09:39]OFD Sender: No OFD packet to send [12:09:44]OFD Sender: No OFD packet to send [12:09:49]OFD Sender: No OFD packet to send [12:09:54]OFD Sender: No OFD packet to send [12:09:59]OFD Sender: No OFD packet to send [12:10:04]OFD Sender: No OFD packet to send [12:10:09]OFD Sender: No OFD packet to send [12:10:14]OFD Sender: No OFD packet to send [12:10:19]OFD Sender: No OFD packet to send [12:10:24]OFD Sender: No OFD packet to send [12:10:29]OFD Sender: No OFD packet to send [12:10:34]OFD Sender: No OFD packet to send [12:10:39]OFD Sender: No OFD packet to send [12:10:44]OFD Sender: No OFD packet to send [12:10:49]OFD Sender: No OFD packet to send [12:10:54]OFD Sender: No OFD packet to send [12:10:59]OFD Sender: No OFD packet to send [12:11:04]OFD Sender: No OFD packet to send [12:11:09]OFD Sender: No OFD packet to send [12:11:14]OFD Sender: No OFD packet to send [12:11:19]OFD Sender: No OFD packet to send [12:11:24]OFD Sender: No OFD packet to send [12:11:29]OFD Sender: No OFD packet to send [12:11:34]OFD Sender: No OFD packet to send [12:11:39]OFD Sender: No OFD packet to send [12:11:44]OFD Sender: No OFD packet to send [12:11:46]accept exits with 7 [12:11:46]New connection [12:11:46]New thread 3066973540 created [12:11:46]Thread 3066830180 joined [12:11:46]Waiting for new connection... [12:11:46] Sock 7.Parse request [12:11:46]Sock 7.Check first char [12:11:46]Sock 7.First char is OK [12:11:46]request: POST /json_proto HTTP/1.0 [12:11:46]Method: POST [12:11:46]URL: /json_proto [12:11:46]Method is POST - this is cgi request [12:11:46]url: /json_proto [12:11:46]query_string will be loaded in cgi processing [12:11:46]execute_cgi json_proto POST (null) [12:11:46]execute_cgi path=json_proto method=POST [12:11:46]POST find Content-Length [12:11:46]Host: 172.17.46.196:8080 [12:11:46]Content-Length: 871 [12:11:46]Content-Type: application/json [12:11:46] [12:11:46]POST finish read [12:11:46]Found Content-Length = 871 [12:11:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189661", "tax_sys" : 0, "items" : [ { "code": "8590042701239", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D\u044B\u0435 VOK", "price" : 36.00, "quantity" : 1.000, "sum" : 36.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 91.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:46]execute_script... [12:11:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189661", "tax_sys" : 0, "items" : [ { "code": "8590042701239", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D\u044B\u0435 VOK", "price" : 36.00, "quantity" : 1.000, "sum" : 36.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 91.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:46]POST & json_proto [12:11:46]process_json_proto [12:11:46]json parsed OK: [12:11:46]protocol is kg_v1.0 [12:11:46]action value=close_receipt [12:11:46]process_action close_receipt [12:11:46]cmd_close_receipt [12:11:46]MH_GetDate [12:11:46]Write to MH i2c: F0 00 00 4C 43 7E [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: F0 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: F0 09 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: F0 09 00 4C 43 00 08 42 BF 66 07 E8 5D 66 A8 [12:11:46]GetLastDocTimeStamp 1723810082 [12:11:46]current date 1723810312 [12:11:46]FM_GetShiftState [12:11:46]SAM_PROTO_GetShiftState [12:11:46]wFMCommunicate request_size=4 [12:11:46]MH_SAM_APDU [12:11:46]CAPDU: 80 13 01 00 [12:11:46]Write to MH i2c: E2 08 00 4D 43 80 13 01 00 00 00 00 00 0D [12:11:46]Write i2c OK [12:11:46]MH_I2C_Read... [12:11:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:46]Read from MH i2c: E2 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 0E 00 [12:11:46]MH_I2C_Read... [12:11:46]Read from MH i2c: E2 0E 00 4D 43 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 83 [12:11:46]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:11:46]wFMCommunicate OK [12:11:46]SAM_PROTO_GetShiftState done [12:11:46]FM_GetShiftState done [12:11:46]opened in 1723766958 [12:11:46]opened+sec_in_day 1723853358 [12:11:46]quantity*price = 3600 [12:11:46]sum+1 = 3601 [12:11:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112003925 Конд ULKER-Albeni 40gr (6*24) 1.000 * 55.00 = 55.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 91.00 НСП 1% : 0.81 НДС 12% : 9.66 Наличными: 91.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 87 16.08.2024 12:11 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49439 ФПД: 85911538026724 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T121152&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49439&fm=85911538026724&tin=02508201610067®Number=0000000000092546&sum=9100 0 [12:11:48]StoreToDocumentArchive [12:11:48]shift 464 fd 49439 [12:11:48]save to /storage/0464/doc_00049439 [12:11:48]save last doc name /storage/0464/doc_00049439 to /storage/kkm_last_doc_name [12:11:48]save OK [12:11:48]Clear old archive folders... [12:11:48]ProcessDocumentItem done err = 0, tmpTLVsize=382 [12:11:48]tlvbuf is 00DEA350 [12:11:48]SAM_PROTO_ClearQueue [12:11:48]wFMCommunicate request_size=4 [12:11:48]MH_SAM_APDU [12:11:48]CAPDU: 80 09 00 00 [12:11:48]Write to MH i2c: E2 08 00 5A 43 80 09 00 00 00 00 00 00 0F [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:48]Read from MH i2c: E2 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 03 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 03 00 5A 43 00 90 00 11 [12:11:48]RAPDU: 90 00 [12:11:48]wFMCommunicate OK [12:11:48]SAM_PROTO_ClearQueue done [12:11:48]KKMCreateOFDPacket [12:11:48]OFDProtocolAddRootSTLVToBuf [12:11:48]FM_MakeSignedData [12:11:48]FM_MakeSignedData [12:11:48]SAM_PROTO_SignData [12:11:48]wFMCommunicate request_size=4 [12:11:48]MH_SAM_APDU [12:11:48]CAPDU: 80 0D 01 02 [12:11:48]Write to MH i2c: E2 08 00 5B 43 80 0D 01 02 00 00 00 00 17 [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:48]Read from MH i2c: E2 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 03 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 03 00 5B 43 00 90 00 12 [12:11:48]RAPDU: 90 00 [12:11:48]wFMCommunicate OK [12:11:48]wFMCommunicate request_size=255 [12:11:48]MH_SAM_APDU [12:11:48]CAPDU: 80 0D 02 02 FA 03 00 7E 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 00 [12:11:48]Write to MH i2c: E2 02 01 5C 43 80 0D 02 02 FA 00 03 00 7E 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 00 00 00 43 [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:48]Read from MH i2c: E2 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 03 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 03 00 5C 43 00 90 00 13 [12:11:48]RAPDU: 90 00 [12:11:48]wFMCommunicate OK [12:11:48]wFMCommunicate request_size=141 [12:11:48]MH_SAM_APDU [12:11:48]CAPDU: 80 0D 02 02 88 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 03 00 00 00 00 07 04 06 00 8C 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 08 42 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1F C1 00 00 35 04 06 00 4E 22 D6 B4 C8 E4 [12:11:48]Write to MH i2c: E2 90 00 5D 43 80 0D 02 02 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 03 00 00 00 00 07 04 06 00 8C 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 08 42 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1F C1 00 00 35 04 06 00 4E 22 D6 B4 C8 E4 00 00 E5 [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:48]Read from MH i2c: E2 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 03 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 03 00 5D 43 00 90 00 14 [12:11:48]RAPDU: 90 00 [12:11:48]wFMCommunicate OK [12:11:48]wFMCommunicate request_size=4 [12:11:48]MH_SAM_APDU [12:11:48]CAPDU: 80 0D 03 02 [12:11:48]Write to MH i2c: E2 08 00 5E 43 80 0D 03 02 00 00 00 00 1C [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:48]Read from MH i2c: E2 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 0B 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 0B 00 5E 43 00 B9 A0 B7 29 8B 5D 26 6D 90 00 D1 [12:11:48]RAPDU: B9 A0 B7 29 8B 5D 26 6D 90 00 [12:11:48]wFMCommunicate OK [12:11:48]SAM_PROTO_SignData done [12:11:48]FM_MakeSignedData done [12:11:48]CreateOFDProtocolMessage [12:11:48]wFMCommunicate request_size=4 [12:11:48]MH_SAM_APDU [12:11:48]CAPDU: 80 11 00 00 [12:11:48]Write to MH i2c: E2 08 00 5F 43 80 11 00 00 00 00 00 00 1C [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:48]Read from MH i2c: E2 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 17 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: E2 17 00 5F 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 67 [12:11:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:11:48]wFMCommunicate OK [12:11:48]CreateOFDProtocolMessage done [12:11:48]OFDSenderStorePacket 49439 [12:11:48]StoreOFDPacket docnum=49439 [12:11:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 92 01 00 00 30 0D 8A 01 1B A5 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 03 00 00 00 00 07 04 06 00 8C 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 08 42 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1F C1 00 00 35 04 06 00 4E 22 D6 B4 C8 E4 B9 A0 B7 29 8B 5D 26 6D [12:11:48]CheckFolder [12:11:48]dirname=/storage/ofd_packets [12:11:48]CheckFolder done [12:11:48]ProducePacketName [12:11:48]name=ofd_packets/00049439 [12:11:48]NVStorageSaveData ofd_packets/00049439 [12:11:48]File name is /storage/ofd_packets/00049439 [12:11:48]Write 432 bytes [12:11:48]NVStorageSaveData done [12:11:48]OFDSenderStorePacket done [12:11:48]KKMCreateOFDPacket done [12:11:48]NVStorageSaveData kkm_last_timestamp [12:11:48]File name is /storage/kkm_last_timestamp [12:11:48]Write 4 bytes [12:11:48]NVStorageSaveData done [12:11:48]ExternCall_PrintAddStr [12:11:48]wPrintStart [12:11:48]Write to MH i2c: 01 00 00 60 43 A3 [12:11:48]Write i2c OK [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: 01 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: 01 07 00 [12:11:48]MH_I2C_Read... [12:11:48]Read from MH i2c: 01 07 00 60 43 00 00 00 00 00 FF 0F B8 [12:11:48]RasterBufferAndPrint [12:11:48]line Счет N : (3)189661 [12:11:48]line ИНН: 02508201610067 [12:11:48]line Контрольно-Кассовый Чек [12:11:48]line ПРОДАЖА [12:11:48]line Товар: 8590042701239 [12:11:48]line Салфетки влажные VOK [12:11:48]line 1.000 * 36.00 [12:11:48]line = 36.00 [12:11:48]line НДС 12% НСП 1% [12:11:48]line > о реализуемом товаре [12:11:48]line Товар: 4870112003925 [12:11:48]line Конд ULKER-Albeni 40gr (6*24) [12:11:49]line 1.000 * 55.00 [12:11:49]line = 55.00 [12:11:49]line НДС 12% НСП 1% [12:11:49]line > о реализуемом товаре [12:11:49]line ИТОГО: 91.00 [12:11:49]line НСП 1% : 0.81 [12:11:49]line НДС 12% : 9.66 [12:11:49]line Наличными: 91.00 [12:11:49]line Безнал.: 0.00 [12:11:49]line Место: АЗС № 95 "Партнер Нефть" [12:11:49]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:11:49]line СНО: Общий режим [12:11:49]line Чек 87 16.08.2024 12:11 [12:11:49]line Смена: 464 ФФД: 1.0 [12:11:49]line ЗНМ: 0300000078 [12:11:49]line РНМ: 0000000000092546 [12:11:49]line Версия ККМ: 001 [12:11:49]line ФМ: 0000000000871800 [12:11:49]line ФД: 49439 [12:11:49]line ФПД: 85911538026724 [12:11:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T121152&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49439&fm=85911538026724&tin=02508201610067®Number=0000000000092546&sum=9100 [12:11:49]line 0 [12:11:49]OFD Sender: Processing packet 49439 [packets to send 21, broken 20] [12:11:49]ProducePacketName [12:11:49]name=ofd_packets/00049439 [12:11:49]OFD Sender: To server: pG, [12:11:49]CommunicateWithHost lk.salyk.kg:30040 [12:11:49]ConnectInit lk.salyk.kg [12:11:49]written 0, free lines is 4095 [12:11:49]Connected sock=10 [12:11:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 92 01 00 00 30 0D 8A 01 1B A5 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 35 39 30 30 34 32 37 30 31 32 33 39 06 04 23 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 56 4F 4B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 0E 00 00 00 00 13 04 06 00 10 0E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 51 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 03 00 00 00 00 07 04 06 00 8C 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 08 42 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1F C1 00 00 35 04 06 00 4E 22 D6 B4 C8 E4 B9 A0 B7 29 8B 5D 26 6D [12:11:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 BC 7A 47 00 59 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 1F C1 00 00 F4 03 04 00 47 ED BE 66 B6 04 01 00 00 7D 2A 1B 14 F3 E4 E9 C4 [12:11:49]CommunicateWithHost err = 0 [12:11:49]CheckOFDResponse [12:11:49]1017 (14) - 77093643461234 [12:11:49]1041 (16) - 0000000000871800 [12:11:49]1040 (4) - 49439 [12:11:49]1012 (4) - 16.08.2024 06:10 [12:11:49]1206 (1) - 0 [12:11:49]OFD Sender: Remove packet 49439 [12:11:49]ProducePacketName [12:11:49]name=ofd_packets/00049439 [12:11:49]NVStorageDeleteData [12:11:49]Write to MH i2c: 01 00 00 8E 43 D1 [12:11:49]Write i2c OK [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: 01 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: 01 07 00 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: 01 07 00 8E 43 00 00 00 00 00 9B 0C 7F [12:11:49]RasterBufferAndPrint [12:11:49]line [12:11:49]line [12:11:49]line [12:11:49]line [12:11:49]line [12:11:49]written 0, free lines is 3234 [12:11:49]MH_Cut [12:11:49]Write to MH i2c: D1 01 00 95 43 01 AA [12:11:49]Write i2c OK [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: D1 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: D1 01 00 [12:11:49]MH_I2C_Read... [12:11:49]Read from MH i2c: D1 01 00 95 43 00 A9 [12:11:49]Write to MH i2c: 01 00 00 96 43 D9 [12:11:49]Write i2c OK [12:11:49]MH_I2C_Read... [12:11:50]OFD Sender: No OFD packet to send [12:11:50]*** Cut start [12:11:50]*** Purtial cut [12:11:50]*** Stage 1: CUTSNS_PIN = 1 [12:11:50]Read from MH i2c: 01 [12:11:50]MH_I2C_Read... [12:11:50]*** Stop cut motor [12:11:50]*** Cut end [12:11:50]Read from MH i2c: 01 07 00 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: 01 07 00 96 43 00 00 00 00 00 FF 0F EE [12:11:50]process_action close_receipt done [12:11:50]requested_data is exist [12:11:50]produce_requested_data [12:11:50]requested_item fm.sn is exist - process it [12:11:50]wFMCommunicate request_size=4 [12:11:50]MH_SAM_APDU [12:11:50]CAPDU: 80 11 00 00 [12:11:50]Write to MH i2c: E2 08 00 97 43 80 11 00 00 00 00 00 00 54 [12:11:50]Write i2c OK [12:11:50]MH_I2C_Read... [12:11:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:50]Read from MH i2c: E2 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 17 00 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 17 00 97 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9F [12:11:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:11:50]wFMCommunicate OK [12:11:50]requested_item fd.num is exist - process it [12:11:50]SAM_PROTO_GetFieldsCounters [12:11:50]wFMCommunicate request_size=4 [12:11:50]MH_SAM_APDU [12:11:50]CAPDU: 80 13 00 00 [12:11:50]Write to MH i2c: E2 08 00 98 43 80 13 00 00 00 00 00 00 57 [12:11:50]Write i2c OK [12:11:50]MH_I2C_Read... [12:11:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:11:50]Read from MH i2c: E2 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 62 00 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 62 00 98 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1F C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [12:11:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 1F C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 57 00 00 00 5E 04 04 00 57 00 00 00 57 04 04 00 58 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:11:50]wFMCommunicate OK [12:11:50]SAM_PROTO_GetFieldsCounters done [12:11:50]requested_item shift.num is exist - process it [12:11:50]requested_item shift.opened is exist - process it [12:11:50]req_shift_opened [12:11:50]FM_GetShiftState [12:11:50]SAM_PROTO_GetShiftState [12:11:50]wFMCommunicate request_size=4 [12:11:50]MH_SAM_APDU [12:11:50]CAPDU: 80 13 01 00 [12:11:50]Write to MH i2c: E2 08 00 99 43 80 13 01 00 00 00 00 00 59 [12:11:50]Write i2c OK [12:11:50]MH_I2C_Read... [12:11:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:50]Read from MH i2c: E2 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 0E 00 [12:11:50]MH_I2C_Read... [12:11:50]Read from MH i2c: E2 0E 00 99 43 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 CF [12:11:50]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:11:50]wFMCommunicate OK [12:11:50]SAM_PROTO_GetShiftState done [12:11:50]FM_GetShiftState done [12:11:50]req_shift_opened done [12:11:50]requested_item shift.open_date is exist - process it [12:11:50]req_shift_open_date [12:11:50]req_shift_open_date done [12:11:50]produce_requested_data done [12:11:50]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49439,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [12:11:50]process_action_free close_receipt [12:11:50]json_value_free [12:11:50]json_value_free done [12:11:50]process_json_proto returns [12:11:50]Send response to host [12:11:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49439,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [12:11:50]free response buf [12:11:50]execute_script done [12:11:50]execute_script returns [12:11:50]free content buf [12:11:50]Sock 7.Close socket [12:11:50]Sock 7.Thread stoped [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [12:12:15]OFD Sender: No OFD packet to send [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:40]OFD Sender: No OFD packet to send [12:13:45]OFD Sender: No OFD packet to send [12:13:50]OFD Sender: No OFD packet to send [12:13:55]OFD Sender: No OFD packet to send [12:14:00]OFD Sender: No OFD packet to send [12:14:05]OFD Sender: No OFD packet to send [12:14:10]OFD Sender: No OFD packet to send [12:14:15]OFD Sender: No OFD packet to send [12:14:20]OFD Sender: No OFD packet to send [12:14:25]OFD Sender: No OFD packet to send [12:14:30]OFD Sender: No OFD packet to send [12:14:35]OFD Sender: No OFD packet to send [12:14:40]OFD Sender: No OFD packet to send [12:14:45]OFD Sender: No OFD packet to send [12:14:50]OFD Sender: No OFD packet to send [12:14:55]OFD Sender: No OFD packet to send [12:15:00]OFD Sender: No OFD packet to send [12:15:05]OFD Sender: No OFD packet to send [12:15:10]OFD Sender: No OFD packet to send [12:15:15]OFD Sender: No OFD packet to send [12:15:20]OFD Sender: No OFD packet to send [12:15:24]accept exits with 9 [12:15:24]New connection [12:15:24]New thread 3066830180 created [12:15:24]Thread 3066973540 joined [12:15:24]Waiting for new connection... [12:15:24] Sock 9.Parse request [12:15:24]Sock 9.Check first char [12:15:24]Sock 9.First char is OK [12:15:24]request: POST /json_proto HTTP/1.0 [12:15:24]Method: POST [12:15:24]URL: /json_proto [12:15:24]Method is POST - this is cgi request [12:15:24]url: /json_proto [12:15:24]query_string will be loaded in cgi processing [12:15:24]execute_cgi json_proto POST (null) [12:15:24]execute_cgi path=json_proto method=POST [12:15:24]POST find Content-Length [12:15:24]Host: 172.17.46.196:8080 [12:15:24]Content-Length: 1105 [12:15:24]Content-Type: application/json [12:15:24] [12:15:24]POST finish read [12:15:24]Found Content-Length = 1105 [12:15:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189662", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329999", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043B\u0438\u043C\u043E\u043D Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:24]execute_script... [12:15: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 : (3)189662", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329999", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u043B\u0438\u043C\u043E\u043D Regular", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 220.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:24]POST & json_proto [12:15:24]process_json_proto [12:15:24]json parsed OK: [12:15:24]protocol is kg_v1.0 [12:15:24]action value=close_receipt [12:15:24]process_action close_receipt [12:15:24]cmd_close_receipt [12:15:24]MH_GetDate [12:15:24]Write to MH i2c: F0 00 00 9A 43 CC [12:15:24]Write i2c OK [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: F0 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: F0 09 00 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: F0 09 00 9A 43 00 E2 42 BF 66 07 E8 5D 66 D0 [12:15:24]GetLastDocTimeStamp 1723810312 [12:15:24]current date 1723810530 [12:15:24]FM_GetShiftState [12:15:24]SAM_PROTO_GetShiftState [12:15:24]wFMCommunicate request_size=4 [12:15:24]MH_SAM_APDU [12:15:24]CAPDU: 80 13 01 00 [12:15:24]Write to MH i2c: E2 08 00 9B 43 80 13 01 00 00 00 00 00 5B [12:15:24]Write i2c OK [12:15:24]MH_I2C_Read... [12:15:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:24]Read from MH i2c: E2 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 0E 00 [12:15:24]MH_I2C_Read... [12:15:24]Read from MH i2c: E2 0E 00 9B 43 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 D1 [12:15:24]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:15:24]wFMCommunicate OK [12:15:24]SAM_PROTO_GetShiftState done [12:15:24]FM_GetShiftState done [12:15:24]opened in 1723766958 [12:15:24]opened+sec_in_day 1723853358 [12:15:24]quantity*price = 9000 [12:15:24]sum+1 = 9001 [12:15:24]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002329999 Напиток Lipton IceTea 1л лимон Regular 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 220.00 НСП 1% : 1.95 НДС 12% : 23.36 Наличными: 0.00 Безнал.: 220.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 88 16.08.2024 12:15 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49440 ФПД: 92207118513886 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T121530&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49440&fm=92207118513886&tin=02508201610067®Number=0000000000092546&sum=22000 0 [12:15:26]StoreToDocumentArchive [12:15:26]shift 464 fd 49440 [12:15:26]save to /storage/0464/doc_00049440 [12:15:26]save last doc name /storage/0464/doc_00049440 to /storage/kkm_last_doc_name [12:15:26]save OK [12:15:26]Clear old archive folders... [12:15:26]ProcessDocumentItem done err = 0, tmpTLVsize=416 [12:15:26]tlvbuf is 00E124A0 [12:15:26]SAM_PROTO_ClearQueue [12:15:26]wFMCommunicate request_size=4 [12:15:26]MH_SAM_APDU [12:15:26]CAPDU: 80 09 00 00 [12:15:26]Write to MH i2c: E2 08 00 A8 43 80 09 00 00 00 00 00 00 5D [12:15:26]Write i2c OK [12:15:26]MH_I2C_Read... [12:15:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:26]Read from MH i2c: E2 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 03 00 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 03 00 A8 43 00 90 00 5F [12:15:26]RAPDU: 90 00 [12:15:26]wFMCommunicate OK [12:15:26]SAM_PROTO_ClearQueue done [12:15:26]KKMCreateOFDPacket [12:15:26]OFDProtocolAddRootSTLVToBuf [12:15:26]FM_MakeSignedData [12:15:26]FM_MakeSignedData [12:15:26]SAM_PROTO_SignData [12:15:26]wFMCommunicate request_size=4 [12:15:26]MH_SAM_APDU [12:15:26]CAPDU: 80 0D 01 02 [12:15:26]Write to MH i2c: E2 08 00 A9 43 80 0D 01 02 00 00 00 00 65 [12:15:26]Write i2c OK [12:15:26]MH_I2C_Read... [12:15:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:26]Read from MH i2c: E2 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 03 00 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 03 00 A9 43 00 90 00 60 [12:15:26]RAPDU: 90 00 [12:15:26]wFMCommunicate OK [12:15:26]wFMCommunicate request_size=255 [12:15:26]MH_SAM_APDU [12:15:26]CAPDU: 80 0D 02 02 FA 03 00 A0 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 [12:15:26]Write to MH i2c: E2 02 01 AA 43 80 0D 02 02 FA 00 03 00 A0 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 00 00 8E [12:15:26]Write i2c OK [12:15:26]MH_I2C_Read... [12:15:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:26]Read from MH i2c: E2 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 03 00 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 03 00 AA 43 00 90 00 61 [12:15:26]RAPDU: 90 00 [12:15:26]wFMCommunicate OK [12:15:26]wFMCommunicate request_size=175 [12:15:26]MH_SAM_APDU [12:15:26]CAPDU: 80 0D 02 02 AA BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 E2 42 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 20 C1 00 00 35 04 06 00 53 DC A4 8B 76 DE [12:15:26]Write to MH i2c: E2 B2 00 AB 43 80 0D 02 02 AA 00 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 E2 42 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 20 C1 00 00 35 04 06 00 53 DC A4 8B 76 DE 00 00 34 [12:15:26]Write i2c OK [12:15:26]MH_I2C_Read... [12:15:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:26]Read from MH i2c: E2 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 03 00 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 03 00 AB 43 00 90 00 62 [12:15:26]RAPDU: 90 00 [12:15:26]wFMCommunicate OK [12:15:26]wFMCommunicate request_size=4 [12:15:26]MH_SAM_APDU [12:15:26]CAPDU: 80 0D 03 02 [12:15:26]Write to MH i2c: E2 08 00 AC 43 80 0D 03 02 00 00 00 00 6A [12:15:26]Write i2c OK [12:15:26]MH_I2C_Read... [12:15:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:26]Read from MH i2c: E2 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 0B 00 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 0B 00 AC 43 00 D2 A2 DA B2 60 09 EC 5D 90 00 1D [12:15:26]RAPDU: D2 A2 DA B2 60 09 EC 5D 90 00 [12:15:26]wFMCommunicate OK [12:15:26]SAM_PROTO_SignData done [12:15:26]FM_MakeSignedData done [12:15:26]CreateOFDProtocolMessage [12:15:26]wFMCommunicate request_size=4 [12:15:26]MH_SAM_APDU [12:15:26]CAPDU: 80 11 00 00 [12:15:26]Write to MH i2c: E2 08 00 AD 43 80 11 00 00 00 00 00 00 6A [12:15:26]Write i2c OK [12:15:26]MH_I2C_Read... [12:15:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:26]Read from MH i2c: E2 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 17 00 [12:15:26]MH_I2C_Read... [12:15:26]Read from MH i2c: E2 17 00 AD 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B5 [12:15:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:15:26]wFMCommunicate OK [12:15:26]CreateOFDProtocolMessage done [12:15:26]OFDSenderStorePacket 49440 [12:15:26]StoreOFDPacket docnum=49440 [12:15:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 B4 01 00 00 AB DC AC 01 24 92 5A 03 01 00 03 00 A0 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 E2 42 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 20 C1 00 00 35 04 06 00 53 DC A4 8B 76 DE D2 A2 DA B2 60 09 EC 5D [12:15:26]CheckFolder [12:15:26]dirname=/storage/ofd_packets [12:15:26]CheckFolder done [12:15:26]ProducePacketName [12:15:26]name=ofd_packets/00049440 [12:15:26]NVStorageSaveData ofd_packets/00049440 [12:15:26]File name is /storage/ofd_packets/00049440 [12:15:26]Write 466 bytes [12:15:27]NVStorageSaveData done [12:15:27]OFDSenderStorePacket done [12:15:27]KKMCreateOFDPacket done [12:15:27]NVStorageSaveData kkm_last_timestamp [12:15:27]File name is /storage/kkm_last_timestamp [12:15:27]Write 4 bytes [12:15:27]NVStorageSaveData done [12:15:27]ExternCall_PrintAddStr [12:15:27]wPrintStart [12:15:27]Write to MH i2c: 01 00 00 AE 43 F1 [12:15:27]Write i2c OK [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: 01 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: 01 07 00 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: 01 07 00 AE 43 00 00 00 00 00 FF 0F 06 [12:15:27]RasterBufferAndPrint [12:15:27]line Счет N : (3)189662 [12:15:27]line ИНН: 02508201610067 [12:15:27]line Контрольно-Кассовый Чек [12:15:27]line ПРОДАЖА [12:15:27]line Товар: 4870022003305 [12:15:27]line Напиток Gorilla эн нат ж/б 0,5/0,45л [12:15:27]line 1.000 * 90.00 [12:15:27]line = 90.00 [12:15:27]line НДС 12% НСП 1% [12:15:27]line > о реализуемом товаре [12:15:27]line Товар: 4870002329999 [12:15:27]line Напиток Lipton IceTea 1л лимон Regular [12:15:27]line 1.000 * 130.00 [12:15:27]line = 130.00 [12:15:27]line НДС 12% НСП 1% [12:15:27]line > о реализуемом товаре [12:15:27]line ИТОГО: 220.00 [12:15:27]line НСП 1% : 1.95 [12:15:27]line НДС 12% : 23.36 [12:15:27]line Наличными: 0.00 [12:15:27]line Безнал.: 220.00 [12:15:27]line Место: АЗС № 95 "Партнер Нефть" [12:15:27]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:15:27]line СНО: Общий режим [12:15:27]line Чек 88 16.08.2024 12:15 [12:15:27]line Смена: 464 ФФД: 1.0 [12:15:27]line ЗНМ: 0300000078 [12:15:27]line РНМ: 0000000000092546 [12:15:27]line Версия ККМ: 001 [12:15:27]line Платежная система: O! деньги [12:15:27]line ФМ: 0000000000871800 [12:15:27]line ФД: 49440 [12:15:27]line ФПД: 92207118513886 [12:15:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T121530&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49440&fm=92207118513886&tin=02508201610067®Number=0000000000092546&sum=22000 [12:15:27]line 0 [12:15:27]written 0, free lines is 4095 [12:15:27]OFD Sender: Processing packet 49440 [packets to send 21, broken 20] [12:15:27]ProducePacketName [12:15:27]name=ofd_packets/00049440 [12:15:27]OFD Sender: To server: pG, [12:15:27]CommunicateWithHost lk.salyk.kg:30040 [12:15:27]ConnectInit lk.salyk.kg [12:15:27]Connected sock=10 [12:15:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 B4 01 00 00 AB DC AC 01 24 92 5A 03 01 00 03 00 A0 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 20 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F0 55 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 E2 42 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 20 C1 00 00 35 04 06 00 53 DC A4 8B 76 DE D2 A2 DA B2 60 09 EC 5D [12:15:27]Write to MH i2c: 01 00 00 E0 43 23 [12:15:27]Write i2c OK [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: 01 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: 01 07 00 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: 01 07 00 E0 43 00 00 00 00 00 50 0C 86 [12:15:27]RasterBufferAndPrint [12:15:27]line [12:15:27]line [12:15:27]line [12:15:27]line [12:15:27]line [12:15:27]written 0, free lines is 3158 [12:15:27]MH_Cut [12:15:27]Write to MH i2c: D1 01 00 E7 43 01 FC [12:15:27]Write i2c OK [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: D1 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: D1 01 00 [12:15:27]MH_I2C_Read... [12:15:27]Read from MH i2c: D1 01 00 E7 43 00 FB [12:15:27]Write to MH i2c: 01 00 00 E8 43 2B [12:15:27]Write i2c OK [12:15:27]MH_I2C_Read... [12:15:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 8E 35 47 00 BF 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 20 C1 00 00 F4 03 04 00 21 EE BE 66 B6 04 01 00 00 72 96 4B E6 EE 47 97 2F [12:15:27]CommunicateWithHost err = 0 [12:15:27]CheckOFDResponse [12:15:27]1017 (14) - 77093643461234 [12:15:27]1041 (16) - 0000000000871800 [12:15:27]1040 (4) - 49440 [12:15:27]1012 (4) - 16.08.2024 06:13 [12:15:27]1206 (1) - 0 [12:15:27]OFD Sender: Remove packet 49440 [12:15:27]ProducePacketName [12:15:27]name=ofd_packets/00049440 [12:15:27]NVStorageDeleteData [12:15:28]OFD Sender: No OFD packet to send [12:15:28]*** Cut start [12:15:28]*** Purtial cut [12:15:28]*** CUTSNS_PIN = 0 [12:15:28]*** Stage 1: CUTSNS_PIN = 1 [12:15:30]Read from MH i2c: 01 [12:15:30]MH_I2C_Read... [12:15:30]*** Stop cut motor [12:15:30]*** Cut end [12:15:30]Read from MH i2c: 01 07 00 [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: 01 07 00 E8 43 00 00 00 00 00 FF 0F 40 [12:15:30]process_action close_receipt done [12:15:30]requested_data is exist [12:15:30]produce_requested_data [12:15:30]requested_item fm.sn is exist - process it [12:15:30]wFMCommunicate request_size=4 [12:15:30]MH_SAM_APDU [12:15:30]CAPDU: 80 11 00 00 [12:15:30]Write to MH i2c: E2 08 00 E9 43 80 11 00 00 00 00 00 00 A6 [12:15:30]Write i2c OK [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: E2 [12:15:30]MH_I2C_Read... [12:15:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:30]Read from MH i2c: E2 17 00 [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: E2 17 00 E9 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F1 [12:15:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:15:30]wFMCommunicate OK [12:15:30]requested_item fd.num is exist - process it [12:15:30]SAM_PROTO_GetFieldsCounters [12:15:30]wFMCommunicate request_size=4 [12:15:30]MH_SAM_APDU [12:15:30]CAPDU: 80 13 00 00 [12:15:30]Write to MH i2c: E2 08 00 EA 43 80 13 00 00 00 00 00 00 A9 [12:15:30]Write i2c OK [12:15:30]MH_I2C_Read... [12:15:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:30]Read from MH i2c: E2 [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: E2 62 00 [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: E2 62 00 EA 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 20 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 7D [12:15:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 20 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 58 00 00 00 5E 04 04 00 58 00 00 00 57 04 04 00 59 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:15:30]wFMCommunicate OK [12:15:30]SAM_PROTO_GetFieldsCounters done [12:15:30]requested_item shift.num is exist - process it [12:15:30]requested_item shift.opened is exist - process it [12:15:30]req_shift_opened [12:15:30]FM_GetShiftState [12:15:30]SAM_PROTO_GetShiftState [12:15:30]wFMCommunicate request_size=4 [12:15:30]MH_SAM_APDU [12:15:30]CAPDU: 80 13 01 00 [12:15:30]Write to MH i2c: E2 08 00 EB 43 80 13 01 00 00 00 00 00 AB [12:15:30]Write i2c OK [12:15:30]MH_I2C_Read... [12:15:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:30]Read from MH i2c: E2 [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: E2 0E 00 [12:15:30]MH_I2C_Read... [12:15:30]Read from MH i2c: E2 0E 00 EB 43 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 21 [12:15:30]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:15:30]wFMCommunicate OK [12:15:30]SAM_PROTO_GetShiftState done [12:15:30]FM_GetShiftState done [12:15:30]req_shift_opened done [12:15:30]requested_item shift.open_date is exist - process it [12:15:30]req_shift_open_date [12:15:30]req_shift_open_date done [12:15:30]produce_requested_data done [12:15:30]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49440,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [12:15:30]process_action_free close_receipt [12:15:30]json_value_free [12:15:30]json_value_free done [12:15:30]process_json_proto returns [12:15:30]Send response to host [12:15:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49440,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [12:15:30]free response buf [12:15:30]execute_script done [12:15:30]execute_script returns [12:15:30]free content buf [12:15:30]Sock 9.Close socket [12:15:30]Sock 9.Thread stoped [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:43]OFD Sender: No OFD packet to send [12:15:48]OFD Sender: No OFD packet to send [12:15:53]OFD Sender: No OFD packet to send [12:15:58]OFD Sender: No OFD packet to send [12:16:03]OFD Sender: No OFD packet to send [12:16:08]OFD Sender: No OFD packet to send [12:16:13]OFD Sender: No OFD packet to send [12:16:18]OFD Sender: No OFD packet to send [12:16:23]OFD Sender: No OFD packet to send [12:16:28]OFD Sender: No OFD packet to send [12:16:33]OFD Sender: No OFD packet to send [12:16:38]OFD Sender: No OFD packet to send [12:16:43]OFD Sender: No OFD packet to send [12:16:48]OFD Sender: No OFD packet to send [12:16:53]OFD Sender: No OFD packet to send [12:16:58]OFD Sender: No OFD packet to send [12:17:03]OFD Sender: No OFD packet to send [12:17:06]accept exits with 7 [12:17:06]New connection [12:17:06]New thread 3066973540 created [12:17:06]Thread 3066830180 joined [12:17:06]Waiting for new connection... [12:17:06] Sock 7.Parse request [12:17:06]Sock 7.Check first char [12:17:06]Sock 7.First char is OK [12:17:06]request: POST /json_proto HTTP/1.0 [12:17:06]Method: POST [12:17:06]URL: /json_proto [12:17:06]Method is POST - this is cgi request [12:17:06]url: /json_proto [12:17:06]query_string will be loaded in cgi processing [12:17:06]execute_cgi json_proto POST (null) [12:17:06]execute_cgi path=json_proto method=POST [12:17:06]POST find Content-Length [12:17:06]Host: 172.17.46.196:8080 [12:17:06]Content-Length: 756 [12:17:06]Content-Type: application/json [12:17:06] [12:17:06]POST finish read [12:17:06]Found Content-Length = 756 [12:17:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115408", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:06]execute_script... [12:17: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)11325362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115408", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:06]POST & json_proto [12:17:06]process_json_proto [12:17:06]json parsed OK: [12:17:06]protocol is kg_v1.0 [12:17:06]action value=close_receipt [12:17:06]process_action close_receipt [12:17:06]cmd_close_receipt [12:17:06]MH_GetDate [12:17:06]Write to MH i2c: F0 00 00 EC 43 1E [12:17:06]Write i2c OK [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: F0 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: F0 09 00 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: F0 09 00 EC 43 00 48 43 BF 66 07 E8 5D 66 89 [12:17:06]GetLastDocTimeStamp 1723810530 [12:17:06]current date 1723810632 [12:17:06]FM_GetShiftState [12:17:06]SAM_PROTO_GetShiftState [12:17:06]wFMCommunicate request_size=4 [12:17:06]MH_SAM_APDU [12:17:06]CAPDU: 80 13 01 00 [12:17:06]Write to MH i2c: E2 08 00 ED 43 80 13 01 00 00 00 00 00 AD [12:17:06]Write i2c OK [12:17:06]MH_I2C_Read... [12:17:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:06]Read from MH i2c: E2 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 0E 00 [12:17:06]MH_I2C_Read... [12:17:06]Read from MH i2c: E2 0E 00 ED 43 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 23 [12:17:06]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:17:06]wFMCommunicate OK [12:17:06]SAM_PROTO_GetShiftState done [12:17:06]FM_GetShiftState done [12:17:06]opened in 1723766958 [12:17:06]opened+sec_in_day 1723853358 [12:17:06]quantity*price = 0 [12:17:06]sum+1 = 1 [12:17:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 89 16.08.2024 12:17 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30115408 ФМ: 0000000000871800 ФД: 49441 ФПД: 181375229886546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T121712&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49441&fm=181375229886546&tin=02508201610067®Number=0000000000092546&sum=0 [12:17:07]StoreToDocumentArchive [12:17:07]shift 464 fd 49441 [12:17:07]save to /storage/0464/doc_00049441 [12:17:07]save last doc name /storage/0464/doc_00049441 to /storage/kkm_last_doc_name [12:17:07]save OK [12:17:07]Clear old archive folders... [12:17:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:07]tlvbuf is 00E411A0 [12:17:07]SAM_PROTO_ClearQueue [12:17:07]wFMCommunicate request_size=4 [12:17:07]MH_SAM_APDU [12:17:07]CAPDU: 80 09 00 00 [12:17:07]Write to MH i2c: E2 08 00 FA 43 80 09 00 00 00 00 00 00 AF [12:17:07]Write i2c OK [12:17:07]MH_I2C_Read... [12:17:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:07]Read from MH i2c: E2 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: E2 03 00 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: E2 03 00 FA 43 00 90 00 B1 [12:17:07]RAPDU: 90 00 [12:17:07]wFMCommunicate OK [12:17:07]SAM_PROTO_ClearQueue done [12:17:07]KKMCreateOFDPacket [12:17:07]OFDProtocolAddRootSTLVToBuf [12:17:07]FM_MakeSignedData [12:17:07]FM_MakeSignedData [12:17:07]SAM_PROTO_SignData [12:17:07]wFMCommunicate request_size=4 [12:17:07]MH_SAM_APDU [12:17:07]CAPDU: 80 0D 01 02 [12:17:07]Write to MH i2c: E2 08 00 FB 43 80 0D 01 02 00 00 00 00 B7 [12:17:07]Write i2c OK [12:17:07]MH_I2C_Read... [12:17:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:07]Read from MH i2c: E2 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: E2 03 00 [12:17:07]MH_I2C_Read... [12:17:07]Read from MH i2c: E2 03 00 FB 43 00 90 00 B2 [12:17:07]RAPDU: 90 00 [12:17:07]wFMCommunicate OK [12:17:07]wFMCommunicate request_size=255 [12:17:07]MH_SAM_APDU [12:17: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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 48 43 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 21 C1 00 00 35 04 06 00 A4 [12:17:07]Write to MH i2c: E2 02 01 FC 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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 48 43 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 21 C1 00 00 35 04 06 00 A4 00 00 87 [12:17:07]Write i2c OK [12:17:07]MH_I2C_Read... [12:17:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:08]Read from MH i2c: E2 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: E2 03 00 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: E2 03 00 FC 43 00 90 00 B3 [12:17:08]RAPDU: 90 00 [12:17:08]wFMCommunicate OK [12:17:08]wFMCommunicate request_size=10 [12:17:08]MH_SAM_APDU [12:17:08]CAPDU: 80 0D 02 02 05 F5 B6 26 00 52 [12:17:08]Write to MH i2c: E2 0D 00 FD 43 80 0D 02 02 05 00 F5 B6 26 00 52 00 00 E7 [12:17:08]Write i2c OK [12:17:08]MH_I2C_Read... [12:17:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:08]Read from MH i2c: E2 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: E2 03 00 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: E2 03 00 FD 43 00 90 00 B4 [12:17:08]RAPDU: 90 00 [12:17:08]wFMCommunicate OK [12:17:08]wFMCommunicate request_size=4 [12:17:08]MH_SAM_APDU [12:17:08]CAPDU: 80 0D 03 02 [12:17:08]Write to MH i2c: E2 08 00 FE 43 80 0D 03 02 00 00 00 00 BC [12:17:08]Write i2c OK [12:17:08]MH_I2C_Read... [12:17:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:08]Read from MH i2c: E2 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: E2 0B 00 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: E2 0B 00 FE 43 00 2A C7 3E FF 16 79 37 CC 90 00 7D [12:17:08]RAPDU: 2A C7 3E FF 16 79 37 CC 90 00 [12:17:08]wFMCommunicate OK [12:17:08]SAM_PROTO_SignData done [12:17:08]FM_MakeSignedData done [12:17:08]CreateOFDProtocolMessage [12:17:08]wFMCommunicate request_size=4 [12:17:08]MH_SAM_APDU [12:17:08]CAPDU: 80 11 00 00 [12:17:08]Write to MH i2c: E2 08 00 FF 43 80 11 00 00 00 00 00 00 BC [12:17:08]Write i2c OK [12:17:08]MH_I2C_Read... [12:17:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:08]Read from MH i2c: E2 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: E2 17 00 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: E2 17 00 FF 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 07 [12:17:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:17:08]wFMCommunicate OK [12:17:08]CreateOFDProtocolMessage done [12:17:08]OFDSenderStorePacket 49441 [12:17:08]StoreOFDPacket docnum=49441 [12:17:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 FA 7B 07 01 B7 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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 48 43 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 21 C1 00 00 35 04 06 00 A4 F5 B6 26 00 52 2A C7 3E FF 16 79 37 CC [12:17:08]CheckFolder [12:17:08]dirname=/storage/ofd_packets [12:17:08]CheckFolder done [12:17:08]ProducePacketName [12:17:08]name=ofd_packets/00049441 [12:17:08]NVStorageSaveData ofd_packets/00049441 [12:17:08]File name is /storage/ofd_packets/00049441 [12:17:08]Write 301 bytes [12:17:08]NVStorageSaveData done [12:17:08]OFDSenderStorePacket done [12:17:08]KKMCreateOFDPacket done [12:17:08]NVStorageSaveData kkm_last_timestamp [12:17:08]File name is /storage/kkm_last_timestamp [12:17:08]Write 4 bytes [12:17:08]NVStorageSaveData done [12:17:08]ExternCall_PrintAddStr [12:17:08]wPrintStart [12:17:08]Write to MH i2c: 01 00 00 00 44 44 [12:17:08]Write i2c OK [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: 01 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: 01 07 00 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: 01 07 00 00 44 00 00 00 00 00 FF 0F 59 [12:17:08]RasterBufferAndPrint [12:17:08]line Счет N : (1)11325362 [12:17:08]line ИНН: 02508201610067 [12:17:08]line Контрольно-Кассовый Чек [12:17:08]line ПРОДАЖА [12:17:08]line ТРК (МРК, ГНК) : 22 [12:17:08]line Товар: 2710124130 [12:17:08]line Аи-92-К-4 [12:17:08]line 20.000 * 0.00 [12:17:08]line = 0.00 [12:17:08]line НДС 12% НСП 1% [12:17:08]line > о реализуемом товаре [12:17:08]line ИТОГО: 0.00 [12:17:08]line НСП 1% : 0.00 [12:17:08]line НДС 12% : 0.00 [12:17:08]line Наличными: 0.00 [12:17:08]line Безнал.: 0.00 [12:17:08]line Место: АЗС № 95 "Партнер Нефть" [12:17:08]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:17:08]line СНО: Общий режим [12:17:08]line Чек 89 16.08.2024 12:17 [12:17:08]line Смена: 464 ФФД: 1.0 [12:17:08]line ЗНМ: 0300000078 [12:17:08]line РНМ: 0000000000092546 [12:17:08]line Версия ККМ: 001 [12:17:08]line Талоны: ТК ГПНА Online [12:17:08]line 30115408 [12:17:08]line ФМ: 0000000000871800 [12:17:08]line ФД: 49441 [12:17:08]line ФПД: 181375229886546 [12:17:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T121712&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49441&fm=181375229886546&tin=02508201610067®Number=0000000000092546&sum=0 [12:17:08]written 0, free lines is 4095 [12:17:08]OFD Sender: Processing packet 49441 [packets to send 21, broken 20] [12:17:08]ProducePacketName [12:17:08]name=ofd_packets/00049441 [12:17:08]OFD Sender: To server: pG, [12:17:08]CommunicateWithHost lk.salyk.kg:30040 [12:17:08]ConnectInit lk.salyk.kg [12:17:08]Write to MH i2c: 01 00 00 2A 44 6E [12:17:08]Write i2c OK [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: 01 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: 01 07 00 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: 01 07 00 2A 44 00 00 00 00 00 D5 0C 56 [12:17:08]RasterBufferAndPrint [12:17:08]line [12:17:08]line [12:17:08]line [12:17:08]line [12:17:08]line [12:17:08]written 0, free lines is 3291 [12:17:08]MH_Cut [12:17:08]Write to MH i2c: D1 01 00 31 44 01 47 [12:17:08]Write i2c OK [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: D1 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: D1 01 00 [12:17:08]MH_I2C_Read... [12:17:08]Read from MH i2c: D1 01 00 31 44 00 46 [12:17:08]Write to MH i2c: 01 00 00 32 44 76 [12:17:08]Write i2c OK [12:17:08]MH_I2C_Read... [12:17:08]Connected sock=10 [12:17:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 FA 7B 07 01 B7 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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 48 43 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 21 C1 00 00 35 04 06 00 A4 F5 B6 26 00 52 2A C7 3E FF 16 79 37 CC [12:17:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 40 A7 47 00 31 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 38 37 31 38 30 30 10 04 04 00 21 C1 00 00 F4 03 04 00 86 EE BE 66 B6 04 01 00 00 D6 3A 7C FA 14 A5 9B 36 [12:17:09]CommunicateWithHost err = 0 [12:17:09]CheckOFDResponse [12:17:09]1017 (14) - 77093643461234 [12:17:09]1041 (16) - 0000000000871800 [12:17:09]1040 (4) - 49441 [12:17:09]1012 (4) - 16.08.2024 06:15 [12:17:09]1206 (1) - 0 [12:17:09]OFD Sender: Remove packet 49441 [12:17:09]ProducePacketName [12:17:09]name=ofd_packets/00049441 [12:17:09]NVStorageDeleteData [12:17:09]*** Cut start [12:17:09]*** Purtial cut [12:17:09]*** Stage 1: CUTSNS_PIN = 1 [12:17:09]OFD Sender: No OFD packet to send [12:17:09]Read from MH i2c: 01 [12:17:09]MH_I2C_Read... [12:17:09]*** Stop cut motor [12:17:09]*** Cut end [12:17:09]Read from MH i2c: 01 07 00 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: 01 07 00 32 44 00 00 00 00 00 FF 0F 8B [12:17:09]process_action close_receipt done [12:17:09]requested_data is exist [12:17:09]produce_requested_data [12:17:09]requested_item fm.sn is exist - process it [12:17:09]wFMCommunicate request_size=4 [12:17:09]MH_SAM_APDU [12:17:09]CAPDU: 80 11 00 00 [12:17:09]Write to MH i2c: E2 08 00 33 44 80 11 00 00 00 00 00 00 F1 [12:17:09]Write i2c OK [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 [12:17:09]MH_I2C_Read... [12:17:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:09]Read from MH i2c: E2 17 00 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 17 00 33 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3C [12:17:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:17:09]wFMCommunicate OK [12:17:09]requested_item fd.num is exist - process it [12:17:09]SAM_PROTO_GetFieldsCounters [12:17:09]wFMCommunicate request_size=4 [12:17:09]MH_SAM_APDU [12:17:09]CAPDU: 80 13 00 00 [12:17:09]Write to MH i2c: E2 08 00 34 44 80 13 00 00 00 00 00 00 F4 [12:17:09]Write i2c OK [12:17:09]MH_I2C_Read... [12:17:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:09]Read from MH i2c: E2 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 62 00 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 62 00 34 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 21 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 CC [12:17:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 21 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 59 00 00 00 5E 04 04 00 59 00 00 00 57 04 04 00 5A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:09]wFMCommunicate OK [12:17:09]SAM_PROTO_GetFieldsCounters done [12:17:09]requested_item shift.num is exist - process it [12:17:09]requested_item shift.opened is exist - process it [12:17:09]req_shift_opened [12:17:09]FM_GetShiftState [12:17:09]SAM_PROTO_GetShiftState [12:17:09]wFMCommunicate request_size=4 [12:17:09]MH_SAM_APDU [12:17:09]CAPDU: 80 13 01 00 [12:17:09]Write to MH i2c: E2 08 00 35 44 80 13 01 00 00 00 00 00 F6 [12:17:09]Write i2c OK [12:17:09]MH_I2C_Read... [12:17:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:09]Read from MH i2c: E2 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 0E 00 [12:17:09]MH_I2C_Read... [12:17:09]Read from MH i2c: E2 0E 00 35 44 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 6C [12:17:09]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:17:09]wFMCommunicate OK [12:17:10]SAM_PROTO_GetShiftState done [12:17:10]FM_GetShiftState done [12:17:10]req_shift_opened done [12:17:10]requested_item shift.open_date is exist - process it [12:17:10]req_shift_open_date [12:17:10]req_shift_open_date done [12:17:10]produce_requested_data done [12:17:10]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49441,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [12:17:10]process_action_free close_receipt [12:17:10]json_value_free [12:17:10]json_value_free done [12:17:10]process_json_proto returns [12:17:10]Send response to host [12:17:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49441,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [12:17:10]free response buf [12:17:10]execute_script done [12:17:10]execute_script returns [12:17:10]free content buf [12:17:10]Sock 7.Close socket [12:17:10]Sock 7.Thread stoped [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:29]OFD Sender: No OFD packet to send [12:17:34]OFD Sender: No OFD packet to send [12:17:39]OFD Sender: No OFD packet to send [12:17:44]OFD Sender: No OFD packet to send [12:17:49]OFD Sender: No OFD packet to send [12:17:54]OFD Sender: No OFD packet to send [12:17:59]OFD Sender: No OFD packet to send [12:18:04]OFD Sender: No OFD packet to send [12:18:09]OFD Sender: No OFD packet to send [12:18:14]OFD Sender: No OFD packet to send [12:18:19]OFD Sender: No OFD packet to send [12:18:24]OFD Sender: No OFD packet to send [12:18:29]OFD Sender: No OFD packet to send [12:18:34]OFD Sender: No OFD packet to send [12:18:39]OFD Sender: No OFD packet to send [12:18:44]OFD Sender: No OFD packet to send [12:18:49]OFD Sender: No OFD packet to send [12:18:54]OFD Sender: No OFD packet to send [12:18:59]OFD Sender: No OFD packet to send [12:19:04]OFD Sender: No OFD packet to send [12:19:09]OFD Sender: No OFD packet to send [12:19:14]OFD Sender: No OFD packet to send [12:19:19]OFD Sender: No OFD packet to send [12:19:24]OFD Sender: No OFD packet to send [12:19:29]OFD Sender: No OFD packet to send [12:19:34]OFD Sender: No OFD packet to send [12:19:39]OFD Sender: No OFD packet to send [12:19:44]OFD Sender: No OFD packet to send [12:19:49]OFD Sender: No OFD packet to send [12:19:54]OFD Sender: No OFD packet to send [12:19:59]OFD Sender: No OFD packet to send [12:20:04]OFD Sender: No OFD packet to send [12:20:09]OFD Sender: No OFD packet to send [12:20:14]OFD Sender: No OFD packet to send [12:20:19]OFD Sender: No OFD packet to send [12:20:21]accept exits with 9 [12:20:21]New connection [12:20:21]New thread 3066830180 created [12:20:21]Thread 3066973540 joined [12:20:21]Waiting for new connection... [12:20:21] Sock 9.Parse request [12:20:21]Sock 9.Check first char [12:20:21]Sock 9.First char is OK [12:20:21]request: POST /json_proto HTTP/1.0 [12:20:21]Method: POST [12:20:21]URL: /json_proto [12:20:21]Method is POST - this is cgi request [12:20:21]url: /json_proto [12:20:21]query_string will be loaded in cgi processing [12:20:21]execute_cgi json_proto POST (null) [12:20:21]execute_cgi path=json_proto method=POST [12:20:21]POST find Content-Length [12:20:21]Host: 172.17.46.196:8080 [12:20:21]Content-Length: 683 [12:20:21]Content-Type: application/json [12:20:21] [12:20:21]POST finish read [12:20:21]Found Content-Length = 683 [12:20:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189663", "tax_sys" : 0, "items" : [ { "code": "5449000002952", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:21]execute_script... [12:20: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 : (3)189663", "tax_sys" : 0, "items" : [ { "code": "5449000002952", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 0,33 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:21]POST & json_proto [12:20:21]process_json_proto [12:20:21]json parsed OK: [12:20:21]protocol is kg_v1.0 [12:20:21]action value=close_receipt [12:20:21]process_action close_receipt [12:20:21]cmd_close_receipt [12:20:21]MH_GetDate [12:20:21]Write to MH i2c: F0 00 00 36 44 69 [12:20:21]Write i2c OK [12:20:21]MH_I2C_Read... [12:20:21]Read from MH i2c: F0 [12:20:21]MH_I2C_Read... [12:20:21]Read from MH i2c: F0 09 00 [12:20:21]MH_I2C_Read... [12:20:21]Read from MH i2c: F0 09 00 36 44 00 0B 44 BF 66 07 E8 5D 66 98 [12:20:21]GetLastDocTimeStamp 1723810632 [12:20:21]current date 1723810827 [12:20:21]FM_GetShiftState [12:20:21]SAM_PROTO_GetShiftState [12:20:21]wFMCommunicate request_size=4 [12:20:21]MH_SAM_APDU [12:20:21]CAPDU: 80 13 01 00 [12:20:21]Write to MH i2c: E2 08 00 37 44 80 13 01 00 00 00 00 00 F8 [12:20:21]Write i2c OK [12:20:21]MH_I2C_Read... [12:20:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:21]Read from MH i2c: E2 [12:20:21]MH_I2C_Read... [12:20:21]Read from MH i2c: E2 0E 00 [12:20:21]MH_I2C_Read... [12:20:21]Read from MH i2c: E2 0E 00 37 44 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 6E [12:20:21]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:20:21]wFMCommunicate OK [12:20:21]SAM_PROTO_GetShiftState done [12:20:21]FM_GetShiftState done [12:20:21]opened in 1723766958 [12:20:21]opened+sec_in_day 1723853358 [12:20:21]quantity*price = 9000 [12:20:21]sum+1 = 9001 [12:20:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 90 16.08.2024 12:20 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49442 ФПД: 48422571843658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T122027&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49442&fm=48422571843658&tin=02508201610067®Number=0000000000092546&sum=9000 0 [12:20:23]StoreToDocumentArchive [12:20:23]shift 464 fd 49442 [12:20:23]save to /storage/0464/doc_00049442 [12:20:23]save last doc name /storage/0464/doc_00049442 to /storage/kkm_last_doc_name [12:20:23]save OK [12:20:23]Clear old archive folders... [12:20:23]ProcessDocumentItem done err = 0, tmpTLVsize=294 [12:20:23]tlvbuf is 00E20E50 [12:20:23]SAM_PROTO_ClearQueue [12:20:23]wFMCommunicate request_size=4 [12:20:23]MH_SAM_APDU [12:20:23]CAPDU: 80 09 00 00 [12:20:23]Write to MH i2c: E2 08 00 44 44 80 09 00 00 00 00 00 00 FA [12:20:23]Write i2c OK [12:20:23]MH_I2C_Read... [12:20:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:23]Read from MH i2c: E2 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: E2 03 00 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: E2 03 00 44 44 00 90 00 FC [12:20:23]RAPDU: 90 00 [12:20:23]wFMCommunicate OK [12:20:23]SAM_PROTO_ClearQueue done [12:20:23]KKMCreateOFDPacket [12:20:23]OFDProtocolAddRootSTLVToBuf [12:20:23]FM_MakeSignedData [12:20:23]FM_MakeSignedData [12:20:23]SAM_PROTO_SignData [12:20:23]wFMCommunicate request_size=4 [12:20:23]MH_SAM_APDU [12:20:23]CAPDU: 80 0D 01 02 [12:20:23]Write to MH i2c: E2 08 00 45 44 80 0D 01 02 00 00 00 00 02 [12:20:23]Write i2c OK [12:20:23]MH_I2C_Read... [12:20:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:23]Read from MH i2c: E2 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: E2 03 00 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: E2 03 00 45 44 00 90 00 FD [12:20:23]RAPDU: 90 00 [12:20:23]wFMCommunicate OK [12:20:23]wFMCommunicate request_size=255 [12:20:23]MH_SAM_APDU [12:20:23]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 0B 44 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [12:20:23]Write to MH i2c: E2 02 01 46 44 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 0B 44 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 4F [12:20:23]Write i2c OK [12:20:23]MH_I2C_Read... [12:20:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:23]Read from MH i2c: E2 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: E2 03 00 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: E2 03 00 46 44 00 90 00 FE [12:20:23]RAPDU: 90 00 [12:20:23]wFMCommunicate OK [12:20:23]wFMCommunicate request_size=53 [12:20:23]MH_SAM_APDU [12:20:23]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 22 C1 00 00 35 04 06 00 2C 0A 42 31 A0 4A [12:20:23]Write to MH i2c: E2 38 00 47 44 80 0D 02 02 30 00 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 22 C1 00 00 35 04 06 00 2C 0A 42 31 A0 4A 00 00 69 [12:20:23]Write i2c OK [12:20:23]MH_I2C_Read... [12:20:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:23]Read from MH i2c: E2 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: E2 03 00 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: E2 03 00 47 44 00 90 00 FF [12:20:23]RAPDU: 90 00 [12:20:23]wFMCommunicate OK [12:20:23]wFMCommunicate request_size=4 [12:20:23]MH_SAM_APDU [12:20:23]CAPDU: 80 0D 03 02 [12:20:23]Write to MH i2c: E2 08 00 48 44 80 0D 03 02 00 00 00 00 07 [12:20:23]Write i2c OK [12:20:23]MH_I2C_Read... [12:20:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:23]Read from MH i2c: E2 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: E2 0B 00 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: E2 0B 00 48 44 00 89 DF 05 A1 86 BA 98 33 90 00 21 [12:20:23]RAPDU: 89 DF 05 A1 86 BA 98 33 90 00 [12:20:23]wFMCommunicate OK [12:20:23]SAM_PROTO_SignData done [12:20:23]FM_MakeSignedData done [12:20:23]CreateOFDProtocolMessage [12:20:23]wFMCommunicate request_size=4 [12:20:23]MH_SAM_APDU [12:20:23]CAPDU: 80 11 00 00 [12:20:23]Write to MH i2c: E2 08 00 49 44 80 11 00 00 00 00 00 00 07 [12:20:23]Write i2c OK [12:20:23]MH_I2C_Read... [12:20:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:23]Read from MH i2c: E2 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: E2 17 00 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: E2 17 00 49 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 52 [12:20:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:20:23]wFMCommunicate OK [12:20:23]CreateOFDProtocolMessage done [12:20:23]OFDSenderStorePacket 49442 [12:20:23]StoreOFDPacket docnum=49442 [12:20:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 C4 3B 32 01 B8 33 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 0B 44 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 22 C1 00 00 35 04 06 00 2C 0A 42 31 A0 4A 89 DF 05 A1 86 BA 98 33 [12:20:23]CheckFolder [12:20:23]dirname=/storage/ofd_packets [12:20:23]CheckFolder done [12:20:23]ProducePacketName [12:20:23]name=ofd_packets/00049442 [12:20:23]NVStorageSaveData ofd_packets/00049442 [12:20:23]File name is /storage/ofd_packets/00049442 [12:20:23]Write 344 bytes [12:20:23]NVStorageSaveData done [12:20:23]OFDSenderStorePacket done [12:20:23]KKMCreateOFDPacket done [12:20:23]NVStorageSaveData kkm_last_timestamp [12:20:23]File name is /storage/kkm_last_timestamp [12:20:23]Write 4 bytes [12:20:23]NVStorageSaveData done [12:20:23]ExternCall_PrintAddStr [12:20:23]wPrintStart [12:20:23]Write to MH i2c: 01 00 00 4A 44 8E [12:20:23]Write i2c OK [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: 01 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: 01 07 00 [12:20:23]MH_I2C_Read... [12:20:23]Read from MH i2c: 01 07 00 4A 44 00 00 00 00 00 FF 0F A3 [12:20:23]RasterBufferAndPrint [12:20:23]line Счет N : (3)189663 [12:20:23]line ИНН: 02508201610067 [12:20:23]line Контрольно-Кассовый Чек [12:20:23]line ПРОДАЖА [12:20:23]line Товар: 5449000002952 [12:20:23]line Холодный чай Fuse персик 0,33 ж/б [12:20:23]line 1.000 * 90.00 [12:20:23]line = 90.00 [12:20:23]line НДС 12% НСП 1% [12:20:23]line > о реализуемом товаре [12:20:23]line ИТОГО: 90.00 [12:20:23]line НСП 1% : 0.80 [12:20:23]line НДС 12% : 9.56 [12:20:23]line Наличными: 90.00 [12:20:23]line Безнал.: 0.00 [12:20:23]line Место: АЗС № 95 "Партнер Нефть" [12:20:23]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:20:23]line СНО: Общий режим [12:20:23]line Чек 90 16.08.2024 12:20 [12:20:23]line Смена: 464 ФФД: 1.0 [12:20:23]line ЗНМ: 0300000078 [12:20:23]line РНМ: 0000000000092546 [12:20:23]line Версия ККМ: 001 [12:20:23]line ФМ: 0000000000871800 [12:20:23]line ФД: 49442 [12:20:23]line ФПД: 48422571843658 [12:20:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T122027&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49442&fm=48422571843658&tin=02508201610067®Number=0000000000092546&sum=9000 [12:20:23]line 0 [12:20:23]OFD Sender: Processing packet 49442 [packets to send 21, broken 20] [12:20:23]ProducePacketName [12:20:23]name=ofd_packets/00049442 [12:20:23]OFD Sender: To server: pG, [12:20:23]CommunicateWithHost lk.salyk.kg:30040 [12:20:23]ConnectInit lk.salyk.kg [12:20:23]written 0, free lines is 4095 [12:20:24]Connected sock=10 [12:20:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 C4 3B 32 01 B8 33 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 0B 44 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 22 C1 00 00 35 04 06 00 2C 0A 42 31 A0 4A 89 DF 05 A1 86 BA 98 33 [12:20:24]Write to MH i2c: 01 00 00 73 44 B7 [12:20:24]Write i2c OK [12:20:24]MH_I2C_Read... [12:20:24]Read from MH i2c: 01 [12:20:24]MH_I2C_Read... [12:20:24]Read from MH i2c: 01 07 00 [12:20:24]MH_I2C_Read... [12:20:24]Read from MH i2c: 01 07 00 73 44 00 00 00 00 00 DB 0C A5 [12:20:24]RasterBufferAndPrint [12:20:24]line [12:20:24]line [12:20:24]line [12:20:24]line [12:20:24]line [12:20:24]written 0, free lines is 3298 [12:20:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 B0 D5 47 00 6C 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 22 C1 00 00 F4 03 04 00 4A EF BE 66 B6 04 01 00 00 B5 69 81 A7 DE BC 9A E9 [12:20:24]CommunicateWithHost err = 0 [12:20:24]CheckOFDResponse [12:20:24]1017 (14) - 77093643461234 [12:20:24]1041 (16) - 0000000000871800 [12:20:24]1040 (4) - 49442 [12:20:24]1012 (4) - 16.08.2024 06:18 [12:20:24]1206 (1) - 0 [12:20:24]OFD Sender: Remove packet 49442 [12:20:24]ProducePacketName [12:20:24]name=ofd_packets/00049442 [12:20:24]NVStorageDeleteData [12:20:24]MH_Cut [12:20:24]Write to MH i2c: D1 01 00 7A 44 01 90 [12:20:24]Write i2c OK [12:20:24]MH_I2C_Read... [12:20:24]Read from MH i2c: D1 [12:20:24]MH_I2C_Read... [12:20:24]Read from MH i2c: D1 01 00 [12:20:24]MH_I2C_Read... [12:20:24]Read from MH i2c: D1 01 00 7A 44 00 8F [12:20:24]Write to MH i2c: 01 00 00 7B 44 BF [12:20:24]Write i2c OK [12:20:24]MH_I2C_Read... [12:20:24]OFD Sender: No OFD packet to send [12:20:25]*** Cut start [12:20:25]*** Purtial cut [12:20:25]*** CUTSNS_PIN = 0 [12:20:25]*** Stage 1: CUTSNS_PIN = 1 [12:20:27]Read from MH i2c: 01 [12:20:27]MH_I2C_Read... [12:20:27]*** Stop cut motor [12:20:27]*** Cut end [12:20:27]Read from MH i2c: 01 07 00 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: 01 07 00 7B 44 00 00 00 00 00 FF 0F D4 [12:20:27]process_action close_receipt done [12:20:27]requested_data is exist [12:20:27]produce_requested_data [12:20:27]requested_item fm.sn is exist - process it [12:20:27]wFMCommunicate request_size=4 [12:20:27]MH_SAM_APDU [12:20:27]CAPDU: 80 11 00 00 [12:20:27]Write to MH i2c: E2 08 00 7C 44 80 11 00 00 00 00 00 00 3A [12:20:27]Write i2c OK [12:20:27]MH_I2C_Read... [12:20:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:27]Read from MH i2c: E2 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: E2 17 00 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: E2 17 00 7C 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 85 [12:20:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:20:27]wFMCommunicate OK [12:20:27]requested_item fd.num is exist - process it [12:20:27]SAM_PROTO_GetFieldsCounters [12:20:27]wFMCommunicate request_size=4 [12:20:27]MH_SAM_APDU [12:20:27]CAPDU: 80 13 00 00 [12:20:27]Write to MH i2c: E2 08 00 7D 44 80 13 00 00 00 00 00 00 3D [12:20:27]Write i2c OK [12:20:27]MH_I2C_Read... [12:20:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:27]Read from MH i2c: E2 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: E2 62 00 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: E2 62 00 7D 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 22 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 19 [12:20:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 22 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5A 00 00 00 5E 04 04 00 5A 00 00 00 57 04 04 00 5B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:27]wFMCommunicate OK [12:20:27]SAM_PROTO_GetFieldsCounters done [12:20:27]requested_item shift.num is exist - process it [12:20:27]requested_item shift.opened is exist - process it [12:20:27]req_shift_opened [12:20:27]FM_GetShiftState [12:20:27]SAM_PROTO_GetShiftState [12:20:27]wFMCommunicate request_size=4 [12:20:27]MH_SAM_APDU [12:20:27]CAPDU: 80 13 01 00 [12:20:27]Write to MH i2c: E2 08 00 7E 44 80 13 01 00 00 00 00 00 3F [12:20:27]Write i2c OK [12:20:27]MH_I2C_Read... [12:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:27]Read from MH i2c: E2 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: E2 0E 00 [12:20:27]MH_I2C_Read... [12:20:27]Read from MH i2c: E2 0E 00 7E 44 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 B5 [12:20:27]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:20:27]wFMCommunicate OK [12:20:27]SAM_PROTO_GetShiftState done [12:20:27]FM_GetShiftState done [12:20:27]req_shift_opened done [12:20:27]requested_item shift.open_date is exist - process it [12:20:27]req_shift_open_date [12:20:27]req_shift_open_date done [12:20:27]produce_requested_data done [12:20:27]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49442,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [12:20:27]process_action_free close_receipt [12:20:27]json_value_free [12:20:27]json_value_free done [12:20:27]process_json_proto returns [12:20:27]Send response to host [12:20:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49442,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [12:20:27]free response buf [12:20:27]execute_script done [12:20:27]execute_script returns [12:20:27]free content buf [12:20:27]Sock 9.Close socket [12:20:27]Sock 9.Thread stoped [12:20:29]OFD Sender: No OFD packet to send [12:20:34]OFD Sender: No OFD packet to send [12:20:39]OFD Sender: No OFD packet to send [12:20:40]accept exits with 7 [12:20:40]New connection [12:20:40]New thread 3066973540 created [12:20:40]Thread 3066830180 joined [12:20:40]Waiting for new connection... [12:20:40] Sock 7.Parse request [12:20:40]Sock 7.Check first char [12:20:40]Sock 7.First char is OK [12:20:40]request: POST /json_proto HTTP/1.0 [12:20:40]Method: POST [12:20:40]URL: /json_proto [12:20:40]Method is POST - this is cgi request [12:20:40]url: /json_proto [12:20:40]query_string will be loaded in cgi processing [12:20:40]execute_cgi json_proto POST (null) [12:20:40]execute_cgi path=json_proto method=POST [12:20:40]POST find Content-Length [12:20:40]Host: 172.17.46.196:8080 [12:20:40]Content-Length: 756 [12:20:40]Content-Type: application/json [12:20:40] [12:20:40]POST finish read [12:20:40]Found Content-Length = 756 [12:20:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30109260", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:40]execute_script... [12:20: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)11325366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30109260", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:20:40]POST & json_proto [12:20:40]process_json_proto [12:20:40]json parsed OK: [12:20:40]protocol is kg_v1.0 [12:20:40]action value=close_receipt [12:20:40]process_action close_receipt [12:20:40]cmd_close_receipt [12:20:40]MH_GetDate [12:20:40]Write to MH i2c: F0 00 00 7F 44 B2 [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: F0 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: F0 09 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: F0 09 00 7F 44 00 1D 44 BF 66 07 E8 5D 66 F3 [12:20:40]GetLastDocTimeStamp 1723810827 [12:20:40]current date 1723810845 [12:20:40]FM_GetShiftState [12:20:40]SAM_PROTO_GetShiftState [12:20:40]wFMCommunicate request_size=4 [12:20:40]MH_SAM_APDU [12:20:40]CAPDU: 80 13 01 00 [12:20:40]Write to MH i2c: E2 08 00 80 44 80 13 01 00 00 00 00 00 41 [12:20:40]Write i2c OK [12:20:40]MH_I2C_Read... [12:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:40]Read from MH i2c: E2 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 0E 00 [12:20:40]MH_I2C_Read... [12:20:40]Read from MH i2c: E2 0E 00 80 44 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 B7 [12:20:40]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:20:40]wFMCommunicate OK [12:20:40]SAM_PROTO_GetShiftState done [12:20:40]FM_GetShiftState done [12:20:40]opened in 1723766958 [12:20:40]opened+sec_in_day 1723853358 [12:20:40]quantity*price = 0 [12:20:40]sum+1 = 1 [12:20:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 91 16.08.2024 12:20 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30109260 ФМ: 0000000000871800 ФД: 49443 ФПД: 236345587258579 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T122045&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49443&fm=236345587258579&tin=02508201610067®Number=0000000000092546&sum=0 [12:20:41]StoreToDocumentArchive [12:20:41]shift 464 fd 49443 [12:20:41]save to /storage/0464/doc_00049443 [12:20:41]save last doc name /storage/0464/doc_00049443 to /storage/kkm_last_doc_name [12:20:41]save OK [12:20:41]Clear old archive folders... [12:20:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:20:41]tlvbuf is 00E8BBA0 [12:20:41]SAM_PROTO_ClearQueue [12:20:41]wFMCommunicate request_size=4 [12:20:41]MH_SAM_APDU [12:20:41]CAPDU: 80 09 00 00 [12:20:41]Write to MH i2c: E2 08 00 8D 44 80 09 00 00 00 00 00 00 43 [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 8D 44 00 90 00 45 [12:20:41]RAPDU: 90 00 [12:20:41]wFMCommunicate OK [12:20:41]SAM_PROTO_ClearQueue done [12:20:41]KKMCreateOFDPacket [12:20:41]OFDProtocolAddRootSTLVToBuf [12:20:41]FM_MakeSignedData [12:20:41]FM_MakeSignedData [12:20:41]SAM_PROTO_SignData [12:20:41]wFMCommunicate request_size=4 [12:20:41]MH_SAM_APDU [12:20:41]CAPDU: 80 0D 01 02 [12:20:41]Write to MH i2c: E2 08 00 8E 44 80 0D 01 02 00 00 00 00 4B [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 8E 44 00 90 00 46 [12:20:41]RAPDU: 90 00 [12:20:41]wFMCommunicate OK [12:20:41]wFMCommunicate request_size=255 [12:20:41]MH_SAM_APDU [12:20:41]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 1D 44 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 23 C1 00 00 35 04 06 00 D6 [12:20:41]Write to MH i2c: E2 02 01 8F 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 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 1D 44 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 23 C1 00 00 35 04 06 00 D6 00 00 5E [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 8F 44 00 90 00 47 [12:20:41]RAPDU: 90 00 [12:20:41]wFMCommunicate OK [12:20:41]wFMCommunicate request_size=10 [12:20:41]MH_SAM_APDU [12:20:41]CAPDU: 80 0D 02 02 05 F4 7E C5 D4 D3 [12:20:41]Write to MH i2c: E2 0D 00 90 44 80 0D 02 02 05 00 F4 7E C5 D4 D3 00 00 36 [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 03 00 90 44 00 90 00 48 [12:20:41]RAPDU: 90 00 [12:20:41]wFMCommunicate OK [12:20:41]wFMCommunicate request_size=4 [12:20:41]MH_SAM_APDU [12:20:41]CAPDU: 80 0D 03 02 [12:20:41]Write to MH i2c: E2 08 00 91 44 80 0D 03 02 00 00 00 00 50 [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 0B 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 0B 00 91 44 00 B2 68 69 E1 E7 C4 77 AD 90 00 84 [12:20:41]RAPDU: B2 68 69 E1 E7 C4 77 AD 90 00 [12:20:41]wFMCommunicate OK [12:20:41]SAM_PROTO_SignData done [12:20:41]FM_MakeSignedData done [12:20:41]CreateOFDProtocolMessage [12:20:41]wFMCommunicate request_size=4 [12:20:41]MH_SAM_APDU [12:20:41]CAPDU: 80 11 00 00 [12:20:41]Write to MH i2c: E2 08 00 92 44 80 11 00 00 00 00 00 00 50 [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:41]Read from MH i2c: E2 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 17 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: E2 17 00 92 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9B [12:20:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:20:41]wFMCommunicate OK [12:20:41]CreateOFDProtocolMessage done [12:20:41]OFDSenderStorePacket 49443 [12:20:41]StoreOFDPacket docnum=49443 [12:20:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 CD F1 07 01 8A 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 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 1D 44 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 23 C1 00 00 35 04 06 00 D6 F4 7E C5 D4 D3 B2 68 69 E1 E7 C4 77 AD [12:20:41]CheckFolder [12:20:41]dirname=/storage/ofd_packets [12:20:41]CheckFolder done [12:20:41]ProducePacketName [12:20:41]name=ofd_packets/00049443 [12:20:41]NVStorageSaveData ofd_packets/00049443 [12:20:41]File name is /storage/ofd_packets/00049443 [12:20:41]Write 301 bytes [12:20:41]NVStorageSaveData done [12:20:41]OFDSenderStorePacket done [12:20:41]KKMCreateOFDPacket done [12:20:41]NVStorageSaveData kkm_last_timestamp [12:20:41]File name is /storage/kkm_last_timestamp [12:20:41]Write 4 bytes [12:20:41]NVStorageSaveData done [12:20:41]ExternCall_PrintAddStr [12:20:41]wPrintStart [12:20:41]Write to MH i2c: 01 00 00 93 44 D7 [12:20:41]Write i2c OK [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: 01 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: 01 07 00 [12:20:41]MH_I2C_Read... [12:20:41]Read from MH i2c: 01 07 00 93 44 00 00 00 00 00 FF 0F EC [12:20:41]RasterBufferAndPrint [12:20:41]line Счет N : (1)11325366 [12:20:41]line ИНН: 02508201610067 [12:20:41]line Контрольно-Кассовый Чек [12:20:41]line ПРОДАЖА [12:20:41]line ТРК (МРК, ГНК) : 12 [12:20:41]line Товар: 2710124130 [12:20:41]line Аи-92-К-4 [12:20:41]line 30.000 * 0.00 [12:20:41]line = 0.00 [12:20:41]line НДС 12% НСП 1% [12:20:41]line > о реализуемом товаре [12:20:41]line ИТОГО: 0.00 [12:20:41]line НСП 1% : 0.00 [12:20:41]line НДС 12% : 0.00 [12:20:41]line Наличными: 0.00 [12:20:41]line Безнал.: 0.00 [12:20:41]line Место: АЗС № 95 "Партнер Нефть" [12:20:41]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:20:41]line СНО: Общий режим [12:20:41]line Чек 91 16.08.2024 12:20 [12:20:41]line Смена: 464 ФФД: 1.0 [12:20:41]line ЗНМ: 0300000078 [12:20:41]line РНМ: 0000000000092546 [12:20:41]line Версия ККМ: 001 [12:20:41]line Талоны: ТК ГПНА Online [12:20:41]line 30109260 [12:20:41]line ФМ: 0000000000871800 [12:20:41]line ФД: 49443 [12:20:41]line ФПД: 236345587258579 [12:20:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T122045&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49443&fm=236345587258579&tin=02508201610067®Number=0000000000092546&sum=0 [12:20:42]OFD Sender: Processing packet 49443 [packets to send 21, broken 20] [12:20:42]ProducePacketName [12:20:42]name=ofd_packets/00049443 [12:20:42]OFD Sender: To server: pG, [12:20:42]CommunicateWithHost lk.salyk.kg:30040 [12:20:42]ConnectInit lk.salyk.kg [12:20:42]written 0, free lines is 4095 [12:20:42]Connected sock=10 [12:20:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 CD F1 07 01 8A 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 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 1D 44 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 23 C1 00 00 35 04 06 00 D6 F4 7E C5 D4 D3 B2 68 69 E1 E7 C4 77 AD [12:20:42]Write to MH i2c: 01 00 00 BD 44 01 [12:20:42]Write i2c OK [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: 01 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: 01 07 00 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: 01 07 00 BD 44 00 00 00 00 00 DB 0C EF [12:20:42]RasterBufferAndPrint [12:20:42]line [12:20:42]line [12:20:42]line [12:20:42]line [12:20:42]line [12:20:42]written 0, free lines is 3297 [12:20:42]MH_Cut [12:20:42]Write to MH i2c: D1 01 00 C4 44 01 DA [12:20:42]Write i2c OK [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: D1 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: D1 01 00 [12:20:42]MH_I2C_Read... [12:20:42]Read from MH i2c: D1 01 00 C4 44 00 D9 [12:20:42]Write to MH i2c: 01 00 00 C5 44 09 [12:20:42]Write i2c OK [12:20:42]MH_I2C_Read... [12:20:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 4E D8 47 00 74 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 23 C1 00 00 F4 03 04 00 5C EF BE 66 B6 04 01 00 00 59 07 53 65 1B 7D F2 99 [12:20:42]CommunicateWithHost err = 0 [12:20:42]CheckOFDResponse [12:20:42]1017 (14) - 77093643461234 [12:20:42]1041 (16) - 0000000000871800 [12:20:42]1040 (4) - 49443 [12:20:42]1012 (4) - 16.08.2024 06:19 [12:20:42]1206 (1) - 0 [12:20:42]OFD Sender: Remove packet 49443 [12:20:42]ProducePacketName [12:20:42]name=ofd_packets/00049443 [12:20:42]NVStorageDeleteData [12:20:43]OFD Sender: No OFD packet to send [12:20:43]*** Cut start [12:20:43]*** Purtial cut [12:20:43]*** Stage 1: CUTSNS_PIN = 1 [12:20:43]Read from MH i2c: 01 [12:20:43]MH_I2C_Read... [12:20:43]*** Stop cut motor [12:20:43]*** Cut end [12:20:43]Read from MH i2c: 01 07 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: 01 07 00 C5 44 00 00 00 00 00 FF 0F 1E [12:20:43]process_action close_receipt done [12:20:43]requested_data is exist [12:20:43]produce_requested_data [12:20:43]requested_item fm.sn is exist - process it [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 11 00 00 [12:20:43]Write to MH i2c: E2 08 00 C6 44 80 11 00 00 00 00 00 00 84 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 17 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 17 00 C6 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CF [12:20:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:20:43]wFMCommunicate OK [12:20:43]requested_item fd.num is exist - process it [12:20:43]SAM_PROTO_GetFieldsCounters [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 13 00 00 [12:20:43]Write to MH i2c: E2 08 00 C7 44 80 13 00 00 00 00 00 00 87 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 62 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 62 00 C7 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 23 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [12:20:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 23 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5B 00 00 00 5E 04 04 00 5B 00 00 00 57 04 04 00 5C 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:20:43]wFMCommunicate OK [12:20:43]SAM_PROTO_GetFieldsCounters done [12:20:43]requested_item shift.num is exist - process it [12:20:43]requested_item shift.opened is exist - process it [12:20:43]req_shift_opened [12:20:43]FM_GetShiftState [12:20:43]SAM_PROTO_GetShiftState [12:20:43]wFMCommunicate request_size=4 [12:20:43]MH_SAM_APDU [12:20:43]CAPDU: 80 13 01 00 [12:20:43]Write to MH i2c: E2 08 00 C8 44 80 13 01 00 00 00 00 00 89 [12:20:43]Write i2c OK [12:20:43]MH_I2C_Read... [12:20:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:20:43]Read from MH i2c: E2 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 0E 00 [12:20:43]MH_I2C_Read... [12:20:43]Read from MH i2c: E2 0E 00 C8 44 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 FF [12:20:43]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:20:43]wFMCommunicate OK [12:20:43]SAM_PROTO_GetShiftState done [12:20:43]FM_GetShiftState done [12:20:43]req_shift_opened done [12:20:43]requested_item shift.open_date is exist - process it [12:20:43]req_shift_open_date [12:20:43]req_shift_open_date done [12:20:43]produce_requested_data done [12:20:43]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49443,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [12:20:43]process_action_free close_receipt [12:20:43]json_value_free [12:20:43]json_value_free done [12:20:43]process_json_proto returns [12:20:43]Send response to host [12:20:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49443,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [12:20:43]free response buf [12:20:43]execute_script done [12:20:43]execute_script returns [12:20:43]free content buf [12:20:43]Sock 7.Close socket [12:20:43]Sock 7.Thread stoped [12:20:48]OFD Sender: No OFD packet to send [12:20:53]OFD Sender: No OFD packet to send [12:20:58]OFD Sender: No OFD packet to send [12:21:03]OFD Sender: No OFD packet to send [12:21:08]OFD Sender: No OFD packet to send [12:21:13]OFD Sender: No OFD packet to send [12:21:18]OFD Sender: No OFD packet to send [12:21:23]OFD Sender: No OFD packet to send [12:21:28]OFD Sender: No OFD packet to send [12:21:33]OFD Sender: No OFD packet to send [12:21:38]OFD Sender: No OFD packet to send [12:21:43]OFD Sender: No OFD packet to send [12:21:48]OFD Sender: No OFD packet to send [12:21:53]OFD Sender: No OFD packet to send [12:21:58]OFD Sender: No OFD packet to send [12:22:03]OFD Sender: No OFD packet to send [12:22:08]OFD Sender: No OFD packet to send [12:22:13]OFD Sender: No OFD packet to send [12:22:18]OFD Sender: No OFD packet to send [12:22:23]OFD Sender: No OFD packet to send [12:22:28]OFD Sender: No OFD packet to send [12:22:33]OFD Sender: No OFD packet to send [12:22:38]OFD Sender: No OFD packet to send [12:22:43]OFD Sender: No OFD packet to send [12:22:48]OFD Sender: No OFD packet to send [12:22:53]OFD Sender: No OFD packet to send [12:22:58]OFD Sender: No OFD packet to send [12:23:03]OFD Sender: No OFD packet to send [12:23:08]OFD Sender: No OFD packet to send [12:23:13]OFD Sender: No OFD packet to send [12:23:18]OFD Sender: No OFD packet to send [12:23:23]OFD Sender: No OFD packet to send [12:23:28]OFD Sender: No OFD packet to send [12:23:33]OFD Sender: No OFD packet to send [12:23:38]OFD Sender: No OFD packet to send [12:23:43]OFD Sender: No OFD packet to send [12:23:48]OFD Sender: No OFD packet to send [12:23:53]OFD Sender: No OFD packet to send [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:18]OFD Sender: No OFD packet to send [12:24:23]OFD Sender: No OFD packet to send [12:24:28]OFD Sender: No OFD packet to send [12:24:33]OFD Sender: No OFD packet to send [12:24:38]OFD Sender: No OFD packet to send [12:24:43]OFD Sender: No OFD packet to send [12:24:48]OFD Sender: No OFD packet to send [12:24:53]OFD Sender: No OFD packet to send [12:24:58]OFD Sender: No OFD packet to send [12:25:03]OFD Sender: No OFD packet to send [12:25:08]OFD Sender: No OFD packet to send [12:25:13]OFD Sender: No OFD packet to send [12:25:18]OFD Sender: No OFD packet to send [12:25:23]OFD Sender: No OFD packet to send [12:25:28]OFD Sender: No OFD packet to send [12:25:33]OFD Sender: No OFD packet to send [12:25:38]OFD Sender: No OFD packet to send [12:25:43]OFD Sender: No OFD packet to send [12:25:48]OFD Sender: No OFD packet to send [12:25:53]OFD Sender: No OFD packet to send [12:25:58]OFD Sender: No OFD packet to send [12:26:03]OFD Sender: No OFD packet to send [12:26:08]OFD Sender: No OFD packet to send [12:26:13]OFD Sender: No OFD packet to send [12:26:18]OFD Sender: No OFD packet to send [12:26:23]OFD Sender: No OFD packet to send [12:26:28]OFD Sender: No OFD packet to send [12:26:33]OFD Sender: No OFD packet to send [12:26:38]OFD Sender: No OFD packet to send [12:26:43]OFD Sender: No OFD packet to send [12:26:48]OFD Sender: No OFD packet to send [12:26:53]OFD Sender: No OFD packet to send [12:26:58]OFD Sender: No OFD packet to send [12:27:03]OFD Sender: No OFD packet to send [12:27:08]OFD Sender: No OFD packet to send [12:27:13]OFD Sender: No OFD packet to send [12:27:18]OFD Sender: No OFD packet to send [12:27:23]OFD Sender: No OFD packet to send [12:27:28]OFD Sender: No OFD packet to send [12:27:33]OFD Sender: No OFD packet to send [12:27:38]OFD Sender: No OFD packet to send [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: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:02]accept exits with 9 [12:29:02]New connection [12:29:02]New thread 3066830180 created [12:29:02]Thread 3066973540 joined [12:29:02]Waiting for new connection... [12:29:02] Sock 9.Parse request [12:29:02]Sock 9.Check first char [12:29:02]Sock 9.First char is OK [12:29:02]request: POST /json_proto HTTP/1.0 [12:29:02]Method: POST [12:29:02]URL: /json_proto [12:29:02]Method is POST - this is cgi request [12:29:02]url: /json_proto [12:29:02]query_string will be loaded in cgi processing [12:29:02]execute_cgi json_proto POST (null) [12:29:02]execute_cgi path=json_proto method=POST [12:29:02]POST find Content-Length [12:29:02]Host: 172.17.46.196:8080 [12:29:02]Content-Length: 615 [12:29:02]Content-Type: application/json [12:29:02] [12:29:02]POST finish read [12:29:02]Found Content-Length = 615 [12:29:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189664", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:02]execute_script... [12:29: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 : (3)189664", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 2.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:02]POST & json_proto [12:29:02]process_json_proto [12:29:02]json parsed OK: [12:29:02]protocol is kg_v1.0 [12:29:02]action value=close_receipt [12:29:02]process_action close_receipt [12:29:02]cmd_close_receipt [12:29:02]MH_GetDate [12:29:02]Write to MH i2c: F0 00 00 C9 44 FC [12:29:02]Write i2c OK [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: F0 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: F0 09 00 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: F0 09 00 C9 44 00 14 46 BF 66 07 E8 5D 66 36 [12:29:02]GetLastDocTimeStamp 1723810845 [12:29:02]current date 1723811348 [12:29:02]FM_GetShiftState [12:29:02]SAM_PROTO_GetShiftState [12:29:02]wFMCommunicate request_size=4 [12:29:02]MH_SAM_APDU [12:29:02]CAPDU: 80 13 01 00 [12:29:02]Write to MH i2c: E2 08 00 CA 44 80 13 01 00 00 00 00 00 8B [12:29:02]Write i2c OK [12:29:02]MH_I2C_Read... [12:29:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:02]Read from MH i2c: E2 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: E2 0E 00 [12:29:02]MH_I2C_Read... [12:29:02]Read from MH i2c: E2 0E 00 CA 44 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 01 [12:29:02]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:29:02]wFMCommunicate OK [12:29:02]SAM_PROTO_GetShiftState done [12:29:02]FM_GetShiftState done [12:29:02]opened in 1723766958 [12:29:02]opened+sec_in_day 1723853358 [12:29:02]quantity*price = 16000 [12:29:02]sum+1 = 16001 [12:29:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 92 16.08.2024 12:29 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49444 ФПД: 20885284014084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T122908&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49444&fm=20885284014084&tin=02508201610067®Number=0000000000092546&sum=16000 0 [12:29:03]StoreToDocumentArchive [12:29:03]shift 464 fd 49444 [12:29:03]save to /storage/0464/doc_00049444 [12:29:03]save last doc name /storage/0464/doc_00049444 to /storage/kkm_last_doc_name [12:29:03]save OK [12:29:03]Clear old archive folders... [12:29:03]ProcessDocumentItem done err = 0, tmpTLVsize=268 [12:29:03]tlvbuf is 00DFB550 [12:29:03]SAM_PROTO_ClearQueue [12:29:03]wFMCommunicate request_size=4 [12:29:03]MH_SAM_APDU [12:29:03]CAPDU: 80 09 00 00 [12:29:03]Write to MH i2c: E2 08 00 D7 44 80 09 00 00 00 00 00 00 8D [12:29:03]Write i2c OK [12:29:03]MH_I2C_Read... [12:29:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:03]Read from MH i2c: E2 [12:29:03]MH_I2C_Read... [12:29:03]Read from MH i2c: E2 03 00 [12:29:03]MH_I2C_Read... [12:29:03]Read from MH i2c: E2 03 00 D7 44 00 90 00 8F [12:29:03]RAPDU: 90 00 [12:29:03]wFMCommunicate OK [12:29:03]SAM_PROTO_ClearQueue done [12:29:03]KKMCreateOFDPacket [12:29:03]OFDProtocolAddRootSTLVToBuf [12:29:03]FM_MakeSignedData [12:29:03]FM_MakeSignedData [12:29:03]SAM_PROTO_SignData [12:29:03]wFMCommunicate request_size=4 [12:29:03]MH_SAM_APDU [12:29:03]CAPDU: 80 0D 01 02 [12:29:03]Write to MH i2c: E2 08 00 D8 44 80 0D 01 02 00 00 00 00 95 [12:29:03]Write i2c OK [12:29:03]MH_I2C_Read... [12:29:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:03]Read from MH i2c: E2 [12:29:03]MH_I2C_Read... [12:29:03]Read from MH i2c: E2 03 00 [12:29:03]MH_I2C_Read... [12:29:03]Read from MH i2c: E2 03 00 D8 44 00 90 00 90 [12:29:03]RAPDU: 90 00 [12:29:03]wFMCommunicate OK [12:29:03]wFMCommunicate request_size=255 [12:29:03]MH_SAM_APDU [12:29:03]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 14 46 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [12:29:03]Write to MH i2c: E2 02 01 D9 44 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 14 46 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 F9 [12:29:03]Write i2c OK [12:29:03]MH_I2C_Read... [12:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:04]Read from MH i2c: E2 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 03 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 03 00 D9 44 00 90 00 91 [12:29:04]RAPDU: 90 00 [12:29:04]wFMCommunicate OK [12:29:04]wFMCommunicate request_size=27 [12:29:04]MH_SAM_APDU [12:29:04]CAPDU: 80 0D 02 02 16 31 38 30 30 10 04 04 00 24 C1 00 00 35 04 06 00 12 FE BB EF 48 04 [12:29:04]Write to MH i2c: E2 1E 00 DA 44 80 0D 02 02 16 00 31 38 30 30 10 04 04 00 24 C1 00 00 35 04 06 00 12 FE BB EF 48 04 00 00 CF [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 [12:29:04]MH_I2C_Read... [12:29:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:04]Read from MH i2c: E2 03 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 03 00 DA 44 00 90 00 92 [12:29:04]RAPDU: 90 00 [12:29:04]wFMCommunicate OK [12:29:04]wFMCommunicate request_size=4 [12:29:04]MH_SAM_APDU [12:29:04]CAPDU: 80 0D 03 02 [12:29:04]Write to MH i2c: E2 08 00 DB 44 80 0D 03 02 00 00 00 00 9A [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:04]Read from MH i2c: E2 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 0B 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 0B 00 DB 44 00 1C 4B 76 67 F9 0C 9E 61 90 00 E3 [12:29:04]RAPDU: 1C 4B 76 67 F9 0C 9E 61 90 00 [12:29:04]wFMCommunicate OK [12:29:04]SAM_PROTO_SignData done [12:29:04]FM_MakeSignedData done [12:29:04]CreateOFDProtocolMessage [12:29:04]wFMCommunicate request_size=4 [12:29:04]MH_SAM_APDU [12:29:04]CAPDU: 80 11 00 00 [12:29:04]Write to MH i2c: E2 08 00 DC 44 80 11 00 00 00 00 00 00 9A [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:04]Read from MH i2c: E2 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 17 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: E2 17 00 DC 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E5 [12:29:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:29:04]wFMCommunicate OK [12:29:04]CreateOFDProtocolMessage done [12:29:04]OFDSenderStorePacket 49444 [12:29:04]StoreOFDPacket docnum=49444 [12:29:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 20 01 00 00 D0 AA 18 01 FC A3 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 14 46 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 24 C1 00 00 35 04 06 00 12 FE BB EF 48 04 1C 4B 76 67 F9 0C 9E 61 [12:29:04]CheckFolder [12:29:04]dirname=/storage/ofd_packets [12:29:04]CheckFolder done [12:29:04]ProducePacketName [12:29:04]name=ofd_packets/00049444 [12:29:04]NVStorageSaveData ofd_packets/00049444 [12:29:04]File name is /storage/ofd_packets/00049444 [12:29:04]Write 318 bytes [12:29:04]NVStorageSaveData done [12:29:04]OFDSenderStorePacket done [12:29:04]KKMCreateOFDPacket done [12:29:04]NVStorageSaveData kkm_last_timestamp [12:29:04]File name is /storage/kkm_last_timestamp [12:29:04]Write 4 bytes [12:29:04]NVStorageSaveData done [12:29:04]ExternCall_PrintAddStr [12:29:04]wPrintStart [12:29:04]Write to MH i2c: 01 00 00 DD 44 21 [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: 01 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: 01 07 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: 01 07 00 DD 44 00 00 00 00 00 FF 0F 36 [12:29:04]RasterBufferAndPrint [12:29:04]line Счет N : (3)189664 [12:29:04]line ИНН: 02508201610067 [12:29:04]line Контрольно-Кассовый Чек [12:29:04]line ПРОДАЖА [12:29:04]line Товар: 4870001570057 [12:29:04]line Напиток Pepsi 0,5л [12:29:04]line 2.000 * 80.00 [12:29:04]line = 160.00 [12:29:04]line НДС 12% НСП 1% [12:29:04]line > о реализуемом товаре [12:29:04]line ИТОГО: 160.00 [12:29:04]line НСП 1% : 1.42 [12:29:04]line НДС 12% : 16.99 [12:29:04]line Наличными: 160.00 [12:29:04]line Безнал.: 0.00 [12:29:04]line Место: АЗС № 95 "Партнер Нефть" [12:29:04]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:29:04]line СНО: Общий режим [12:29:04]line Чек 92 16.08.2024 12:29 [12:29:04]line Смена: 464 ФФД: 1.0 [12:29:04]line ЗНМ: 0300000078 [12:29:04]line РНМ: 0000000000092546 [12:29:04]line Версия ККМ: 001 [12:29:04]line ФМ: 0000000000871800 [12:29:04]line ФД: 49444 [12:29:04]line ФПД: 20885284014084 [12:29:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T122908&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49444&fm=20885284014084&tin=02508201610067®Number=0000000000092546&sum=16000 [12:29:04]line 0 [12:29:04]written 0, free lines is 4095 [12:29:04]OFD Sender: Processing packet 49444 [packets to send 21, broken 20] [12:29:04]ProducePacketName [12:29:04]name=ofd_packets/00049444 [12:29:04]OFD Sender: To server: pG, [12:29:04]CommunicateWithHost lk.salyk.kg:30040 [12:29:04]ConnectInit lk.salyk.kg [12:29:04]Connected sock=10 [12:29:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 20 01 00 00 D0 AA 18 01 FC A3 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 14 46 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 24 C1 00 00 35 04 06 00 12 FE BB EF 48 04 1C 4B 76 67 F9 0C 9E 61 [12:29:04]Write to MH i2c: 01 00 00 05 45 4A [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: 01 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: 01 07 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: 01 07 00 05 45 00 00 00 00 00 0F 0D 6D [12:29:04]RasterBufferAndPrint [12:29:04]line [12:29:04]line [12:29:04]line [12:29:04]line [12:29:04]line [12:29:04]written 0, free lines is 3349 [12:29:04]MH_Cut [12:29:04]Write to MH i2c: D1 01 00 0C 45 01 23 [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: D1 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: D1 01 00 [12:29:04]MH_I2C_Read... [12:29:04]Read from MH i2c: D1 01 00 0C 45 00 22 [12:29:04]Write to MH i2c: 01 00 00 0D 45 52 [12:29:04]Write i2c OK [12:29:04]MH_I2C_Read... [12:29:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 EC FB 47 00 C9 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 38 37 31 38 30 30 10 04 04 00 24 C1 00 00 F4 03 04 00 52 F1 BE 66 B6 04 01 00 00 9D 56 CD B1 18 53 78 2B [12:29:04]CommunicateWithHost err = 0 [12:29:04]CheckOFDResponse [12:29:04]1017 (14) - 77093643461234 [12:29:04]1041 (16) - 0000000000871800 [12:29:04]1040 (4) - 49444 [12:29:04]1012 (4) - 16.08.2024 06:27 [12:29:04]1206 (1) - 0 [12:29:04]OFD Sender: Remove packet 49444 [12:29:04]ProducePacketName [12:29:04]name=ofd_packets/00049444 [12:29:04]NVStorageDeleteData [12:29:05]OFD Sender: No OFD packet to send [12:29:05]*** Cut start [12:29:05]*** Purtial cut [12:29:05]*** CUTSNS_PIN = 0 [12:29:05]*** Stage 1: CUTSNS_PIN = 1 [12:29:07]Read from MH i2c: 01 [12:29:07]MH_I2C_Read... [12:29:07]*** Stop cut motor [12:29:07]*** Cut end [12:29:07]Read from MH i2c: 01 07 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: 01 07 00 0D 45 00 00 00 00 00 FF 0F 67 [12:29:07]process_action close_receipt done [12:29:07]requested_data is exist [12:29:07]produce_requested_data [12:29:07]requested_item fm.sn is exist - process it [12:29:07]wFMCommunicate request_size=4 [12:29:07]MH_SAM_APDU [12:29:07]CAPDU: 80 11 00 00 [12:29:07]Write to MH i2c: E2 08 00 0E 45 80 11 00 00 00 00 00 00 CD [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:07]Read from MH i2c: E2 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 17 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 17 00 0E 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 18 [12:29:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:29:07]wFMCommunicate OK [12:29:07]requested_item fd.num is exist - process it [12:29:07]SAM_PROTO_GetFieldsCounters [12:29:07]wFMCommunicate request_size=4 [12:29:07]MH_SAM_APDU [12:29:07]CAPDU: 80 13 00 00 [12:29:07]Write to MH i2c: E2 08 00 0F 45 80 13 00 00 00 00 00 00 D0 [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:07]Read from MH i2c: E2 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 62 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 62 00 0F 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 24 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 B4 [12:29:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 24 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5C 00 00 00 5E 04 04 00 5C 00 00 00 57 04 04 00 5D 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:07]wFMCommunicate OK [12:29:07]SAM_PROTO_GetFieldsCounters done [12:29:07]requested_item shift.num is exist - process it [12:29:07]requested_item shift.opened is exist - process it [12:29:07]req_shift_opened [12:29:07]FM_GetShiftState [12:29:07]SAM_PROTO_GetShiftState [12:29:07]wFMCommunicate request_size=4 [12:29:07]MH_SAM_APDU [12:29:07]CAPDU: 80 13 01 00 [12:29:07]Write to MH i2c: E2 08 00 10 45 80 13 01 00 00 00 00 00 D2 [12:29:07]Write i2c OK [12:29:07]MH_I2C_Read... [12:29:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:07]Read from MH i2c: E2 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 0E 00 [12:29:07]MH_I2C_Read... [12:29:07]Read from MH i2c: E2 0E 00 10 45 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 48 [12:29:07]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:29:07]wFMCommunicate OK [12:29:07]SAM_PROTO_GetShiftState done [12:29:07]FM_GetShiftState done [12:29:07]req_shift_opened done [12:29:07]requested_item shift.open_date is exist - process it [12:29:07]req_shift_open_date [12:29:07]req_shift_open_date done [12:29:07]produce_requested_data done [12:29:07]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49444,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [12:29:07]process_action_free close_receipt [12:29:07]json_value_free [12:29:07]json_value_free done [12:29:07]process_json_proto returns [12:29:07]Send response to host [12:29:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49444,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [12:29:07]free response buf [12:29:07]execute_script done [12:29:07]execute_script returns [12:29:07]free content buf [12:29:07]Sock 9.Close socket [12:29:07]Sock 9.Thread stoped [12:29:10]OFD Sender: No OFD packet to send [12:29:15]OFD Sender: No OFD packet to send [12:29:20]OFD Sender: No OFD packet to send [12:29:25]OFD Sender: No OFD packet to send [12:29:30]OFD Sender: No OFD packet to send [12:29:32]accept exits with 7 [12:29:32]New connection [12:29:32]New thread 3066973540 created [12:29:32]Thread 3066830180 joined [12:29:32]Waiting for new connection... [12:29:32] Sock 7.Parse request [12:29:32]Sock 7.Check first char [12:29:32]Sock 7.First char is OK [12:29:32]request: POST /json_proto HTTP/1.0 [12:29:32]Method: POST [12:29:32]URL: /json_proto [12:29:32]Method is POST - this is cgi request [12:29:32]url: /json_proto [12:29:32]query_string will be loaded in cgi processing [12:29:32]execute_cgi json_proto POST (null) [12:29:32]execute_cgi path=json_proto method=POST [12:29:32]POST find Content-Length [12:29:32]Host: 172.17.46.196:8080 [12:29:32]Content-Length: 718 [12:29:32]Content-Type: application/json [12:29:32] [12:29:32]POST finish read [12:29:32]Found Content-Length = 718 [12:29:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189665", "tax_sys" : 0, "items" : [ { "code": "4630007400242", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 50 \u0433\u0440", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:32]execute_script... [12:29: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 : (3)189665", "tax_sys" : 0, "items" : [ { "code": "4630007400242", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 50 \u0433\u0440", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 55.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:29:32]POST & json_proto [12:29:32]process_json_proto [12:29:32]json parsed OK: [12:29:32]protocol is kg_v1.0 [12:29:32]action value=close_receipt [12:29:32]process_action close_receipt [12:29:32]cmd_close_receipt [12:29:32]MH_GetDate [12:29:32]Write to MH i2c: F0 00 00 11 45 45 [12:29:32]Write i2c OK [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: F0 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: F0 09 00 [12:29:32]MH_I2C_Read... [12:29:32]Read from MH i2c: F0 09 00 11 45 00 32 46 BF 66 07 E8 5D 66 9D [12:29:32]GetLastDocTimeStamp 1723811348 [12:29:32]current date 1723811378 [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 12 45 80 13 01 00 00 00 00 00 D4 [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 12 45 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 4A [12:29:32]RAPDU: 09 00 01 AE 98 BE 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]opened in 1723766958 [12:29:32]opened+sec_in_day 1723853358 [12:29:32]quantity*price = 5500 [12:29:32]sum+1 = 5501 [12:29:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 55.00 НСП 1% : 0.49 НДС 12% : 5.84 Наличными: 55.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 93 16.08.2024 12:29 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49445 ФПД: 88703100006517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T122938&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49445&fm=88703100006517&tin=02508201610067®Number=0000000000092546&sum=5500 0 [12:29:34]StoreToDocumentArchive [12:29:34]shift 464 fd 49445 [12:29:34]save to /storage/0464/doc_00049445 [12:29:34]save last doc name /storage/0464/doc_00049445 to /storage/kkm_last_doc_name [12:29:34]save OK [12:29:34]Clear old archive folders... [12:29:34]ProcessDocumentItem done err = 0, tmpTLVsize=301 [12:29:34]tlvbuf is 00E46160 [12:29:34]SAM_PROTO_ClearQueue [12:29:34]wFMCommunicate request_size=4 [12:29:34]MH_SAM_APDU [12:29:34]CAPDU: 80 09 00 00 [12:29:34]Write to MH i2c: E2 08 00 1F 45 80 09 00 00 00 00 00 00 D6 [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:34]Read from MH i2c: E2 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 03 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 03 00 1F 45 00 90 00 D8 [12:29:34]RAPDU: 90 00 [12:29:34]wFMCommunicate OK [12:29:34]SAM_PROTO_ClearQueue done [12:29:34]KKMCreateOFDPacket [12:29:34]OFDProtocolAddRootSTLVToBuf [12:29:34]FM_MakeSignedData [12:29:34]FM_MakeSignedData [12:29:34]SAM_PROTO_SignData [12:29:34]wFMCommunicate request_size=4 [12:29:34]MH_SAM_APDU [12:29:34]CAPDU: 80 0D 01 02 [12:29:34]Write to MH i2c: E2 08 00 20 45 80 0D 01 02 00 00 00 00 DE [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:34]Read from MH i2c: E2 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 03 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 03 00 20 45 00 90 00 D9 [12:29:34]RAPDU: 90 00 [12:29:34]wFMCommunicate OK [12:29:34]wFMCommunicate request_size=255 [12:29:34]MH_SAM_APDU [12:29:34]CAPDU: 80 0D 02 02 FA 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 34 32 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 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 32 46 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 [12:29:34]Write to MH i2c: E2 02 01 21 45 80 0D 02 02 FA 00 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 34 32 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 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 32 46 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 00 18 [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:34]Read from MH i2c: E2 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 03 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 03 00 21 45 00 90 00 DA [12:29:34]RAPDU: 90 00 [12:29:34]wFMCommunicate OK [12:29:34]wFMCommunicate request_size=60 [12:29:34]MH_SAM_APDU [12:29:34]CAPDU: 80 0D 02 02 37 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 25 C1 00 00 35 04 06 00 50 AC CC C4 30 75 [12:29:34]Write to MH i2c: E2 3F 00 22 45 80 0D 02 02 37 00 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 25 C1 00 00 35 04 06 00 50 AC CC C4 30 75 00 00 14 [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:34]Read from MH i2c: E2 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 03 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 03 00 22 45 00 90 00 DB [12:29:34]RAPDU: 90 00 [12:29:34]wFMCommunicate OK [12:29:34]wFMCommunicate request_size=4 [12:29:34]MH_SAM_APDU [12:29:34]CAPDU: 80 0D 03 02 [12:29:34]Write to MH i2c: E2 08 00 23 45 80 0D 03 02 00 00 00 00 E3 [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:34]Read from MH i2c: E2 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 0B 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 0B 00 23 45 00 97 1F 35 0F A6 6C 19 E3 90 00 EC [12:29:34]RAPDU: 97 1F 35 0F A6 6C 19 E3 90 00 [12:29:34]wFMCommunicate OK [12:29:34]SAM_PROTO_SignData done [12:29:34]FM_MakeSignedData done [12:29:34]CreateOFDProtocolMessage [12:29:34]wFMCommunicate request_size=4 [12:29:34]MH_SAM_APDU [12:29:34]CAPDU: 80 11 00 00 [12:29:34]Write to MH i2c: E2 08 00 24 45 80 11 00 00 00 00 00 00 E3 [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:34]Read from MH i2c: E2 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 17 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: E2 17 00 24 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2E [12:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:29:34]wFMCommunicate OK [12:29:34]CreateOFDProtocolMessage done [12:29:34]OFDSenderStorePacket 49445 [12:29:34]StoreOFDPacket docnum=49445 [12:29:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 41 01 00 00 27 69 39 01 4B 8E 5A 03 01 00 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 34 32 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 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 32 46 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 25 C1 00 00 35 04 06 00 50 AC CC C4 30 75 97 1F 35 0F A6 6C 19 E3 [12:29:34]CheckFolder [12:29:34]dirname=/storage/ofd_packets [12:29:34]CheckFolder done [12:29:34]ProducePacketName [12:29:34]name=ofd_packets/00049445 [12:29:34]NVStorageSaveData ofd_packets/00049445 [12:29:34]File name is /storage/ofd_packets/00049445 [12:29:34]Write 351 bytes [12:29:34]NVStorageSaveData done [12:29:34]OFDSenderStorePacket done [12:29:34]KKMCreateOFDPacket done [12:29:34]NVStorageSaveData kkm_last_timestamp [12:29:34]File name is /storage/kkm_last_timestamp [12:29:34]Write 4 bytes [12:29:34]NVStorageSaveData done [12:29:34]ExternCall_PrintAddStr [12:29:34]wPrintStart [12:29:34]Write to MH i2c: 01 00 00 25 45 6A [12:29:34]Write i2c OK [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: 01 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: 01 07 00 [12:29:34]MH_I2C_Read... [12:29:34]Read from MH i2c: 01 07 00 25 45 00 00 00 00 00 FF 0F 7F [12:29:34]RasterBufferAndPrint [12:29:34]line Счет N : (3)189665 [12:29:34]line ИНН: 02508201610067 [12:29:34]line Контрольно-Кассовый Чек [12:29:34]line ПРОДАЖА [12:29:34]line Товар: 4630007400242 [12:29:34]line Арахис жарен Караван орехов 50 гр [12:29:34]line 1.000 * 55.00 [12:29:34]line = 55.00 [12:29:34]line НДС 12% НСП 1% [12:29:34]line > о реализуемом товаре [12:29:34]line ИТОГО: 55.00 [12:29:34]line НСП 1% : 0.49 [12:29:34]line НДС 12% : 5.84 [12:29:34]line Наличными: 55.00 [12:29:34]line Безнал.: 0.00 [12:29:34]line Место: АЗС № 95 "Партнер Нефть" [12:29:34]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:29:34]line СНО: Общий режим [12:29:34]line Чек 93 16.08.2024 12:29 [12:29:34]line Смена: 464 ФФД: 1.0 [12:29:34]line ЗНМ: 0300000078 [12:29:34]line РНМ: 0000000000092546 [12:29:34]line Версия ККМ: 001 [12:29:34]line ФМ: 0000000000871800 [12:29:34]line ФД: 49445 [12:29:34]line ФПД: 88703100006517 [12:29:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T122938&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49445&fm=88703100006517&tin=02508201610067®Number=0000000000092546&sum=5500 [12:29:34]line 0 [12:29:34]OFD Sender: Processing packet 49445 [packets to send 21, broken 20] [12:29:34]ProducePacketName [12:29:34]name=ofd_packets/00049445 [12:29:34]OFD Sender: To server: pG, [12:29:34]CommunicateWithHost lk.salyk.kg:30040 [12:29:34]ConnectInit lk.salyk.kg [12:29:34]written 0, free lines is 4095 [12:29:35]Connected sock=10 [12:29:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 41 01 00 00 27 69 39 01 4B 8E 5A 03 01 00 03 00 2D 01 1E 04 01 00 01 23 04 7F 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 32 34 32 06 04 3B 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 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 32 46 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 25 C1 00 00 35 04 06 00 50 AC CC C4 30 75 97 1F 35 0F A6 6C 19 E3 [12:29:35]Write to MH i2c: 01 00 00 4E 45 93 [12:29:35]Write i2c OK [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: 01 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: 01 07 00 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: 01 07 00 4E 45 00 00 00 00 00 D6 0C 7C [12:29:35]RasterBufferAndPrint [12:29:35]line [12:29:35]line [12:29:35]line [12:29:35]line [12:29:35]line [12:29:35]written 0, free lines is 3293 [12:29:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 33 C0 47 00 FA 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 38 37 31 38 30 30 10 04 04 00 25 C1 00 00 F4 03 04 00 71 F1 BE 66 B6 04 01 00 00 23 4E C0 0F 6B 31 F8 3C [12:29:35]CommunicateWithHost err = 0 [12:29:35]CheckOFDResponse [12:29:35]1017 (14) - 77093643461234 [12:29:35]1041 (16) - 0000000000871800 [12:29:35]1040 (4) - 49445 [12:29:35]1012 (4) - 16.08.2024 06:28 [12:29:35]1206 (1) - 0 [12:29:35]OFD Sender: Remove packet 49445 [12:29:35]ProducePacketName [12:29:35]name=ofd_packets/00049445 [12:29:35]NVStorageDeleteData [12:29:35]MH_Cut [12:29:35]Write to MH i2c: D1 01 00 55 45 01 6C [12:29:35]Write i2c OK [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: D1 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: D1 01 00 [12:29:35]MH_I2C_Read... [12:29:35]Read from MH i2c: D1 01 00 55 45 00 6B [12:29:35]Write to MH i2c: 01 00 00 56 45 9B [12:29:35]Write i2c OK [12:29:35]MH_I2C_Read... [12:29:35]OFD Sender: No OFD packet to send [12:29:36]*** Cut start [12:29:36]*** Purtial cut [12:29:36]*** Stage 1: CUTSNS_PIN = 1 [12:29:36]Read from MH i2c: 01 [12:29:36]MH_I2C_Read... [12:29:36]*** Stop cut motor [12:29:36]*** Cut end [12:29:36]Read from MH i2c: 01 07 00 [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: 01 07 00 56 45 00 00 00 00 00 FF 0F B0 [12:29:36]process_action close_receipt done [12:29:36]requested_data is exist [12:29:36]produce_requested_data [12:29:36]requested_item fm.sn is exist - process it [12:29:36]wFMCommunicate request_size=4 [12:29:36]MH_SAM_APDU [12:29:36]CAPDU: 80 11 00 00 [12:29:36]Write to MH i2c: E2 08 00 57 45 80 11 00 00 00 00 00 00 16 [12:29:36]Write i2c OK [12:29:36]MH_I2C_Read... [12:29:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:36]Read from MH i2c: E2 [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: E2 17 00 [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: E2 17 00 57 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 61 [12:29:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:29:36]wFMCommunicate OK [12:29:36]requested_item fd.num is exist - process it [12:29:36]SAM_PROTO_GetFieldsCounters [12:29:36]wFMCommunicate request_size=4 [12:29:36]MH_SAM_APDU [12:29:36]CAPDU: 80 13 00 00 [12:29:36]Write to MH i2c: E2 08 00 58 45 80 13 00 00 00 00 00 00 19 [12:29:36]Write i2c OK [12:29:36]MH_I2C_Read... [12:29:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:36]Read from MH i2c: E2 [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: E2 62 00 [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: E2 62 00 58 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 25 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [12:29:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 25 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5D 00 00 00 5E 04 04 00 5D 00 00 00 57 04 04 00 5E 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:36]wFMCommunicate OK [12:29:36]SAM_PROTO_GetFieldsCounters done [12:29:36]requested_item shift.num is exist - process it [12:29:36]requested_item shift.opened is exist - process it [12:29:36]req_shift_opened [12:29:36]FM_GetShiftState [12:29:36]SAM_PROTO_GetShiftState [12:29:36]wFMCommunicate request_size=4 [12:29:36]MH_SAM_APDU [12:29:36]CAPDU: 80 13 01 00 [12:29:36]Write to MH i2c: E2 08 00 59 45 80 13 01 00 00 00 00 00 1B [12:29:36]Write i2c OK [12:29:36]MH_I2C_Read... [12:29:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:36]Read from MH i2c: E2 [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: E2 0E 00 [12:29:36]MH_I2C_Read... [12:29:36]Read from MH i2c: E2 0E 00 59 45 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 91 [12:29:36]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:29:36]wFMCommunicate OK [12:29:36]SAM_PROTO_GetShiftState done [12:29:36]FM_GetShiftState done [12:29:36]req_shift_opened done [12:29:36]requested_item shift.open_date is exist - process it [12:29:36]req_shift_open_date [12:29:36]req_shift_open_date done [12:29:36]produce_requested_data done [12:29:36]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49445,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [12:29:36]process_action_free close_receipt [12:29:36]json_value_free [12:29:36]json_value_free done [12:29:36]process_json_proto returns [12:29:36]Send response to host [12:29:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49445,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [12:29:36]free response buf [12:29:36]execute_script done [12:29:36]execute_script returns [12:29:36]free content buf [12:29:36]Sock 7.Close socket [12:29:36]Sock 7.Thread stoped [12:29:40]OFD Sender: No OFD packet to send [12:29:45]OFD Sender: No OFD packet to send [12:29:50]OFD Sender: No OFD packet to send [12:29:55]OFD Sender: No OFD packet to send [12:30:00]OFD Sender: No OFD packet to send [12:30:05]OFD Sender: No OFD packet to send [12:30:10]OFD Sender: No OFD packet to send [12:30:15]OFD Sender: No OFD packet to send [12:30:20]OFD Sender: No OFD packet to send [12:30:25]OFD Sender: No OFD packet to send [12:30:30]OFD Sender: No OFD packet to send [12:30:35]OFD Sender: No OFD packet to send [12:30:40]OFD Sender: No OFD packet to send [12:30:45]OFD Sender: No OFD packet to send [12:30:50]OFD Sender: No OFD packet to send [12:30:55]OFD Sender: No OFD packet to send [12:31:00]OFD Sender: No OFD packet to send [12:31:05]OFD Sender: No OFD packet to send [12:31:10]OFD Sender: No OFD packet to send [12:31:15]OFD Sender: No OFD packet to send [12:31:16]accept exits with 9 [12:31:16]New connection [12:31:16]New thread 3066830180 created [12:31:16]Thread 3066973540 joined [12:31:16]Waiting for new connection... [12:31:16] Sock 9.Parse request [12:31:16]Sock 9.Check first char [12:31:16]Sock 9.First char is OK [12:31:16]request: POST /json_proto HTTP/1.0 [12:31:16]Method: POST [12:31:16]URL: /json_proto [12:31:16]Method is POST - this is cgi request [12:31:16]url: /json_proto [12:31:16]query_string will be loaded in cgi processing [12:31:16]execute_cgi json_proto POST (null) [12:31:16]execute_cgi path=json_proto method=POST [12:31:16]POST find Content-Length [12:31:16]Host: 172.17.46.196:8080 [12:31:16]Content-Length: 962 [12:31:16]Content-Type: application/json [12:31:16] [12:31:16]POST finish read [12:31:16]Found Content-Length = 962 [12:31:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189666", "tax_sys" : 0, "items" : [ { "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602606003728", "name": "\u041C\u0430\u0440-\u0434 Fruit-tella \u0437\u043C\u0435\u0438 XXL 30*70\u0433", "price" : 103.00, "quantity" : 1.000, "sum" : 103.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 178.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:16]execute_script... [12: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 : (3)189666", "tax_sys" : 0, "items" : [ { "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602606003728", "name": "\u041C\u0430\u0440-\u0434 Fruit-tella \u0437\u043C\u0435\u0438 XXL 30*70\u0433", "price" : 103.00, "quantity" : 1.000, "sum" : 103.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 178.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:16]POST & json_proto [12:31:16]process_json_proto [12:31:16]json parsed OK: [12:31:16]protocol is kg_v1.0 [12:31:16]action value=close_receipt [12:31:16]process_action close_receipt [12:31:16]cmd_close_receipt [12:31:16]MH_GetDate [12:31:16]Write to MH i2c: F0 00 00 5A 45 8E [12:31:16]Write i2c OK [12:31:16]MH_I2C_Read... [12:31:16]Read from MH i2c: F0 [12:31:16]MH_I2C_Read... [12:31:16]Read from MH i2c: F0 09 00 [12:31:16]MH_I2C_Read... [12:31:16]Read from MH i2c: F0 09 00 5A 45 00 9A 46 BF 66 07 E8 5D 66 4E [12:31:16]GetLastDocTimeStamp 1723811378 [12:31:16]current date 1723811482 [12:31:16]FM_GetShiftState [12:31:16]SAM_PROTO_GetShiftState [12:31:16]wFMCommunicate request_size=4 [12:31:16]MH_SAM_APDU [12:31:16]CAPDU: 80 13 01 00 [12:31:16]Write to MH i2c: E2 08 00 5B 45 80 13 01 00 00 00 00 00 1D [12:31:16]Write i2c OK [12:31:16]MH_I2C_Read... [12:31:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:17]Read from MH i2c: E2 [12:31:17]MH_I2C_Read... [12:31:17]Read from MH i2c: E2 0E 00 [12:31:17]MH_I2C_Read... [12:31:17]Read from MH i2c: E2 0E 00 5B 45 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 93 [12:31:17]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:31:17]wFMCommunicate OK [12:31:17]SAM_PROTO_GetShiftState done [12:31:17]FM_GetShiftState done [12:31:17]opened in 1723766958 [12:31:17]opened+sec_in_day 1723853358 [12:31:17]quantity*price = 7500 [12:31:17]sum+1 = 7501 [12:31:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4602606003728 Мар-д Fruit-tella змеи XXL 30*70г 1.000 * 103.00 = 103.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 178.00 НСП 1% : 1.57 НДС 12% : 18.90 Наличными: 178.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 94 16.08.2024 12:31 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49446 ФПД: 1552330710521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T123122&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49446&fm=1552330710521&tin=02508201610067®Number=0000000000092546&sum=17800 0 [12:31:18]StoreToDocumentArchive [12:31:18]shift 464 fd 49446 [12:31:18]save to /storage/0464/doc_00049446 [12:31:18]save last doc name /storage/0464/doc_00049446 to /storage/kkm_last_doc_name [12:31:18]save OK [12:31:18]Clear old archive folders... [12:31:18]ProcessDocumentItem done err = 0, tmpTLVsize=418 [12:31:18]tlvbuf is 00E144A0 [12:31:18]SAM_PROTO_ClearQueue [12:31:18]wFMCommunicate request_size=4 [12:31:18]MH_SAM_APDU [12:31:18]CAPDU: 80 09 00 00 [12:31:18]Write to MH i2c: E2 08 00 68 45 80 09 00 00 00 00 00 00 1F [12:31:18]Write i2c OK [12:31:18]MH_I2C_Read... [12:31:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:18]Read from MH i2c: E2 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: E2 03 00 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: E2 03 00 68 45 00 90 00 21 [12:31:18]RAPDU: 90 00 [12:31:18]wFMCommunicate OK [12:31:18]SAM_PROTO_ClearQueue done [12:31:18]KKMCreateOFDPacket [12:31:18]OFDProtocolAddRootSTLVToBuf [12:31:18]FM_MakeSignedData [12:31:18]FM_MakeSignedData [12:31:18]SAM_PROTO_SignData [12:31:18]wFMCommunicate request_size=4 [12:31:18]MH_SAM_APDU [12:31:18]CAPDU: 80 0D 01 02 [12:31:18]Write to MH i2c: E2 08 00 69 45 80 0D 01 02 00 00 00 00 27 [12:31:18]Write i2c OK [12:31:18]MH_I2C_Read... [12:31:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:18]Read from MH i2c: E2 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: E2 03 00 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: E2 03 00 69 45 00 90 00 22 [12:31:18]RAPDU: 90 00 [12:31:18]wFMCommunicate OK [12:31:18]wFMCommunicate request_size=255 [12:31:18]MH_SAM_APDU [12:31:18]CAPDU: 80 0D 02 02 FA 03 00 A2 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 36 30 36 30 30 33 37 32 38 06 04 2A 00 D0 9C D0 B0 D1 80 2D D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D0 B7 D0 BC D0 B5 D0 B8 20 58 58 4C 20 33 30 2A 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 [12:31:18]Write to MH i2c: E2 02 01 6A 45 80 0D 02 02 FA 00 03 00 A2 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 36 30 36 30 30 33 37 32 38 06 04 2A 00 D0 9C D0 B0 D1 80 2D D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D0 B7 D0 BC D0 B5 D0 B8 20 58 58 4C 20 33 30 2A 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 17 [12:31:18]Write i2c OK [12:31:18]MH_I2C_Read... [12:31:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:18]Read from MH i2c: E2 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: E2 03 00 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: E2 03 00 6A 45 00 90 00 23 [12:31:18]RAPDU: 90 00 [12:31:18]wFMCommunicate OK [12:31:18]wFMCommunicate request_size=177 [12:31:18]MH_SAM_APDU [12:31:18]CAPDU: 80 0D 02 02 AC 00 01 BC 04 01 00 01 FC 03 06 00 88 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 07 00 00 00 00 07 04 06 00 88 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 9A 46 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 26 C1 00 00 35 04 06 00 01 69 6E 1E DD F9 [12:31:18]Write to MH i2c: E2 B4 00 6B 45 80 0D 02 02 AC 00 00 01 BC 04 01 00 01 FC 03 06 00 88 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 07 00 00 00 00 07 04 06 00 88 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 9A 46 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 26 C1 00 00 35 04 06 00 01 69 6E 1E DD F9 00 00 07 [12:31:18]Write i2c OK [12:31:18]MH_I2C_Read... [12:31:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:18]Read from MH i2c: E2 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: E2 03 00 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: E2 03 00 6B 45 00 90 00 24 [12:31:18]RAPDU: 90 00 [12:31:18]wFMCommunicate OK [12:31:18]wFMCommunicate request_size=4 [12:31:18]MH_SAM_APDU [12:31:18]CAPDU: 80 0D 03 02 [12:31:18]Write to MH i2c: E2 08 00 6C 45 80 0D 03 02 00 00 00 00 2C [12:31:18]Write i2c OK [12:31:18]MH_I2C_Read... [12:31:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:18]Read from MH i2c: E2 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: E2 0B 00 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: E2 0B 00 6C 45 00 5F 0B 1C 46 8B 68 05 DA 90 00 CB [12:31:18]RAPDU: 5F 0B 1C 46 8B 68 05 DA 90 00 [12:31:18]wFMCommunicate OK [12:31:18]SAM_PROTO_SignData done [12:31:18]FM_MakeSignedData done [12:31:18]CreateOFDProtocolMessage [12:31:18]wFMCommunicate request_size=4 [12:31:18]MH_SAM_APDU [12:31:18]CAPDU: 80 11 00 00 [12:31:18]Write to MH i2c: E2 08 00 6D 45 80 11 00 00 00 00 00 00 2C [12:31:18]Write i2c OK [12:31:18]MH_I2C_Read... [12:31:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:18]Read from MH i2c: E2 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: E2 17 00 [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: E2 17 00 6D 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 77 [12:31:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:31:18]wFMCommunicate OK [12:31:18]CreateOFDProtocolMessage done [12:31:18]OFDSenderStorePacket 49446 [12:31:18]StoreOFDPacket docnum=49446 [12:31:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 B6 01 00 00 E2 E9 AE 01 4F 45 5A 03 01 00 03 00 A2 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 36 30 36 30 30 33 37 32 38 06 04 2A 00 D0 9C D0 B0 D1 80 2D D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D0 B7 D0 BC D0 B5 D0 B8 20 58 58 4C 20 33 30 2A 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 07 00 00 00 00 07 04 06 00 88 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 9A 46 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 26 C1 00 00 35 04 06 00 01 69 6E 1E DD F9 5F 0B 1C 46 8B 68 05 DA [12:31:18]CheckFolder [12:31:18]dirname=/storage/ofd_packets [12:31:18]CheckFolder done [12:31:18]ProducePacketName [12:31:18]name=ofd_packets/00049446 [12:31:18]NVStorageSaveData ofd_packets/00049446 [12:31:18]File name is /storage/ofd_packets/00049446 [12:31:18]Write 468 bytes [12:31:18]NVStorageSaveData done [12:31:18]OFDSenderStorePacket done [12:31:18]KKMCreateOFDPacket done [12:31:18]NVStorageSaveData kkm_last_timestamp [12:31:18]File name is /storage/kkm_last_timestamp [12:31:18]Write 4 bytes [12:31:18]NVStorageSaveData done [12:31:18]ExternCall_PrintAddStr [12:31:18]wPrintStart [12:31:18]Write to MH i2c: 01 00 00 6E 45 B3 [12:31:18]Write i2c OK [12:31:18]MH_I2C_Read... [12:31:18]Read from MH i2c: 01 [12:31:19]MH_I2C_Read... [12:31:19]OFD Sender: Processing packet 49446 [packets to send 21, broken 20] [12:31:19]ProducePacketName [12:31:19]name=ofd_packets/00049446 [12:31:19]OFD Sender: To server: pG, [12:31:19]CommunicateWithHost lk.salyk.kg:30040 [12:31:19]ConnectInit lk.salyk.kg [12:31:19]Read from MH i2c: 01 07 00 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: 01 07 00 6E 45 00 00 00 00 00 FF 0F C8 [12:31:19]RasterBufferAndPrint [12:31:19]line Счет N : (3)189666 [12:31:19]line ИНН: 02508201610067 [12:31:19]line Контрольно-Кассовый Чек [12:31:19]line ПРОДАЖА [12:31:19]line Товар: 4870112003956 [12:31:19]line Шок батончик ALBENI SUPER Альбени Супер [12:31:19]line 1.000 * 75.00 [12:31:19]line = 75.00 [12:31:19]line НДС 12% НСП 1% [12:31:19]line > о реализуемом товаре [12:31:19]line Товар: 4602606003728 [12:31:19]line Мар-д Fruit-tella змеи XXL 30*70г [12:31:19]line 1.000 * 103.00 [12:31:19]line = 103.00 [12:31:19]line НДС 12% НСП 1% [12:31:19]line > о реализуемом товаре [12:31:19]line ИТОГО: 178.00 [12:31:19]line НСП 1% : 1.57 [12:31:19]line НДС 12% : 18.90 [12:31:19]line Наличными: 178.00 [12:31:19]line Безнал.: 0.00 [12:31:19]line Место: АЗС № 95 "Партнер Нефть" [12:31:19]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:31:19]line СНО: Общий режим [12:31:19]line Чек 94 16.08.2024 12:31 [12:31:19]line Смена: 464 ФФД: 1.0 [12:31:19]line ЗНМ: 0300000078 [12:31:19]line РНМ: 0000000000092546 [12:31:19]line Версия ККМ: 001 [12:31:19]line ФМ: 0000000000871800 [12:31:19]line ФД: 49446 [12:31:19]line ФПД: 1552330710521 [12:31:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T123122&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49446&fm=1552330710521&tin=02508201610067®Number=0000000000092546&sum=17800 [12:31:19]line 0 [12:31:19]written 0, free lines is 4095 [12:31:19]Connected sock=10 [12:31:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 B6 01 00 00 E2 E9 AE 01 4F 45 5A 03 01 00 03 00 A2 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 36 30 36 30 30 33 37 32 38 06 04 2A 00 D0 9C D0 B0 D1 80 2D D0 B4 20 46 72 75 69 74 2D 74 65 6C 6C 61 20 D0 B7 D0 BC D0 B5 D0 B8 20 58 58 4C 20 33 30 2A 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 3C 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 62 07 00 00 00 00 07 04 06 00 88 45 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 9A 46 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 26 C1 00 00 35 04 06 00 01 69 6E 1E DD F9 5F 0B 1C 46 8B 68 05 DA [12:31:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 FF 3C 47 00 F4 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 26 C1 00 00 F4 03 04 00 D9 F1 BE 66 B6 04 01 00 00 A0 06 FD F1 DA 04 ED 8D [12:31:19]CommunicateWithHost err = 0 [12:31:19]CheckOFDResponse [12:31:19]1017 (14) - 77093643461234 [12:31:19]1041 (16) - 0000000000871800 [12:31:19]1040 (4) - 49446 [12:31:19]1012 (4) - 16.08.2024 06:29 [12:31:19]1206 (1) - 0 [12:31:19]OFD Sender: Remove packet 49446 [12:31:19]ProducePacketName [12:31:19]name=ofd_packets/00049446 [12:31:19]NVStorageDeleteData [12:31:19]Write to MH i2c: 01 00 00 9E 45 E3 [12:31:19]Write i2c OK [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: 01 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: 01 07 00 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: 01 07 00 9E 45 00 00 00 00 00 65 0C 5B [12:31:19]RasterBufferAndPrint [12:31:19]line [12:31:19]line [12:31:19]line [12:31:19]line [12:31:19]line [12:31:19]written 0, free lines is 3182 [12:31:19]MH_Cut [12:31:19]Write to MH i2c: D1 01 00 A5 45 01 BC [12:31:19]Write i2c OK [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: D1 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: D1 01 00 [12:31:19]MH_I2C_Read... [12:31:19]Read from MH i2c: D1 01 00 A5 45 00 BB [12:31:19]Write to MH i2c: 01 00 00 A6 45 EB [12:31:19]Write i2c OK [12:31:19]MH_I2C_Read... [12:31:20]OFD Sender: No OFD packet to send [12:31:20]*** Cut start [12:31:20]*** Purtial cut [12:31:20]*** CUTSNS_PIN = 0 [12:31:20]*** Stage 1: CUTSNS_PIN = 1 [12:31:22]Read from MH i2c: 01 [12:31:22]MH_I2C_Read... [12:31:22]*** Stop cut motor [12:31:22]*** Cut end [12:31:22]Read from MH i2c: 01 07 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: 01 07 00 A6 45 00 00 00 00 00 FF 0F 00 [12:31:22]process_action close_receipt done [12:31:22]requested_data is exist [12:31:22]produce_requested_data [12:31:22]requested_item fm.sn is exist - process it [12:31:22]wFMCommunicate request_size=4 [12:31:22]MH_SAM_APDU [12:31:22]CAPDU: 80 11 00 00 [12:31:22]Write to MH i2c: E2 08 00 A7 45 80 11 00 00 00 00 00 00 66 [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:22]Read from MH i2c: E2 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 17 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 17 00 A7 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B1 [12:31:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:31:22]wFMCommunicate OK [12:31:22]requested_item fd.num is exist - process it [12:31:22]SAM_PROTO_GetFieldsCounters [12:31:22]wFMCommunicate request_size=4 [12:31:22]MH_SAM_APDU [12:31:22]CAPDU: 80 13 00 00 [12:31:22]Write to MH i2c: E2 08 00 A8 45 80 13 00 00 00 00 00 00 69 [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:22]Read from MH i2c: E2 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 62 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 62 00 A8 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 26 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [12:31:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 26 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5E 00 00 00 5E 04 04 00 5E 00 00 00 57 04 04 00 5F 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:31:22]wFMCommunicate OK [12:31:22]SAM_PROTO_GetFieldsCounters done [12:31:22]requested_item shift.num is exist - process it [12:31:22]requested_item shift.opened is exist - process it [12:31:22]req_shift_opened [12:31:22]FM_GetShiftState [12:31:22]SAM_PROTO_GetShiftState [12:31:22]wFMCommunicate request_size=4 [12:31:22]MH_SAM_APDU [12:31:22]CAPDU: 80 13 01 00 [12:31:22]Write to MH i2c: E2 08 00 A9 45 80 13 01 00 00 00 00 00 6B [12:31:22]Write i2c OK [12:31:22]MH_I2C_Read... [12:31:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:22]Read from MH i2c: E2 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 0E 00 [12:31:22]MH_I2C_Read... [12:31:22]Read from MH i2c: E2 0E 00 A9 45 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 E1 [12:31:22]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:31:22]wFMCommunicate OK [12:31:22]SAM_PROTO_GetShiftState done [12:31:22]FM_GetShiftState done [12:31:22]req_shift_opened done [12:31:22]requested_item shift.open_date is exist - process it [12:31:22]req_shift_open_date [12:31:22]req_shift_open_date done [12:31:22]produce_requested_data done [12:31:22]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49446,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [12:31:22]process_action_free close_receipt [12:31:22]json_value_free [12:31:22]json_value_free done [12:31:22]process_json_proto returns [12:31:22]Send response to host [12:31:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49446,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [12:31:22]free response buf [12:31:22]execute_script done [12:31:22]execute_script returns [12:31:22]free content buf [12:31:22]Sock 9.Close socket [12:31:22]Sock 9.Thread stoped [12:31:25]OFD Sender: No OFD packet to send [12:31:30]OFD Sender: No OFD packet to send [12:31:35]OFD Sender: No OFD packet to send [12:31:40]OFD Sender: No OFD packet to send [12:31:45]OFD Sender: No OFD packet to send [12:31:50]OFD Sender: No OFD packet to send [12:31:55]OFD Sender: No OFD packet to send [12:32:00]OFD Sender: No OFD packet to send [12:32:05]OFD Sender: No OFD packet to send [12:32:10]OFD Sender: No OFD packet to send [12:32:15]OFD Sender: No OFD packet to send [12:32:20]OFD Sender: No OFD packet to send [12:32:25]OFD Sender: No OFD packet to send [12:32:30]OFD Sender: No OFD packet to send [12:32:35]OFD Sender: No OFD packet to send [12:32:40]OFD Sender: No OFD packet to send [12:32:45]OFD Sender: No OFD packet to send [12:32:50]OFD Sender: No OFD packet to send [12:32:55]OFD Sender: No OFD packet to send [12:33:00]OFD Sender: No OFD packet to send [12:33:05]OFD Sender: No OFD packet to send [12:33:10]OFD Sender: No OFD packet to send [12:33:15]OFD Sender: No OFD packet to send [12:33:20]OFD Sender: No OFD packet to send [12:33:25]OFD Sender: No OFD packet to send [12:33:30]OFD Sender: No OFD packet to send [12:33:35]OFD Sender: No OFD packet to send [12:33:40]OFD Sender: No OFD packet to send [12:33:45]OFD Sender: No OFD packet to send [12:33:50]OFD Sender: No OFD packet to send [12:33:55]OFD Sender: No OFD packet to send [12:34:00]OFD Sender: No OFD packet to send [12:34:05]OFD Sender: No OFD packet to send [12:34:10]OFD Sender: No OFD packet to send [12:34:15]OFD Sender: No OFD packet to send [12:34:20]OFD Sender: No OFD packet to send [12:34:25]OFD Sender: No OFD packet to send [12:34:25]accept exits with 7 [12:34:25]New connection [12:34:25]New thread 3066973540 created [12:34:25]Thread 3066830180 joined [12:34:25]Waiting for new connection... [12:34:25] Sock 7.Parse request [12:34:25]Sock 7.Check first char [12:34:25]Sock 7.First char is OK [12:34:25]request: POST /json_proto HTTP/1.0 [12:34:25]Method: POST [12:34:25]URL: /json_proto [12:34:25]Method is POST - this is cgi request [12:34:25]url: /json_proto [12:34:25]query_string will be loaded in cgi processing [12:34:25]execute_cgi json_proto POST (null) [12:34:25]execute_cgi path=json_proto method=POST [12:34:25]POST find Content-Length [12:34:25]Host: 172.17.46.196:8080 [12:34:25]Content-Length: 756 [12:34:25]Content-Type: application/json [12:34:25] [12:34:25]POST finish read [12:34:25]Found Content-Length = 756 [12:34:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30154282", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:25]execute_script... [12: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)11325377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30154282", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:25]POST & json_proto [12:34:25]process_json_proto [12:34:25]json parsed OK: [12:34:25]protocol is kg_v1.0 [12:34:25]action value=close_receipt [12:34:25]process_action close_receipt [12:34:25]cmd_close_receipt [12:34:25]MH_GetDate [12:34:25]Write to MH i2c: F0 00 00 AA 45 DE [12:34:25]Write i2c OK [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: F0 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: F0 09 00 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: F0 09 00 AA 45 00 57 47 BF 66 07 E8 5D 66 5C [12:34:25]GetLastDocTimeStamp 1723811482 [12:34:25]current date 1723811671 [12:34:25]FM_GetShiftState [12:34:25]SAM_PROTO_GetShiftState [12:34:25]wFMCommunicate request_size=4 [12:34:25]MH_SAM_APDU [12:34:25]CAPDU: 80 13 01 00 [12:34:25]Write to MH i2c: E2 08 00 AB 45 80 13 01 00 00 00 00 00 6D [12:34:25]Write i2c OK [12:34:25]MH_I2C_Read... [12:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:25]Read from MH i2c: E2 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 0E 00 [12:34:25]MH_I2C_Read... [12:34:25]Read from MH i2c: E2 0E 00 AB 45 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 E3 [12:34:25]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:34:25]wFMCommunicate OK [12:34:25]SAM_PROTO_GetShiftState done [12:34:25]FM_GetShiftState done [12:34:25]opened in 1723766958 [12:34:25]opened+sec_in_day 1723853358 [12:34:25]quantity*price = 0 [12:34:25]sum+1 = 1 [12:34:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 95 16.08.2024 12:34 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30154282 ФМ: 0000000000871800 ФД: 49447 ФПД: 217677025278373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T123431&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49447&fm=217677025278373&tin=02508201610067®Number=0000000000092546&sum=0 [12:34:26]StoreToDocumentArchive [12:34:26]shift 464 fd 49447 [12:34:26]save to /storage/0464/doc_00049447 [12:34:26]save last doc name /storage/0464/doc_00049447 to /storage/kkm_last_doc_name [12:34:26]save OK [12:34:26]Clear old archive folders... [12:34:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:26]tlvbuf is 00E998B0 [12:34:26]SAM_PROTO_ClearQueue [12:34:26]wFMCommunicate request_size=4 [12:34:26]MH_SAM_APDU [12:34:26]CAPDU: 80 09 00 00 [12:34:26]Write to MH i2c: E2 08 00 B8 45 80 09 00 00 00 00 00 00 6F [12:34:26]Write i2c OK [12:34:26]MH_I2C_Read... [12:34:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:26]Read from MH i2c: E2 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: E2 03 00 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: E2 03 00 B8 45 00 90 00 71 [12:34:26]RAPDU: 90 00 [12:34:26]wFMCommunicate OK [12:34:26]SAM_PROTO_ClearQueue done [12:34:26]KKMCreateOFDPacket [12:34:26]OFDProtocolAddRootSTLVToBuf [12:34:26]FM_MakeSignedData [12:34:26]FM_MakeSignedData [12:34:26]SAM_PROTO_SignData [12:34:26]wFMCommunicate request_size=4 [12:34:26]MH_SAM_APDU [12:34:26]CAPDU: 80 0D 01 02 [12:34:26]Write to MH i2c: E2 08 00 B9 45 80 0D 01 02 00 00 00 00 77 [12:34:26]Write i2c OK [12:34:26]MH_I2C_Read... [12:34:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:26]Read from MH i2c: E2 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: E2 03 00 [12:34:26]MH_I2C_Read... [12:34:26]Read from MH i2c: E2 03 00 B9 45 00 90 00 72 [12:34:26]RAPDU: 90 00 [12:34:26]wFMCommunicate OK [12:34:26]wFMCommunicate request_size=255 [12:34:26]MH_SAM_APDU [12:34: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 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 57 47 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 27 C1 00 00 35 04 06 00 C5 [12:34:26]Write to MH i2c: E2 02 01 BA 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 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 57 47 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 27 C1 00 00 35 04 06 00 C5 00 00 EB [12:34:26]Write i2c OK [12:34:26]MH_I2C_Read... [12:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:27]Read from MH i2c: E2 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: E2 03 00 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: E2 03 00 BA 45 00 90 00 73 [12:34:27]RAPDU: 90 00 [12:34:27]wFMCommunicate OK [12:34:27]wFMCommunicate request_size=10 [12:34:27]MH_SAM_APDU [12:34:27]CAPDU: 80 0D 02 02 05 F9 E1 C4 79 A5 [12:34:27]Write to MH i2c: E2 0D 00 BB 45 80 0D 02 02 05 00 F9 E1 C4 79 A5 00 00 40 [12:34:27]Write i2c OK [12:34:27]MH_I2C_Read... [12:34:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:27]Read from MH i2c: E2 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: E2 03 00 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: E2 03 00 BB 45 00 90 00 74 [12:34:27]RAPDU: 90 00 [12:34:27]wFMCommunicate OK [12:34:27]wFMCommunicate request_size=4 [12:34:27]MH_SAM_APDU [12:34:27]CAPDU: 80 0D 03 02 [12:34:27]Write to MH i2c: E2 08 00 BC 45 80 0D 03 02 00 00 00 00 7C [12:34:27]Write i2c OK [12:34:27]MH_I2C_Read... [12:34:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:27]Read from MH i2c: E2 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: E2 0B 00 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: E2 0B 00 BC 45 00 8A FA 74 4D A4 D3 48 03 90 00 84 [12:34:27]RAPDU: 8A FA 74 4D A4 D3 48 03 90 00 [12:34:27]wFMCommunicate OK [12:34:27]SAM_PROTO_SignData done [12:34:27]FM_MakeSignedData done [12:34:27]CreateOFDProtocolMessage [12:34:27]wFMCommunicate request_size=4 [12:34:27]MH_SAM_APDU [12:34:27]CAPDU: 80 11 00 00 [12:34:27]Write to MH i2c: E2 08 00 BD 45 80 11 00 00 00 00 00 00 7C [12:34:27]Write i2c OK [12:34:27]MH_I2C_Read... [12:34:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:27]Read from MH i2c: E2 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: E2 17 00 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: E2 17 00 BD 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C7 [12:34:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:34:27]wFMCommunicate OK [12:34:27]CreateOFDProtocolMessage done [12:34:27]OFDSenderStorePacket 49447 [12:34:27]StoreOFDPacket docnum=49447 [12:34:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 C3 18 07 01 DD 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 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 57 47 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 27 C1 00 00 35 04 06 00 C5 F9 E1 C4 79 A5 8A FA 74 4D A4 D3 48 03 [12:34:27]CheckFolder [12:34:27]dirname=/storage/ofd_packets [12:34:27]CheckFolder done [12:34:27]ProducePacketName [12:34:27]name=ofd_packets/00049447 [12:34:27]NVStorageSaveData ofd_packets/00049447 [12:34:27]File name is /storage/ofd_packets/00049447 [12:34:27]Write 301 bytes [12:34:27]NVStorageSaveData done [12:34:27]OFDSenderStorePacket done [12:34:27]KKMCreateOFDPacket done [12:34:27]NVStorageSaveData kkm_last_timestamp [12:34:27]File name is /storage/kkm_last_timestamp [12:34:27]Write 4 bytes [12:34:27]NVStorageSaveData done [12:34:27]ExternCall_PrintAddStr [12:34:27]wPrintStart [12:34:27]Write to MH i2c: 01 00 00 BE 45 03 [12:34:27]Write i2c OK [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: 01 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: 01 07 00 [12:34:27]MH_I2C_Read... [12:34:27]Read from MH i2c: 01 07 00 BE 45 00 00 00 00 00 FF 0F 18 [12:34:27]RasterBufferAndPrint [12:34:27]line Счет N : (1)11325377 [12:34:27]line ИНН: 02508201610067 [12:34:27]line Контрольно-Кассовый Чек [12:34:27]line ПРОДАЖА [12:34:27]line ТРК (МРК, ГНК) : 22 [12:34:27]line Товар: 2710124130 [12:34:27]line Аи-92-К-4 [12:34:27]line 15.000 * 0.00 [12:34:27]line = 0.00 [12:34:27]line НДС 12% НСП 1% [12:34:27]line > о реализуемом товаре [12:34:27]line ИТОГО: 0.00 [12:34:27]line НСП 1% : 0.00 [12:34:27]line НДС 12% : 0.00 [12:34:27]line Наличными: 0.00 [12:34:27]line Безнал.: 0.00 [12:34:27]line Место: АЗС № 95 "Партнер Нефть" [12:34:27]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:34:27]line СНО: Общий режим [12:34:27]line Чек 95 16.08.2024 12:34 [12:34:27]line Смена: 464 ФФД: 1.0 [12:34:27]line ЗНМ: 0300000078 [12:34:27]line РНМ: 0000000000092546 [12:34:27]line Версия ККМ: 001 [12:34:27]line Талоны: ТК ГПНА Online [12:34:27]line 30154282 [12:34:27]line ФМ: 0000000000871800 [12:34:27]line ФД: 49447 [12:34:27]line ФПД: 217677025278373 [12:34:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T123431&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49447&fm=217677025278373&tin=02508201610067®Number=0000000000092546&sum=0 [12:34:27]written 0, free lines is 4095 [12:34:27]OFD Sender: Processing packet 49447 [packets to send 21, broken 20] [12:34:27]ProducePacketName [12:34:27]name=ofd_packets/00049447 [12:34:27]OFD Sender: To server: pG, [12:34:27]CommunicateWithHost lk.salyk.kg:30040 [12:34:27]ConnectInit lk.salyk.kg [12:34:27]Connected sock=10 [12:34:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 C3 18 07 01 DD 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 34 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 57 47 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 27 C1 00 00 35 04 06 00 C5 F9 E1 C4 79 A5 8A FA 74 4D A4 D3 48 03 [12:34:28]Write to MH i2c: 01 00 00 E8 45 2D [12:34:28]Write i2c OK [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: 01 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: 01 07 00 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: 01 07 00 E8 45 00 00 00 00 00 D0 0C 10 [12:34:28]RasterBufferAndPrint [12:34:28]line [12:34:28]line [12:34:28]line [12:34:28]line [12:34:28]line [12:34:28]written 0, free lines is 3286 [12:34:28]MH_Cut [12:34:28]Write to MH i2c: D1 01 00 EF 45 01 06 [12:34:28]Write i2c OK [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: D1 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: D1 01 00 [12:34:28]MH_I2C_Read... [12:34:28]Read from MH i2c: D1 01 00 EF 45 00 05 [12:34:28]Write to MH i2c: 01 00 00 F0 45 35 [12:34:28]Write i2c OK [12:34:28]MH_I2C_Read... [12:34:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 94 08 47 00 B5 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 38 37 31 38 30 30 10 04 04 00 27 C1 00 00 F4 03 04 00 95 F2 BE 66 B6 04 01 00 00 5E 2A 48 BA BB 32 56 68 [12:34:28]CommunicateWithHost err = 0 [12:34:28]CheckOFDResponse [12:34:28]1017 (14) - 77093643461234 [12:34:28]1041 (16) - 0000000000871800 [12:34:28]1040 (4) - 49447 [12:34:28]1012 (4) - 16.08.2024 06:32 [12:34:28]1206 (1) - 0 [12:34:28]OFD Sender: Remove packet 49447 [12:34:28]ProducePacketName [12:34:28]name=ofd_packets/00049447 [12:34:28]NVStorageDeleteData [12:34:28]OFD Sender: No OFD packet to send [12:34:28]*** Cut start [12:34:28]*** Purtial cut [12:34:28]*** Stage 1: CUTSNS_PIN = 1 [12:34:29]Read from MH i2c: 01 [12:34:29]MH_I2C_Read... [12:34:29]*** Stop cut motor [12:34:29]*** Cut end [12:34:29]Read from MH i2c: 01 07 00 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: 01 07 00 F0 45 00 00 00 00 00 FF 0F 4A [12:34:29]process_action close_receipt done [12:34:29]requested_data is exist [12:34:29]produce_requested_data [12:34:29]requested_item fm.sn is exist - process it [12:34:29]wFMCommunicate request_size=4 [12:34:29]MH_SAM_APDU [12:34:29]CAPDU: 80 11 00 00 [12:34:29]Write to MH i2c: E2 08 00 F1 45 80 11 00 00 00 00 00 00 B0 [12:34:29]Write i2c OK [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: E2 [12:34:29]MH_I2C_Read... [12:34:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:29]Read from MH i2c: E2 17 00 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: E2 17 00 F1 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FB [12:34:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:34:29]wFMCommunicate OK [12:34:29]requested_item fd.num is exist - process it [12:34:29]SAM_PROTO_GetFieldsCounters [12:34:29]wFMCommunicate request_size=4 [12:34:29]MH_SAM_APDU [12:34:29]CAPDU: 80 13 00 00 [12:34:29]Write to MH i2c: E2 08 00 F2 45 80 13 00 00 00 00 00 00 B3 [12:34:29]Write i2c OK [12:34:29]MH_I2C_Read... [12:34:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:29]Read from MH i2c: E2 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: E2 62 00 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: E2 62 00 F2 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 27 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [12:34:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 27 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 5F 00 00 00 5E 04 04 00 5F 00 00 00 57 04 04 00 60 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:29]wFMCommunicate OK [12:34:29]SAM_PROTO_GetFieldsCounters done [12:34:29]requested_item shift.num is exist - process it [12:34:29]requested_item shift.opened is exist - process it [12:34:29]req_shift_opened [12:34:29]FM_GetShiftState [12:34:29]SAM_PROTO_GetShiftState [12:34:29]wFMCommunicate request_size=4 [12:34:29]MH_SAM_APDU [12:34:29]CAPDU: 80 13 01 00 [12:34:29]Write to MH i2c: E2 08 00 F3 45 80 13 01 00 00 00 00 00 B5 [12:34:29]Write i2c OK [12:34:29]MH_I2C_Read... [12:34:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:29]Read from MH i2c: E2 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: E2 0E 00 [12:34:29]MH_I2C_Read... [12:34:29]Read from MH i2c: E2 0E 00 F3 45 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 2B [12:34:29]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:34:29]wFMCommunicate OK [12:34:29]SAM_PROTO_GetShiftState done [12:34:29]FM_GetShiftState done [12:34:29]req_shift_opened done [12:34:29]requested_item shift.open_date is exist - process it [12:34:29]req_shift_open_date [12:34:29]req_shift_open_date done [12:34:29]produce_requested_data done [12:34:29]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49447,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [12:34:29]process_action_free close_receipt [12:34:29]json_value_free [12:34:29]json_value_free done [12:34:29]process_json_proto returns [12:34:29]Send response to host [12:34:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49447,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [12:34:29]free response buf [12:34:29]execute_script done [12:34:29]execute_script returns [12:34:29]free content buf [12:34:29]Sock 7.Close socket [12:34:29]Sock 7.Thread stoped [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:58]OFD Sender: No OFD packet to send [12:36:03]OFD Sender: No OFD packet to send [12:36:08]OFD Sender: No OFD packet to send [12:36:13]OFD Sender: No OFD packet to send [12:36:18]OFD Sender: No OFD packet to send [12:36:23]OFD Sender: No OFD packet to send [12:36:28]OFD Sender: No OFD packet to send [12:36:33]OFD Sender: No OFD packet to send [12:36:38]OFD Sender: No OFD packet to send [12:36:43]OFD Sender: No OFD packet to send [12:36:48]OFD Sender: No OFD packet to send [12:36:53]OFD Sender: No OFD packet to send [12:36:58]OFD Sender: No OFD packet to send [12:37:03]OFD Sender: No OFD packet to send [12:37:08]OFD Sender: No OFD packet to send [12:37:13]OFD Sender: No OFD packet to send [12:37:18]OFD Sender: No OFD packet to send [12:37:23]OFD Sender: No OFD packet to send [12:37:28]OFD Sender: No OFD packet to send [12:37:33]OFD Sender: No OFD packet to send [12:37:38]OFD Sender: No OFD packet to send [12:37:43]OFD Sender: No OFD packet to send [12:37:48]OFD Sender: No OFD packet to send [12:37:53]OFD Sender: No OFD packet to send [12:38:08]OFD Sender: No OFD packet to send [12:38:13]OFD Sender: No OFD packet to send [12:38:18]OFD Sender: No OFD packet to send [12:38:23]OFD Sender: No OFD packet to send [12:38:28]OFD Sender: No OFD packet to send [12:38:33]OFD Sender: No OFD packet to send [12:38:38]OFD Sender: No OFD packet to send [12:38:42]accept exits with 9 [12:38:42]New connection [12:38:42]New thread 3066830180 created [12:38:42]Thread 3066973540 joined [12:38:42]Waiting for new connection... [12:38:42] Sock 9.Parse request [12:38:42]Sock 9.Check first char [12:38:42]Sock 9.First char is OK [12:38:42]request: POST /json_proto HTTP/1.0 [12:38:42]Method: POST [12:38:42]URL: /json_proto [12:38:42]Method is POST - this is cgi request [12:38:42]url: /json_proto [12:38:42]query_string will be loaded in cgi processing [12:38:42]execute_cgi json_proto POST (null) [12:38:42]execute_cgi path=json_proto method=POST [12:38:42]POST find Content-Length [12:38:42]Host: 172.17.46.196:8080 [12:38:42]Content-Length: 756 [12:38:42]Content-Type: application/json [12:38:42] [12:38:42]POST finish read [12:38:42]Found Content-Length = 756 [12:38:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086211", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:42]execute_script... [12:38: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)11325380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086211", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:42]POST & json_proto [12:38:42]process_json_proto [12:38:42]json parsed OK: [12:38:42]protocol is kg_v1.0 [12:38:42]action value=close_receipt [12:38:42]process_action close_receipt [12:38:42]cmd_close_receipt [12:38:42]MH_GetDate [12:38:42]Write to MH i2c: F0 00 00 F4 45 28 [12:38:42]Write i2c OK [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: F0 [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: F0 09 00 [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: F0 09 00 F4 45 00 58 48 BF 66 07 E8 5D 66 A8 [12:38:42]GetLastDocTimeStamp 1723811671 [12:38:42]current date 1723811928 [12:38:42]FM_GetShiftState [12:38:42]SAM_PROTO_GetShiftState [12:38:42]wFMCommunicate request_size=4 [12:38:42]MH_SAM_APDU [12:38:42]CAPDU: 80 13 01 00 [12:38:42]Write to MH i2c: E2 08 00 F5 45 80 13 01 00 00 00 00 00 B7 [12:38:42]Write i2c OK [12:38:42]MH_I2C_Read... [12:38:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:42]Read from MH i2c: E2 [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: E2 0E 00 [12:38:42]MH_I2C_Read... [12:38:42]Read from MH i2c: E2 0E 00 F5 45 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 2D [12:38:42]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:38:42]wFMCommunicate OK [12:38:42]SAM_PROTO_GetShiftState done [12:38:42]FM_GetShiftState done [12:38:42]opened in 1723766958 [12:38:42]opened+sec_in_day 1723853358 [12:38:42]quantity*price = 0 [12:38:42]sum+1 = 1 [12:38:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 96 16.08.2024 12:38 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30086211 ФМ: 0000000000871800 ФД: 49448 ФПД: 192598821971164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T123848&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49448&fm=192598821971164&tin=02508201610067®Number=0000000000092546&sum=0 [12:38:43]StoreToDocumentArchive [12:38:43]shift 464 fd 49448 [12:38:43]save to /storage/0464/doc_00049448 [12:38:43]save last doc name /storage/0464/doc_00049448 to /storage/kkm_last_doc_name [12:38:43]save OK [12:38:43]Clear old archive folders... [12:38:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:38:43]tlvbuf is 00EBFE60 [12:38:43]SAM_PROTO_ClearQueue [12:38:43]wFMCommunicate request_size=4 [12:38:43]MH_SAM_APDU [12:38:43]CAPDU: 80 09 00 00 [12:38:43]Write to MH i2c: E2 08 00 02 46 80 09 00 00 00 00 00 00 BA [12:38:43]Write i2c OK [12:38:43]MH_I2C_Read... [12:38:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:44]Read from MH i2c: E2 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 03 00 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 03 00 02 46 00 90 00 BC [12:38:44]RAPDU: 90 00 [12:38:44]wFMCommunicate OK [12:38:44]SAM_PROTO_ClearQueue done [12:38:44]KKMCreateOFDPacket [12:38:44]OFDProtocolAddRootSTLVToBuf [12:38:44]FM_MakeSignedData [12:38:44]FM_MakeSignedData [12:38:44]SAM_PROTO_SignData [12:38:44]wFMCommunicate request_size=4 [12:38:44]MH_SAM_APDU [12:38:44]CAPDU: 80 0D 01 02 [12:38:44]Write to MH i2c: E2 08 00 03 46 80 0D 01 02 00 00 00 00 C2 [12:38:44]Write i2c OK [12:38:44]MH_I2C_Read... [12:38:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:44]Read from MH i2c: E2 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 03 00 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 03 00 03 46 00 90 00 BD [12:38:44]RAPDU: 90 00 [12:38:44]wFMCommunicate OK [12:38:44]wFMCommunicate request_size=255 [12:38:44]MH_SAM_APDU [12:38: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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 58 48 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 28 C1 00 00 35 04 06 00 AF [12:38:44]Write to MH i2c: E2 02 01 04 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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 58 48 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 28 C1 00 00 35 04 06 00 AF 00 00 C0 [12:38:44]Write i2c OK [12:38:44]MH_I2C_Read... [12:38:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:44]Read from MH i2c: E2 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 03 00 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 03 00 04 46 00 90 00 BE [12:38:44]RAPDU: 90 00 [12:38:44]wFMCommunicate OK [12:38:44]wFMCommunicate request_size=10 [12:38:44]MH_SAM_APDU [12:38:44]CAPDU: 80 0D 02 02 05 2A E8 5E 24 DC [12:38:44]Write to MH i2c: E2 0D 00 05 46 80 0D 02 02 05 00 2A E8 5E 24 DC 00 00 3F [12:38:44]Write i2c OK [12:38:44]MH_I2C_Read... [12:38:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:44]Read from MH i2c: E2 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 03 00 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 03 00 05 46 00 90 00 BF [12:38:44]RAPDU: 90 00 [12:38:44]wFMCommunicate OK [12:38:44]wFMCommunicate request_size=4 [12:38:44]MH_SAM_APDU [12:38:44]CAPDU: 80 0D 03 02 [12:38:44]Write to MH i2c: E2 08 00 06 46 80 0D 03 02 00 00 00 00 C7 [12:38:44]Write i2c OK [12:38:44]MH_I2C_Read... [12:38:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:44]Read from MH i2c: E2 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 0B 00 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 0B 00 06 46 00 8A A0 35 C1 E9 C9 BA F8 90 00 4C [12:38:44]RAPDU: 8A A0 35 C1 E9 C9 BA F8 90 00 [12:38:44]wFMCommunicate OK [12:38:44]SAM_PROTO_SignData done [12:38:44]FM_MakeSignedData done [12:38:44]CreateOFDProtocolMessage [12:38:44]wFMCommunicate request_size=4 [12:38:44]MH_SAM_APDU [12:38:44]CAPDU: 80 11 00 00 [12:38:44]Write to MH i2c: E2 08 00 07 46 80 11 00 00 00 00 00 00 C7 [12:38:44]Write i2c OK [12:38:44]MH_I2C_Read... [12:38:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:44]Read from MH i2c: E2 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 17 00 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: E2 17 00 07 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 12 [12:38:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:38:44]wFMCommunicate OK [12:38:44]CreateOFDProtocolMessage done [12:38:44]OFDSenderStorePacket 49448 [12:38:44]StoreOFDPacket docnum=49448 [12:38:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 F0 A6 07 01 0E 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 58 48 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 28 C1 00 00 35 04 06 00 AF 2A E8 5E 24 DC 8A A0 35 C1 E9 C9 BA F8 [12:38:44]CheckFolder [12:38:44]dirname=/storage/ofd_packets [12:38:44]CheckFolder done [12:38:44]ProducePacketName [12:38:44]name=ofd_packets/00049448 [12:38:44]NVStorageSaveData ofd_packets/00049448 [12:38:44]File name is /storage/ofd_packets/00049448 [12:38:44]Write 301 bytes [12:38:44]NVStorageSaveData done [12:38:44]OFDSenderStorePacket done [12:38:44]KKMCreateOFDPacket done [12:38:44]NVStorageSaveData kkm_last_timestamp [12:38:44]File name is /storage/kkm_last_timestamp [12:38:44]Write 4 bytes [12:38:44]NVStorageSaveData done [12:38:44]OFD Sender: Processing packet 49448 [packets to send 21, broken 20] [12:38:44]ProducePacketName [12:38:44]name=ofd_packets/00049448 [12:38:44]OFD Sender: To server: pG, [12:38:44]CommunicateWithHost lk.salyk.kg:30040 [12:38:44]ConnectInit lk.salyk.kg [12:38:44]ExternCall_PrintAddStr [12:38:44]wPrintStart [12:38:44]Write to MH i2c: 01 00 00 08 46 4E [12:38:44]Write i2c OK [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: 01 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: 01 07 00 [12:38:44]MH_I2C_Read... [12:38:44]Read from MH i2c: 01 07 00 08 46 00 00 00 00 00 FF 0F 63 [12:38:44]RasterBufferAndPrint [12:38:44]line Счет N : (1)11325380 [12:38:44]line ИНН: 02508201610067 [12:38:44]line Контрольно-Кассовый Чек [12:38:44]line ПРОДАЖА [12:38:44]line ТРК (МРК, ГНК) : 42 [12:38:44]line Товар: 2710124130 [12:38:44]line Аи-92-К-4 [12:38:44]line 20.000 * 0.00 [12:38:44]line = 0.00 [12:38:44]line НДС 12% НСП 1% [12:38:44]line > о реализуемом товаре [12:38:44]line ИТОГО: 0.00 [12:38:44]line НСП 1% : 0.00 [12:38:44]line НДС 12% : 0.00 [12:38:44]line Наличными: 0.00 [12:38:44]line Безнал.: 0.00 [12:38:44]line Место: АЗС № 95 "Партнер Нефть" [12:38:44]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [12:38:44]line СНО: Общий режим [12:38:44]line Чек 96 16.08.2024 12:38 [12:38:44]line Смена: 464 ФФД: 1.0 [12:38:44]line ЗНМ: 0300000078 [12:38:44]line РНМ: 0000000000092546 [12:38:44]line Версия ККМ: 001 [12:38:44]line Талоны: ТК ГПНА Online [12:38:44]line 30086211 [12:38:44]line ФМ: 0000000000871800 [12:38:44]line ФД: 49448 [12:38:44]line ФПД: 192598821971164 [12:38:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T123848&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49448&fm=192598821971164&tin=02508201610067®Number=0000000000092546&sum=0 [12:38:44]written 0, free lines is 4095 [12:38:45]Write to MH i2c: 01 00 00 32 46 78 [12:38:45]Write i2c OK [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: 01 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: 01 07 00 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: 01 07 00 32 46 00 00 00 00 00 D3 0C 5E [12:38:45]RasterBufferAndPrint [12:38:45]line [12:38:45]line [12:38:45]line [12:38:45]line [12:38:45]line [12:38:45]written 0, free lines is 3289 [12:38:45]MH_Cut [12:38:45]Write to MH i2c: D1 01 00 39 46 01 51 [12:38:45]Write i2c OK [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: D1 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: D1 01 00 [12:38:45]MH_I2C_Read... [12:38:45]Read from MH i2c: D1 01 00 39 46 00 50 [12:38:45]Write to MH i2c: 01 00 00 3A 46 80 [12:38:45]Write i2c OK [12:38:45]MH_I2C_Read... [12:38:46]*** Cut start [12:38:46]*** Purtial cut [12:38:46]*** CUTSNS_PIN = 0 [12:38:46]*** Stage 1: CUTSNS_PIN = 1 [12:38:48]Read from MH i2c: 01 [12:38:48]MH_I2C_Read... [12:38:48]*** Stop cut motor [12:38:48]*** Cut end [12:38:48]Read from MH i2c: 01 07 00 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: 01 07 00 3A 46 00 00 00 00 00 FF 0F 95 [12:38:48]process_action close_receipt done [12:38:48]requested_data is exist [12:38:48]produce_requested_data [12:38:48]requested_item fm.sn is exist - process it [12:38:48]wFMCommunicate request_size=4 [12:38:48]MH_SAM_APDU [12:38:48]CAPDU: 80 11 00 00 [12:38:48]Write to MH i2c: E2 08 00 3B 46 80 11 00 00 00 00 00 00 FB [12:38:48]Write i2c OK [12:38:48]MH_I2C_Read... [12:38:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:48]Read from MH i2c: E2 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: E2 17 00 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: E2 17 00 3B 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 46 [12:38:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [12:38:48]wFMCommunicate OK [12:38:48]requested_item fd.num is exist - process it [12:38:48]SAM_PROTO_GetFieldsCounters [12:38:48]wFMCommunicate request_size=4 [12:38:48]MH_SAM_APDU [12:38:48]CAPDU: 80 13 00 00 [12:38:48]Write to MH i2c: E2 08 00 3C 46 80 13 00 00 00 00 00 00 FE [12:38:48]Write i2c OK [12:38:48]MH_I2C_Read... [12:38:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:48]Read from MH i2c: E2 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: E2 62 00 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: E2 62 00 3C 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 28 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 F2 [12:38:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 28 C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 60 00 00 00 5E 04 04 00 60 00 00 00 57 04 04 00 61 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:48]wFMCommunicate OK [12:38:48]SAM_PROTO_GetFieldsCounters done [12:38:48]requested_item shift.num is exist - process it [12:38:48]requested_item shift.opened is exist - process it [12:38:48]req_shift_opened [12:38:48]FM_GetShiftState [12:38:48]SAM_PROTO_GetShiftState [12:38:48]wFMCommunicate request_size=4 [12:38:48]MH_SAM_APDU [12:38:48]CAPDU: 80 13 01 00 [12:38:48]Write to MH i2c: E2 08 00 3D 46 80 13 01 00 00 00 00 00 00 [12:38:48]Write i2c OK [12:38:48]MH_I2C_Read... [12:38:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:48]Read from MH i2c: E2 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: E2 0E 00 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: E2 0E 00 3D 46 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 76 [12:38:48]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [12:38:48]wFMCommunicate OK [12:38:48]SAM_PROTO_GetShiftState done [12:38:48]FM_GetShiftState done [12:38:48]req_shift_opened done [12:38:48]requested_item shift.open_date is exist - process it [12:38:48]req_shift_open_date [12:38:48]req_shift_open_date done [12:38:48]produce_requested_data done [12:38:48]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49448,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [12:38:48]process_action_free close_receipt [12:38:48]json_value_free [12:38:48]json_value_free done [12:38:48]process_json_proto returns [12:38:48]Send response to host [12:38:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49448,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [12:38:48]free response buf [12:38:48]execute_script done [12:38:48]execute_script returns [12:38:48]free content buf [12:38:48]Sock 9.Close socket [12:38:48]Sock 9.Thread stoped [12:38:49]ConnectInit Can't take IP for lk.salyk.kg [12:38:49]CommunicateWithHost connect error [12:38:49]CommunicateWithHost err = -1 [12:38:49]OFD Sender: Server communicate error [12:38:54]OFD Sender: Processing packet 49448 [packets to send 21, broken 20] [12:38:54]ProducePacketName [12:38:54]name=ofd_packets/00049448 [12:38:54]OFD Sender: To server: pG, [12:38:54]CommunicateWithHost lk.salyk.kg:30040 [12:38:54]ConnectInit lk.salyk.kg [12:38:59]ConnectInit Can't take IP for lk.salyk.kg [12:38:59]CommunicateWithHost connect error [12:38:59]CommunicateWithHost err = -1 [12:38:59]OFD Sender: Server communicate error [12:39:04]OFD Sender: Processing packet 49448 [packets to send 21, broken 20] [12:39:04]ProducePacketName [12:39:04]name=ofd_packets/00049448 [12:39:04]OFD Sender: To server: pG, [12:39:04]CommunicateWithHost lk.salyk.kg:30040 [12:39:04]ConnectInit lk.salyk.kg [12:39:09]ConnectInit Can't take IP for lk.salyk.kg [12:39:09]CommunicateWithHost connect error [12:39:09]CommunicateWithHost err = -1 [12:39:09]OFD Sender: Server communicate error [12:39:14]OFD Sender: Processing packet 49448 [packets to send 21, broken 20] [12:39:14]ProducePacketName [12:39:14]name=ofd_packets/00049448 [12:39:14]OFD Sender: To server: pG, [12:39:14]CommunicateWithHost lk.salyk.kg:30040 [12:39:14]ConnectInit lk.salyk.kg [12:39:19]ConnectInit Can't take IP for lk.salyk.kg [12:39:19]CommunicateWithHost connect error [12:39:19]CommunicateWithHost err = -1 [12:39:19]OFD Sender: Server communicate error [12:39:24]OFD Sender: Processing packet 49448 [packets to send 21, broken 20] [12:39:24]ProducePacketName [12:39:24]name=ofd_packets/00049448 [12:39:24]OFD Sender: To server: pG, [12:39:24]CommunicateWithHost lk.salyk.kg:30040 [12:39:24]ConnectInit lk.salyk.kg [12:39:29]ConnectInit Can't take IP for lk.salyk.kg [12:39:29]CommunicateWithHost connect error [12:39:29]CommunicateWithHost err = -1 [12:39:29]OFD Sender: Server communicate error [12:39:34]OFD Sender: Processing packet 49448 [packets to send 21, broken 20] [12:39:34]ProducePacketName [12:39:34]name=ofd_packets/00049448 [12:39:34]OFD Sender: To server: pG, [12:39:34]CommunicateWithHost lk.salyk.kg:30040 [12:39:34]ConnectInit lk.salyk.kg [12:39:39]ConnectInit Can't take IP for lk.salyk.kg [12:39:39]CommunicateWithHost connect error [12:39:39]CommunicateWithHost err = -1 [12:39:39]OFD Sender: Server communicate error [12:39:44]OFD Sender: Processing packet 49448 [packets to send 21, broken 20] [12:39:44]ProducePacketName [12:39:44]name=ofd_packets/00049448 [12:39:44]OFD Sender: To server: pG, [12:39:44]CommunicateWithHost lk.salyk.kg:30040 [12:39:44]ConnectInit lk.salyk.kg [12:39:49]ConnectInit Can't take IP for lk.salyk.kg [12:39:49]CommunicateWithHost connect error [12:39:49]CommunicateWithHost err = -1 [12:39:49]OFD Sender: Server communicate error [12:39:54]OFD Sender: Processing packet 49448 [packets to send 21, broken 20] [12:39:54]ProducePacketName [12:39:54]name=ofd_packets/00049448 [12:39:54]OFD Sender: To server: pG, [12:39:54]CommunicateWithHost lk.salyk.kg:30040 [12:39:54]ConnectInit lk.salyk.kg [12:39:59]ConnectInit Can't take IP for lk.salyk.kg [12:39:59]CommunicateWithHost connect error [12:39:59]CommunicateWithHost err = -1 [12:39:59]OFD Sender: Server communicate error [12:40:04]OFD Sender: Processing packet 49448 [packets to send 21, broken 20] [12:40:04]ProducePacketName [12:40:04]name=ofd_packets/00049448 [12:40:04]OFD Sender: To server: pG, [12:40:04]CommunicateWithHost lk.salyk.kg:30040 [12:40:04]ConnectInit lk.salyk.kg [12:40:09]ConnectInit Can't take IP for lk.salyk.kg [12:40:09]CommunicateWithHost connect error [12:40:09]CommunicateWithHost err = -1 [12:40:09]OFD Sender: Server communicate error [12:40:14]OFD Sender: Processing packet 49448 [packets to send 21, broken 20] [12:40:14]ProducePacketName [12:40:14]name=ofd_packets/00049448 [12:40:14]OFD Sender: To server: pG, [12:40:14]CommunicateWithHost lk.salyk.kg:30040 [12:40:14]ConnectInit lk.salyk.kg [12:40:14]Connected sock=9 [12:40:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 F0 A6 07 01 0E 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 58 48 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 28 C1 00 00 35 04 06 00 AF 2A E8 5E 24 DC 8A A0 35 C1 E9 C9 BA F8 [12:40:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 CA 5C 47 00 D8 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 28 C1 00 00 F4 03 04 00 F1 F3 BE 66 B6 04 01 00 00 98 9D BB 92 78 43 62 D5 [12:40:15]CommunicateWithHost err = 0 [12:40:15]CheckOFDResponse [12:40:15]1017 (14) - 77093643461234 [12:40:15]1041 (16) - 0000000000871800 [12:40:15]1040 (4) - 49448 [12:40:15]1012 (4) - 16.08.2024 06:38 [12:40:15]1206 (1) - 0 [12:40:15]OFD Sender: Remove packet 49448 [12:40:15]ProducePacketName [12:40:15]name=ofd_packets/00049448 [12:40:15]NVStorageDeleteData [12:40:15]OFD Sender: No OFD packet to send [12:40:15]ConnectInit Can't connect to host [12:40:20]OFD Sender: No OFD packet to send [12:40:25]OFD Sender: No OFD packet to send [12:40:30]OFD Sender: No OFD packet to send [12:40:35]OFD Sender: No OFD packet to send [12:40:40]OFD Sender: No OFD packet to send [12:40:45]OFD Sender: No OFD packet to send [12:40:50]OFD Sender: No OFD packet to send [12:40:55]OFD Sender: No OFD packet to send [12:41:00]OFD Sender: No OFD packet to send [12:41:05]OFD Sender: No OFD packet to send [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:20]OFD Sender: No OFD packet to send [12:41:25]OFD Sender: No OFD packet to send [12:41:30]OFD Sender: No OFD packet to send [12:41:35]OFD Sender: No OFD packet to send [12:41:40]OFD Sender: No OFD packet to send [12:41:45]OFD Sender: No OFD packet to send [12:41:50]OFD Sender: No OFD packet to send [12:41:55]OFD Sender: No OFD packet to send [12:42:00]OFD Sender: No OFD packet to send [12:42:05]OFD Sender: No OFD packet to send [12:42:10]OFD Sender: No OFD packet to send [12:42:15]OFD Sender: No OFD packet to send [12:42:20]OFD Sender: No OFD packet to send [12:42:25]OFD Sender: No OFD packet to send [12:42:30]OFD Sender: No OFD packet to send [12:42:35]OFD Sender: No OFD packet to send [12:42:40]OFD Sender: No OFD packet to send [12:42:45]OFD Sender: No OFD packet to send [12:42:50]OFD Sender: No OFD packet to send [12:42:55]OFD Sender: No OFD packet to send [12:43:00]OFD Sender: No OFD packet to send [12:43:05]OFD Sender: No OFD packet to send [12:43:10]OFD Sender: No OFD packet to send [12:43:15]OFD Sender: No OFD packet to send [12:43:20]OFD Sender: No OFD packet to send [12:43:25]OFD Sender: No OFD packet to send [12:43:30]OFD Sender: No OFD packet to send [12:43:35]OFD Sender: No OFD packet to send [12:43:40]OFD Sender: No OFD packet to send [12:43:45]OFD Sender: No OFD packet to send [12:43:50]OFD Sender: No OFD packet to send [12:43:55]OFD Sender: No OFD packet to send [12:44:00]OFD Sender: No OFD packet to send [12:44:05]OFD Sender: No OFD packet to send [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:05]OFD Sender: No OFD packet to send [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:11]OFD Sender: No OFD packet to send [12:47:16]OFD Sender: No OFD packet to send [12:47:21]OFD Sender: No OFD packet to send [12:47:26]OFD Sender: No OFD packet to send [12:47:31]OFD Sender: No OFD packet to send [12:47:36]OFD Sender: No OFD packet to send [12:47:41]OFD Sender: No OFD packet to send [12:47:46]OFD Sender: No OFD packet to send [12:47:51]OFD Sender: No OFD packet to send [12:47:56]OFD Sender: No OFD packet to send [12:48:01]OFD Sender: No OFD packet to send [12:48:06]OFD Sender: No OFD packet to send [12:48:11]OFD Sender: No OFD packet to send [12:48:16]OFD Sender: No OFD packet to send [12:48:21]OFD Sender: No OFD packet to send [12:48:26]OFD Sender: No OFD packet to send [12:48:31]OFD Sender: No OFD packet to send [12:48:36]OFD Sender: No OFD packet to send [12:48:41]OFD Sender: No OFD packet to send [12:48:46]OFD Sender: No OFD packet to send [12:48:51]OFD Sender: No OFD packet to send [12:48:56]OFD Sender: No OFD packet to send [12:49:01]OFD Sender: No OFD packet to send [12:49:06]OFD Sender: No OFD packet to send [12:49:11]OFD Sender: No OFD packet to send [12:49:16]OFD Sender: No OFD packet to send [12:49:21]OFD Sender: No OFD packet to send [12:49:26]OFD Sender: No OFD packet to send [12:49:31]OFD Sender: No OFD packet to send [12:49:36]OFD Sender: No OFD packet to send [12:49:41]OFD Sender: No OFD packet to send [12:49:46]OFD Sender: No OFD packet to send [12:49:51]OFD Sender: No OFD packet to send [12:49:56]OFD Sender: No OFD packet to send [12:50:01]OFD Sender: No OFD packet to send [12:50:06]OFD Sender: No OFD packet to send [12:50:11]OFD Sender: No OFD packet to send [12:50:16]OFD Sender: No OFD packet to send [12:50:21]OFD Sender: No OFD packet to send [12:50:26]OFD Sender: No OFD packet to send [12:50:31]OFD Sender: No OFD packet to send [12:50:36]OFD Sender: No OFD packet to send [12:50:41]OFD Sender: No OFD packet to send [12:50:46]OFD Sender: No OFD packet to send [12:50:51]OFD Sender: No OFD packet to send [12:50:56]OFD Sender: No OFD packet to send [12:51:01]OFD Sender: No OFD packet to send [12:51:06]OFD Sender: No OFD packet to send [12:51:11]OFD Sender: No OFD packet to send [12:51:16]OFD Sender: No OFD packet to send [12:51:21]OFD Sender: No OFD packet to send [12:51:26]OFD Sender: No OFD packet to send [12:51:31]OFD Sender: No OFD packet to send [12:51:36]OFD Sender: No OFD packet to send [12:51:41]OFD Sender: No OFD packet to send [12:51:46]OFD Sender: No OFD packet to send [12:51:51]OFD Sender: No OFD packet to send [12:51:56]OFD Sender: No OFD packet to send [12:52:01]OFD Sender: No OFD packet to send [12:52:06]OFD Sender: No OFD packet to send [12:52:11]OFD Sender: No OFD packet to send [12:52:16]OFD Sender: No OFD packet to send [12:52:21]OFD Sender: No OFD packet to send [12:52:26]OFD Sender: No OFD packet to send [12:52:31]OFD Sender: No OFD packet to send [12:52:36]OFD Sender: No OFD packet to send [12:52:41]OFD Sender: No OFD packet to send [12:52:46]OFD Sender: No OFD packet to send [12:52:51]OFD Sender: No OFD packet to send [12:52:56]OFD Sender: No OFD packet to send [12:53:01]OFD Sender: No OFD packet to send [12:53:06]OFD Sender: No OFD packet to send [12:53:11]OFD Sender: No OFD packet to send [12:53:16]OFD Sender: No OFD packet to send [12:53:21]OFD Sender: No OFD packet to send [12:53:26]OFD Sender: No OFD packet to send [12:53:31]OFD Sender: No OFD packet to send [12:53:36]OFD Sender: No OFD packet to send [12:53:41]OFD Sender: No OFD packet to send [12:53:46]OFD Sender: No OFD packet to send [12:53:51]OFD Sender: No OFD packet to send [12:53:56]OFD Sender: No OFD packet to send [12:54:01]OFD Sender: No OFD packet to send [12:54:06]OFD Sender: No OFD packet to send [12:54:11]OFD Sender: No OFD packet to send [12:54:16]OFD Sender: No OFD packet to send [12:54:21]OFD Sender: No OFD packet to send [12:54:26]OFD Sender: No OFD packet to send [12:54:31]OFD Sender: No OFD packet to send [12:54:36]OFD Sender: No OFD packet to send [12:54:41]OFD Sender: No OFD packet to send [12:54:46]OFD Sender: No OFD packet to send [12:54:51]OFD Sender: No OFD packet to send [12:54:56]OFD Sender: No OFD packet to send [12:55:01]OFD Sender: No OFD packet to send [12:55:06]OFD Sender: No OFD packet to send [12:55:11]OFD Sender: No OFD packet to send [12:55:16]OFD Sender: No OFD packet to send [12:55:21]OFD Sender: No OFD packet to send [12:55:26]OFD Sender: No OFD packet to send [12:55:31]OFD Sender: No OFD packet to send [12:55:36]OFD Sender: No OFD packet to send [12:55:41]OFD Sender: No OFD packet to send [12:55:46]OFD Sender: No OFD packet to send [12:55:51]OFD Sender: No OFD packet to send [12:55:56]OFD Sender: No OFD packet to send [12:56:01]OFD Sender: No OFD packet to send [12:56:06]OFD Sender: No OFD packet to send [12:56:11]OFD Sender: No OFD packet to send [12:56:16]OFD Sender: No OFD packet to send [12:56:21]OFD Sender: No OFD packet to send [12:56:26]OFD Sender: No OFD packet to send [12:56:31]OFD Sender: No OFD packet to send [12:56:36]OFD Sender: No OFD packet to send [12:56:41]OFD Sender: No OFD packet to send [12:56:46]OFD Sender: No OFD packet to send [12:56:51]OFD Sender: No OFD packet to send [12:56:56]OFD Sender: No OFD packet to send [12:57:01]OFD Sender: No OFD packet to send [12:57:06]OFD Sender: No OFD packet to send [12:57:11]OFD Sender: No OFD packet to send [12:57:16]OFD Sender: No OFD packet to send [12:57:21]OFD Sender: No OFD packet to send [12:57:26]OFD Sender: No OFD packet to send [12:57:31]OFD Sender: No OFD packet to send [12:57:36]OFD Sender: No OFD packet to send [12:57:41]OFD Sender: No OFD packet to send [12:57:46]OFD Sender: No OFD packet to send [12:57:51]OFD Sender: No OFD packet to send [12:57:56]OFD Sender: No OFD packet to send [12:58:01]OFD Sender: No OFD packet to send [12:58:06]OFD Sender: No OFD packet to send [12:58:11]OFD Sender: No OFD packet to send [12:58:16]OFD Sender: No OFD packet to send [12:58:21]OFD Sender: No OFD packet to send [12:58:26]OFD Sender: No OFD packet to send [12:58:31]OFD Sender: No OFD packet to send [12:58:36]OFD Sender: No OFD packet to send [12:58:41]OFD Sender: No OFD packet to send [12:58:46]OFD Sender: No OFD packet to send [12:58:51]OFD Sender: No OFD packet to send [12:58:56]OFD Sender: No OFD packet to send [12:59:01]OFD Sender: No OFD packet to send [12:59:06]OFD Sender: No OFD packet to send [12:59:11]OFD Sender: No OFD packet to send [12:59:16]OFD Sender: No OFD packet to send [12:59:21]OFD Sender: No OFD packet to send [12:59:26]OFD Sender: No OFD packet to send [12:59:31]OFD Sender: No OFD packet to send [12:59:36]OFD Sender: No OFD packet to send [12:59:41]OFD Sender: No OFD packet to send [12:59:46]OFD Sender: No OFD packet to send [12:59:51]OFD Sender: No OFD packet to send [12:59:56]OFD Sender: No OFD packet to send [13:00:01]OFD Sender: No OFD packet to send [13:00:06]OFD Sender: No OFD packet to send [13:00:11]OFD Sender: No OFD packet to send [13:00:16]OFD Sender: No OFD packet to send [13:00:21]OFD Sender: No OFD packet to send [13:00:26]OFD Sender: No OFD packet to send [13:00:31]OFD Sender: No OFD packet to send [13:00:36]OFD Sender: No OFD packet to send [13:00:41]OFD Sender: No OFD packet to send [13:00:46]OFD Sender: No OFD packet to send [13:00:51]OFD Sender: No OFD packet to send [13:00:56]OFD Sender: No OFD packet to send [13:01:00]accept exits with 10 [13:01:00]New connection [13:01:00]New thread 3066973540 created [13:01:00]Thread 3066830180 joined [13:01:00]Waiting for new connection... [13:01:00] Sock 10.Parse request [13:01:00]Sock 10.Check first char [13:01:00]Sock 10.First char is OK [13:01:00]request: POST /json_proto HTTP/1.0 [13:01:00]Method: POST [13:01:00]URL: /json_proto [13:01:00]Method is POST - this is cgi request [13:01:00]url: /json_proto [13:01:00]query_string will be loaded in cgi processing [13:01:00]execute_cgi json_proto POST (null) [13:01:00]execute_cgi path=json_proto method=POST [13:01:00]POST find Content-Length [13:01:00]Host: 172.17.46.196:8080 [13:01:00]Content-Length: 957 [13:01:00]Content-Type: application/json [13:01:00] [13:01:00]POST finish read [13:01:00]Found Content-Length = 957 [13:01:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189667", "tax_sys" : 0, "items" : [ { "code": "4870227272605", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 0,5\u043B", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:00]execute_script... [13:01: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 : (3)189667", "tax_sys" : 0, "items" : [ { "code": "4870227272605", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 0,5\u043B", "price" : 55.00, "quantity" : 1.000, "sum" : 55.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:00]POST & json_proto [13:01:00]process_json_proto [13:01:00]json parsed OK: [13:01:00]protocol is kg_v1.0 [13:01:00]action value=close_receipt [13:01:00]process_action close_receipt [13:01:00]cmd_close_receipt [13:01:00]MH_GetDate [13:01:00]Write to MH i2c: F0 00 00 3E 46 73 [13:01:00]Write i2c OK [13:01:00]MH_I2C_Read... [13:01:00]Read from MH i2c: F0 [13:01:00]MH_I2C_Read... [13:01:00]Read from MH i2c: F0 09 00 [13:01:00]MH_I2C_Read... [13:01:00]Read from MH i2c: F0 09 00 3E 46 00 92 4D BF 66 07 E8 5D 66 32 [13:01:00]GetLastDocTimeStamp 1723811928 [13:01:00]current date 1723813266 [13:01:00]FM_GetShiftState [13:01:00]SAM_PROTO_GetShiftState [13:01:00]wFMCommunicate request_size=4 [13:01:00]MH_SAM_APDU [13:01:00]CAPDU: 80 13 01 00 [13:01:00]Write to MH i2c: E2 08 00 3F 46 80 13 01 00 00 00 00 00 02 [13:01:00]Write i2c OK [13:01:00]MH_I2C_Read... [13:01:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:00]Read from MH i2c: E2 [13:01:00]MH_I2C_Read... [13:01:00]Read from MH i2c: E2 0E 00 [13:01:00]MH_I2C_Read... [13:01:00]Read from MH i2c: E2 0E 00 3F 46 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 78 [13:01:00]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [13:01:00]wFMCommunicate OK [13:01:00]SAM_PROTO_GetShiftState done [13:01:00]FM_GetShiftState done [13:01:00]opened in 1723766958 [13:01:00]opened+sec_in_day 1723853358 [13:01:00]quantity*price = 5500 [13:01:00]sum+1 = 5501 [13:01:00]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 54491472 Напиток Кока-Кола 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 97 16.08.2024 13:01 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49449 ФПД: 130269500275438 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T130106&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49449&fm=130269500275438&tin=02508201610067®Number=0000000000092546&sum=13000 0 [13:01:02]StoreToDocumentArchive [13:01:02]shift 464 fd 49449 [13:01:02]save to /storage/0464/doc_00049449 [13:01:02]save last doc name /storage/0464/doc_00049449 to /storage/kkm_last_doc_name [13:01:02]save OK [13:01:02]Clear old archive folders... [13:01:02]ProcessDocumentItem done err = 0, tmpTLVsize=399 [13:01:02]tlvbuf is 00E002D0 [13:01:02]SAM_PROTO_ClearQueue [13:01:02]wFMCommunicate request_size=4 [13:01:02]MH_SAM_APDU [13:01:02]CAPDU: 80 09 00 00 [13:01:02]Write to MH i2c: E2 08 00 4C 46 80 09 00 00 00 00 00 00 04 [13:01:02]Write i2c OK [13:01:02]MH_I2C_Read... [13:01:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:02]Read from MH i2c: E2 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 4C 46 00 90 00 06 [13:01:02]RAPDU: 90 00 [13:01:02]wFMCommunicate OK [13:01:02]SAM_PROTO_ClearQueue done [13:01:02]KKMCreateOFDPacket [13:01:02]OFDProtocolAddRootSTLVToBuf [13:01:02]FM_MakeSignedData [13:01:02]FM_MakeSignedData [13:01:02]SAM_PROTO_SignData [13:01:02]wFMCommunicate request_size=4 [13:01:02]MH_SAM_APDU [13:01:02]CAPDU: 80 0D 01 02 [13:01:02]Write to MH i2c: E2 08 00 4D 46 80 0D 01 02 00 00 00 00 0C [13:01:02]Write i2c OK [13:01:02]MH_I2C_Read... [13:01:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:02]Read from MH i2c: E2 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 4D 46 00 90 00 07 [13:01:02]RAPDU: 90 00 [13:01:02]wFMCommunicate OK [13:01:02]wFMCommunicate request_size=255 [13:01:02]MH_SAM_APDU [13:01:02]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 30 35 06 04 34 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9A D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 [13:01:02]Write to MH i2c: E2 02 01 4E 46 80 0D 02 02 FA 00 03 00 8F 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 30 35 06 04 34 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9A D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 00 00 AC [13:01:02]Write i2c OK [13:01:02]MH_I2C_Read... [13:01:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:02]Read from MH i2c: E2 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 4E 46 00 90 00 08 [13:01:02]RAPDU: 90 00 [13:01:02]wFMCommunicate OK [13:01:02]wFMCommunicate request_size=158 [13:01:02]MH_SAM_APDU [13:01:02]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 92 4D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 29 C1 00 00 35 04 06 00 76 7A BB 49 FA EE [13:01:02]Write to MH i2c: E2 A1 00 4F 46 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 92 4D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 29 C1 00 00 35 04 06 00 76 7A BB 49 FA EE 00 00 5B [13:01:02]Write i2c OK [13:01:02]MH_I2C_Read... [13:01:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:02]Read from MH i2c: E2 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 03 00 4F 46 00 90 00 09 [13:01:02]RAPDU: 90 00 [13:01:02]wFMCommunicate OK [13:01:02]wFMCommunicate request_size=4 [13:01:02]MH_SAM_APDU [13:01:02]CAPDU: 80 0D 03 02 [13:01:02]Write to MH i2c: E2 08 00 50 46 80 0D 03 02 00 00 00 00 11 [13:01:02]Write i2c OK [13:01:02]MH_I2C_Read... [13:01:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:02]Read from MH i2c: E2 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 0B 00 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 0B 00 50 46 00 5C 40 6F AC 6D 7C 22 B4 90 00 88 [13:01:02]RAPDU: 5C 40 6F AC 6D 7C 22 B4 90 00 [13:01:02]wFMCommunicate OK [13:01:02]SAM_PROTO_SignData done [13:01:02]FM_MakeSignedData done [13:01:02]CreateOFDProtocolMessage [13:01:02]wFMCommunicate request_size=4 [13:01:02]MH_SAM_APDU [13:01:02]CAPDU: 80 11 00 00 [13:01:02]Write to MH i2c: E2 08 00 51 46 80 11 00 00 00 00 00 00 11 [13:01:02]Write i2c OK [13:01:02]MH_I2C_Read... [13:01:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:02]Read from MH i2c: E2 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 17 00 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: E2 17 00 51 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5C [13:01:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:01:02]wFMCommunicate OK [13:01:02]CreateOFDProtocolMessage done [13:01:02]OFDSenderStorePacket 49449 [13:01:02]StoreOFDPacket docnum=49449 [13:01:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A3 01 00 00 20 7F 9B 01 63 96 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 30 35 06 04 34 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9A D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 92 4D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 29 C1 00 00 35 04 06 00 76 7A BB 49 FA EE 5C 40 6F AC 6D 7C 22 B4 [13:01:02]CheckFolder [13:01:02]dirname=/storage/ofd_packets [13:01:02]CheckFolder done [13:01:02]ProducePacketName [13:01:02]name=ofd_packets/00049449 [13:01:02]NVStorageSaveData ofd_packets/00049449 [13:01:02]File name is /storage/ofd_packets/00049449 [13:01:02]Write 449 bytes [13:01:02]NVStorageSaveData done [13:01:02]OFDSenderStorePacket done [13:01:02]KKMCreateOFDPacket done [13:01:02]NVStorageSaveData kkm_last_timestamp [13:01:02]File name is /storage/kkm_last_timestamp [13:01:02]Write 4 bytes [13:01:02]NVStorageSaveData done [13:01:02]ExternCall_PrintAddStr [13:01:02]wPrintStart [13:01:02]Write to MH i2c: 01 00 00 52 46 98 [13:01:02]Write i2c OK [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: 01 [13:01:02]MH_I2C_Read... [13:01:02]Read from MH i2c: 01 07 00 [13:01:03]MH_I2C_Read... [13:01:03]OFD Sender: Processing packet 49449 [packets to send 21, broken 20] [13:01:03]ProducePacketName [13:01:03]name=ofd_packets/00049449 [13:01:03]Read from MH i2c: 01 07 00 52 46 00 00 00 00 00 FF 0F AD [13:01:03]RasterBufferAndPrint [13:01:03]OFD Sender: To server: pG, [13:01:03]CommunicateWithHost lk.salyk.kg:30040 [13:01:03]ConnectInit lk.salyk.kg [13:01:03]line Счет N : (3)189667 [13:01:03]line ИНН: 02508201610067 [13:01:03]line Контрольно-Кассовый Чек [13:01:03]line ПРОДАЖА [13:01:03]line Товар: 4870227272605 [13:01:03]line Лимонад Sunbel Классический 0,5л [13:01:03]line 1.000 * 55.00 [13:01:03]line = 55.00 [13:01:03]line НДС 12% НСП 1% [13:01:03]line > о реализуемом товаре [13:01:03]line Товар: 54491472 [13:01:03]line Напиток Кока-Кола 0,5л [13:01:03]line 1.000 * 75.00 [13:01:03]line = 75.00 [13:01:03]line НДС 12% НСП 1% [13:01:03]line > о реализуемом товаре [13:01:03]line ИТОГО: 130.00 [13:01:03]line НСП 1% : 1.15 [13:01:03]line НДС 12% : 13.80 [13:01:03]line Наличными: 130.00 [13:01:03]line Безнал.: 0.00 [13:01:03]line Место: АЗС № 95 "Партнер Нефть" [13:01:03]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [13:01:03]line СНО: Общий режим [13:01:03]line Чек 97 16.08.2024 13:01 [13:01:03]line Смена: 464 ФФД: 1.0 [13:01:03]line ЗНМ: 0300000078 [13:01:03]line РНМ: 0000000000092546 [13:01:03]line Версия ККМ: 001 [13:01:03]line ФМ: 0000000000871800 [13:01:03]line ФД: 49449 [13:01:03]line ФПД: 130269500275438 [13:01:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T130106&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49449&fm=130269500275438&tin=02508201610067®Number=0000000000092546&sum=13000 [13:01:03]line 0 [13:01:03]written 0, free lines is 4095 [13:01:03]Connected sock=9 [13:01:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A3 01 00 00 20 7F 9B 01 63 96 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 36 30 35 06 04 34 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9A D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 92 4D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 29 C1 00 00 35 04 06 00 76 7A BB 49 FA EE 5C 40 6F AC 6D 7C 22 B4 [13:01:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 3D 29 47 00 36 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 29 C1 00 00 F4 03 04 00 D1 F8 BE 66 B6 04 01 00 00 C8 69 DF 5E 4D 8A 9B A1 [13:01:03]CommunicateWithHost err = 0 [13:01:03]CheckOFDResponse [13:01:03]1017 (14) - 77093643461234 [13:01:03]1041 (16) - 0000000000871800 [13:01:03]1040 (4) - 49449 [13:01:03]1012 (4) - 16.08.2024 06:59 [13:01:03]1206 (1) - 0 [13:01:03]OFD Sender: Remove packet 49449 [13:01:03]ProducePacketName [13:01:03]name=ofd_packets/00049449 [13:01:03]NVStorageDeleteData [13:01:03]Write to MH i2c: 01 00 00 81 46 C7 [13:01:03]Write i2c OK [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: 01 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: 01 07 00 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: 01 07 00 81 46 00 00 00 00 00 6F 0C 49 [13:01:03]RasterBufferAndPrint [13:01:03]line [13:01:03]line [13:01:03]line [13:01:03]line [13:01:03]line [13:01:03]written 0, free lines is 3189 [13:01:03]MH_Cut [13:01:03]Write to MH i2c: D1 01 00 88 46 01 A0 [13:01:03]Write i2c OK [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: D1 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: D1 01 00 [13:01:03]MH_I2C_Read... [13:01:03]Read from MH i2c: D1 01 00 88 46 00 9F [13:01:03]Write to MH i2c: 01 00 00 89 46 CF [13:01:03]Write i2c OK [13:01:03]MH_I2C_Read... [13:01:03]OFD Sender: No OFD packet to send [13:01:04]*** Cut start [13:01:04]*** Purtial cut [13:01:04]*** Stage 1: CUTSNS_PIN = 1 [13:01:04]Read from MH i2c: 01 [13:01:04]MH_I2C_Read... [13:01:04]*** Stop cut motor [13:01:04]*** Cut end [13:01:04]Read from MH i2c: 01 07 00 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: 01 07 00 89 46 00 00 00 00 00 FF 0F E4 [13:01:04]process_action close_receipt done [13:01:04]requested_data is exist [13:01:04]produce_requested_data [13:01:04]requested_item fm.sn is exist - process it [13:01:04]wFMCommunicate request_size=4 [13:01:04]MH_SAM_APDU [13:01:04]CAPDU: 80 11 00 00 [13:01:04]Write to MH i2c: E2 08 00 8A 46 80 11 00 00 00 00 00 00 4A [13:01:04]Write i2c OK [13:01:04]MH_I2C_Read... [13:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:04]Read from MH i2c: E2 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: E2 17 00 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: E2 17 00 8A 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 95 [13:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:01:04]wFMCommunicate OK [13:01:04]requested_item fd.num is exist - process it [13:01:04]SAM_PROTO_GetFieldsCounters [13:01:04]wFMCommunicate request_size=4 [13:01:04]MH_SAM_APDU [13:01:04]CAPDU: 80 13 00 00 [13:01:04]Write to MH i2c: E2 08 00 8B 46 80 13 00 00 00 00 00 00 4D [13:01:04]Write i2c OK [13:01:04]MH_I2C_Read... [13:01:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:04]Read from MH i2c: E2 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: E2 62 00 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: E2 62 00 8B 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 29 C1 00 00 0E 04 04 00 D0 01 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 45 [13:01:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 29 C1 00 00 0E 04 04 00 D0 01 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 [13:01:04]wFMCommunicate OK [13:01:04]SAM_PROTO_GetFieldsCounters done [13:01:04]requested_item shift.num is exist - process it [13:01:04]requested_item shift.opened is exist - process it [13:01:04]req_shift_opened [13:01:04]FM_GetShiftState [13:01:04]SAM_PROTO_GetShiftState [13:01:04]wFMCommunicate request_size=4 [13:01:04]MH_SAM_APDU [13:01:04]CAPDU: 80 13 01 00 [13:01:04]Write to MH i2c: E2 08 00 8C 46 80 13 01 00 00 00 00 00 4F [13:01:04]Write i2c OK [13:01:04]MH_I2C_Read... [13:01:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:04]Read from MH i2c: E2 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: E2 0E 00 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: E2 0E 00 8C 46 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 C5 [13:01:04]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [13:01:04]wFMCommunicate OK [13:01:04]SAM_PROTO_GetShiftState done [13:01:04]FM_GetShiftState done [13:01:04]req_shift_opened done [13:01:04]requested_item shift.open_date is exist - process it [13:01:04]req_shift_open_date [13:01:04]req_shift_open_date done [13:01:04]produce_requested_data done [13:01:04]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49449,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [13:01:04]process_action_free close_receipt [13:01:04]json_value_free [13:01:04]json_value_free done [13:01:04]process_json_proto returns [13:01:04]Send response to host [13:01:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49449,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [13:01:04]free response buf [13:01:04]execute_script done [13:01:04]execute_script returns [13:01:04]free content buf [13:01:04]Sock 10.Close socket [13:01:04]Sock 10.Thread stoped [13:01:08]OFD Sender: No OFD packet to send [13:01:11]accept exits with 7 [13:01:11]New connection [13:01:11]New thread 3066830180 created [13:01:11]Thread 3066973540 joined [13:01:11]Waiting for new connection... [13:01:11] Sock 7.Parse request [13:01:11]Sock 7.Check first char [13:01:11]Sock 7.First char is OK [13:01:11]request: POST /json_proto HTTP/1.0 [13:01:11]Method: POST [13:01:11]URL: /json_proto [13:01:11]Method is POST - this is cgi request [13:01:11]url: /json_proto [13:01:11]query_string will be loaded in cgi processing [13:01:11]execute_cgi json_proto POST (null) [13:01:11]execute_cgi path=json_proto method=POST [13:01:11]POST find Content-Length [13:01:11]Host: 172.17.46.196:8080 [13:01:11]Content-Length: 632 [13:01:11]Content-Type: application/json [13:01:11] [13:01:11]POST finish read [13:01:11]Found Content-Length = 632 [13:01:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189668", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 3.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:11]execute_script... [13:01:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189668", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 3.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:11]POST & json_proto [13:01:11]process_json_proto [13:01:11]json parsed OK: [13:01:11]protocol is kg_v1.0 [13:01:11]action value=close_receipt [13:01:11]process_action close_receipt [13:01:11]cmd_close_receipt [13:01:11]MH_GetDate [13:01:11]Write to MH i2c: F0 00 00 8D 46 C2 [13:01:11]Write i2c OK [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: F0 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: F0 09 00 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: F0 09 00 8D 46 00 9D 4D BF 66 07 E8 5D 66 8C [13:01:11]GetLastDocTimeStamp 1723813266 [13:01:11]current date 1723813277 [13:01:11]FM_GetShiftState [13:01:11]SAM_PROTO_GetShiftState [13:01:11]wFMCommunicate request_size=4 [13:01:11]MH_SAM_APDU [13:01:11]CAPDU: 80 13 01 00 [13:01:11]Write to MH i2c: E2 08 00 8E 46 80 13 01 00 00 00 00 00 51 [13:01:11]Write i2c OK [13:01:11]MH_I2C_Read... [13:01:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:11]Read from MH i2c: E2 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 0E 00 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 0E 00 8E 46 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 C7 [13:01:11]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [13:01:11]wFMCommunicate OK [13:01:11]SAM_PROTO_GetShiftState done [13:01:11]FM_GetShiftState done [13:01:11]opened in 1723766958 [13:01:11]opened+sec_in_day 1723853358 [13:01:11]quantity*price = 15000 [13:01:11]sum+1 = 15001 [13:01:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 98 16.08.2024 13:01 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49450 ФПД: 246614995639115 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T130117&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49450&fm=246614995639115&tin=02508201610067®Number=0000000000092546&sum=15000 0 [13:01:12]StoreToDocumentArchive [13:01:12]shift 464 fd 49450 [13:01:12]save to /storage/0464/doc_00049450 [13:01:12]save last doc name /storage/0464/doc_00049450 to /storage/kkm_last_doc_name [13:01:12]save OK [13:01:12]Clear old archive folders... [13:01:12]ProcessDocumentItem done err = 0, tmpTLVsize=269 [13:01:12]tlvbuf is 00DFAFF0 [13:01:12]SAM_PROTO_ClearQueue [13:01:12]wFMCommunicate request_size=4 [13:01:12]MH_SAM_APDU [13:01:12]CAPDU: 80 09 00 00 [13:01:12]Write to MH i2c: E2 08 00 9B 46 80 09 00 00 00 00 00 00 53 [13:01:12]Write i2c OK [13:01:12]MH_I2C_Read... [13:01:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:13]Read from MH i2c: E2 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 03 00 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 03 00 9B 46 00 90 00 55 [13:01:13]RAPDU: 90 00 [13:01:13]wFMCommunicate OK [13:01:13]SAM_PROTO_ClearQueue done [13:01:13]KKMCreateOFDPacket [13:01:13]OFDProtocolAddRootSTLVToBuf [13:01:13]FM_MakeSignedData [13:01:13]FM_MakeSignedData [13:01:13]SAM_PROTO_SignData [13:01:13]wFMCommunicate request_size=4 [13:01:13]MH_SAM_APDU [13:01:13]CAPDU: 80 0D 01 02 [13:01:13]Write to MH i2c: E2 08 00 9C 46 80 0D 01 02 00 00 00 00 5B [13:01:13]Write i2c OK [13:01:13]MH_I2C_Read... [13:01:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:13]Read from MH i2c: E2 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 03 00 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 03 00 9C 46 00 90 00 56 [13:01:13]RAPDU: 90 00 [13:01:13]wFMCommunicate OK [13:01:13]wFMCommunicate request_size=255 [13:01:13]MH_SAM_APDU [13:01:13]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 98 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 39 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 62 00 00 00 F4 03 04 00 9D 4D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [13:01:13]Write to MH i2c: E2 02 01 9D 46 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 98 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 39 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 62 00 00 00 F4 03 04 00 9D 4D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 B5 [13:01:13]Write i2c OK [13:01:13]MH_I2C_Read... [13:01:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:13]Read from MH i2c: E2 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 03 00 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 03 00 9D 46 00 90 00 57 [13:01:13]RAPDU: 90 00 [13:01:13]wFMCommunicate OK [13:01:13]wFMCommunicate request_size=28 [13:01:13]MH_SAM_APDU [13:01:13]CAPDU: 80 0D 02 02 17 37 31 38 30 30 10 04 04 00 2A C1 00 00 35 04 06 00 E0 4B 87 36 1B 4B [13:01:13]Write to MH i2c: E2 1F 00 9E 46 80 0D 02 02 17 00 37 31 38 30 30 10 04 04 00 2A C1 00 00 35 04 06 00 E0 4B 87 36 1B 4B 00 00 1C [13:01:13]Write i2c OK [13:01:13]MH_I2C_Read... [13:01:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:13]Read from MH i2c: E2 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 03 00 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 03 00 9E 46 00 90 00 58 [13:01:13]RAPDU: 90 00 [13:01:13]wFMCommunicate OK [13:01:13]wFMCommunicate request_size=4 [13:01:13]MH_SAM_APDU [13:01:13]CAPDU: 80 0D 03 02 [13:01:13]Write to MH i2c: E2 08 00 9F 46 80 0D 03 02 00 00 00 00 60 [13:01:13]Write i2c OK [13:01:13]MH_I2C_Read... [13:01:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:13]Read from MH i2c: E2 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 0B 00 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 0B 00 9F 46 00 AC 74 D4 2C 6C E8 70 8E 90 00 D3 [13:01:13]RAPDU: AC 74 D4 2C 6C E8 70 8E 90 00 [13:01:13]wFMCommunicate OK [13:01:13]SAM_PROTO_SignData done [13:01:13]FM_MakeSignedData done [13:01:13]CreateOFDProtocolMessage [13:01:13]wFMCommunicate request_size=4 [13:01:13]MH_SAM_APDU [13:01:13]CAPDU: 80 11 00 00 [13:01:13]Write to MH i2c: E2 08 00 A0 46 80 11 00 00 00 00 00 00 60 [13:01:13]Write i2c OK [13:01:13]MH_I2C_Read... [13:01:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:13]Read from MH i2c: E2 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 17 00 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 17 00 A0 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AB [13:01:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:01:13]wFMCommunicate OK [13:01:13]CreateOFDProtocolMessage done [13:01:13]OFDSenderStorePacket 49450 [13:01:13]StoreOFDPacket docnum=49450 [13:01:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 18 C9 19 01 66 C8 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 98 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 39 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 62 00 00 00 F4 03 04 00 9D 4D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2A C1 00 00 35 04 06 00 E0 4B 87 36 1B 4B AC 74 D4 2C 6C E8 70 8E [13:01:13]CheckFolder [13:01:13]dirname=/storage/ofd_packets [13:01:13]CheckFolder done [13:01:13]ProducePacketName [13:01:13]name=ofd_packets/00049450 [13:01:13]NVStorageSaveData ofd_packets/00049450 [13:01:13]File name is /storage/ofd_packets/00049450 [13:01:13]Write 319 bytes [13:01:13]NVStorageSaveData done [13:01:13]OFDSenderStorePacket done [13:01:13]KKMCreateOFDPacket done [13:01:13]NVStorageSaveData kkm_last_timestamp [13:01:13]File name is /storage/kkm_last_timestamp [13:01:13]Write 4 bytes [13:01:13]NVStorageSaveData done [13:01:13]ExternCall_PrintAddStr [13:01:13]wPrintStart [13:01:13]Write to MH i2c: 01 00 00 A1 46 E7 [13:01:13]Write i2c OK [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: 01 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: 01 07 00 [13:01:13]MH_I2C_Read... [13:01:13]OFD Sender: Processing packet 49450 [packets to send 21, broken 20] [13:01:13]ProducePacketName [13:01:13]name=ofd_packets/00049450 [13:01:13]OFD Sender: To server: pG, [13:01:13]CommunicateWithHost lk.salyk.kg:30040 [13:01:13]ConnectInit lk.salyk.kg [13:01:13]Read from MH i2c: 01 07 00 A1 46 00 00 00 00 00 FF 0F FC [13:01:13]RasterBufferAndPrint [13:01:13]line Счет N : (3)189668 [13:01:13]line ИНН: 02508201610067 [13:01:13]line Контрольно-Кассовый Чек [13:01:13]line ПРОДАЖА [13:01:13]line Товар: 4700000160358 [13:01:13]line Вода Легенда 1л [13:01:13]line 3.000 * 50.00 [13:01:13]line = 150.00 [13:01:13]line НДС 12% НСП 1% [13:01:13]line > о реализуемом товаре [13:01:13]line ИТОГО: 150.00 [13:01:13]line НСП 1% : 1.33 [13:01:13]line НДС 12% : 15.93 [13:01:13]line Наличными: 150.00 [13:01:13]line Безнал.: 0.00 [13:01:13]line Место: АЗС № 95 "Партнер Нефть" [13:01:13]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [13:01:13]line СНО: Общий режим [13:01:13]line Чек 98 16.08.2024 13:01 [13:01:13]line Смена: 464 ФФД: 1.0 [13:01:13]line ЗНМ: 0300000078 [13:01:13]line РНМ: 0000000000092546 [13:01:13]line Версия ККМ: 001 [13:01:13]line ФМ: 0000000000871800 [13:01:13]line ФД: 49450 [13:01:13]line ФПД: 246614995639115 [13:01:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T130117&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49450&fm=246614995639115&tin=02508201610067®Number=0000000000092546&sum=15000 [13:01:13]line 0 [13:01:13]written 0, free lines is 4095 [13:01:13]Connected sock=10 [13:01:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 18 C9 19 01 66 C8 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 98 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 39 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 62 00 00 00 F4 03 04 00 9D 4D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2A C1 00 00 35 04 06 00 E0 4B 87 36 1B 4B AC 74 D4 2C 6C E8 70 8E [13:01:13]Write to MH i2c: 01 00 00 C9 46 0F [13:01:13]Write i2c OK [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: 01 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: 01 07 00 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: 01 07 00 C9 46 00 00 00 00 00 EF 0C 11 [13:01:13]RasterBufferAndPrint [13:01:13]line [13:01:13]line [13:01:13]line [13:01:13]line [13:01:13]line [13:01:13]written 0, free lines is 3319 [13:01:13]MH_Cut [13:01:13]Write to MH i2c: D1 01 00 D0 46 01 E8 [13:01:13]Write i2c OK [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: D1 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: D1 01 00 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: D1 01 00 D0 46 00 E7 [13:01:13]Write to MH i2c: 01 00 00 D1 46 17 [13:01:13]Write i2c OK [13:01:13]MH_I2C_Read... [13:01:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 1C 4C 47 00 5D EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2A C1 00 00 F4 03 04 00 DB F8 BE 66 B6 04 01 00 00 79 0E 2B 78 57 80 19 03 [13:01:14]CommunicateWithHost err = 0 [13:01:14]CheckOFDResponse [13:01:14]1017 (14) - 77093643461234 [13:01:14]1041 (16) - 0000000000871800 [13:01:14]1040 (4) - 49450 [13:01:14]1012 (4) - 16.08.2024 06:59 [13:01:14]1206 (1) - 0 [13:01:14]OFD Sender: Remove packet 49450 [13:01:14]ProducePacketName [13:01:14]name=ofd_packets/00049450 [13:01:14]NVStorageDeleteData [13:01:14]OFD Sender: No OFD packet to send [13:01:14]*** Cut start [13:01:14]*** Purtial cut [13:01:14]*** CUTSNS_PIN = 0 [13:01:14]*** Stage 1: CUTSNS_PIN = 1 [13:01:16]Read from MH i2c: 01 [13:01:16]MH_I2C_Read... [13:01:16]*** Stop cut motor [13:01:16]*** Cut end [13:01:16]Read from MH i2c: 01 07 00 [13:01:16]MH_I2C_Read... [13:01:16]Read from MH i2c: 01 07 00 D1 46 00 00 00 00 00 FF 0F 2C [13:01:16]process_action close_receipt done [13:01:16]requested_data is exist [13:01:16]produce_requested_data [13:01:16]requested_item fm.sn is exist - process it [13:01:16]wFMCommunicate request_size=4 [13:01:16]MH_SAM_APDU [13:01:16]CAPDU: 80 11 00 00 [13:01:16]Write to MH i2c: E2 08 00 D2 46 80 11 00 00 00 00 00 00 92 [13:01:16]Write i2c OK [13:01:16]MH_I2C_Read... [13:01:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:16]Read from MH i2c: E2 [13:01:16]MH_I2C_Read... [13:01:16]Read from MH i2c: E2 17 00 [13:01:16]MH_I2C_Read... [13:01:16]Read from MH i2c: E2 17 00 D2 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 DD [13:01:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:01:16]wFMCommunicate OK [13:01:16]requested_item fd.num is exist - process it [13:01:16]SAM_PROTO_GetFieldsCounters [13:01:16]wFMCommunicate request_size=4 [13:01:16]MH_SAM_APDU [13:01:16]CAPDU: 80 13 00 00 [13:01:16]Write to MH i2c: E2 08 00 D3 46 80 13 00 00 00 00 00 00 95 [13:01:16]Write i2c OK [13:01:16]MH_I2C_Read... [13:01:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:16]Read from MH i2c: E2 [13:01:16]MH_I2C_Read... [13:01:16]Read from MH i2c: E2 62 00 [13:01:16]MH_I2C_Read... [13:01:16]Read from MH i2c: E2 62 00 D3 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2A C1 00 00 0E 04 04 00 D0 01 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 91 [13:01:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2A C1 00 00 0E 04 04 00 D0 01 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 [13:01:16]wFMCommunicate OK [13:01:16]SAM_PROTO_GetFieldsCounters done [13:01:16]requested_item shift.num is exist - process it [13:01:16]requested_item shift.opened is exist - process it [13:01:16]req_shift_opened [13:01:16]FM_GetShiftState [13:01:16]SAM_PROTO_GetShiftState [13:01:16]wFMCommunicate request_size=4 [13:01:16]MH_SAM_APDU [13:01:16]CAPDU: 80 13 01 00 [13:01:16]Write to MH i2c: E2 08 00 D4 46 80 13 01 00 00 00 00 00 97 [13:01:16]Write i2c OK [13:01:16]MH_I2C_Read... [13:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:17]Read from MH i2c: E2 [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: E2 0E 00 [13:01:17]MH_I2C_Read... [13:01:17]Read from MH i2c: E2 0E 00 D4 46 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 0D [13:01:17]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [13:01:17]wFMCommunicate OK [13:01:17]SAM_PROTO_GetShiftState done [13:01:17]FM_GetShiftState done [13:01:17]req_shift_opened done [13:01:17]requested_item shift.open_date is exist - process it [13:01:17]req_shift_open_date [13:01:17]req_shift_open_date done [13:01:17]produce_requested_data done [13:01:17]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49450,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [13:01:17]process_action_free close_receipt [13:01:17]json_value_free [13:01:17]json_value_free done [13:01:17]process_json_proto returns [13:01:17]Send response to host [13:01:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49450,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [13:01:17]free response buf [13:01:17]execute_script done [13:01:17]execute_script returns [13:01:17]free content buf [13:01:17]Sock 7.Close socket [13:01:17]Sock 7.Thread stoped [13:01:19]OFD Sender: No OFD packet to send [13:01:24]OFD Sender: No OFD packet to send [13:01:29]OFD Sender: No OFD packet to send [13:01:34]OFD Sender: No OFD packet to send [13:01:39]OFD Sender: No OFD packet to send [13:01:44]OFD Sender: No OFD packet to send [13:01:49]OFD Sender: No OFD packet to send [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:09]OFD Sender: No OFD packet to send [13:02:14]OFD Sender: No OFD packet to send [13:02:19]OFD Sender: No OFD packet to send [13:02:24]OFD Sender: No OFD packet to send [13:02:29]OFD Sender: No OFD packet to send [13:02:34]OFD Sender: No OFD packet to send [13:02:39]OFD Sender: No OFD packet to send [13:02:44]OFD Sender: No OFD packet to send [13:02:49]OFD Sender: No OFD packet to send [13:02:54]OFD Sender: No OFD packet to send [13:02:59]OFD Sender: No OFD packet to send [13:03:04]OFD Sender: No OFD packet to send [13:03:09]OFD Sender: No OFD packet to send [13:03:14]OFD Sender: No OFD packet to send [13:03:19]OFD Sender: No OFD packet to send [13:03:24]OFD Sender: No OFD packet to send [13:03:29]OFD Sender: No OFD packet to send [13:03:34]OFD Sender: No OFD packet to send [13:03:39]OFD Sender: No OFD packet to send [13:03:44]OFD Sender: No OFD packet to send [13:03:49]OFD Sender: No OFD packet to send [13:03:54]OFD Sender: No OFD packet to send [13:03:59]OFD Sender: No OFD packet to send [13:04:04]OFD Sender: No OFD packet to send [13:04:09]OFD Sender: No OFD packet to send [13:04:14]OFD Sender: No OFD packet to send [13:04:19]OFD Sender: No OFD packet to send [13:04:24]OFD Sender: No OFD packet to send [13:04:29]OFD Sender: No OFD packet to send [13:04:34]OFD Sender: No OFD packet to send [13:04:39]OFD Sender: No OFD packet to send [13:04:44]OFD Sender: No OFD packet to send [13:04:49]OFD Sender: No OFD packet to send [13:04:54]OFD Sender: No OFD packet to send [13:04:59]OFD Sender: No OFD packet to send [13:05:04]OFD Sender: No OFD packet to send [13:05:09]OFD Sender: No OFD packet to send [13:05:14]OFD Sender: No OFD packet to send [13:05:19]OFD Sender: No OFD packet to send [13:05:24]OFD Sender: No OFD packet to send [13:05:29]OFD Sender: No OFD packet to send [13:05:34]OFD Sender: No OFD packet to send [13:05:39]OFD Sender: No OFD packet to send [13:05:44]OFD Sender: No OFD packet to send [13:05:49]OFD Sender: No OFD packet to send [13:05:54]OFD Sender: No OFD packet to send [13:05:59]OFD Sender: No OFD packet to send [13:06:04]OFD Sender: No OFD packet to send [13:06:09]OFD Sender: No OFD packet to send [13:06:14]OFD Sender: No OFD packet to send [13:06:19]OFD Sender: No OFD packet to send [13:06:24]OFD Sender: No OFD packet to send [13:06:29]OFD Sender: No OFD packet to send [13:06:34]OFD Sender: No OFD packet to send [13:06:39]OFD Sender: No OFD packet to send [13:06:44]OFD Sender: No OFD packet to send [13:06:49]OFD Sender: No OFD packet to send [13:06:54]OFD Sender: No OFD packet to send [13:06:59]OFD Sender: No OFD packet to send [13:07:04]OFD Sender: No OFD packet to send [13:07:05]accept exits with 9 [13:07:05]New connection [13:07:05]New thread 3066973540 created [13:07:05]Thread 3066830180 joined [13:07:05]Waiting for new connection... [13:07:05] Sock 9.Parse request [13:07:05]Sock 9.Check first char [13:07:05]Sock 9.First char is OK [13:07:05]request: POST /json_proto HTTP/1.0 [13:07:05]Method: POST [13:07:05]URL: /json_proto [13:07:05]Method is POST - this is cgi request [13:07:05]url: /json_proto [13:07:05]query_string will be loaded in cgi processing [13:07:05]execute_cgi json_proto POST (null) [13:07:05]execute_cgi path=json_proto method=POST [13:07:05]POST find Content-Length [13:07:05]Host: 172.17.46.196:8080 [13:07:05]Content-Length: 756 [13:07:05]Content-Type: application/json [13:07:05] [13:07:05]POST finish read [13:07:05]Found Content-Length = 756 [13:07:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30096889", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:05]execute_script... [13:07: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)11325390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30096889", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:07:05]POST & json_proto [13:07:05]process_json_proto [13:07:05]json parsed OK: [13:07:05]protocol is kg_v1.0 [13:07:05]action value=close_receipt [13:07:05]process_action close_receipt [13:07:05]cmd_close_receipt [13:07:05]MH_GetDate [13:07:05]Write to MH i2c: F0 00 00 D5 46 0A [13:07:05]Write i2c OK [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: F0 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: F0 09 00 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: F0 09 00 D5 46 00 FF 4E BF 66 07 E8 5D 66 37 [13:07:05]GetLastDocTimeStamp 1723813277 [13:07:05]current date 1723813631 [13:07:05]FM_GetShiftState [13:07:05]SAM_PROTO_GetShiftState [13:07:05]wFMCommunicate request_size=4 [13:07:05]MH_SAM_APDU [13:07:05]CAPDU: 80 13 01 00 [13:07:05]Write to MH i2c: E2 08 00 D6 46 80 13 01 00 00 00 00 00 99 [13:07:05]Write i2c OK [13:07:05]MH_I2C_Read... [13:07:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:05]Read from MH i2c: E2 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 0E 00 [13:07:05]MH_I2C_Read... [13:07:05]Read from MH i2c: E2 0E 00 D6 46 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 0F [13:07:05]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [13:07:05]wFMCommunicate OK [13:07:05]SAM_PROTO_GetShiftState done [13:07:05]FM_GetShiftState done [13:07:05]opened in 1723766958 [13:07:05]opened+sec_in_day 1723853358 [13:07:05]quantity*price = 0 [13:07:05]sum+1 = 1 [13:07:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 99 16.08.2024 13:07 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30096889 ФМ: 0000000000871800 ФД: 49451 ФПД: 223571934721675 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T130711&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49451&fm=223571934721675&tin=02508201610067®Number=0000000000092546&sum=0 [13:07:06]StoreToDocumentArchive [13:07:06]shift 464 fd 49451 [13:07:06]save to /storage/0464/doc_00049451 [13:07:06]save last doc name /storage/0464/doc_00049451 to /storage/kkm_last_doc_name [13:07:06]save OK [13:07:06]Clear old archive folders... [13:07:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:07:06]tlvbuf is 00EBFC60 [13:07:06]SAM_PROTO_ClearQueue [13:07:06]wFMCommunicate request_size=4 [13:07:06]MH_SAM_APDU [13:07:06]CAPDU: 80 09 00 00 [13:07:06]Write to MH i2c: E2 08 00 E3 46 80 09 00 00 00 00 00 00 9B [13:07:06]Write i2c OK [13:07:06]MH_I2C_Read... [13:07:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:07:07]Read from MH i2c: E2 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: E2 03 00 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: E2 03 00 E3 46 00 90 00 9D [13:07:07]RAPDU: 90 00 [13:07:07]wFMCommunicate OK [13:07:07]SAM_PROTO_ClearQueue done [13:07:07]KKMCreateOFDPacket [13:07:07]OFDProtocolAddRootSTLVToBuf [13:07:07]FM_MakeSignedData [13:07:07]FM_MakeSignedData [13:07:07]SAM_PROTO_SignData [13:07:07]wFMCommunicate request_size=4 [13:07:07]MH_SAM_APDU [13:07:07]CAPDU: 80 0D 01 02 [13:07:07]Write to MH i2c: E2 08 00 E4 46 80 0D 01 02 00 00 00 00 A3 [13:07:07]Write i2c OK [13:07:07]MH_I2C_Read... [13:07:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:07:07]Read from MH i2c: E2 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: E2 03 00 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: E2 03 00 E4 46 00 90 00 9E [13:07:07]RAPDU: 90 00 [13:07:07]wFMCommunicate OK [13:07:07]wFMCommunicate request_size=255 [13:07:07]MH_SAM_APDU [13:07: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 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FF 4E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2B C1 00 00 35 04 06 00 CB [13:07:07]Write to MH i2c: E2 02 01 E5 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FF 4E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2B C1 00 00 35 04 06 00 CB 00 00 75 [13:07:07]Write i2c OK [13:07:07]MH_I2C_Read... [13:07:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:07]Read from MH i2c: E2 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: E2 03 00 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: E2 03 00 E5 46 00 90 00 9F [13:07:07]RAPDU: 90 00 [13:07:07]wFMCommunicate OK [13:07:07]wFMCommunicate request_size=10 [13:07:07]MH_SAM_APDU [13:07:07]CAPDU: 80 0D 02 02 05 56 65 C0 36 8B [13:07:07]Write to MH i2c: E2 0D 00 E6 46 80 0D 02 02 05 00 56 65 C0 36 8B 00 00 EC [13:07:07]Write i2c OK [13:07:07]MH_I2C_Read... [13:07:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:07:07]Read from MH i2c: E2 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: E2 03 00 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: E2 03 00 E6 46 00 90 00 A0 [13:07:07]RAPDU: 90 00 [13:07:07]wFMCommunicate OK [13:07:07]wFMCommunicate request_size=4 [13:07:07]MH_SAM_APDU [13:07:07]CAPDU: 80 0D 03 02 [13:07:07]Write to MH i2c: E2 08 00 E7 46 80 0D 03 02 00 00 00 00 A8 [13:07:07]Write i2c OK [13:07:07]MH_I2C_Read... [13:07:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:07:07]Read from MH i2c: E2 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: E2 0B 00 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: E2 0B 00 E7 46 00 16 3E BC 89 C1 CC 6D 90 90 00 CC [13:07:07]RAPDU: 16 3E BC 89 C1 CC 6D 90 90 00 [13:07:07]wFMCommunicate OK [13:07:07]SAM_PROTO_SignData done [13:07:07]FM_MakeSignedData done [13:07:07]CreateOFDProtocolMessage [13:07:07]wFMCommunicate request_size=4 [13:07:07]MH_SAM_APDU [13:07:07]CAPDU: 80 11 00 00 [13:07:07]Write to MH i2c: E2 08 00 E8 46 80 11 00 00 00 00 00 00 A8 [13:07:07]Write i2c OK [13:07:07]MH_I2C_Read... [13:07:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:07]Read from MH i2c: E2 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: E2 17 00 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: E2 17 00 E8 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F3 [13:07:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:07:07]wFMCommunicate OK [13:07:07]CreateOFDProtocolMessage done [13:07:07]OFDSenderStorePacket 49451 [13:07:07]StoreOFDPacket docnum=49451 [13:07:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 C8 F2 07 01 97 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FF 4E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2B C1 00 00 35 04 06 00 CB 56 65 C0 36 8B 16 3E BC 89 C1 CC 6D 90 [13:07:07]CheckFolder [13:07:07]dirname=/storage/ofd_packets [13:07:07]CheckFolder done [13:07:07]ProducePacketName [13:07:07]name=ofd_packets/00049451 [13:07:07]NVStorageSaveData ofd_packets/00049451 [13:07:07]File name is /storage/ofd_packets/00049451 [13:07:07]Write 301 bytes [13:07:07]NVStorageSaveData done [13:07:07]OFDSenderStorePacket done [13:07:07]KKMCreateOFDPacket done [13:07:07]NVStorageSaveData kkm_last_timestamp [13:07:07]File name is /storage/kkm_last_timestamp [13:07:07]Write 4 bytes [13:07:07]NVStorageSaveData done [13:07:07]ExternCall_PrintAddStr [13:07:07]wPrintStart [13:07:07]Write to MH i2c: 01 00 00 E9 46 2F [13:07:07]Write i2c OK [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: 01 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: 01 07 00 [13:07:07]MH_I2C_Read... [13:07:07]Read from MH i2c: 01 07 00 E9 46 00 00 00 00 00 FF 0F 44 [13:07:07]RasterBufferAndPrint [13:07:07]line Счет N : (1)11325390 [13:07:07]line ИНН: 02508201610067 [13:07:07]line Контрольно-Кассовый Чек [13:07:07]line ПРОДАЖА [13:07:07]line ТРК (МРК, ГНК) : 21 [13:07:07]line Товар: 2710124500 [13:07:07]line Аи-95-К-5 [13:07:07]line 20.000 * 0.00 [13:07:07]line = 0.00 [13:07:07]line НДС 12% НСП 1% [13:07:07]line > о реализуемом товаре [13:07:07]line ИТОГО: 0.00 [13:07:07]line НСП 1% : 0.00 [13:07:07]line НДС 12% : 0.00 [13:07:07]line Наличными: 0.00 [13:07:07]line Безнал.: 0.00 [13:07:07]line Место: АЗС № 95 "Партнер Нефть" [13:07:07]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [13:07:07]line СНО: Общий режим [13:07:07]line Чек 99 16.08.2024 13:07 [13:07:07]line Смена: 464 ФФД: 1.0 [13:07:07]line ЗНМ: 0300000078 [13:07:07]line РНМ: 0000000000092546 [13:07:07]line Версия ККМ: 001 [13:07:07]line Талоны: ТК ГПНА Online [13:07:07]line 30096889 [13:07:07]line ФМ: 0000000000871800 [13:07:07]line ФД: 49451 [13:07:07]line ФПД: 223571934721675 [13:07:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T130711&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49451&fm=223571934721675&tin=02508201610067®Number=0000000000092546&sum=0 [13:07:07]written 0, free lines is 4095 [13:07:07]OFD Sender: Processing packet 49451 [packets to send 21, broken 20] [13:07:07]ProducePacketName [13:07:07]name=ofd_packets/00049451 [13:07:07]OFD Sender: To server: pG, [13:07:07]CommunicateWithHost lk.salyk.kg:30040 [13:07:07]ConnectInit lk.salyk.kg [13:07:07]Connected sock=10 [13:07:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 C8 F2 07 01 97 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 FF 4E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2B C1 00 00 35 04 06 00 CB 56 65 C0 36 8B 16 3E BC 89 C1 CC 6D 90 [13:07:08]Write to MH i2c: 01 00 00 13 47 5A [13:07:08]Write i2c OK [13:07:08]MH_I2C_Read... [13:07:08]Read from MH i2c: 01 [13:07:08]MH_I2C_Read... [13:07:08]Read from MH i2c: 01 07 00 [13:07:08]MH_I2C_Read... [13:07:08]Read from MH i2c: 01 07 00 13 47 00 00 00 00 00 CF 0C 3C [13:07:08]RasterBufferAndPrint [13:07:08]line [13:07:08]line [13:07:08]line [13:07:08]line [13:07:08]line [13:07:08]written 0, free lines is 3285 [13:07:08]MH_Cut [13:07:08]Write to MH i2c: D1 01 00 1A 47 01 33 [13:07:08]Write i2c OK [13:07:08]MH_I2C_Read... [13:07:08]Read from MH i2c: D1 [13:07:08]MH_I2C_Read... [13:07:08]Read from MH i2c: D1 01 00 [13:07:08]MH_I2C_Read... [13:07:08]Read from MH i2c: D1 01 00 1A 47 00 32 [13:07:08]Write to MH i2c: 01 00 00 1B 47 62 [13:07:08]Write i2c OK [13:07:08]MH_I2C_Read... [13:07:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 CF B7 47 00 6C 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 38 37 31 38 30 30 10 04 04 00 2B C1 00 00 F4 03 04 00 3E FA BE 66 B6 04 01 00 00 90 82 FC 2A 8F A4 E7 AF [13:07:08]CommunicateWithHost err = 0 [13:07:08]CheckOFDResponse [13:07:08]1017 (14) - 77093643461234 [13:07:08]1041 (16) - 0000000000871800 [13:07:08]1040 (4) - 49451 [13:07:08]1012 (4) - 16.08.2024 07:05 [13:07:08]1206 (1) - 0 [13:07:08]OFD Sender: Remove packet 49451 [13:07:08]ProducePacketName [13:07:08]name=ofd_packets/00049451 [13:07:08]NVStorageDeleteData [13:07:08]OFD Sender: No OFD packet to send [13:07:09]*** Cut start [13:07:09]*** Purtial cut [13:07:09]*** Stage 1: CUTSNS_PIN = 1 [13:07:09]Read from MH i2c: 01 [13:07:09]MH_I2C_Read... [13:07:09]*** Stop cut motor [13:07:09]*** Cut end [13:07:09]Read from MH i2c: 01 07 00 [13:07:09]MH_I2C_Read... [13:07:09]Read from MH i2c: 01 07 00 1B 47 00 00 00 00 00 FF 0F 77 [13:07:09]process_action close_receipt done [13:07:09]requested_data is exist [13:07:09]produce_requested_data [13:07:09]requested_item fm.sn is exist - process it [13:07:09]wFMCommunicate request_size=4 [13:07:09]MH_SAM_APDU [13:07:09]CAPDU: 80 11 00 00 [13:07:09]Write to MH i2c: E2 08 00 1C 47 80 11 00 00 00 00 00 00 DD [13:07:09]Write i2c OK [13:07:09]MH_I2C_Read... [13:07:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:07:09]Read from MH i2c: E2 [13:07:09]MH_I2C_Read... [13:07:09]Read from MH i2c: E2 17 00 [13:07:09]MH_I2C_Read... [13:07:09]Read from MH i2c: E2 17 00 1C 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 28 [13:07:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:07:09]wFMCommunicate OK [13:07:09]requested_item fd.num is exist - process it [13:07:09]SAM_PROTO_GetFieldsCounters [13:07:09]wFMCommunicate request_size=4 [13:07:09]MH_SAM_APDU [13:07:09]CAPDU: 80 13 00 00 [13:07:09]Write to MH i2c: E2 08 00 1D 47 80 13 00 00 00 00 00 00 E0 [13:07:09]Write i2c OK [13:07:09]MH_I2C_Read... [13:07:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:07:09]Read from MH i2c: E2 [13:07:09]MH_I2C_Read... [13:07:09]Read from MH i2c: E2 62 00 [13:07:09]MH_I2C_Read... [13:07:09]Read from MH i2c: E2 62 00 1D 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2B C1 00 00 0E 04 04 00 D0 01 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 E0 [13:07:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2B C1 00 00 0E 04 04 00 D0 01 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 [13:07:09]wFMCommunicate OK [13:07:09]SAM_PROTO_GetFieldsCounters done [13:07:09]requested_item shift.num is exist - process it [13:07:09]requested_item shift.opened is exist - process it [13:07:09]req_shift_opened [13:07:09]FM_GetShiftState [13:07:09]SAM_PROTO_GetShiftState [13:07:09]wFMCommunicate request_size=4 [13:07:09]MH_SAM_APDU [13:07:09]CAPDU: 80 13 01 00 [13:07:09]Write to MH i2c: E2 08 00 1E 47 80 13 01 00 00 00 00 00 E2 [13:07:09]Write i2c OK [13:07:09]MH_I2C_Read... [13:07:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:07:09]Read from MH i2c: E2 [13:07:09]MH_I2C_Read... [13:07:09]Read from MH i2c: E2 0E 00 [13:07:09]MH_I2C_Read... [13:07:09]Read from MH i2c: E2 0E 00 1E 47 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 58 [13:07:09]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [13:07:09]wFMCommunicate OK [13:07:09]SAM_PROTO_GetShiftState done [13:07:09]FM_GetShiftState done [13:07:09]req_shift_opened done [13:07:09]requested_item shift.open_date is exist - process it [13:07:09]req_shift_open_date [13:07:09]req_shift_open_date done [13:07:09]produce_requested_data done [13:07:09]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49451,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [13:07:09]process_action_free close_receipt [13:07:09]json_value_free [13:07:09]json_value_free done [13:07:09]process_json_proto returns [13:07:09]Send response to host [13:07:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49451,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [13:07:09]free response buf [13:07:09]execute_script done [13:07:09]execute_script returns [13:07:09]free content buf [13:07:09]Sock 9.Close socket [13:07:09]Sock 9.Thread stoped [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:05]accept exits with 7 [13:11:05]New connection [13:11:05]New thread 3066830180 created [13:11:05]Thread 3066973540 joined [13:11:05]Waiting for new connection... [13:11:05] Sock 7.Parse request [13:11:05]Sock 7.Check first char [13:11:05]Sock 7.First char is OK [13:11:05]request: POST /json_proto HTTP/1.0 [13:11:05]Method: POST [13:11:05]URL: /json_proto [13:11:05]Method is POST - this is cgi request [13:11:05]url: /json_proto [13:11:05]query_string will be loaded in cgi processing [13:11:05]execute_cgi json_proto POST (null) [13:11:05]execute_cgi path=json_proto method=POST [13:11:05]POST find Content-Length [13:11:05]Host: 172.17.46.196:8080 [13:11:05]Content-Length: 675 [13:11:05]Content-Type: application/json [13:11:05] [13:11:05]POST finish read [13:11:05]Found Content-Length = 675 [13:11:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189669", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:05]execute_script... [13:11:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189669", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:11:05]POST & json_proto [13:11:05]process_json_proto [13:11:05]json parsed OK: [13:11:05]protocol is kg_v1.0 [13:11:05]action value=close_receipt [13:11:05]process_action close_receipt [13:11:05]cmd_close_receipt [13:11:05]MH_GetDate [13:11:05]Write to MH i2c: F0 00 00 1F 47 55 [13:11:05]Write i2c OK [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: F0 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: F0 09 00 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: F0 09 00 1F 47 00 EF 4F BF 66 07 E8 5D 66 73 [13:11:05]GetLastDocTimeStamp 1723813631 [13:11:05]current date 1723813871 [13:11:05]FM_GetShiftState [13:11:05]SAM_PROTO_GetShiftState [13:11:05]wFMCommunicate request_size=4 [13:11:05]MH_SAM_APDU [13:11:05]CAPDU: 80 13 01 00 [13:11:05]Write to MH i2c: E2 08 00 20 47 80 13 01 00 00 00 00 00 E4 [13:11:05]Write i2c OK [13:11:05]MH_I2C_Read... [13:11:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:05]Read from MH i2c: E2 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 0E 00 [13:11:05]MH_I2C_Read... [13:11:05]Read from MH i2c: E2 0E 00 20 47 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 5A [13:11:05]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [13:11:05]wFMCommunicate OK [13:11:05]SAM_PROTO_GetShiftState done [13:11:05]FM_GetShiftState done [13:11:05]opened in 1723766958 [13:11:05]opened+sec_in_day 1723853358 [13:11:05]quantity*price = 9000 [13:11:05]sum+1 = 9001 [13:11:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 100 16.08.2024 13:11 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49452 ФПД: 258457640212233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T131111&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49452&fm=258457640212233&tin=02508201610067®Number=0000000000092546&sum=9000 0 [13:11:06]StoreToDocumentArchive [13:11:06]shift 464 fd 49452 [13:11:06]save to /storage/0464/doc_00049452 [13:11:06]save last doc name /storage/0464/doc_00049452 to /storage/kkm_last_doc_name [13:11:06]save OK [13:11:06]Clear old archive folders... [13:11:06]ProcessDocumentItem done err = 0, tmpTLVsize=294 [13:11:06]tlvbuf is B6EDF620 [13:11:06]SAM_PROTO_ClearQueue [13:11:06]wFMCommunicate request_size=4 [13:11:06]MH_SAM_APDU [13:11:06]CAPDU: 80 09 00 00 [13:11:06]Write to MH i2c: E2 08 00 2D 47 80 09 00 00 00 00 00 00 E6 [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:11:06]Read from MH i2c: E2 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 03 00 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 03 00 2D 47 00 90 00 E8 [13:11:06]RAPDU: 90 00 [13:11:06]wFMCommunicate OK [13:11:06]SAM_PROTO_ClearQueue done [13:11:06]KKMCreateOFDPacket [13:11:06]OFDProtocolAddRootSTLVToBuf [13:11:06]FM_MakeSignedData [13:11:06]FM_MakeSignedData [13:11:06]SAM_PROTO_SignData [13:11:06]wFMCommunicate request_size=4 [13:11:06]MH_SAM_APDU [13:11:06]CAPDU: 80 0D 01 02 [13:11:06]Write to MH i2c: E2 08 00 2E 47 80 0D 01 02 00 00 00 00 EE [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:11:06]Read from MH i2c: E2 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 03 00 [13:11:06]MH_I2C_Read... [13:11:06]Read from MH i2c: E2 03 00 2E 47 00 90 00 E9 [13:11:06]RAPDU: 90 00 [13:11:06]wFMCommunicate OK [13:11:06]wFMCommunicate request_size=255 [13:11:06]MH_SAM_APDU [13:11:06]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 EF 4F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [13:11:06]Write to MH i2c: E2 02 01 2F 47 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 EF 4F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 24 [13:11:06]Write i2c OK [13:11:06]MH_I2C_Read... [13:11:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:07]Read from MH i2c: E2 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 03 00 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 03 00 2F 47 00 90 00 EA [13:11:07]RAPDU: 90 00 [13:11:07]wFMCommunicate OK [13:11:07]wFMCommunicate request_size=53 [13:11:07]MH_SAM_APDU [13:11:07]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2C C1 00 00 35 04 06 00 EB 10 DB D5 97 09 [13:11:07]Write to MH i2c: E2 38 00 30 47 80 0D 02 02 30 00 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2C C1 00 00 35 04 06 00 EB 10 DB D5 97 09 00 00 17 [13:11:07]Write i2c OK [13:11:07]MH_I2C_Read... [13:11:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:11:07]Read from MH i2c: E2 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 03 00 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 03 00 30 47 00 90 00 EB [13:11:07]RAPDU: 90 00 [13:11:07]wFMCommunicate OK [13:11:07]wFMCommunicate request_size=4 [13:11:07]MH_SAM_APDU [13:11:07]CAPDU: 80 0D 03 02 [13:11:07]Write to MH i2c: E2 08 00 31 47 80 0D 03 02 00 00 00 00 F3 [13:11:07]Write i2c OK [13:11:07]MH_I2C_Read... [13:11:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:11:07]Read from MH i2c: E2 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 0B 00 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 0B 00 31 47 00 EA 10 F5 B6 E9 DB EE 23 90 00 6E [13:11:07]RAPDU: EA 10 F5 B6 E9 DB EE 23 90 00 [13:11:07]wFMCommunicate OK [13:11:07]SAM_PROTO_SignData done [13:11:07]FM_MakeSignedData done [13:11:07]CreateOFDProtocolMessage [13:11:07]wFMCommunicate request_size=4 [13:11:07]MH_SAM_APDU [13:11:07]CAPDU: 80 11 00 00 [13:11:07]Write to MH i2c: E2 08 00 32 47 80 11 00 00 00 00 00 00 F3 [13:11:07]Write i2c OK [13:11:07]MH_I2C_Read... [13:11:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:07]Read from MH i2c: E2 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 17 00 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: E2 17 00 32 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3E [13:11:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:11:07]wFMCommunicate OK [13:11:07]CreateOFDProtocolMessage done [13:11:07]OFDSenderStorePacket 49452 [13:11:07]StoreOFDPacket docnum=49452 [13:11:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 65 FA 32 01 7F 16 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 EF 4F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2C C1 00 00 35 04 06 00 EB 10 DB D5 97 09 EA 10 F5 B6 E9 DB EE 23 [13:11:07]CheckFolder [13:11:07]dirname=/storage/ofd_packets [13:11:07]CheckFolder done [13:11:07]ProducePacketName [13:11:07]name=ofd_packets/00049452 [13:11:07]NVStorageSaveData ofd_packets/00049452 [13:11:07]File name is /storage/ofd_packets/00049452 [13:11:07]Write 344 bytes [13:11:07]NVStorageSaveData done [13:11:07]OFDSenderStorePacket done [13:11:07]KKMCreateOFDPacket done [13:11:07]NVStorageSaveData kkm_last_timestamp [13:11:07]File name is /storage/kkm_last_timestamp [13:11:07]Write 4 bytes [13:11:07]NVStorageSaveData done [13:11:07]ExternCall_PrintAddStr [13:11:07]wPrintStart [13:11:07]Write to MH i2c: 01 00 00 33 47 7A [13:11:07]Write i2c OK [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: 01 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: 01 07 00 [13:11:07]MH_I2C_Read... [13:11:07]Read from MH i2c: 01 07 00 33 47 00 00 00 00 00 FF 0F 8F [13:11:07]RasterBufferAndPrint [13:11:07]line Счет N : (3)189669 [13:11:07]line ИНН: 02508201610067 [13:11:07]line Контрольно-Кассовый Чек [13:11:07]line ПРОДАЖА [13:11:07]line Товар: 4650243871828 [13:11:07]line Gorilla эн нап манго-кокос 0,45 ж/б [13:11:07]line 1.000 * 90.00 [13:11:07]line = 90.00 [13:11:07]line НДС 12% НСП 1% [13:11:07]line > о реализуемом товаре [13:11:07]line ИТОГО: 90.00 [13:11:07]line НСП 1% : 0.80 [13:11:07]line НДС 12% : 9.56 [13:11:07]line Наличными: 90.00 [13:11:07]line Безнал.: 0.00 [13:11:07]line Место: АЗС № 95 "Партнер Нефть" [13:11:07]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [13:11:07]line СНО: Общий режим [13:11:07]line Чек 100 16.08.2024 13:11 [13:11:07]line Смена: 464 ФФД: 1.0 [13:11:07]line ЗНМ: 0300000078 [13:11:07]line РНМ: 0000000000092546 [13:11:07]line Версия ККМ: 001 [13:11:07]line ФМ: 0000000000871800 [13:11:07]line ФД: 49452 [13:11:07]line ФПД: 258457640212233 [13:11:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T131111&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49452&fm=258457640212233&tin=02508201610067®Number=0000000000092546&sum=9000 [13:11:07]line 0 [13:11:07]OFD Sender: Processing packet 49452 [packets to send 21, broken 20] [13:11:07]ProducePacketName [13:11:07]name=ofd_packets/00049452 [13:11:07]OFD Sender: To server: pG, [13:11:07]CommunicateWithHost lk.salyk.kg:30040 [13:11:07]ConnectInit lk.salyk.kg [13:11:07]written 0, free lines is 4095 [13:11:07]Connected sock=10 [13:11:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 65 FA 32 01 7F 16 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 EF 4F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2C C1 00 00 35 04 06 00 EB 10 DB D5 97 09 EA 10 F5 B6 E9 DB EE 23 [13:11:08]Write to MH i2c: 01 00 00 5C 47 A3 [13:11:08]Write i2c OK [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: 01 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: 01 07 00 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: 01 07 00 5C 47 00 00 00 00 00 D9 0C 8F [13:11:08]RasterBufferAndPrint [13:11:08]line [13:11:08]line [13:11:08]line [13:11:08]line [13:11:08]line [13:11:08]written 0, free lines is 3295 [13:11:08]MH_Cut [13:11:08]Write to MH i2c: D1 01 00 63 47 01 7C [13:11:08]Write i2c OK [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: D1 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: D1 01 00 [13:11:08]MH_I2C_Read... [13:11:08]Read from MH i2c: D1 01 00 63 47 00 7B [13:11:08]Write to MH i2c: 01 00 00 64 47 AB [13:11:08]Write i2c OK [13:11:08]MH_I2C_Read... [13:11:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 EC AB 47 00 7D F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2C C1 00 00 F4 03 04 00 2E FB BE 66 B6 04 01 00 00 22 61 A3 7D DB CD A6 7D [13:11:08]CommunicateWithHost err = 0 [13:11:08]CheckOFDResponse [13:11:08]1017 (14) - 77093643461234 [13:11:08]1041 (16) - 0000000000871800 [13:11:08]1040 (4) - 49452 [13:11:08]1012 (4) - 16.08.2024 07:09 [13:11:08]1206 (1) - 0 [13:11:08]OFD Sender: Remove packet 49452 [13:11:08]ProducePacketName [13:11:08]name=ofd_packets/00049452 [13:11:08]NVStorageDeleteData [13:11:08]OFD Sender: No OFD packet to send [13:11:08]*** Cut start [13:11:08]*** Purtial cut [13:11:08]*** CUTSNS_PIN = 0 [13:11:09]*** Stage 1: CUTSNS_PIN = 1 [13:11:10]Read from MH i2c: 01 [13:11:10]MH_I2C_Read... [13:11:10]*** Stop cut motor [13:11:10]*** Cut end [13:11:10]Read from MH i2c: 01 07 00 [13:11:10]MH_I2C_Read... [13:11:10]Read from MH i2c: 01 07 00 64 47 00 00 00 00 00 FF 0F C0 [13:11:10]process_action close_receipt done [13:11:10]requested_data is exist [13:11:10]produce_requested_data [13:11:10]requested_item fm.sn is exist - process it [13:11:10]wFMCommunicate request_size=4 [13:11:10]MH_SAM_APDU [13:11:10]CAPDU: 80 11 00 00 [13:11:10]Write to MH i2c: E2 08 00 65 47 80 11 00 00 00 00 00 00 26 [13:11:10]Write i2c OK [13:11:10]MH_I2C_Read... [13:11:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:11:10]Read from MH i2c: E2 [13:11:10]MH_I2C_Read... [13:11:10]Read from MH i2c: E2 17 00 [13:11:10]MH_I2C_Read... [13:11:10]Read from MH i2c: E2 17 00 65 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 71 [13:11:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:11:10]wFMCommunicate OK [13:11:10]requested_item fd.num is exist - process it [13:11:10]SAM_PROTO_GetFieldsCounters [13:11:10]wFMCommunicate request_size=4 [13:11:10]MH_SAM_APDU [13:11:10]CAPDU: 80 13 00 00 [13:11:10]Write to MH i2c: E2 08 00 66 47 80 13 00 00 00 00 00 00 29 [13:11:11]Write i2c OK [13:11:11]MH_I2C_Read... [13:11:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:11:11]Read from MH i2c: E2 [13:11:11]MH_I2C_Read... [13:11:11]Read from MH i2c: E2 62 00 [13:11:11]MH_I2C_Read... [13:11:11]Read from MH i2c: E2 62 00 66 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2C C1 00 00 0E 04 04 00 D0 01 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 2D [13:11:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2C C1 00 00 0E 04 04 00 D0 01 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 [13:11:11]wFMCommunicate OK [13:11:11]SAM_PROTO_GetFieldsCounters done [13:11:11]requested_item shift.num is exist - process it [13:11:11]requested_item shift.opened is exist - process it [13:11:11]req_shift_opened [13:11:11]FM_GetShiftState [13:11:11]SAM_PROTO_GetShiftState [13:11:11]wFMCommunicate request_size=4 [13:11:11]MH_SAM_APDU [13:11:11]CAPDU: 80 13 01 00 [13:11:11]Write to MH i2c: E2 08 00 67 47 80 13 01 00 00 00 00 00 2B [13:11:11]Write i2c OK [13:11:11]MH_I2C_Read... [13:11:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:11:11]Read from MH i2c: E2 [13:11:11]MH_I2C_Read... [13:11:11]Read from MH i2c: E2 0E 00 [13:11:11]MH_I2C_Read... [13:11:11]Read from MH i2c: E2 0E 00 67 47 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 A1 [13:11:11]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [13:11:11]wFMCommunicate OK [13:11:11]SAM_PROTO_GetShiftState done [13:11:11]FM_GetShiftState done [13:11:11]req_shift_opened done [13:11:11]requested_item shift.open_date is exist - process it [13:11:11]req_shift_open_date [13:11:11]req_shift_open_date done [13:11:11]produce_requested_data done [13:11:11]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49452,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [13:11:11]process_action_free close_receipt [13:11:11]json_value_free [13:11:11]json_value_free done [13:11:11]process_json_proto returns [13:11:11]Send response to host [13:11:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49452,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [13:11:11]free response buf [13:11:11]execute_script done [13:11:11]execute_script returns [13:11:11]free content buf [13:11:11]Sock 7.Close socket [13:11:11]Sock 7.Thread stoped [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15:38]OFD Sender: No OFD packet to send [13:15:43]OFD Sender: No OFD packet to send [13:15:48]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:08]OFD Sender: No OFD packet to send [13:16:13]OFD Sender: No OFD packet to send [13:16:18]OFD Sender: No OFD packet to send [13:16:23]OFD Sender: No OFD packet to send [13:16:28]OFD Sender: No OFD packet to send [13:16:33]OFD Sender: No OFD packet to send [13:16:38]OFD Sender: No OFD packet to send [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:34]OFD Sender: No OFD packet to send [13:18:39]OFD Sender: No OFD packet to send [13:18:44]OFD Sender: No OFD packet to send [13:18:49]OFD Sender: No OFD packet to send [13:18:54]OFD Sender: No OFD packet to send [13:18:59]OFD Sender: No OFD packet to send [13:19:04]OFD Sender: No OFD packet to send [13:19:09]OFD Sender: No OFD packet to send [13:19:14]OFD Sender: No OFD packet to send [13:19:19]OFD Sender: No OFD packet to send [13:19:24]OFD Sender: No OFD packet to send [13:19:29]OFD Sender: No OFD packet to send [13:19:34]OFD Sender: No OFD packet to send [13:19:39]OFD Sender: No OFD packet to send [13:19:44]OFD Sender: No OFD packet to send [13:19:49]OFD Sender: No OFD packet to send [13:19:54]OFD Sender: No OFD packet to send [13:19:59]OFD Sender: No OFD packet to send [13:20:04]OFD Sender: No OFD packet to send [13:20:09]OFD Sender: No OFD packet to send [13:20:14]OFD Sender: No OFD packet to send [13:20:19]OFD Sender: No OFD packet to send [13:20:24]OFD Sender: No OFD packet to send [13:20:29]OFD Sender: No OFD packet to send [13:20:34]OFD Sender: No OFD packet to send [13:20:39]OFD Sender: No OFD packet to send [13:20:44]OFD Sender: No OFD packet to send [13:20:49]OFD Sender: No OFD packet to send [13:20:54]OFD Sender: No OFD packet to send [13:20:59]OFD Sender: No OFD packet to send [13:21:04]OFD Sender: No OFD packet to send [13:21:09]OFD Sender: No OFD packet to send [13:21:14]OFD Sender: No OFD packet to send [13:21:19]OFD Sender: No OFD packet to send [13:21:24]OFD Sender: No OFD packet to send [13:21:29]OFD Sender: No OFD packet to send [13:21:34]OFD Sender: No OFD packet to send [13:21:39]OFD Sender: No OFD packet to send [13:21:44]OFD Sender: No OFD packet to send [13:21:49]OFD Sender: No OFD packet to send [13:21:54]OFD Sender: No OFD packet to send [13:21:59]OFD Sender: No OFD packet to send [13:22:04]OFD Sender: No OFD packet to send [13:22:09]OFD Sender: No OFD packet to send [13:22:14]OFD Sender: No OFD packet to send [13:22:19]OFD Sender: No OFD packet to send [13:22:24]OFD Sender: No OFD packet to send [13:22:29]OFD Sender: No OFD packet to send [13:22:34]OFD Sender: No OFD packet to send [13:22:39]OFD Sender: No OFD packet to send [13:22:44]OFD Sender: No OFD packet to send [13:22:49]OFD Sender: No OFD packet to send [13:22:54]OFD Sender: No OFD packet to send [13:22:59]OFD Sender: No OFD packet to send [13:23:04]OFD Sender: No OFD packet to send [13:23:09]OFD Sender: No OFD packet to send [13:23:14]OFD Sender: No OFD packet to send [13:23:19]OFD Sender: No OFD packet to send [13:23:24]OFD Sender: No OFD packet to send [13:23:29]OFD Sender: No OFD packet to send [13:23:34]OFD Sender: No OFD packet to send [13:23:39]OFD Sender: No OFD packet to send [13:23:44]OFD Sender: No OFD packet to send [13:23:49]OFD Sender: No OFD packet to send [13:23:54]OFD Sender: No OFD packet to send [13:23:59]OFD Sender: No OFD packet to send [13:24:04]OFD Sender: No OFD packet to send [13:24:09]OFD Sender: No OFD packet to send [13:24:14]OFD Sender: No OFD packet to send [13:24:19]OFD Sender: No OFD packet to send [13:24:24]OFD Sender: No OFD packet to send [13:24:29]OFD Sender: No OFD packet to send [13:24:34]OFD Sender: No OFD packet to send [13:24:39]OFD Sender: No OFD packet to send [13:24:44]OFD Sender: No OFD packet to send [13:24:49]OFD Sender: No OFD packet to send [13:24:54]OFD Sender: No OFD packet to send [13:24:59]OFD Sender: No OFD packet to send [13:25:04]OFD Sender: No OFD packet to send [13:25:09]OFD Sender: No OFD packet to send [13:25:14]OFD Sender: No OFD packet to send [13:25:19]OFD Sender: No OFD packet to send [13:25:24]OFD Sender: No OFD packet to send [13:25:29]OFD Sender: No OFD packet to send [13:25:34]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:44]OFD Sender: No OFD packet to send [13:26:49]OFD Sender: No OFD packet to send [13:26:54]OFD Sender: No OFD packet to send [13:26:59]OFD Sender: No OFD packet to send [13:27:04]OFD Sender: No OFD packet to send [13:27:09]OFD Sender: No OFD packet to send [13:27:14]OFD Sender: No OFD packet to send [13:27:19]OFD Sender: No OFD packet to send [13:27:24]OFD Sender: No OFD packet to send [13:27:29]OFD Sender: No OFD packet to send [13:27:34]OFD Sender: No OFD packet to send [13:27:39]OFD Sender: No OFD packet to send [13:27:44]OFD Sender: No OFD packet to send [13:27:49]OFD Sender: No OFD packet to send [13:27:54]OFD Sender: No OFD packet to send [13:27:59]OFD Sender: No OFD packet to send [13:28:04]OFD Sender: No OFD packet to send [13:28:09]OFD Sender: No OFD packet to send [13:28:14]OFD Sender: No OFD packet to send [13:28:19]OFD Sender: No OFD packet to send [13:28:24]OFD Sender: No OFD packet to send [13:28:29]OFD Sender: No OFD packet to send [13:28:34]OFD Sender: No OFD packet to send [13:28:39]OFD Sender: No OFD packet to send [13:28:44]OFD Sender: No OFD packet to send [13:28:49]OFD Sender: No OFD packet to send [13:28:54]OFD Sender: No OFD packet to send [13:28:59]OFD Sender: No OFD packet to send [13:29:04]OFD Sender: No OFD packet to send [13:29:09]OFD Sender: No OFD packet to send [13:29:14]OFD Sender: No OFD packet to send [13:29:19]OFD Sender: No OFD packet to send [13:29:24]OFD Sender: No OFD packet to send [13:29:29]OFD Sender: No OFD packet to send [13:29:34]OFD Sender: No OFD packet to send [13:29:39]OFD Sender: No OFD packet to send [13:29:44]OFD Sender: No OFD packet to send [13:29:49]OFD Sender: No OFD packet to send [13:29:54]OFD Sender: No OFD packet to send [13:29:59]OFD Sender: No OFD packet to send [13:30:04]OFD Sender: No OFD packet to send [13:30:09]OFD Sender: No OFD packet to send [13:30:14]OFD Sender: No OFD packet to send [13:30:19]OFD Sender: No OFD packet to send [13:30:24]OFD Sender: No OFD packet to send [13:30:29]OFD Sender: No OFD packet to send [13:30:34]OFD Sender: No OFD packet to send [13:30:39]OFD Sender: No OFD packet to send [13:30:44]OFD Sender: No OFD packet to send [13:30:49]OFD Sender: No OFD packet to send [13:30:54]OFD Sender: No OFD packet to send [13:30:59]OFD Sender: No OFD packet to send [13:31:04]OFD Sender: No OFD packet to send [13:31:09]OFD Sender: No OFD packet to send [13:31:14]OFD Sender: No OFD packet to send [13:31:19]OFD Sender: No OFD packet to send [13:31:24]OFD Sender: No OFD packet to send [13:31:29]OFD Sender: No OFD packet to send [13:31:34]OFD Sender: No OFD packet to send [13:31:39]OFD Sender: No OFD packet to send [13:31:44]OFD Sender: No OFD packet to send [13:31:49]OFD Sender: No OFD packet to send [13:31:54]OFD Sender: No OFD packet to send [13:31:59]OFD Sender: No OFD packet to send [13:32:04]OFD Sender: No OFD packet to send [13:32:09]OFD Sender: No OFD packet to send [13:32:14]OFD Sender: No OFD packet to send [13:32:19]OFD Sender: No OFD packet to send [13:32:24]OFD Sender: No OFD packet to send [13:32:29]OFD Sender: No OFD packet to send [13:32:34]OFD Sender: No OFD packet to send [13:32:39]OFD Sender: No OFD packet to send [13:32:44]OFD Sender: No OFD packet to send [13:32:49]OFD Sender: No OFD packet to send [13:32:54]OFD Sender: No OFD packet to send [13:32:59]OFD Sender: No OFD packet to send [13:33:04]OFD Sender: No OFD packet to send [13:33:09]OFD Sender: No OFD packet to send [13:33:14]OFD Sender: No OFD packet to send [13:33:19]OFD Sender: No OFD packet to send [13:33:24]OFD Sender: No OFD packet to send [13:33:29]OFD Sender: No OFD packet to send [13:33:34]OFD Sender: No OFD packet to send [13:33:39]OFD Sender: No OFD packet to send [13:33:44]OFD Sender: No OFD packet to send [13:33:49]OFD Sender: No OFD packet to send [13:33:54]OFD Sender: No OFD packet to send [13:33:59]OFD Sender: No OFD packet to send [13:34:04]OFD Sender: No OFD packet to send [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36: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:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]OFD Sender: No OFD packet to send [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:45]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:20]OFD Sender: No OFD packet to send [13:39:25]OFD Sender: No OFD packet to send [13:39:30]OFD Sender: No OFD packet to send [13:39:35]OFD Sender: No OFD packet to send [13:39:40]OFD Sender: No OFD packet to send [13:39:45]OFD Sender: No OFD packet to send [13:39:50]OFD Sender: No OFD packet to send [13:39:55]OFD Sender: No OFD packet to send [13:40:00]OFD Sender: No OFD packet to send [13:40:05]OFD Sender: No OFD packet to send [13:40:10]OFD Sender: No OFD packet to send [13:40:15]OFD Sender: No OFD packet to send [13:40:20]OFD Sender: No OFD packet to send [13:40:25]OFD Sender: No OFD packet to send [13:40:30]OFD Sender: No OFD packet to send [13:40:35]OFD Sender: No OFD packet to send [13:40:40]OFD Sender: No OFD packet to send [13:40:45]OFD Sender: No OFD packet to send [13:40:50]OFD Sender: No OFD packet to send [13:40:55]OFD Sender: No OFD packet to send [13:41:00]OFD Sender: No OFD packet to send [13:41:05]OFD Sender: No OFD packet to send [13:41:10]OFD Sender: No OFD packet to send [13:41:15]OFD Sender: No OFD packet to send [13:41:20]OFD Sender: No OFD packet to send [13:41:25]OFD Sender: No OFD packet to send [13:41:30]OFD Sender: No OFD packet to send [13:41:35]OFD Sender: No OFD packet to send [13:41:40]OFD Sender: No OFD packet to send [13:41:45]OFD Sender: No OFD packet to send [13:41:50]OFD Sender: No OFD packet to send [13:41:55]OFD Sender: No OFD packet to send [13:42:00]OFD Sender: No OFD packet to send [13:42:05]OFD Sender: No OFD packet to send [13:42:10]OFD Sender: No OFD packet to send [13:42:15]OFD Sender: No OFD packet to send [13:42:20]OFD Sender: No OFD packet to send [13:42:25]OFD Sender: No OFD packet to send [13:42:30]OFD Sender: No OFD packet to send [13:42:35]OFD Sender: No OFD packet to send [13:42:40]OFD Sender: No OFD packet to send [13:42:45]OFD Sender: No OFD packet to send [13:42:50]OFD Sender: No OFD packet to send [13:42:55]OFD Sender: No OFD packet to send [13:43:00]OFD Sender: No OFD packet to send [13:43:05]OFD Sender: No OFD packet to send [13:43:10]OFD Sender: No OFD packet to send [13:43:15]OFD Sender: No OFD packet to send [13:43:20]OFD Sender: No OFD packet to send [13:43:25]OFD Sender: No OFD packet to send [13:43:30]OFD Sender: No OFD packet to send [13:43:35]OFD Sender: No OFD packet to send [13:43:40]OFD Sender: No OFD packet to send [13:43:45]OFD Sender: No OFD packet to send [13:43:50]OFD Sender: No OFD packet to send [13:43:55]OFD Sender: No OFD packet to send [13:44:00]OFD Sender: No OFD packet to send [13:44:05]OFD Sender: No OFD packet to send [13:44:10]OFD Sender: No OFD packet to send [13:44:15]OFD Sender: No OFD packet to send [13:44:20]OFD Sender: No OFD packet to send [13:44:25]OFD Sender: No OFD packet to send [13:44:30]OFD Sender: No OFD packet to send [13:44:35]OFD Sender: No OFD packet to send [13:44:40]OFD Sender: No OFD packet to send [13:44:45]OFD Sender: No OFD packet to send [13:44:50]OFD Sender: No OFD packet to send [13:44:55]OFD Sender: No OFD packet to send [13:45:00]OFD Sender: No OFD packet to send [13:45:05]OFD Sender: No OFD packet to send [13:45:10]OFD Sender: No OFD packet to send [13:45:15]OFD Sender: No OFD packet to send [13:45:20]OFD Sender: No OFD packet to send [13:45:25]OFD Sender: No OFD packet to send [13:45:30]OFD Sender: No OFD packet to send [13:45:35]OFD Sender: No OFD packet to send [13:45:40]OFD Sender: No OFD packet to send [13:45:45]OFD Sender: No OFD packet to send [13:45:50]OFD Sender: No OFD packet to send [13:45:55]OFD Sender: No OFD packet to send [13:46:00]OFD Sender: No OFD packet to send [13:46:05]OFD Sender: No OFD packet to send [13:46:10]OFD Sender: No OFD packet to send [13:46:15]OFD Sender: No OFD packet to send [13:46:20]OFD Sender: No OFD packet to send [13:46:25]OFD Sender: No OFD packet to send [13:46:30]OFD Sender: No OFD packet to send [13:46:35]OFD Sender: No OFD packet to send [13:46:40]OFD Sender: No OFD packet to send [13:46:45]OFD Sender: No OFD packet to send [13:46:50]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:50]OFD Sender: No OFD packet to send [13:49:55]OFD Sender: No OFD packet to send [13:50:00]OFD Sender: No OFD packet to send [13:50:05]OFD Sender: No OFD packet to send [13:50:10]OFD Sender: No OFD packet to send [13:50:15]OFD Sender: No OFD packet to send [13:50:20]OFD Sender: No OFD packet to send [13:50:25]OFD Sender: No OFD packet to send [13:50:30]OFD Sender: No OFD packet to send [13:50:35]OFD Sender: No OFD packet to send [13:50:40]OFD Sender: No OFD packet to send [13:50:45]OFD Sender: No OFD packet to send [13:50:50]OFD Sender: No OFD packet to send [13:50:55]OFD Sender: No OFD packet to send [13:51:00]OFD Sender: No OFD packet to send [13:51:05]OFD Sender: No OFD packet to send [13:51:10]OFD Sender: No OFD packet to send [13:51:15]OFD Sender: No OFD packet to send [13:51:20]OFD Sender: No OFD packet to send [13:51:25]OFD Sender: No OFD packet to send [13:51:30]OFD Sender: No OFD packet to send [13:51:35]OFD Sender: No OFD packet to send [13:51:40]OFD Sender: No OFD packet to send [13:51:45]OFD Sender: No OFD packet to send [13:51:50]OFD Sender: No OFD packet to send [13:51:55]OFD Sender: No OFD packet to send [13:52:00]OFD Sender: No OFD packet to send [13:52:05]OFD Sender: No OFD packet to send [13:52:10]OFD Sender: No OFD packet to send [13:52:15]OFD Sender: No OFD packet to send [13:52:20]OFD Sender: No OFD packet to send [13:52:25]OFD Sender: No OFD packet to send [13:52:30]OFD Sender: No OFD packet to send [13:52:35]OFD Sender: No OFD packet to send [13:52:40]OFD Sender: No OFD packet to send [13:52:45]OFD Sender: No OFD packet to send [13:52:50]OFD Sender: No OFD packet to send [13:52:55]OFD Sender: No OFD packet to send [13:53:00]OFD Sender: No OFD packet to send [13:53:05]OFD Sender: No OFD packet to send [13:53:10]OFD Sender: No OFD packet to send [13:53:15]OFD Sender: No OFD packet to send [13:53:20]OFD Sender: No OFD packet to send [13:53:25]OFD Sender: No OFD packet to send [13:53:30]OFD Sender: No OFD packet to send [13:53:35]OFD Sender: No OFD packet to send [13:53:40]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:27]accept exits with 9 [13:55:27]New connection [13:55:27]New thread 3066973540 created [13:55:27]Thread 3066830180 joined [13:55:27]Waiting for new connection... [13:55:27] Sock 9.Parse request [13:55:27]Sock 9.Check first char [13:55:27]Sock 9.First char is OK [13:55:27]request: POST /json_proto HTTP/1.0 [13:55:27]Method: POST [13:55:27]URL: /json_proto [13:55:27]Method is POST - this is cgi request [13:55:27]url: /json_proto [13:55:27]query_string will be loaded in cgi processing [13:55:27]execute_cgi json_proto POST (null) [13:55:27]execute_cgi path=json_proto method=POST [13:55:27]POST find Content-Length [13:55:27]Host: 172.17.46.196:8080 [13:55:27]Content-Length: 568 [13:55:27]Content-Type: application/json [13:55:27] [13:55:27]POST finish read [13:55:27]Found Content-Length = 568 [13:55:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189670", "tax_sys" : 0, "items" : [ { "code": "48744539", "name": "LD Compact Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:27]execute_script... [13:55: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 : (3)189670", "tax_sys" : 0, "items" : [ { "code": "48744539", "name": "LD Compact Blue", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:27]POST & json_proto [13:55:27]process_json_proto [13:55:27]json parsed OK: [13:55:27]protocol is kg_v1.0 [13:55:27]action value=close_receipt [13:55:27]process_action close_receipt [13:55:27]cmd_close_receipt [13:55:27]MH_GetDate [13:55:27]Write to MH i2c: F0 00 00 68 47 9E [13:55:27]Write i2c OK [13:55:27]MH_I2C_Read... [13:55:27]Read from MH i2c: F0 [13:55:27]MH_I2C_Read... [13:55:27]Read from MH i2c: F0 09 00 [13:55:27]MH_I2C_Read... [13:55:27]Read from MH i2c: F0 09 00 68 47 00 55 5A BF 66 07 E8 5D 66 2D [13:55:27]GetLastDocTimeStamp 1723813871 [13:55:27]current date 1723816533 [13:55:27]FM_GetShiftState [13:55:27]SAM_PROTO_GetShiftState [13:55:27]wFMCommunicate request_size=4 [13:55:27]MH_SAM_APDU [13:55:27]CAPDU: 80 13 01 00 [13:55:27]Write to MH i2c: E2 08 00 69 47 80 13 01 00 00 00 00 00 2D [13:55:27]Write i2c OK [13:55:27]MH_I2C_Read... [13:55:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:27]Read from MH i2c: E2 [13:55:27]MH_I2C_Read... [13:55:27]Read from MH i2c: E2 0E 00 [13:55:27]MH_I2C_Read... [13:55:27]Read from MH i2c: E2 0E 00 69 47 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 A3 [13:55:27]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [13:55:27]wFMCommunicate OK [13:55:27]SAM_PROTO_GetShiftState done [13:55:27]FM_GetShiftState done [13:55:27]opened in 1723766958 [13:55:27]opened+sec_in_day 1723853358 [13:55:27]quantity*price = 13000 [13:55:27]sum+1 = 13001 [13:55:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 101 16.08.2024 13:55 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49453 ФПД: 27518530546912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T135533&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49453&fm=27518530546912&tin=02508201610067®Number=0000000000092546&sum=13000 0 [13:55:28]StoreToDocumentArchive [13:55:28]shift 464 fd 49453 [13:55:28]save to /storage/0464/doc_00049453 [13:55:28]save last doc name /storage/0464/doc_00049453 to /storage/kkm_last_doc_name [13:55:28]save OK [13:55:28]Clear old archive folders... [13:55:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [13:55:28]tlvbuf is 00ED5950 [13:55:28]SAM_PROTO_ClearQueue [13:55:28]wFMCommunicate request_size=4 [13:55:28]MH_SAM_APDU [13:55:28]CAPDU: 80 09 00 00 [13:55:28]Write to MH i2c: E2 08 00 76 47 80 09 00 00 00 00 00 00 2F [13:55:28]Write i2c OK [13:55:28]MH_I2C_Read... [13:55:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:28]Read from MH i2c: E2 [13:55:28]MH_I2C_Read... [13:55:28]Read from MH i2c: E2 03 00 [13:55:28]MH_I2C_Read... [13:55:28]Read from MH i2c: E2 03 00 76 47 00 90 00 31 [13:55:28]RAPDU: 90 00 [13:55:28]wFMCommunicate OK [13:55:28]SAM_PROTO_ClearQueue done [13:55:28]KKMCreateOFDPacket [13:55:28]OFDProtocolAddRootSTLVToBuf [13:55:28]FM_MakeSignedData [13:55:28]FM_MakeSignedData [13:55:28]SAM_PROTO_SignData [13:55:28]wFMCommunicate request_size=4 [13:55:28]MH_SAM_APDU [13:55:28]CAPDU: 80 0D 01 02 [13:55:28]Write to MH i2c: E2 08 00 77 47 80 0D 01 02 00 00 00 00 37 [13:55:28]Write i2c OK [13:55:28]MH_I2C_Read... [13:55:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:28]Read from MH i2c: E2 [13:55:28]MH_I2C_Read... [13:55:28]Read from MH i2c: E2 03 00 [13:55:28]MH_I2C_Read... [13:55:28]Read from MH i2c: E2 03 00 77 47 00 90 00 32 [13:55:28]RAPDU: 90 00 [13:55:28]wFMCommunicate OK [13:55:28]wFMCommunicate request_size=255 [13:55:28]MH_SAM_APDU [13:55:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 55 5A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2D C1 00 00 35 04 06 00 [13:55:28]Write to MH i2c: E2 02 01 78 47 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 55 5A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2D C1 00 00 35 04 06 00 00 00 41 [13:55:28]Write i2c OK [13:55:28]MH_I2C_Read... [13:55:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:29]Read from MH i2c: E2 [13:55:29]MH_I2C_Read... [13:55:29]Read from MH i2c: E2 03 00 [13:55:29]MH_I2C_Read... [13:55:29]Read from MH i2c: E2 03 00 78 47 00 90 00 33 [13:55:29]RAPDU: 90 00 [13:55:29]wFMCommunicate OK [13:55:29]wFMCommunicate request_size=11 [13:55:29]MH_SAM_APDU [13:55:29]CAPDU: 80 0D 02 02 06 19 07 28 3C EC E0 [13:55:29]Write to MH i2c: E2 0E 00 79 47 80 0D 02 02 06 00 19 07 28 3C EC E0 00 00 96 [13:55:29]Write i2c OK [13:55:29]MH_I2C_Read... [13:55:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:29]Read from MH i2c: E2 [13:55:29]MH_I2C_Read... [13:55:29]Read from MH i2c: E2 03 00 [13:55:29]MH_I2C_Read... [13:55:29]Read from MH i2c: E2 03 00 79 47 00 90 00 34 [13:55:29]RAPDU: 90 00 [13:55:29]wFMCommunicate OK [13:55:29]wFMCommunicate request_size=4 [13:55:29]MH_SAM_APDU [13:55:29]CAPDU: 80 0D 03 02 [13:55:29]Write to MH i2c: E2 08 00 7A 47 80 0D 03 02 00 00 00 00 3C [13:55:29]Write i2c OK [13:55:29]MH_I2C_Read... [13:55:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:29]Read from MH i2c: E2 [13:55:29]MH_I2C_Read... [13:55:29]Read from MH i2c: E2 0B 00 [13:55:29]MH_I2C_Read... [13:55:29]Read from MH i2c: E2 0B 00 7A 47 00 80 BE 3F 9B DD 35 B8 E3 90 00 02 [13:55:29]RAPDU: 80 BE 3F 9B DD 35 B8 E3 90 00 [13:55:29]wFMCommunicate OK [13:55:29]SAM_PROTO_SignData done [13:55:29]FM_MakeSignedData done [13:55:29]CreateOFDProtocolMessage [13:55:29]wFMCommunicate request_size=4 [13:55:29]MH_SAM_APDU [13:55:29]CAPDU: 80 11 00 00 [13:55:29]Write to MH i2c: E2 08 00 7B 47 80 11 00 00 00 00 00 00 3C [13:55:29]Write i2c OK [13:55:29]MH_I2C_Read... [13:55:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:29]Read from MH i2c: E2 [13:55:29]MH_I2C_Read... [13:55:29]Read from MH i2c: E2 17 00 [13:55:29]MH_I2C_Read... [13:55:29]Read from MH i2c: E2 17 00 7B 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 87 [13:55:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:55:29]wFMCommunicate OK [13:55:29]CreateOFDProtocolMessage done [13:55:29]OFDSenderStorePacket 49453 [13:55:29]StoreOFDPacket docnum=49453 [13:55:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 01 00 00 92 BB 08 01 C4 59 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 55 5A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2D C1 00 00 35 04 06 00 19 07 28 3C EC E0 80 BE 3F 9B DD 35 B8 E3 [13:55:29]CheckFolder [13:55:29]dirname=/storage/ofd_packets [13:55:29]CheckFolder done [13:55:29]ProducePacketName [13:55:29]name=ofd_packets/00049453 [13:55:29]NVStorageSaveData ofd_packets/00049453 [13:55:29]File name is /storage/ofd_packets/00049453 [13:55:29]Write 302 bytes [13:55:29]NVStorageSaveData done [13:55:29]OFDSenderStorePacket done [13:55:29]KKMCreateOFDPacket done [13:55:29]NVStorageSaveData kkm_last_timestamp [13:55:29]File name is /storage/kkm_last_timestamp [13:55:29]Write 4 bytes [13:55:29]NVStorageSaveData done [13:55:29]ExternCall_PrintAddStr [13:55:29]wPrintStart [13:55:29]Write to MH i2c: 01 00 00 7C 47 C3 [13:55:29]Write i2c OK [13:55:29]MH_I2C_Read... [13:55:29]Read from MH i2c: 01 [13:55:29]MH_I2C_Read... [13:55:29]Read from MH i2c: 01 07 00 [13:55:29]MH_I2C_Read... [13:55:29]Read from MH i2c: 01 07 00 7C 47 00 00 00 00 00 FF 0F D8 [13:55:29]RasterBufferAndPrint [13:55:29]line Счет N : (3)189670 [13:55:29]line ИНН: 02508201610067 [13:55:29]line Контрольно-Кассовый Чек [13:55:29]line ПРОДАЖА [13:55:29]line Товар: 48744539 [13:55:29]line LD Compact Blue [13:55:29]line 1.000 * 130.00 [13:55:29]line = 130.00 [13:55:29]line НДС 12% НСП 1% [13:55:29]line > о реализуемом товаре [13:55:29]line ИТОГО: 130.00 [13:55:29]line НСП 1% : 1.15 [13:55:29]line НДС 12% : 13.80 [13:55:29]line Наличными: 130.00 [13:55:29]line Безнал.: 0.00 [13:55:29]line Место: АЗС № 95 "Партнер Нефть" [13:55:29]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [13:55:29]line СНО: Общий режим [13:55:29]line Чек 101 16.08.2024 13:55 [13:55:29]line Смена: 464 ФФД: 1.0 [13:55:29]line ЗНМ: 0300000078 [13:55:29]line РНМ: 0000000000092546 [13:55:29]line Версия ККМ: 001 [13:55:29]line ФМ: 0000000000871800 [13:55:29]line ФД: 49453 [13:55:29]line ФПД: 27518530546912 [13:55:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T135533&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49453&fm=27518530546912&tin=02508201610067®Number=0000000000092546&sum=13000 [13:55:29]line 0 [13:55:29]OFD Sender: Processing packet 49453 [packets to send 21, broken 20] [13:55:29]ProducePacketName [13:55:29]name=ofd_packets/00049453 [13:55:29]OFD Sender: To server: pG, [13:55:29]CommunicateWithHost lk.salyk.kg:30040 [13:55:29]ConnectInit lk.salyk.kg [13:55:29]written 0, free lines is 4095 [13:55:29]Connected sock=10 [13:55:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 01 00 00 92 BB 08 01 C4 59 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 08 00 34 38 37 34 34 35 33 39 06 04 0F 00 4C 44 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 55 5A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2D C1 00 00 35 04 06 00 19 07 28 3C EC E0 80 BE 3F 9B DD 35 B8 E3 [13:55:30]Write to MH i2c: 01 00 00 A4 47 EB [13:55:30]Write i2c OK [13:55:30]MH_I2C_Read... [13:55:30]Read from MH i2c: 01 [13:55:30]MH_I2C_Read... [13:55:30]Read from MH i2c: 01 07 00 [13:55:30]MH_I2C_Read... [13:55:30]Read from MH i2c: 01 07 00 A4 47 00 00 00 00 00 E8 0C E6 [13:55:30]RasterBufferAndPrint [13:55:30]line [13:55:30]line [13:55:30]line [13:55:30]line [13:55:30]line [13:55:30]written 0, free lines is 3310 [13:55:30]MH_Cut [13:55:30]Write to MH i2c: D1 01 00 AB 47 01 C4 [13:55:30]Write i2c OK [13:55:30]MH_I2C_Read... [13:55:30]Read from MH i2c: D1 [13:55:30]MH_I2C_Read... [13:55:30]Read from MH i2c: D1 01 00 [13:55:30]MH_I2C_Read... [13:55:30]Read from MH i2c: D1 01 00 AB 47 00 C3 [13:55:30]Write to MH i2c: 01 00 00 AC 47 F3 [13:55:30]Write i2c OK [13:55:30]MH_I2C_Read... [13:55:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 45 E6 47 00 3D 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 38 37 31 38 30 30 10 04 04 00 2D C1 00 00 F4 03 04 00 94 05 BF 66 B6 04 01 00 00 31 52 5B 41 2E 1E EF D4 [13:55:30]CommunicateWithHost err = 0 [13:55:30]CheckOFDResponse [13:55:30]1017 (14) - 77093643461234 [13:55:30]1041 (16) - 0000000000871800 [13:55:30]1040 (4) - 49453 [13:55:30]1012 (4) - 16.08.2024 07:53 [13:55:30]1206 (1) - 0 [13:55:30]OFD Sender: Remove packet 49453 [13:55:30]ProducePacketName [13:55:30]name=ofd_packets/00049453 [13:55:30]NVStorageDeleteData [13:55:30]OFD Sender: No OFD packet to send [13:55:30]*** Cut start [13:55:30]*** Purtial cut [13:55:30]*** Stage 1: CUTSNS_PIN = 1 [13:55:31]Read from MH i2c: 01 [13:55:31]MH_I2C_Read... [13:55:31]*** Stop cut motor [13:55:31]*** Cut end [13:55:31]Read from MH i2c: 01 07 00 [13:55:31]MH_I2C_Read... [13:55:31]Read from MH i2c: 01 07 00 AC 47 00 00 00 00 00 FF 0F 08 [13:55:31]process_action close_receipt done [13:55:31]requested_data is exist [13:55:31]produce_requested_data [13:55:31]requested_item fm.sn is exist - process it [13:55:31]wFMCommunicate request_size=4 [13:55:31]MH_SAM_APDU [13:55:31]CAPDU: 80 11 00 00 [13:55:31]Write to MH i2c: E2 08 00 AD 47 80 11 00 00 00 00 00 00 6E [13:55:31]Write i2c OK [13:55:31]MH_I2C_Read... [13:55:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:31]Read from MH i2c: E2 [13:55:31]MH_I2C_Read... [13:55:31]Read from MH i2c: E2 17 00 [13:55:31]MH_I2C_Read... [13:55:31]Read from MH i2c: E2 17 00 AD 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B9 [13:55:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:55:31]wFMCommunicate OK [13:55:31]requested_item fd.num is exist - process it [13:55:31]SAM_PROTO_GetFieldsCounters [13:55:31]wFMCommunicate request_size=4 [13:55:31]MH_SAM_APDU [13:55:31]CAPDU: 80 13 00 00 [13:55:31]Write to MH i2c: E2 08 00 AE 47 80 13 00 00 00 00 00 00 71 [13:55:31]Write i2c OK [13:55:31]MH_I2C_Read... [13:55:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:31]Read from MH i2c: E2 [13:55:31]MH_I2C_Read... [13:55:31]Read from MH i2c: E2 62 00 [13:55:31]MH_I2C_Read... [13:55:31]Read from MH i2c: E2 62 00 AE 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2D C1 00 00 0E 04 04 00 D0 01 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 79 [13:55:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2D C1 00 00 0E 04 04 00 D0 01 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 [13:55:31]wFMCommunicate OK [13:55:31]SAM_PROTO_GetFieldsCounters done [13:55:31]requested_item shift.num is exist - process it [13:55:31]requested_item shift.opened is exist - process it [13:55:31]req_shift_opened [13:55:31]FM_GetShiftState [13:55:31]SAM_PROTO_GetShiftState [13:55:31]wFMCommunicate request_size=4 [13:55:31]MH_SAM_APDU [13:55:31]CAPDU: 80 13 01 00 [13:55:31]Write to MH i2c: E2 08 00 AF 47 80 13 01 00 00 00 00 00 73 [13:55:31]Write i2c OK [13:55:31]MH_I2C_Read... [13:55:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:31]Read from MH i2c: E2 [13:55:31]MH_I2C_Read... [13:55:31]Read from MH i2c: E2 0E 00 [13:55:31]MH_I2C_Read... [13:55:31]Read from MH i2c: E2 0E 00 AF 47 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 E9 [13:55:31]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [13:55:31]wFMCommunicate OK [13:55:31]SAM_PROTO_GetShiftState done [13:55:31]FM_GetShiftState done [13:55:31]req_shift_opened done [13:55:31]requested_item shift.open_date is exist - process it [13:55:31]req_shift_open_date [13:55:31]req_shift_open_date done [13:55:31]produce_requested_data done [13:55:31]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49453,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [13:55:31]process_action_free close_receipt [13:55:31]json_value_free [13:55:31]json_value_free done [13:55:31]process_json_proto returns [13:55:31]Send response to host [13:55:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49453,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [13:55:31]free response buf [13:55:31]execute_script done [13:55:31]execute_script returns [13:55:31]free content buf [13:55:31]Sock 9.Close socket [13:55:31]Sock 9.Thread stoped [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:41]accept exits with 7 [13:55:41]New connection [13:55:41]New thread 3066830180 created [13:55:41]Thread 3066973540 joined [13:55:41]Waiting for new connection... [13:55:41] Sock 7.Parse request [13:55:41]Sock 7.Check first char [13:55:41]Sock 7.First char is OK [13:55:41]request: POST /json_proto HTTP/1.0 [13:55:41]Method: POST [13:55:41]URL: /json_proto [13:55:41]Method is POST - this is cgi request [13:55:41]url: /json_proto [13:55:41]query_string will be loaded in cgi processing [13:55:41]execute_cgi json_proto POST (null) [13:55:41]execute_cgi path=json_proto method=POST [13:55:41]POST find Content-Length [13:55:41]Host: 172.17.46.196:8080 [13:55:41]Content-Length: 954 [13:55:41]Content-Type: application/json [13:55:41] [13:55:41]POST finish read [13:55:41]Found Content-Length = 954 [13:55:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189671", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:41]execute_script... [13:55: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 : (3)189671", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002328398", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 195.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:41]POST & json_proto [13:55:41]process_json_proto [13:55:41]json parsed OK: [13:55:41]protocol is kg_v1.0 [13:55:41]action value=close_receipt [13:55:41]process_action close_receipt [13:55:41]cmd_close_receipt [13:55:41]MH_GetDate [13:55:41]Write to MH i2c: F0 00 00 B0 47 E6 [13:55:41]Write i2c OK [13:55:41]MH_I2C_Read... [13:55:41]Read from MH i2c: F0 [13:55:41]MH_I2C_Read... [13:55:41]Read from MH i2c: F0 09 00 [13:55:41]MH_I2C_Read... [13:55:41]Read from MH i2c: F0 09 00 B0 47 00 63 5A BF 66 07 E8 5D 66 83 [13:55:41]GetLastDocTimeStamp 1723816533 [13:55:41]current date 1723816547 [13:55:41]FM_GetShiftState [13:55:41]SAM_PROTO_GetShiftState [13:55:41]wFMCommunicate request_size=4 [13:55:41]MH_SAM_APDU [13:55:41]CAPDU: 80 13 01 00 [13:55:41]Write to MH i2c: E2 08 00 B1 47 80 13 01 00 00 00 00 00 75 [13:55:41]Write i2c OK [13:55:41]MH_I2C_Read... [13:55:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:41]Read from MH i2c: E2 [13:55:41]MH_I2C_Read... [13:55:41]Read from MH i2c: E2 0E 00 [13:55:41]MH_I2C_Read... [13:55:41]Read from MH i2c: E2 0E 00 B1 47 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 EB [13:55:41]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [13:55:41]wFMCommunicate OK [13:55:41]SAM_PROTO_GetShiftState done [13:55:41]FM_GetShiftState done [13:55:41]opened in 1723766958 [13:55:41]opened+sec_in_day 1723853358 [13:55:41]quantity*price = 9500 [13:55:41]sum+1 = 9501 [13:55:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002328398 Вода ASU пит н.газ мята ПЭТ 1л 1.000 * 100.00 = 100.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 195.00 НСП 1% : 1.72 НДС 12% : 20.71 Наличными: 195.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 102 16.08.2024 13:55 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49454 ФПД: 180594439480285 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T135547&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49454&fm=180594439480285&tin=02508201610067®Number=0000000000092546&sum=19500 0 [13:55:42]StoreToDocumentArchive [13:55:42]shift 464 fd 49454 [13:55:42]save to /storage/0464/doc_00049454 [13:55:42]save last doc name /storage/0464/doc_00049454 to /storage/kkm_last_doc_name [13:55:42]save OK [13:55:42]Clear old archive folders... [13:55:42]ProcessDocumentItem done err = 0, tmpTLVsize=414 [13:55:42]tlvbuf is 00F19A70 [13:55:42]SAM_PROTO_ClearQueue [13:55:42]wFMCommunicate request_size=4 [13:55:42]MH_SAM_APDU [13:55:42]CAPDU: 80 09 00 00 [13:55:42]Write to MH i2c: E2 08 00 BE 47 80 09 00 00 00 00 00 00 77 [13:55:42]Write i2c OK [13:55:42]MH_I2C_Read... [13:55:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:42]Read from MH i2c: E2 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 03 00 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 03 00 BE 47 00 90 00 79 [13:55:42]RAPDU: 90 00 [13:55:42]wFMCommunicate OK [13:55:42]SAM_PROTO_ClearQueue done [13:55:42]KKMCreateOFDPacket [13:55:42]OFDProtocolAddRootSTLVToBuf [13:55:42]FM_MakeSignedData [13:55:42]FM_MakeSignedData [13:55:42]SAM_PROTO_SignData [13:55:42]wFMCommunicate request_size=4 [13:55:42]MH_SAM_APDU [13:55:42]CAPDU: 80 0D 01 02 [13:55:42]Write to MH i2c: E2 08 00 BF 47 80 0D 01 02 00 00 00 00 7F [13:55:42]Write i2c OK [13:55:42]MH_I2C_Read... [13:55:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:42]Read from MH i2c: E2 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 03 00 [13:55:42]MH_I2C_Read... [13:55:42]Read from MH i2c: E2 03 00 BF 47 00 90 00 7A [13:55:42]RAPDU: 90 00 [13:55:42]wFMCommunicate OK [13:55:42]wFMCommunicate request_size=255 [13:55:42]MH_SAM_APDU [13:55:42]CAPDU: 80 0D 02 02 FA 03 00 9E 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 [13:55:42]Write to MH i2c: E2 02 01 C0 47 80 0D 02 02 FA 00 03 00 9E 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 00 00 A4 [13:55:42]Write i2c OK [13:55:42]MH_I2C_Read... [13:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:43]Read from MH i2c: E2 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: E2 03 00 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: E2 03 00 C0 47 00 90 00 7B [13:55:43]RAPDU: 90 00 [13:55:43]wFMCommunicate OK [13:55:43]wFMCommunicate request_size=173 [13:55:43]MH_SAM_APDU [13:55:43]CAPDU: 80 0D 02 02 A8 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 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 63 5A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2E C1 00 00 35 04 06 00 A4 3F EB 69 E3 DD [13:55:43]Write to MH i2c: E2 B0 00 C1 47 80 0D 02 02 A8 00 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 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 63 5A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2E C1 00 00 35 04 06 00 A4 3F EB 69 E3 DD 00 00 C9 [13:55:43]Write i2c OK [13:55:43]MH_I2C_Read... [13:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:43]Read from MH i2c: E2 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: E2 03 00 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: E2 03 00 C1 47 00 90 00 7C [13:55:43]RAPDU: 90 00 [13:55:43]wFMCommunicate OK [13:55:43]wFMCommunicate request_size=4 [13:55:43]MH_SAM_APDU [13:55:43]CAPDU: 80 0D 03 02 [13:55:43]Write to MH i2c: E2 08 00 C2 47 80 0D 03 02 00 00 00 00 84 [13:55:43]Write i2c OK [13:55:43]MH_I2C_Read... [13:55:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:43]Read from MH i2c: E2 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: E2 0B 00 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: E2 0B 00 C2 47 00 C3 68 32 7C 99 AD 6B 90 90 00 9F [13:55:43]RAPDU: C3 68 32 7C 99 AD 6B 90 90 00 [13:55:43]wFMCommunicate OK [13:55:43]SAM_PROTO_SignData done [13:55:43]FM_MakeSignedData done [13:55:43]CreateOFDProtocolMessage [13:55:43]wFMCommunicate request_size=4 [13:55:43]MH_SAM_APDU [13:55:43]CAPDU: 80 11 00 00 [13:55:43]Write to MH i2c: E2 08 00 C3 47 80 11 00 00 00 00 00 00 84 [13:55:43]Write i2c OK [13:55:43]MH_I2C_Read... [13:55:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:43]Read from MH i2c: E2 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: E2 17 00 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: E2 17 00 C3 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CF [13:55:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:55:43]wFMCommunicate OK [13:55:43]CreateOFDProtocolMessage done [13:55:43]OFDSenderStorePacket 49454 [13:55:43]StoreOFDPacket docnum=49454 [13:55:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 B2 01 00 00 64 DA AA 01 CC 03 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 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 63 5A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2E C1 00 00 35 04 06 00 A4 3F EB 69 E3 DD C3 68 32 7C 99 AD 6B 90 [13:55:43]CheckFolder [13:55:43]dirname=/storage/ofd_packets [13:55:43]CheckFolder done [13:55:43]ProducePacketName [13:55:43]name=ofd_packets/00049454 [13:55:43]NVStorageSaveData ofd_packets/00049454 [13:55:43]File name is /storage/ofd_packets/00049454 [13:55:43]Write 464 bytes [13:55:43]NVStorageSaveData done [13:55:43]OFDSenderStorePacket done [13:55:43]KKMCreateOFDPacket done [13:55:43]NVStorageSaveData kkm_last_timestamp [13:55:43]File name is /storage/kkm_last_timestamp [13:55:43]Write 4 bytes [13:55:43]NVStorageSaveData done [13:55:43]ExternCall_PrintAddStr [13:55:43]wPrintStart [13:55:43]Write to MH i2c: 01 00 00 C4 47 0B [13:55:43]Write i2c OK [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: 01 [13:55:43]MH_I2C_Read... [13:55:43]Read from MH i2c: 01 07 00 [13:55:43]MH_I2C_Read... [13:55:43]OFD Sender: Processing packet 49454 [packets to send 21, broken 20] [13:55:43]ProducePacketName [13:55:43]name=ofd_packets/00049454 [13:55:43]Read from MH i2c: 01 OFD Sender: To server: pG, [13:55:43]07 CommunicateWithHost lk.salyk.kg:30040 [13:55:43]00 ConnectInit lk.salyk.kg [13:55:43]C4 47 00 00 00 00 00 FF 0F 20 [13:55:43]RasterBufferAndPrint [13:55:43]line Счет N : (3)189671 [13:55:43]line ИНН: 02508201610067 [13:55:43]line Контрольно-Кассовый Чек [13:55:43]line ПРОДАЖА [13:55:43]line Товар: 4700000480050 [13:55:43]line Напиток Nitro Energy эн green ж/б 0,45л [13:55:43]line 1.000 * 95.00 [13:55:43]line = 95.00 [13:55:43]line НДС 12% НСП 1% [13:55:43]line > о реализуемом товаре [13:55:43]line Товар: 4870002328398 [13:55:43]line Вода ASU пит н.газ мята ПЭТ 1л [13:55:43]line 1.000 * 100.00 [13:55:43]line = 100.00 [13:55:43]line НДС 12% НСП 1% [13:55:43]line > о реализуемом товаре [13:55:43]line ИТОГО: 195.00 [13:55:43]line НСП 1% : 1.72 [13:55:43]line НДС 12% : 20.71 [13:55:43]line Наличными: 195.00 [13:55:43]line Безнал.: 0.00 [13:55:43]line Место: АЗС № 95 "Партнер Нефть" [13:55:43]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [13:55:43]line СНО: Общий режим [13:55:43]line Чек 102 16.08.2024 13:55 [13:55:43]line Смена: 464 ФФД: 1.0 [13:55:43]line ЗНМ: 0300000078 [13:55:43]line РНМ: 0000000000092546 [13:55:43]line Версия ККМ: 001 [13:55:43]line ФМ: 0000000000871800 [13:55:43]line ФД: 49454 [13:55:43]line ФПД: 180594439480285 [13:55:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T135547&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49454&fm=180594439480285&tin=02508201610067®Number=0000000000092546&sum=19500 [13:55:43]line 0 [13:55:43]written 0, free lines is 4095 [13:55:44]Connected sock=10 [13:55:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 B2 01 00 00 64 DA AA 01 CC 03 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 33 39 38 06 04 31 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 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 63 5A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2E C1 00 00 35 04 06 00 A4 3F EB 69 E3 DD C3 68 32 7C 99 AD 6B 90 [13:55:44]Write to MH i2c: 01 00 00 F4 47 3B [13:55:44]Write i2c OK [13:55:44]MH_I2C_Read... [13:55:44]Read from MH i2c: 01 [13:55:44]MH_I2C_Read... [13:55:44]Read from MH i2c: 01 07 00 [13:55:44]MH_I2C_Read... [13:55:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 5A 99 47 00 EC AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2E C1 00 00 F4 03 04 00 A2 05 BF 66 B6 04 01 00 00 52 DB D9 FF B3 BF B0 AB [13:55:44]CommunicateWithHost err = 0 [13:55:44]CheckOFDResponse [13:55:44]1017 (14) - 77093643461234 [13:55:44]1041 (16) - 0000000000871800 [13:55:44]1040 (4) - 49454 [13:55:44]1012 (4) - 16.08.2024 07:54 [13:55:44]1206 (1) - 0 [13:55:44]OFD Sender: Remove packet 49454 [13:55:44]ProducePacketName [13:55:44]name=ofd_packets/00049454 [13:55:44]NVStorageDeleteData [13:55:44]Read from MH i2c: 01 07 00 F4 47 00 00 00 00 00 7D 0C CB [13:55:44]RasterBufferAndPrint [13:55:44]line [13:55:44]line [13:55:44]line [13:55:44]line [13:55:44]line [13:55:44]written 0, free lines is 3217 [13:55:44]MH_Cut [13:55:44]Write to MH i2c: D1 01 00 FB 47 01 14 [13:55:44]Write i2c OK [13:55:44]MH_I2C_Read... [13:55:44]Read from MH i2c: D1 [13:55:44]MH_I2C_Read... [13:55:44]Read from MH i2c: D1 01 00 [13:55:44]MH_I2C_Read... [13:55:44]Read from MH i2c: D1 01 00 FB 47 00 13 [13:55:44]Write to MH i2c: 01 00 00 FC 47 43 [13:55:44]Write i2c OK [13:55:44]MH_I2C_Read... [13:55:44]OFD Sender: No OFD packet to send [13:55:45]*** Cut start [13:55:45]*** Purtial cut [13:55:45]*** CUTSNS_PIN = 0 [13:55:45]*** Stage 1: CUTSNS_PIN = 1 [13:55:47]Read from MH i2c: 01 [13:55:47]MH_I2C_Read... [13:55:47]*** Stop cut motor [13:55:47]*** Cut end [13:55:47]Read from MH i2c: 01 07 00 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: 01 07 00 FC 47 00 00 00 00 00 FF 0F 58 [13:55:47]process_action close_receipt done [13:55:47]requested_data is exist [13:55:47]produce_requested_data [13:55:47]requested_item fm.sn is exist - process it [13:55:47]wFMCommunicate request_size=4 [13:55:47]MH_SAM_APDU [13:55:47]CAPDU: 80 11 00 00 [13:55:47]Write to MH i2c: E2 08 00 FD 47 80 11 00 00 00 00 00 00 BE [13:55:47]Write i2c OK [13:55:47]MH_I2C_Read... [13:55:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:47]Read from MH i2c: E2 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: E2 17 00 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: E2 17 00 FD 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 09 [13:55:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [13:55:47]wFMCommunicate OK [13:55:47]requested_item fd.num is exist - process it [13:55:47]SAM_PROTO_GetFieldsCounters [13:55:47]wFMCommunicate request_size=4 [13:55:47]MH_SAM_APDU [13:55:47]CAPDU: 80 13 00 00 [13:55:47]Write to MH i2c: E2 08 00 FE 47 80 13 00 00 00 00 00 00 C1 [13:55:47]Write i2c OK [13:55:47]MH_I2C_Read... [13:55:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:47]Read from MH i2c: E2 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: E2 62 00 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: E2 62 00 FE 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2E C1 00 00 0E 04 04 00 D0 01 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 CD [13:55:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2E C1 00 00 0E 04 04 00 D0 01 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 [13:55:47]wFMCommunicate OK [13:55:47]SAM_PROTO_GetFieldsCounters done [13:55:47]requested_item shift.num is exist - process it [13:55:47]requested_item shift.opened is exist - process it [13:55:47]req_shift_opened [13:55:47]FM_GetShiftState [13:55:47]SAM_PROTO_GetShiftState [13:55:47]wFMCommunicate request_size=4 [13:55:47]MH_SAM_APDU [13:55:47]CAPDU: 80 13 01 00 [13:55:47]Write to MH i2c: E2 08 00 FF 47 80 13 01 00 00 00 00 00 C3 [13:55:47]Write i2c OK [13:55:47]MH_I2C_Read... [13:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:47]Read from MH i2c: E2 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: E2 0E 00 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: E2 0E 00 FF 47 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 39 [13:55:47]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [13:55:47]wFMCommunicate OK [13:55:47]SAM_PROTO_GetShiftState done [13:55:47]FM_GetShiftState done [13:55:47]req_shift_opened done [13:55:47]requested_item shift.open_date is exist - process it [13:55:47]req_shift_open_date [13:55:47]req_shift_open_date done [13:55:47]produce_requested_data done [13:55:47]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49454,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [13:55:47]process_action_free close_receipt [13:55:47]json_value_free [13:55:47]json_value_free done [13:55:47]process_json_proto returns [13:55:47]Send response to host [13:55:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49454,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [13:55:47]free response buf [13:55:47]execute_script done [13:55:47]execute_script returns [13:55:47]free content buf [13:55:47]Sock 7.Close socket [13:55:47]Sock 7.Thread stoped [13:55:49]OFD Sender: No OFD packet to send [13:55:54]OFD Sender: No OFD packet to send [13:55:59]OFD Sender: No OFD packet to send [13:56:04]OFD Sender: No OFD packet to send [13:56:09]OFD Sender: No OFD packet to send [13:56:14]OFD Sender: No OFD packet to send [13:56:19]OFD Sender: No OFD packet to send [13:56:24]OFD Sender: No OFD packet to send [13:56:29]OFD Sender: No OFD packet to send [13:56:34]OFD Sender: No OFD packet to send [13:56:39]OFD Sender: No OFD packet to send [13:56:44]OFD Sender: No OFD packet to send [13:56:49]OFD Sender: No OFD packet to send [13:56:54]OFD Sender: No OFD packet to send [13:56:59]OFD Sender: No OFD packet to send [13:57:04]OFD Sender: No OFD packet to send [13:57:09]OFD Sender: No OFD packet to send [13:57:14]OFD Sender: No OFD packet to send [13:57:19]OFD Sender: No OFD packet to send [13:57:24]OFD Sender: No OFD packet to send [13:57:29]OFD Sender: No OFD packet to send [13:57:34]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:35]OFD Sender: No OFD packet to send [13:59:40]OFD Sender: No OFD packet to send [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:43]accept exits with 9 [14:01:43]New connection [14:01:43]New thread 3066973540 created [14:01:43]Thread 3066830180 joined [14:01:43]Waiting for new connection... [14:01:43] Sock 9.Parse request [14:01:43]Sock 9.Check first char [14:01:43]Sock 9.First char is OK [14:01:43]request: POST /json_proto HTTP/1.0 [14:01:43]Method: POST [14:01:43]URL: /json_proto [14:01:43]Method is POST - this is cgi request [14:01:43]url: /json_proto [14:01:43]query_string will be loaded in cgi processing [14:01:43]execute_cgi json_proto POST (null) [14:01:43]execute_cgi path=json_proto method=POST [14:01:43]POST find Content-Length [14:01:43]Host: 172.17.46.196:8080 [14:01:43]Content-Length: 756 [14:01:43]Content-Type: application/json [14:01:43] [14:01:43]POST finish read [14:01:43]Found Content-Length = 756 [14:01:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30014452", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:43]execute_script... [14:01: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)11325405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30014452", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:43]POST & json_proto [14:01:43]process_json_proto [14:01:43]json parsed OK: [14:01:43]protocol is kg_v1.0 [14:01:43]action value=close_receipt [14:01:43]process_action close_receipt [14:01:43]cmd_close_receipt [14:01:43]MH_GetDate [14:01:43]Write to MH i2c: F0 00 00 00 48 37 [14:01:43]Write i2c OK [14:01:43]MH_I2C_Read... [14:01:43]Read from MH i2c: F0 [14:01:43]MH_I2C_Read... [14:01:43]Read from MH i2c: F0 09 00 [14:01:43]MH_I2C_Read... [14:01:43]Read from MH i2c: F0 09 00 00 48 00 CD 5B BF 66 07 E8 5D 66 3F [14:01:43]GetLastDocTimeStamp 1723816547 [14:01:43]current date 1723816909 [14:01:43]FM_GetShiftState [14:01:43]SAM_PROTO_GetShiftState [14:01:43]wFMCommunicate request_size=4 [14:01:43]MH_SAM_APDU [14:01:43]CAPDU: 80 13 01 00 [14:01:43]Write to MH i2c: E2 08 00 01 48 80 13 01 00 00 00 00 00 C6 [14:01:43]Write i2c OK [14:01:43]MH_I2C_Read... [14:01:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:43]Read from MH i2c: E2 [14:01:43]MH_I2C_Read... [14:01:43]Read from MH i2c: E2 0E 00 [14:01:43]MH_I2C_Read... [14:01:43]Read from MH i2c: E2 0E 00 01 48 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 3C [14:01:43]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:01:43]wFMCommunicate OK [14:01:43]SAM_PROTO_GetShiftState done [14:01:43]FM_GetShiftState done [14:01:43]opened in 1723766958 [14:01:43]opened+sec_in_day 1723853358 [14:01:43]quantity*price = 0 [14:01:43]sum+1 = 1 [14:01:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 103 16.08.2024 14:01 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30014452 ФМ: 0000000000871800 ФД: 49455 ФПД: 244049315134701 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T140149&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49455&fm=244049315134701&tin=02508201610067®Number=0000000000092546&sum=0 [14:01:44]StoreToDocumentArchive [14:01:44]shift 464 fd 49455 [14:01:44]save to /storage/0464/doc_00049455 [14:01:44]save last doc name /storage/0464/doc_00049455 to /storage/kkm_last_doc_name [14:01:44]save OK [14:01:44]Clear old archive folders... [14:01:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:01:44]tlvbuf is 00DFA9D0 [14:01:44]SAM_PROTO_ClearQueue [14:01:44]wFMCommunicate request_size=4 [14:01:44]MH_SAM_APDU [14:01:44]CAPDU: 80 09 00 00 [14:01:44]Write to MH i2c: E2 08 00 0E 48 80 09 00 00 00 00 00 00 C8 [14:01:44]Write i2c OK [14:01:44]MH_I2C_Read... [14:01:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:44]Read from MH i2c: E2 [14:01:44]MH_I2C_Read... [14:01:44]Read from MH i2c: E2 03 00 [14:01:44]MH_I2C_Read... [14:01:44]Read from MH i2c: E2 03 00 0E 48 00 90 00 CA [14:01:44]RAPDU: 90 00 [14:01:44]wFMCommunicate OK [14:01:44]SAM_PROTO_ClearQueue done [14:01:44]KKMCreateOFDPacket [14:01:44]OFDProtocolAddRootSTLVToBuf [14:01:44]FM_MakeSignedData [14:01:44]FM_MakeSignedData [14:01:44]SAM_PROTO_SignData [14:01:44]wFMCommunicate request_size=4 [14:01:44]MH_SAM_APDU [14:01:44]CAPDU: 80 0D 01 02 [14:01:44]Write to MH i2c: E2 08 00 0F 48 80 0D 01 02 00 00 00 00 D0 [14:01:44]Write i2c OK [14:01:44]MH_I2C_Read... [14:01:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:44]Read from MH i2c: E2 [14:01:44]MH_I2C_Read... [14:01:44]Read from MH i2c: E2 03 00 [14:01:44]MH_I2C_Read... [14:01:44]Read from MH i2c: E2 03 00 0F 48 00 90 00 CB [14:01:44]RAPDU: 90 00 [14:01:44]wFMCommunicate OK [14:01:44]wFMCommunicate request_size=255 [14:01:44]MH_SAM_APDU [14:01: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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 CD 5B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2F C1 00 00 35 04 06 00 DD [14:01:45]Write to MH i2c: E2 02 01 10 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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 CD 5B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2F C1 00 00 35 04 06 00 DD 00 00 92 [14:01:45]Write i2c OK [14:01:45]MH_I2C_Read... [14:01:45]OFD Sender: No OFD packet to send [14:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:45]Read from MH i2c: E2 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: E2 03 00 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: E2 03 00 10 48 00 90 00 CC [14:01:45]RAPDU: 90 00 [14:01:45]wFMCommunicate OK [14:01:45]wFMCommunicate request_size=10 [14:01:45]MH_SAM_APDU [14:01:45]CAPDU: 80 0D 02 02 05 F6 28 BC 7C ED [14:01:45]Write to MH i2c: E2 0D 00 11 48 80 0D 02 02 05 00 F6 28 BC 7C ED 00 00 20 [14:01:45]Write i2c OK [14:01:45]MH_I2C_Read... [14:01:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:45]Read from MH i2c: E2 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: E2 03 00 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: E2 03 00 11 48 00 90 00 CD [14:01:45]RAPDU: 90 00 [14:01:45]wFMCommunicate OK [14:01:45]wFMCommunicate request_size=4 [14:01:45]MH_SAM_APDU [14:01:45]CAPDU: 80 0D 03 02 [14:01:45]Write to MH i2c: E2 08 00 12 48 80 0D 03 02 00 00 00 00 D5 [14:01:45]Write i2c OK [14:01:45]MH_I2C_Read... [14:01:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:45]Read from MH i2c: E2 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: E2 0B 00 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: E2 0B 00 12 48 00 19 FE 79 C2 25 91 DE 5A 90 00 16 [14:01:45]RAPDU: 19 FE 79 C2 25 91 DE 5A 90 00 [14:01:45]wFMCommunicate OK [14:01:45]SAM_PROTO_SignData done [14:01:45]FM_MakeSignedData done [14:01:45]CreateOFDProtocolMessage [14:01:45]wFMCommunicate request_size=4 [14:01:45]MH_SAM_APDU [14:01:45]CAPDU: 80 11 00 00 [14:01:45]Write to MH i2c: E2 08 00 13 48 80 11 00 00 00 00 00 00 D5 [14:01:45]Write i2c OK [14:01:45]MH_I2C_Read... [14:01:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:45]Read from MH i2c: E2 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: E2 17 00 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: E2 17 00 13 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 20 [14:01:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:01:45]wFMCommunicate OK [14:01:45]CreateOFDProtocolMessage done [14:01:45]OFDSenderStorePacket 49455 [14:01:45]StoreOFDPacket docnum=49455 [14:01:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 8E 9F 07 01 29 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 CD 5B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2F C1 00 00 35 04 06 00 DD F6 28 BC 7C ED 19 FE 79 C2 25 91 DE 5A [14:01:45]CheckFolder [14:01:45]dirname=/storage/ofd_packets [14:01:45]CheckFolder done [14:01:45]ProducePacketName [14:01:45]name=ofd_packets/00049455 [14:01:45]NVStorageSaveData ofd_packets/00049455 [14:01:45]File name is /storage/ofd_packets/00049455 [14:01:45]Write 301 bytes [14:01:45]NVStorageSaveData done [14:01:45]OFDSenderStorePacket done [14:01:45]KKMCreateOFDPacket done [14:01:45]NVStorageSaveData kkm_last_timestamp [14:01:45]File name is /storage/kkm_last_timestamp [14:01:45]Write 4 bytes [14:01:45]NVStorageSaveData done [14:01:45]ExternCall_PrintAddStr [14:01:45]wPrintStart [14:01:45]Write to MH i2c: 01 00 00 14 48 5C [14:01:45]Write i2c OK [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: 01 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: 01 07 00 [14:01:45]MH_I2C_Read... [14:01:45]Read from MH i2c: 01 07 00 14 48 00 00 00 00 00 FF 0F 71 [14:01:45]RasterBufferAndPrint [14:01:45]line Счет N : (1)11325405 [14:01:45]line ИНН: 02508201610067 [14:01:45]line Контрольно-Кассовый Чек [14:01:45]line ПРОДАЖА [14:01:45]line ТРК (МРК, ГНК) : 12 [14:01:45]line Товар: 2710124130 [14:01:45]line Аи-92-К-4 [14:01:45]line 20.000 * 0.00 [14:01:45]line = 0.00 [14:01:45]line НДС 12% НСП 1% [14:01:45]line > о реализуемом товаре [14:01:45]line ИТОГО: 0.00 [14:01:45]line НСП 1% : 0.00 [14:01:45]line НДС 12% : 0.00 [14:01:45]line Наличными: 0.00 [14:01:45]line Безнал.: 0.00 [14:01:45]line Место: АЗС № 95 "Партнер Нефть" [14:01:45]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:01:45]line СНО: Общий режим [14:01:45]line Чек 103 16.08.2024 14:01 [14:01:45]line Смена: 464 ФФД: 1.0 [14:01:45]line ЗНМ: 0300000078 [14:01:45]line РНМ: 0000000000092546 [14:01:45]line Версия ККМ: 001 [14:01:45]line Талоны: ТК ГПНА Online [14:01:45]line 30014452 [14:01:45]line ФМ: 0000000000871800 [14:01:45]line ФД: 49455 [14:01:45]line ФПД: 244049315134701 [14:01:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T140149&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49455&fm=244049315134701&tin=02508201610067®Number=0000000000092546&sum=0 [14:01:45]OFD Sender: Processing packet 49455 [packets to send 21, broken 20] [14:01:45]ProducePacketName [14:01:45]name=ofd_packets/00049455 [14:01:45]OFD Sender: To server: pG, [14:01:45]CommunicateWithHost lk.salyk.kg:30040 [14:01:45]ConnectInit lk.salyk.kg [14:01:45]written 0, free lines is 4095 [14:01:45]Connected sock=10 [14:01:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 8E 9F 07 01 29 A4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 CD 5B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2F C1 00 00 35 04 06 00 DD F6 28 BC 7C ED 19 FE 79 C2 25 91 DE 5A [14:01:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 78 A0 47 00 8C F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 2F C1 00 00 F4 03 04 00 0C 07 BF 66 B6 04 01 00 00 F3 D4 A6 1D FD 20 62 64 [14:01:46]CommunicateWithHost err = 0 [14:01:46]CheckOFDResponse [14:01:46]1017 (14) - 77093643461234 [14:01:46]1041 (16) - 0000000000871800 [14:01:46]1040 (4) - 49455 [14:01:46]1012 (4) - 16.08.2024 08:00 [14:01:46]1206 (1) - 0 [14:01:46]OFD Sender: Remove packet 49455 [14:01:46]ProducePacketName [14:01:46]name=ofd_packets/00049455 [14:01:46]NVStorageDeleteData [14:01:46]Write to MH i2c: 01 00 00 3E 48 86 [14:01:46]Write i2c OK [14:01:46]MH_I2C_Read... [14:01:46]Read from MH i2c: 01 [14:01:46]MH_I2C_Read... [14:01:46]Read from MH i2c: 01 07 00 [14:01:46]MH_I2C_Read... [14:01:46]Read from MH i2c: 01 07 00 3E 48 00 00 00 00 00 E7 0C 80 [14:01:46]RasterBufferAndPrint [14:01:46]line [14:01:46]line [14:01:46]line [14:01:46]line [14:01:46]line [14:01:46]written 0, free lines is 3310 [14:01:46]MH_Cut [14:01:46]Write to MH i2c: D1 01 00 45 48 01 5F [14:01:46]Write i2c OK [14:01:46]MH_I2C_Read... [14:01:46]Read from MH i2c: D1 [14:01:46]MH_I2C_Read... [14:01:46]Read from MH i2c: D1 01 00 [14:01:46]MH_I2C_Read... [14:01:46]Read from MH i2c: D1 01 00 45 48 00 5E [14:01:46]Write to MH i2c: 01 00 00 46 48 8E [14:01:46]Write i2c OK [14:01:46]MH_I2C_Read... [14:01:46]OFD Sender: No OFD packet to send [14:01:46]*** Cut start [14:01:46]*** Purtial cut [14:01:46]*** Stage 1: CUTSNS_PIN = 1 [14:01:47]Read from MH i2c: 01 [14:01:47]MH_I2C_Read... [14:01:47]*** Stop cut motor [14:01:47]*** Cut end [14:01:47]Read from MH i2c: 01 07 00 [14:01:47]MH_I2C_Read... [14:01:47]Read from MH i2c: 01 07 00 46 48 00 00 00 00 00 FF 0F A3 [14:01:47]process_action close_receipt done [14:01:47]requested_data is exist [14:01:47]produce_requested_data [14:01:47]requested_item fm.sn is exist - process it [14:01:47]wFMCommunicate request_size=4 [14:01:47]MH_SAM_APDU [14:01:47]CAPDU: 80 11 00 00 [14:01:47]Write to MH i2c: E2 08 00 47 48 80 11 00 00 00 00 00 00 09 [14:01:47]Write i2c OK [14:01:47]MH_I2C_Read... [14:01:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:47]Read from MH i2c: E2 [14:01:47]MH_I2C_Read... [14:01:47]Read from MH i2c: E2 17 00 [14:01:47]MH_I2C_Read... [14:01:47]Read from MH i2c: E2 17 00 47 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 54 [14:01:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:01:47]wFMCommunicate OK [14:01:47]requested_item fd.num is exist - process it [14:01:47]SAM_PROTO_GetFieldsCounters [14:01:47]wFMCommunicate request_size=4 [14:01:47]MH_SAM_APDU [14:01:47]CAPDU: 80 13 00 00 [14:01:47]Write to MH i2c: E2 08 00 48 48 80 13 00 00 00 00 00 00 0C [14:01:47]Write i2c OK [14:01:47]MH_I2C_Read... [14:01:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:47]Read from MH i2c: E2 [14:01:47]MH_I2C_Read... [14:01:47]Read from MH i2c: E2 62 00 [14:01:47]MH_I2C_Read... [14:01:47]Read from MH i2c: E2 62 00 48 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2F C1 00 00 0E 04 04 00 D0 01 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 1C [14:01:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 2F C1 00 00 0E 04 04 00 D0 01 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 [14:01:47]wFMCommunicate OK [14:01:47]SAM_PROTO_GetFieldsCounters done [14:01:47]requested_item shift.num is exist - process it [14:01:47]requested_item shift.opened is exist - process it [14:01:47]req_shift_opened [14:01:47]FM_GetShiftState [14:01:47]SAM_PROTO_GetShiftState [14:01:47]wFMCommunicate request_size=4 [14:01:47]MH_SAM_APDU [14:01:47]CAPDU: 80 13 01 00 [14:01:47]Write to MH i2c: E2 08 00 49 48 80 13 01 00 00 00 00 00 0E [14:01:47]Write i2c OK [14:01:47]MH_I2C_Read... [14:01:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:47]Read from MH i2c: E2 [14:01:47]MH_I2C_Read... [14:01:47]Read from MH i2c: E2 0E 00 [14:01:47]MH_I2C_Read... [14:01:47]Read from MH i2c: E2 0E 00 49 48 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 84 [14:01:47]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:01:47]wFMCommunicate OK [14:01:47]SAM_PROTO_GetShiftState done [14:01:47]FM_GetShiftState done [14:01:47]req_shift_opened done [14:01:47]requested_item shift.open_date is exist - process it [14:01:47]req_shift_open_date [14:01:47]req_shift_open_date done [14:01:47]produce_requested_data done [14:01:47]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49455,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [14:01:47]process_action_free close_receipt [14:01:47]json_value_free [14:01:47]json_value_free done [14:01:47]process_json_proto returns [14:01:47]Send response to host [14:01:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49455,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [14:01:47]free response buf [14:01:47]execute_script done [14:01:47]execute_script returns [14:01:47]free content buf [14:01:47]Sock 9.Close socket [14:01:47]Sock 9.Thread stoped [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:46]OFD Sender: No OFD packet to send [14:03:51]OFD Sender: No OFD packet to send [14:03:56]OFD Sender: No OFD packet to send [14:04:01]OFD Sender: No OFD packet to send [14:04:06]OFD Sender: No OFD packet to send [14:04:11]OFD Sender: No OFD packet to send [14:04:16]OFD Sender: No OFD packet to send [14:04:21]OFD Sender: No OFD packet to send [14:04:26]OFD Sender: No OFD packet to send [14:04:31]OFD Sender: No OFD packet to send [14:04:36]OFD Sender: No OFD packet to send [14:04:41]OFD Sender: No OFD packet to send [14:04:43]accept exits with 7 [14:04:43]New connection [14:04:43]New thread 3066830180 created [14:04:43]Thread 3066973540 joined [14:04:43]Waiting for new connection... [14:04:43] Sock 7.Parse request [14:04:43]Sock 7.Check first char [14:04:43]Sock 7.First char is OK [14:04:43]request: POST /json_proto HTTP/1.0 [14:04:43]Method: POST [14:04:43]URL: /json_proto [14:04:43]Method is POST - this is cgi request [14:04:43]url: /json_proto [14:04:43]query_string will be loaded in cgi processing [14:04:43]execute_cgi json_proto POST (null) [14:04:43]execute_cgi path=json_proto method=POST [14:04:43]POST find Content-Length [14:04:43]Host: 172.17.46.196:8080 [14:04:43]Content-Length: 756 [14:04:43]Content-Type: application/json [14:04:43] [14:04:43]POST finish read [14:04:43]Found Content-Length = 756 [14:04:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115697", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:43]execute_script... [14:04: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)11325406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115697", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:04:43]POST & json_proto [14:04:43]process_json_proto [14:04:43]json parsed OK: [14:04:43]protocol is kg_v1.0 [14:04:43]action value=close_receipt [14:04:43]process_action close_receipt [14:04:43]cmd_close_receipt [14:04:43]MH_GetDate [14:04:43]Write to MH i2c: F0 00 00 4A 48 81 [14:04:43]Write i2c OK [14:04:43]MH_I2C_Read... [14:04:43]Read from MH i2c: F0 [14:04:43]MH_I2C_Read... [14:04:43]Read from MH i2c: F0 09 00 [14:04:43]MH_I2C_Read... [14:04:43]Read from MH i2c: F0 09 00 4A 48 00 81 5C BF 66 07 E8 5D 66 3E [14:04:43]GetLastDocTimeStamp 1723816909 [14:04:43]current date 1723817089 [14:04:43]FM_GetShiftState [14:04:43]SAM_PROTO_GetShiftState [14:04:43]wFMCommunicate request_size=4 [14:04:43]MH_SAM_APDU [14:04:43]CAPDU: 80 13 01 00 [14:04:43]Write to MH i2c: E2 08 00 4B 48 80 13 01 00 00 00 00 00 10 [14:04:43]Write i2c OK [14:04:43]MH_I2C_Read... [14:04:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:43]Read from MH i2c: E2 [14:04:43]MH_I2C_Read... [14:04:43]Read from MH i2c: E2 0E 00 [14:04:43]MH_I2C_Read... [14:04:43]Read from MH i2c: E2 0E 00 4B 48 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 86 [14:04:43]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:04:43]wFMCommunicate OK [14:04:43]SAM_PROTO_GetShiftState done [14:04:43]FM_GetShiftState done [14:04:43]opened in 1723766958 [14:04:43]opened+sec_in_day 1723853358 [14:04:43]quantity*price = 0 [14:04:43]sum+1 = 1 [14:04:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 104 16.08.2024 14:04 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30115697 ФМ: 0000000000871800 ФД: 49456 ФПД: 2940794814741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T140449&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49456&fm=2940794814741&tin=02508201610067®Number=0000000000092546&sum=0 [14:04:44]StoreToDocumentArchive [14:04:44]shift 464 fd 49456 [14:04:44]save to /storage/0464/doc_00049456 [14:04:44]save last doc name /storage/0464/doc_00049456 to /storage/kkm_last_doc_name [14:04:44]save OK [14:04:44]Clear old archive folders... [14:04:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:04:44]tlvbuf is 00DE9FA0 [14:04:44]SAM_PROTO_ClearQueue [14:04:44]wFMCommunicate request_size=4 [14:04:44]MH_SAM_APDU [14:04:44]CAPDU: 80 09 00 00 [14:04:44]Write to MH i2c: E2 08 00 58 48 80 09 00 00 00 00 00 00 12 [14:04:44]Write i2c OK [14:04:44]MH_I2C_Read... [14:04:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:04:44]Read from MH i2c: E2 [14:04:44]MH_I2C_Read... [14:04:44]Read from MH i2c: E2 03 00 [14:04:44]MH_I2C_Read... [14:04:44]Read from MH i2c: E2 03 00 58 48 00 90 00 14 [14:04:44]RAPDU: 90 00 [14:04:44]wFMCommunicate OK [14:04:44]SAM_PROTO_ClearQueue done [14:04:44]KKMCreateOFDPacket [14:04:44]OFDProtocolAddRootSTLVToBuf [14:04:44]FM_MakeSignedData [14:04:44]FM_MakeSignedData [14:04:44]SAM_PROTO_SignData [14:04:44]wFMCommunicate request_size=4 [14:04:44]MH_SAM_APDU [14:04:44]CAPDU: 80 0D 01 02 [14:04:44]Write to MH i2c: E2 08 00 59 48 80 0D 01 02 00 00 00 00 1A [14:04:44]Write i2c OK [14:04:44]MH_I2C_Read... [14:04:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:04:45]Read from MH i2c: E2 [14:04:45]MH_I2C_Read... [14:04:45]Read from MH i2c: E2 03 00 [14:04:45]MH_I2C_Read... [14:04:45]Read from MH i2c: E2 03 00 59 48 00 90 00 15 [14:04:45]RAPDU: 90 00 [14:04:45]wFMCommunicate OK [14:04:45]wFMCommunicate request_size=255 [14:04:45]MH_SAM_APDU [14:04: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 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 81 5C BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 30 C1 00 00 35 04 06 00 02 [14:04:45]Write to MH i2c: E2 02 01 5A 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 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 81 5C BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 30 C1 00 00 35 04 06 00 02 00 00 26 [14:04:45]Write i2c OK [14:04:45]MH_I2C_Read... [14:04:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:45]Read from MH i2c: E2 [14:04:45]MH_I2C_Read... [14:04:45]Read from MH i2c: E2 03 00 [14:04:45]MH_I2C_Read... [14:04:45]Read from MH i2c: E2 03 00 5A 48 00 90 00 16 [14:04:45]RAPDU: 90 00 [14:04:45]wFMCommunicate OK [14:04:45]wFMCommunicate request_size=10 [14:04:45]MH_SAM_APDU [14:04:45]CAPDU: 80 0D 02 02 05 AC B5 07 C1 15 [14:04:45]Write to MH i2c: E2 0D 00 5B 48 80 0D 02 02 05 00 AC B5 07 C1 15 00 00 65 [14:04:45]Write i2c OK [14:04:45]MH_I2C_Read... [14:04:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:04:45]Read from MH i2c: E2 [14:04:45]MH_I2C_Read... [14:04:45]Read from MH i2c: E2 03 00 [14:04:45]MH_I2C_Read... [14:04:45]Read from MH i2c: E2 03 00 5B 48 00 90 00 17 [14:04:45]RAPDU: 90 00 [14:04:45]wFMCommunicate OK [14:04:45]wFMCommunicate request_size=4 [14:04:45]MH_SAM_APDU [14:04:45]CAPDU: 80 0D 03 02 [14:04:45]Write to MH i2c: E2 08 00 5C 48 80 0D 03 02 00 00 00 00 1F [14:04:45]Write i2c OK [14:04:45]MH_I2C_Read... [14:04:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:04:45]Read from MH i2c: E2 [14:04:45]MH_I2C_Read... [14:04:45]Read from MH i2c: E2 0B 00 [14:04:45]MH_I2C_Read... [14:04:45]Read from MH i2c: E2 0B 00 5C 48 00 85 59 45 A3 67 24 D3 82 90 00 C6 [14:04:45]RAPDU: 85 59 45 A3 67 24 D3 82 90 00 [14:04:45]wFMCommunicate OK [14:04:45]SAM_PROTO_SignData done [14:04:45]FM_MakeSignedData done [14:04:45]CreateOFDProtocolMessage [14:04:45]wFMCommunicate request_size=4 [14:04:45]MH_SAM_APDU [14:04:45]CAPDU: 80 11 00 00 [14:04:45]Write to MH i2c: E2 08 00 5D 48 80 11 00 00 00 00 00 00 1F [14:04:45]Write i2c OK [14:04:45]MH_I2C_Read... [14:04:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:45]Read from MH i2c: E2 [14:04:45]MH_I2C_Read... [14:04:45]Read from MH i2c: E2 17 00 [14:04:45]MH_I2C_Read... [14:04:45]Read from MH i2c: E2 17 00 5D 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6A [14:04:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:04:45]wFMCommunicate OK [14:04:45]CreateOFDProtocolMessage done [14:04:45]OFDSenderStorePacket 49456 [14:04:45]StoreOFDPacket docnum=49456 [14:04:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 C1 62 07 01 62 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 81 5C BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 30 C1 00 00 35 04 06 00 02 AC B5 07 C1 15 85 59 45 A3 67 24 D3 82 [14:04:45]CheckFolder [14:04:45]dirname=/storage/ofd_packets [14:04:45]CheckFolder done [14:04:45]ProducePacketName [14:04:45]name=ofd_packets/00049456 [14:04:45]NVStorageSaveData ofd_packets/00049456 [14:04:45]File name is /storage/ofd_packets/00049456 [14:04:45]Write 301 bytes [14:04:45]NVStorageSaveData done [14:04:45]OFDSenderStorePacket done [14:04:45]KKMCreateOFDPacket done [14:04:45]NVStorageSaveData kkm_last_timestamp [14:04:45]File name is /storage/kkm_last_timestamp [14:04:45]Write 4 bytes [14:04:45]NVStorageSaveData done [14:04:45]ExternCall_PrintAddStr [14:04:45]wPrintStart [14:04:45]Write to MH i2c: 01 00 00 5E 48 A6 [14:04:45]Write i2c OK [14:04:45]MH_I2C_Read... [14:04:45]Read from MH i2c: 01 [14:04:45]MH_I2C_Read... [14:04:45]Read from MH i2c: 01 07 00 [14:04:45]MH_I2C_Read... [14:04:45]Read from MH i2c: 01 07 00 5E 48 00 00 00 00 00 FF 0F BB [14:04:45]RasterBufferAndPrint [14:04:45]line Счет N : (1)11325406 [14:04:45]line ИНН: 02508201610067 [14:04:45]line Контрольно-Кассовый Чек [14:04:45]line ПРОДАЖА [14:04:45]line ТРК (МРК, ГНК) : 32 [14:04:45]line Товар: 2710124130 [14:04:45]line Аи-92-К-4 [14:04:45]line 40.000 * 0.00 [14:04:45]line = 0.00 [14:04:45]line НДС 12% НСП 1% [14:04:45]line > о реализуемом товаре [14:04:45]line ИТОГО: 0.00 [14:04:45]line НСП 1% : 0.00 [14:04:45]line НДС 12% : 0.00 [14:04:45]line Наличными: 0.00 [14:04:45]line Безнал.: 0.00 [14:04:45]line Место: АЗС № 95 "Партнер Нефть" [14:04:45]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:04:45]line СНО: Общий режим [14:04:45]line Чек 104 16.08.2024 14:04 [14:04:45]line Смена: 464 ФФД: 1.0 [14:04:45]line ЗНМ: 0300000078 [14:04:45]line РНМ: 0000000000092546 [14:04:45]line Версия ККМ: 001 [14:04:45]line Талоны: ТК ГПНА Online [14:04:45]line 30115697 [14:04:45]line ФМ: 0000000000871800 [14:04:45]line ФД: 49456 [14:04:45]line ФПД: 2940794814741 [14:04:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T140449&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49456&fm=2940794814741&tin=02508201610067®Number=0000000000092546&sum=0 [14:04:45]written 0, free lines is 4095 [14:04:45]OFD Sender: Processing packet 49456 [packets to send 21, broken 20] [14:04:45]ProducePacketName [14:04:45]name=ofd_packets/00049456 [14:04:45]OFD Sender: To server: pG, [14:04:45]CommunicateWithHost lk.salyk.kg:30040 [14:04:45]ConnectInit lk.salyk.kg [14:04:45]Connected sock=10 [14:04:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 C1 62 07 01 62 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 81 5C BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 30 C1 00 00 35 04 06 00 02 AC B5 07 C1 15 85 59 45 A3 67 24 D3 82 [14:04:46]Write to MH i2c: 01 00 00 88 48 D0 [14:04:46]Write i2c OK [14:04:46]MH_I2C_Read... [14:04:46]Read from MH i2c: 01 [14:04:46]MH_I2C_Read... [14:04:46]Read from MH i2c: 01 07 00 [14:04:46]MH_I2C_Read... [14:04:46]Read from MH i2c: 01 07 00 88 48 00 00 00 00 00 CB 0C AE [14:04:46]RasterBufferAndPrint [14:04:46]line [14:04:46]line [14:04:46]line [14:04:46]line [14:04:46]line [14:04:46]written 0, free lines is 3282 [14:04:46]MH_Cut [14:04:46]Write to MH i2c: D1 01 00 8F 48 01 A9 [14:04:46]Write i2c OK [14:04:46]MH_I2C_Read... [14:04:46]Read from MH i2c: D1 [14:04:46]MH_I2C_Read... [14:04:46]Read from MH i2c: D1 01 00 [14:04:46]MH_I2C_Read... [14:04:46]Read from MH i2c: D1 01 00 8F 48 00 A8 [14:04:46]Write to MH i2c: 01 00 00 90 48 D8 [14:04:46]Write i2c OK [14:04:46]MH_I2C_Read... [14:04:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 87 12 47 00 77 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 30 C1 00 00 F4 03 04 00 C0 07 BF 66 B6 04 01 00 00 8F 82 10 31 D7 2D 40 0D [14:04:46]CommunicateWithHost err = 0 [14:04:46]CheckOFDResponse [14:04:46]1017 (14) - 77093643461234 [14:04:46]1041 (16) - 0000000000871800 [14:04:46]1040 (4) - 49456 [14:04:46]1012 (4) - 16.08.2024 08:03 [14:04:46]1206 (1) - 0 [14:04:46]OFD Sender: Remove packet 49456 [14:04:46]ProducePacketName [14:04:46]name=ofd_packets/00049456 [14:04:46]NVStorageDeleteData [14:04:46]OFD Sender: No OFD packet to send [14:04:46]*** Cut start [14:04:46]*** Purtial cut [14:04:46]*** CUTSNS_PIN = 0 [14:04:47]*** Stage 1: CUTSNS_PIN = 1 [14:04:49]Read from MH i2c: 01 [14:04:49]MH_I2C_Read... [14:04:49]*** Stop cut motor [14:04:49]*** Cut end [14:04:49]Read from MH i2c: 01 07 00 [14:04:49]MH_I2C_Read... [14:04:49]Read from MH i2c: 01 07 00 90 48 00 00 00 00 00 FF 0F ED [14:04:49]process_action close_receipt done [14:04:49]requested_data is exist [14:04:49]produce_requested_data [14:04:49]requested_item fm.sn is exist - process it [14:04:49]wFMCommunicate request_size=4 [14:04:49]MH_SAM_APDU [14:04:49]CAPDU: 80 11 00 00 [14:04:49]Write to MH i2c: E2 08 00 91 48 80 11 00 00 00 00 00 00 53 [14:04:49]Write i2c OK [14:04:49]MH_I2C_Read... [14:04:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:04:49]Read from MH i2c: E2 [14:04:49]MH_I2C_Read... [14:04:49]Read from MH i2c: E2 17 00 [14:04:49]MH_I2C_Read... [14:04:49]Read from MH i2c: E2 17 00 91 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9E [14:04:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:04:49]wFMCommunicate OK [14:04:49]requested_item fd.num is exist - process it [14:04:49]SAM_PROTO_GetFieldsCounters [14:04:49]wFMCommunicate request_size=4 [14:04:49]MH_SAM_APDU [14:04:49]CAPDU: 80 13 00 00 [14:04:49]Write to MH i2c: E2 08 00 92 48 80 13 00 00 00 00 00 00 56 [14:04:49]Write i2c OK [14:04:49]MH_I2C_Read... [14:04:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:04:49]Read from MH i2c: E2 [14:04:49]MH_I2C_Read... [14:04:49]Read from MH i2c: E2 62 00 [14:04:49]MH_I2C_Read... [14:04:49]Read from MH i2c: E2 62 00 92 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 30 C1 00 00 0E 04 04 00 D0 01 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 6A [14:04:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 30 C1 00 00 0E 04 04 00 D0 01 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 [14:04:49]wFMCommunicate OK [14:04:49]SAM_PROTO_GetFieldsCounters done [14:04:49]requested_item shift.num is exist - process it [14:04:49]requested_item shift.opened is exist - process it [14:04:49]req_shift_opened [14:04:49]FM_GetShiftState [14:04:49]SAM_PROTO_GetShiftState [14:04:49]wFMCommunicate request_size=4 [14:04:49]MH_SAM_APDU [14:04:49]CAPDU: 80 13 01 00 [14:04:49]Write to MH i2c: E2 08 00 93 48 80 13 01 00 00 00 00 00 58 [14:04:49]Write i2c OK [14:04:49]MH_I2C_Read... [14:04:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:04:49]Read from MH i2c: E2 [14:04:49]MH_I2C_Read... [14:04:49]Read from MH i2c: E2 0E 00 [14:04:49]MH_I2C_Read... [14:04:49]Read from MH i2c: E2 0E 00 93 48 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 CE [14:04:49]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:04:49]wFMCommunicate OK [14:04:49]SAM_PROTO_GetShiftState done [14:04:49]FM_GetShiftState done [14:04:49]req_shift_opened done [14:04:49]requested_item shift.open_date is exist - process it [14:04:49]req_shift_open_date [14:04:49]req_shift_open_date done [14:04:49]produce_requested_data done [14:04:49]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49456,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [14:04:49]process_action_free close_receipt [14:04:49]json_value_free [14:04:49]json_value_free done [14:04:49]process_json_proto returns [14:04:49]Send response to host [14:04:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49456,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [14:04:49]free response buf [14:04:49]execute_script done [14:04:49]execute_script returns [14:04:49]free content buf [14:04:49]Sock 7.Close socket [14:04:49]Sock 7.Thread stoped [14:04:51]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:01]OFD Sender: No OFD packet to send [14:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]OFD Sender: No OFD packet to send [14:05:46]OFD Sender: No OFD packet to send [14:05:51]OFD Sender: No OFD packet to send [14:05:56]OFD Sender: No OFD packet to send [14:06:01]OFD Sender: No OFD packet to send [14:06:06]OFD Sender: No OFD packet to send [14:06:11]OFD Sender: No OFD packet to send [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]accept exits with 9 [14:06:36]New connection [14:06:36]New thread 3066973540 created [14:06:36]Thread 3066830180 joined [14:06:36]Waiting for new connection... [14:06:36] Sock 9.Parse request [14:06:36]Sock 9.Check first char [14:06:36]Sock 9.First char is OK [14:06:36]request: POST /json_proto HTTP/1.0 [14:06:36]Method: POST [14:06:36]URL: /json_proto [14:06:36]Method is POST - this is cgi request [14:06:36]url: /json_proto [14:06:36]query_string will be loaded in cgi processing [14:06:36]execute_cgi json_proto POST (null) [14:06:36]execute_cgi path=json_proto method=POST [14:06:36]POST find Content-Length [14:06:36]Host: 172.17.46.196:8080 [14:06:36]Content-Length: 632 [14:06:36]Content-Type: application/json [14:06:36] [14:06:36]POST finish read [14:06:36]Found Content-Length = 632 [14:06:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189672", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:36]execute_script... [14:06: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 : (3)189672", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:36]POST & json_proto [14:06:36]process_json_proto [14:06:36]json parsed OK: [14:06:36]protocol is kg_v1.0 [14:06:36]action value=close_receipt [14:06:36]process_action close_receipt [14:06:36]cmd_close_receipt [14:06:36]MH_GetDate [14:06:36]Write to MH i2c: F0 00 00 94 48 CB [14:06:36]Write i2c OK [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: F0 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: F0 09 00 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: F0 09 00 94 48 00 F2 5C BF 66 07 E8 5D 66 F9 [14:06:36]GetLastDocTimeStamp 1723817089 [14:06:36]current date 1723817202 [14:06:36]FM_GetShiftState [14:06:36]SAM_PROTO_GetShiftState [14:06:36]wFMCommunicate request_size=4 [14:06:36]MH_SAM_APDU [14:06:36]CAPDU: 80 13 01 00 [14:06:36]Write to MH i2c: E2 08 00 95 48 80 13 01 00 00 00 00 00 5A [14:06:36]Write i2c OK [14:06:36]MH_I2C_Read... [14:06:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:36]Read from MH i2c: E2 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 0E 00 [14:06:36]MH_I2C_Read... [14:06:36]Read from MH i2c: E2 0E 00 95 48 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 D0 [14:06:36]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:06:36]wFMCommunicate OK [14:06:36]SAM_PROTO_GetShiftState done [14:06:36]FM_GetShiftState done [14:06:36]opened in 1723766958 [14:06:36]opened+sec_in_day 1723853358 [14:06:36]quantity*price = 10000 [14:06:36]sum+1 = 10001 [14:06:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 105 16.08.2024 14:06 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49457 ФПД: 215763033722752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T140642&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49457&fm=215763033722752&tin=02508201610067®Number=0000000000092546&sum=10000 0 [14:06:37]StoreToDocumentArchive [14:06:37]shift 464 fd 49457 [14:06:37]save to /storage/0464/doc_00049457 [14:06:37]save last doc name /storage/0464/doc_00049457 to /storage/kkm_last_doc_name [14:06:37]save OK [14:06:37]Clear old archive folders... [14:06:37]ProcessDocumentItem done err = 0, tmpTLVsize=269 [14:06:37]tlvbuf is 00DE9FF0 [14:06:37]SAM_PROTO_ClearQueue [14:06:37]wFMCommunicate request_size=4 [14:06:37]MH_SAM_APDU [14:06:37]CAPDU: 80 09 00 00 [14:06:37]Write to MH i2c: E2 08 00 A2 48 80 09 00 00 00 00 00 00 5C [14:06:37]Write i2c OK [14:06:37]MH_I2C_Read... [14:06:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:37]Read from MH i2c: E2 [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: E2 03 00 [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: E2 03 00 A2 48 00 90 00 5E [14:06:37]RAPDU: 90 00 [14:06:37]wFMCommunicate OK [14:06:37]SAM_PROTO_ClearQueue done [14:06:37]KKMCreateOFDPacket [14:06:37]OFDProtocolAddRootSTLVToBuf [14:06:37]FM_MakeSignedData [14:06:37]FM_MakeSignedData [14:06:37]SAM_PROTO_SignData [14:06:37]wFMCommunicate request_size=4 [14:06:37]MH_SAM_APDU [14:06:37]CAPDU: 80 0D 01 02 [14:06:37]Write to MH i2c: E2 08 00 A3 48 80 0D 01 02 00 00 00 00 64 [14:06:37]Write i2c OK [14:06:37]MH_I2C_Read... [14:06:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:37]Read from MH i2c: E2 [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: E2 03 00 [14:06:37]MH_I2C_Read... [14:06:37]Read from MH i2c: E2 03 00 A3 48 00 90 00 5F [14:06:37]RAPDU: 90 00 [14:06:37]wFMCommunicate OK [14:06:37]wFMCommunicate request_size=255 [14:06:37]MH_SAM_APDU [14:06:37]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F2 5C BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [14:06:37]Write to MH i2c: E2 02 01 A4 48 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F2 5C BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 2A [14:06:37]Write i2c OK [14:06:37]MH_I2C_Read... [14:06:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:38]Read from MH i2c: E2 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: E2 03 00 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: E2 03 00 A4 48 00 90 00 60 [14:06:38]RAPDU: 90 00 [14:06:38]wFMCommunicate OK [14:06:38]wFMCommunicate request_size=28 [14:06:38]MH_SAM_APDU [14:06:38]CAPDU: 80 0D 02 02 17 37 31 38 30 30 10 04 04 00 31 C1 00 00 35 04 06 00 C4 3C 3E FB 0F 80 [14:06:38]Write to MH i2c: E2 1F 00 A5 48 80 0D 02 02 17 00 37 31 38 30 30 10 04 04 00 31 C1 00 00 35 04 06 00 C4 3C 3E FB 0F 80 00 00 A6 [14:06:38]Write i2c OK [14:06:38]MH_I2C_Read... [14:06:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:38]Read from MH i2c: E2 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: E2 03 00 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: E2 03 00 A5 48 00 90 00 61 [14:06:38]RAPDU: 90 00 [14:06:38]wFMCommunicate OK [14:06:38]wFMCommunicate request_size=4 [14:06:38]MH_SAM_APDU [14:06:38]CAPDU: 80 0D 03 02 [14:06:38]Write to MH i2c: E2 08 00 A6 48 80 0D 03 02 00 00 00 00 69 [14:06:38]Write i2c OK [14:06:38]MH_I2C_Read... [14:06:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:38]Read from MH i2c: E2 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: E2 0B 00 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: E2 0B 00 A6 48 00 DA 79 0A BF A6 5C 5C 97 90 00 7B [14:06:38]RAPDU: DA 79 0A BF A6 5C 5C 97 90 00 [14:06:38]wFMCommunicate OK [14:06:38]SAM_PROTO_SignData done [14:06:38]FM_MakeSignedData done [14:06:38]CreateOFDProtocolMessage [14:06:38]wFMCommunicate request_size=4 [14:06:38]MH_SAM_APDU [14:06:38]CAPDU: 80 11 00 00 [14:06:38]Write to MH i2c: E2 08 00 A7 48 80 11 00 00 00 00 00 00 69 [14:06:38]Write i2c OK [14:06:38]MH_I2C_Read... [14:06:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:38]Read from MH i2c: E2 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: E2 17 00 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: E2 17 00 A7 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B4 [14:06:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:06:38]wFMCommunicate OK [14:06:38]CreateOFDProtocolMessage done [14:06:38]OFDSenderStorePacket 49457 [14:06:38]StoreOFDPacket docnum=49457 [14:06:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 3A 95 19 01 40 D0 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F2 5C BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 31 C1 00 00 35 04 06 00 C4 3C 3E FB 0F 80 DA 79 0A BF A6 5C 5C 97 [14:06:38]CheckFolder [14:06:38]dirname=/storage/ofd_packets [14:06:38]CheckFolder done [14:06:38]ProducePacketName [14:06:38]name=ofd_packets/00049457 [14:06:38]NVStorageSaveData ofd_packets/00049457 [14:06:38]File name is /storage/ofd_packets/00049457 [14:06:38]Write 319 bytes [14:06:38]NVStorageSaveData done [14:06:38]OFDSenderStorePacket done [14:06:38]KKMCreateOFDPacket done [14:06:38]NVStorageSaveData kkm_last_timestamp [14:06:38]File name is /storage/kkm_last_timestamp [14:06:38]Write 4 bytes [14:06:38]NVStorageSaveData done [14:06:38]ExternCall_PrintAddStr [14:06:38]wPrintStart [14:06:38]Write to MH i2c: 01 00 00 A8 48 F0 [14:06:38]Write i2c OK [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: 01 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: 01 07 00 [14:06:38]MH_I2C_Read... [14:06:38]Read from MH i2c: 01 07 00 A8 48 00 00 00 00 00 FF 0F 05 [14:06:38]RasterBufferAndPrint [14:06:38]line Счет N : (3)189672 [14:06:38]line ИНН: 02508201610067 [14:06:38]line Контрольно-Кассовый Чек [14:06:38]line ПРОДАЖА [14:06:38]line Товар: 4700000160358 [14:06:38]line Вода Легенда 1л [14:06:38]line 2.000 * 50.00 [14:06:38]line = 100.00 [14:06:38]line НДС 12% НСП 1% [14:06:38]line > о реализуемом товаре [14:06:38]line ИТОГО: 100.00 [14:06:38]line НСП 1% : 0.88 [14:06:38]line НДС 12% : 10.62 [14:06:38]line Наличными: 100.00 [14:06:38]line Безнал.: 0.00 [14:06:38]line Место: АЗС № 95 "Партнер Нефть" [14:06:38]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:06:38]line СНО: Общий режим [14:06:38]line Чек 105 16.08.2024 14:06 [14:06:38]line Смена: 464 ФФД: 1.0 [14:06:38]line ЗНМ: 0300000078 [14:06:38]line РНМ: 0000000000092546 [14:06:38]line Версия ККМ: 001 [14:06:38]line ФМ: 0000000000871800 [14:06:38]line ФД: 49457 [14:06:38]line ФПД: 215763033722752 [14:06:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T140642&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49457&fm=215763033722752&tin=02508201610067®Number=0000000000092546&sum=10000 [14:06:38]OFD Sender: Processing packet 49457 [packets to send 21, broken 20] [14:06:38]ProducePacketName [14:06:38]name=ofd_packets/00049457 [14:06:38]OFD Sender: To server: pG, [14:06:38]CommunicateWithHost lk.salyk.kg:30040 [14:06:38]ConnectInit lk.salyk.kg [14:06:38]line 0 [14:06:38]written 0, free lines is 4095 [14:06:38]Connected sock=11 [14:06:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 3A 95 19 01 40 D0 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 F2 5C BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 31 C1 00 00 35 04 06 00 C4 3C 3E FB 0F 80 DA 79 0A BF A6 5C 5C 97 [14:06:39]Write to MH i2c: 01 00 00 D0 48 18 [14:06:39]Write i2c OK [14:06:39]MH_I2C_Read... [14:06:39]Read from MH i2c: 01 [14:06:39]MH_I2C_Read... [14:06:39]Read from MH i2c: 01 07 00 [14:06:39]MH_I2C_Read... [14:06:39]Read from MH i2c: 01 07 00 D0 48 00 00 00 00 00 EC 0C 17 [14:06:39]RasterBufferAndPrint [14:06:39]line [14:06:39]line [14:06:39]line [14:06:39]line [14:06:39]line [14:06:39]written 0, free lines is 3314 [14:06:39]MH_Cut [14:06:39]Write to MH i2c: D1 01 00 D7 48 01 F1 [14:06:39]Write i2c OK [14:06:39]MH_I2C_Read... [14:06:39]Read from MH i2c: D1 [14:06:39]MH_I2C_Read... [14:06:39]Read from MH i2c: D1 01 00 [14:06:39]MH_I2C_Read... [14:06:39]Read from MH i2c: D1 01 00 D7 48 00 F0 [14:06:39]Write to MH i2c: 01 00 00 D8 48 20 [14:06:39]Write i2c OK [14:06:39]MH_I2C_Read... [14:06:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 5C AC 47 00 B1 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 31 C1 00 00 F4 03 04 00 31 08 BF 66 B6 04 01 00 00 82 72 8F 3F D4 A7 2F 80 [14:06:39]CommunicateWithHost err = 0 [14:06:39]CheckOFDResponse [14:06:39]1017 (14) - 77093643461234 [14:06:39]1041 (16) - 0000000000871800 [14:06:39]1040 (4) - 49457 [14:06:39]1012 (4) - 16.08.2024 08:05 [14:06:39]1206 (1) - 0 [14:06:39]OFD Sender: Remove packet 49457 [14:06:39]ProducePacketName [14:06:39]name=ofd_packets/00049457 [14:06:39]NVStorageDeleteData [14:06:39]OFD Sender: No OFD packet to send [14:06:39]*** Cut start [14:06:39]*** Purtial cut [14:06:39]*** Stage 1: CUTSNS_PIN = 1 [14:06:40]Read from MH i2c: 01 [14:06:40]MH_I2C_Read... [14:06:40]*** Stop cut motor [14:06:40]*** Cut end [14:06:40]Read from MH i2c: 01 07 00 [14:06:40]MH_I2C_Read... [14:06:40]Read from MH i2c: 01 07 00 D8 48 00 00 00 00 00 FF 0F 35 [14:06:40]process_action close_receipt done [14:06:40]requested_data is exist [14:06:40]produce_requested_data [14:06:40]requested_item fm.sn is exist - process it [14:06:40]wFMCommunicate request_size=4 [14:06:40]MH_SAM_APDU [14:06:40]CAPDU: 80 11 00 00 [14:06:40]Write to MH i2c: E2 08 00 D9 48 80 11 00 00 00 00 00 00 9B [14:06:40]Write i2c OK [14:06:40]MH_I2C_Read... [14:06:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:40]Read from MH i2c: E2 [14:06:40]MH_I2C_Read... [14:06:40]Read from MH i2c: E2 17 00 [14:06:40]MH_I2C_Read... [14:06:40]Read from MH i2c: E2 17 00 D9 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E6 [14:06:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:06:40]wFMCommunicate OK [14:06:40]requested_item fd.num is exist - process it [14:06:40]SAM_PROTO_GetFieldsCounters [14:06:40]wFMCommunicate request_size=4 [14:06:40]MH_SAM_APDU [14:06:40]CAPDU: 80 13 00 00 [14:06:40]Write to MH i2c: E2 08 00 DA 48 80 13 00 00 00 00 00 00 9E [14:06:40]Write i2c OK [14:06:40]MH_I2C_Read... [14:06:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:40]Read from MH i2c: E2 [14:06:40]MH_I2C_Read... [14:06:40]Read from MH i2c: E2 62 00 [14:06:40]MH_I2C_Read... [14:06:40]Read from MH i2c: E2 62 00 DA 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 31 C1 00 00 0E 04 04 00 D0 01 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 B6 [14:06:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 31 C1 00 00 0E 04 04 00 D0 01 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 [14:06:40]wFMCommunicate OK [14:06:40]SAM_PROTO_GetFieldsCounters done [14:06:40]requested_item shift.num is exist - process it [14:06:40]requested_item shift.opened is exist - process it [14:06:40]req_shift_opened [14:06:40]FM_GetShiftState [14:06:40]SAM_PROTO_GetShiftState [14:06:40]wFMCommunicate request_size=4 [14:06:40]MH_SAM_APDU [14:06:40]CAPDU: 80 13 01 00 [14:06:40]Write to MH i2c: E2 08 00 DB 48 80 13 01 00 00 00 00 00 A0 [14:06:40]Write i2c OK [14:06:40]MH_I2C_Read... [14:06:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:40]Read from MH i2c: E2 [14:06:40]MH_I2C_Read... [14:06:40]Read from MH i2c: E2 0E 00 [14:06:40]MH_I2C_Read... [14:06:40]Read from MH i2c: E2 0E 00 DB 48 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 16 [14:06:40]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:06:40]wFMCommunicate OK [14:06:40]SAM_PROTO_GetShiftState done [14:06:40]FM_GetShiftState done [14:06:40]req_shift_opened done [14:06:40]requested_item shift.open_date is exist - process it [14:06:40]req_shift_open_date [14:06:40]req_shift_open_date done [14:06:40]produce_requested_data done [14:06:40]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49457,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [14:06:40]process_action_free close_receipt [14:06:40]json_value_free [14:06:40]json_value_free done [14:06:40]process_json_proto returns [14:06:40]Send response to host [14:06:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49457,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [14:06:40]free response buf [14:06:40]execute_script done [14:06:40]execute_script returns [14:06:40]free content buf [14:06:40]Sock 9.Close socket [14:06:40]Sock 9.Thread stoped [14:06:44]OFD Sender: No OFD packet to send [14:06:49]OFD Sender: No OFD packet to send [14:06:54]OFD Sender: No OFD packet to send [14:06:59]OFD Sender: No OFD packet to send [14:07:04]OFD Sender: No OFD packet to send [14:07:09]OFD Sender: No OFD packet to send [14:07:14]OFD Sender: No OFD packet to send [14:07:19]OFD Sender: No OFD packet to send [14:07:24]OFD Sender: No OFD packet to send [14:07:29]OFD Sender: No OFD packet to send [14:07:34]OFD Sender: No OFD packet to send [14:07:39]OFD Sender: No OFD packet to send [14:07:44]OFD Sender: No OFD packet to send [14:07:49]OFD Sender: No OFD packet to send [14:07:54]OFD Sender: No OFD packet to send [14:07:59]OFD Sender: No OFD packet to send [14:08:04]OFD Sender: No OFD packet to send [14:08:09]OFD Sender: No OFD packet to send [14:08:14]OFD Sender: No OFD packet to send [14:08:19]OFD Sender: No OFD packet to send [14:08:24]OFD Sender: No OFD packet to send [14:08:29]OFD Sender: No OFD packet to send [14:08:34]OFD Sender: No OFD packet to send [14:08:37]accept exits with 7 [14:08:37]New connection [14:08:37]New thread 3066830180 created [14:08:37]Thread 3066973540 joined [14:08:37]Waiting for new connection... [14:08:37] Sock 7.Parse request [14:08:37]Sock 7.Check first char [14:08:37]Sock 7.First char is OK [14:08:37]request: POST /json_proto HTTP/1.0 [14:08:37]Method: POST [14:08:37]URL: /json_proto [14:08:37]Method is POST - this is cgi request [14:08:37]url: /json_proto [14:08:37]query_string will be loaded in cgi processing [14:08:37]execute_cgi json_proto POST (null) [14:08:37]execute_cgi path=json_proto method=POST [14:08:37]POST find Content-Length [14:08:37]Host: 172.17.46.196:8080 [14:08:37]Content-Length: 756 [14:08:37]Content-Type: application/json [14:08:37] [14:08:37]POST finish read [14:08:37]Found Content-Length = 756 [14:08:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30040432", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:37]execute_script... [14:08: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)11325409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30040432", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:08:37]POST & json_proto [14:08:37]process_json_proto [14:08:37]json parsed OK: [14:08:37]protocol is kg_v1.0 [14:08:37]action value=close_receipt [14:08:37]process_action close_receipt [14:08:37]cmd_close_receipt [14:08:37]MH_GetDate [14:08:37]Write to MH i2c: F0 00 00 DC 48 13 [14:08:37]Write i2c OK [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: F0 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: F0 09 00 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: F0 09 00 DC 48 00 6B 5D BF 66 07 E8 5D 66 BB [14:08:37]GetLastDocTimeStamp 1723817202 [14:08:37]current date 1723817323 [14:08:37]FM_GetShiftState [14:08:37]SAM_PROTO_GetShiftState [14:08:37]wFMCommunicate request_size=4 [14:08:37]MH_SAM_APDU [14:08:37]CAPDU: 80 13 01 00 [14:08:37]Write to MH i2c: E2 08 00 DD 48 80 13 01 00 00 00 00 00 A2 [14:08:37]Write i2c OK [14:08:37]MH_I2C_Read... [14:08:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:37]Read from MH i2c: E2 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 0E 00 [14:08:37]MH_I2C_Read... [14:08:37]Read from MH i2c: E2 0E 00 DD 48 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 18 [14:08:37]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:08:37]wFMCommunicate OK [14:08:37]SAM_PROTO_GetShiftState done [14:08:37]FM_GetShiftState done [14:08:37]opened in 1723766958 [14:08:37]opened+sec_in_day 1723853358 [14:08:37]quantity*price = 0 [14:08:37]sum+1 = 1 [14:08:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 106 16.08.2024 14:08 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30040432 ФМ: 0000000000871800 ФД: 49458 ФПД: 182342349145344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T140843&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49458&fm=182342349145344&tin=02508201610067®Number=0000000000092546&sum=0 [14:08:38]StoreToDocumentArchive [14:08:38]shift 464 fd 49458 [14:08:38]save to /storage/0464/doc_00049458 [14:08:38]save last doc name /storage/0464/doc_00049458 to /storage/kkm_last_doc_name [14:08:38]save OK [14:08:38]Clear old archive folders... [14:08:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:08:38]tlvbuf is 00E46360 [14:08:38]SAM_PROTO_ClearQueue [14:08:38]wFMCommunicate request_size=4 [14:08:38]MH_SAM_APDU [14:08:38]CAPDU: 80 09 00 00 [14:08:38]Write to MH i2c: E2 08 00 EA 48 80 09 00 00 00 00 00 00 A4 [14:08:38]Write i2c OK [14:08:38]MH_I2C_Read... [14:08:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:08:38]Read from MH i2c: E2 [14:08:38]MH_I2C_Read... [14:08:38]Read from MH i2c: E2 03 00 [14:08:38]MH_I2C_Read... [14:08:38]Read from MH i2c: E2 03 00 EA 48 00 90 00 A6 [14:08:38]RAPDU: 90 00 [14:08:38]wFMCommunicate OK [14:08:38]SAM_PROTO_ClearQueue done [14:08:38]KKMCreateOFDPacket [14:08:38]OFDProtocolAddRootSTLVToBuf [14:08:38]FM_MakeSignedData [14:08:38]FM_MakeSignedData [14:08:38]SAM_PROTO_SignData [14:08:38]wFMCommunicate request_size=4 [14:08:38]MH_SAM_APDU [14:08:38]CAPDU: 80 0D 01 02 [14:08:38]Write to MH i2c: E2 08 00 EB 48 80 0D 01 02 00 00 00 00 AC [14:08:38]Write i2c OK [14:08:38]MH_I2C_Read... [14:08:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:08:38]Read from MH i2c: E2 [14:08:38]MH_I2C_Read... [14:08:38]Read from MH i2c: E2 03 00 [14:08:38]MH_I2C_Read... [14:08:38]Read from MH i2c: E2 03 00 EB 48 00 90 00 A7 [14:08:38]RAPDU: 90 00 [14:08:38]wFMCommunicate OK [14:08:38]wFMCommunicate request_size=255 [14:08:38]MH_SAM_APDU [14:08: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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 6B 5D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 32 C1 00 00 35 04 06 00 A5 [14:08:38]Write to MH i2c: E2 02 01 EC 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 6B 5D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 32 C1 00 00 35 04 06 00 A5 00 00 A5 [14:08:38]Write i2c OK [14:08:38]MH_I2C_Read... [14:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:39]Read from MH i2c: E2 [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: E2 03 00 [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: E2 03 00 EC 48 00 90 00 A8 [14:08:39]RAPDU: 90 00 [14:08:39]wFMCommunicate OK [14:08:39]wFMCommunicate request_size=10 [14:08:39]MH_SAM_APDU [14:08:39]CAPDU: 80 0D 02 02 05 D6 E2 F2 C5 00 [14:08:39]Write to MH i2c: E2 0D 00 ED 48 80 0D 02 02 05 00 D6 E2 F2 C5 00 00 00 28 [14:08:39]Write i2c OK [14:08:39]MH_I2C_Read... [14:08:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:08:39]Read from MH i2c: E2 [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: E2 03 00 [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: E2 03 00 ED 48 00 90 00 A9 [14:08:39]RAPDU: 90 00 [14:08:39]wFMCommunicate OK [14:08:39]wFMCommunicate request_size=4 [14:08:39]MH_SAM_APDU [14:08:39]CAPDU: 80 0D 03 02 [14:08:39]Write to MH i2c: E2 08 00 EE 48 80 0D 03 02 00 00 00 00 B1 [14:08:39]Write i2c OK [14:08:39]MH_I2C_Read... [14:08:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:08:39]Read from MH i2c: E2 [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: E2 0B 00 [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: E2 0B 00 EE 48 00 78 2A B1 C7 F2 B4 29 0B 90 00 A6 [14:08:39]RAPDU: 78 2A B1 C7 F2 B4 29 0B 90 00 [14:08:39]wFMCommunicate OK [14:08:39]SAM_PROTO_SignData done [14:08:39]FM_MakeSignedData done [14:08:39]CreateOFDProtocolMessage [14:08:39]wFMCommunicate request_size=4 [14:08:39]MH_SAM_APDU [14:08:39]CAPDU: 80 11 00 00 [14:08:39]Write to MH i2c: E2 08 00 EF 48 80 11 00 00 00 00 00 00 B1 [14:08:39]Write i2c OK [14:08:39]MH_I2C_Read... [14:08:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:39]Read from MH i2c: E2 [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: E2 17 00 [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: E2 17 00 EF 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 FC [14:08:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:08:39]wFMCommunicate OK [14:08:39]CreateOFDProtocolMessage done [14:08:39]OFDSenderStorePacket 49458 [14:08:39]StoreOFDPacket docnum=49458 [14:08:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 BD 60 07 01 19 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 6B 5D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 32 C1 00 00 35 04 06 00 A5 D6 E2 F2 C5 00 78 2A B1 C7 F2 B4 29 0B [14:08:39]CheckFolder [14:08:39]dirname=/storage/ofd_packets [14:08:39]CheckFolder done [14:08:39]ProducePacketName [14:08:39]name=ofd_packets/00049458 [14:08:39]NVStorageSaveData ofd_packets/00049458 [14:08:39]File name is /storage/ofd_packets/00049458 [14:08:39]Write 301 bytes [14:08:39]NVStorageSaveData done [14:08:39]OFDSenderStorePacket done [14:08:39]KKMCreateOFDPacket done [14:08:39]NVStorageSaveData kkm_last_timestamp [14:08:39]File name is /storage/kkm_last_timestamp [14:08:39]Write 4 bytes [14:08:39]NVStorageSaveData done [14:08:39]ExternCall_PrintAddStr [14:08:39]wPrintStart [14:08:39]Write to MH i2c: 01 00 00 F0 48 38 [14:08:39]Write i2c OK [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: 01 [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: 01 07 00 [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: 01 07 00 F0 48 00 00 00 00 00 FF 0F 4D [14:08:39]RasterBufferAndPrint [14:08:39]line Счет N : (1)11325409 [14:08:39]line ИНН: 02508201610067 [14:08:39]line Контрольно-Кассовый Чек [14:08:39]line ПРОДАЖА [14:08:39]line ТРК (МРК, ГНК) : 32 [14:08:39]line Товар: 2710124130 [14:08:39]line Аи-92-К-4 [14:08:39]line 10.000 * 0.00 [14:08:39]line = 0.00 [14:08:39]line НДС 12% НСП 1% [14:08:39]line > о реализуемом товаре [14:08:39]line ИТОГО: 0.00 [14:08:39]line НСП 1% : 0.00 [14:08:39]line НДС 12% : 0.00 [14:08:39]line Наличными: 0.00 [14:08:39]line Безнал.: 0.00 [14:08:39]line Место: АЗС № 95 "Партнер Нефть" [14:08:39]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:08:39]line СНО: Общий режим [14:08:39]line Чек 106 16.08.2024 14:08 [14:08:39]line Смена: 464 ФФД: 1.0 [14:08:39]line ЗНМ: 0300000078 [14:08:39]line РНМ: 0000000000092546 [14:08:39]line Версия ККМ: 001 [14:08:39]line Талоны: ТК ГПНА Online [14:08:39]line 30040432 [14:08:39]line ФМ: 0000000000871800 [14:08:39]line ФД: 49458 [14:08:39]line ФПД: 182342349145344 [14:08:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T140843&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49458&fm=182342349145344&tin=02508201610067®Number=0000000000092546&sum=0 [14:08:39]written 0, free lines is 4095 [14:08:39]OFD Sender: Processing packet 49458 [packets to send 21, broken 20] [14:08:39]ProducePacketName [14:08:39]name=ofd_packets/00049458 [14:08:39]OFD Sender: To server: pG, [14:08:39]CommunicateWithHost lk.salyk.kg:30040 [14:08:39]ConnectInit lk.salyk.kg [14:08:39]Connected sock=9 [14:08:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 BD 60 07 01 19 45 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 6B 5D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 32 C1 00 00 35 04 06 00 A5 D6 E2 F2 C5 00 78 2A B1 C7 F2 B4 29 0B [14:08:39]Write to MH i2c: 01 00 00 1A 49 63 [14:08:39]Write i2c OK [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: 01 [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: 01 07 00 [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: 01 07 00 1A 49 00 00 00 00 00 E0 0C 56 [14:08:39]RasterBufferAndPrint [14:08:39]line [14:08:39]line [14:08:39]line [14:08:39]line [14:08:39]line [14:08:39]written 0, free lines is 3302 [14:08:39]MH_Cut [14:08:39]Write to MH i2c: D1 01 00 21 49 01 3C [14:08:39]Write i2c OK [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: D1 [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: D1 01 00 [14:08:39]MH_I2C_Read... [14:08:39]Read from MH i2c: D1 01 00 21 49 00 3B [14:08:39]Write to MH i2c: 01 00 00 22 49 6B [14:08:39]Write i2c OK [14:08:39]MH_I2C_Read... [14:08:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 81 1B 47 00 7E 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 32 C1 00 00 F4 03 04 00 A9 08 BF 66 B6 04 01 00 00 3A 81 23 9B 05 32 E1 FC [14:08:39]CommunicateWithHost err = 0 [14:08:39]CheckOFDResponse [14:08:39]1017 (14) - 77093643461234 [14:08:39]1041 (16) - 0000000000871800 [14:08:39]1040 (4) - 49458 [14:08:39]1012 (4) - 16.08.2024 08:07 [14:08:39]1206 (1) - 0 [14:08:39]OFD Sender: Remove packet 49458 [14:08:39]ProducePacketName [14:08:39]name=ofd_packets/00049458 [14:08:39]NVStorageDeleteData [14:08:40]OFD Sender: No OFD packet to send [14:08:40]*** Cut start [14:08:40]*** Purtial cut [14:08:40]*** CUTSNS_PIN = 0 [14:08:40]*** Stage 1: CUTSNS_PIN = 1 [14:08:42]Read from MH i2c: 01 [14:08:42]MH_I2C_Read... [14:08:42]*** Stop cut motor [14:08:42]*** Cut end [14:08:42]Read from MH i2c: 01 07 00 [14:08:42]MH_I2C_Read... [14:08:42]Read from MH i2c: 01 07 00 22 49 00 00 00 00 00 FF 0F 80 [14:08:42]process_action close_receipt done [14:08:42]requested_data is exist [14:08:42]produce_requested_data [14:08:42]requested_item fm.sn is exist - process it [14:08:42]wFMCommunicate request_size=4 [14:08:42]MH_SAM_APDU [14:08:42]CAPDU: 80 11 00 00 [14:08:42]Write to MH i2c: E2 08 00 23 49 80 11 00 00 00 00 00 00 E6 [14:08:42]Write i2c OK [14:08:42]MH_I2C_Read... [14:08:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:08:42]Read from MH i2c: E2 [14:08:42]MH_I2C_Read... [14:08:42]Read from MH i2c: E2 17 00 [14:08:42]MH_I2C_Read... [14:08:42]Read from MH i2c: E2 17 00 23 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 31 [14:08:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:08:42]wFMCommunicate OK [14:08:42]requested_item fd.num is exist - process it [14:08:42]SAM_PROTO_GetFieldsCounters [14:08:42]wFMCommunicate request_size=4 [14:08:42]MH_SAM_APDU [14:08:42]CAPDU: 80 13 00 00 [14:08:42]Write to MH i2c: E2 08 00 24 49 80 13 00 00 00 00 00 00 E9 [14:08:42]Write i2c OK [14:08:42]MH_I2C_Read... [14:08:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:08:42]Read from MH i2c: E2 [14:08:42]MH_I2C_Read... [14:08:42]Read from MH i2c: E2 62 00 [14:08:42]MH_I2C_Read... [14:08:42]Read from MH i2c: E2 62 00 24 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 32 C1 00 00 0E 04 04 00 D0 01 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 05 [14:08:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 32 C1 00 00 0E 04 04 00 D0 01 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 [14:08:42]wFMCommunicate OK [14:08:42]SAM_PROTO_GetFieldsCounters done [14:08:42]requested_item shift.num is exist - process it [14:08:42]requested_item shift.opened is exist - process it [14:08:42]req_shift_opened [14:08:42]FM_GetShiftState [14:08:42]SAM_PROTO_GetShiftState [14:08:42]wFMCommunicate request_size=4 [14:08:42]MH_SAM_APDU [14:08:42]CAPDU: 80 13 01 00 [14:08:42]Write to MH i2c: E2 08 00 25 49 80 13 01 00 00 00 00 00 EB [14:08:42]Write i2c OK [14:08:42]MH_I2C_Read... [14:08:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:08:42]Read from MH i2c: E2 [14:08:42]MH_I2C_Read... [14:08:42]Read from MH i2c: E2 0E 00 [14:08:42]MH_I2C_Read... [14:08:42]Read from MH i2c: E2 0E 00 25 49 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 61 [14:08:42]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:08:42]wFMCommunicate OK [14:08:42]SAM_PROTO_GetShiftState done [14:08:42]FM_GetShiftState done [14:08:42]req_shift_opened done [14:08:42]requested_item shift.open_date is exist - process it [14:08:42]req_shift_open_date [14:08:42]req_shift_open_date done [14:08:42]produce_requested_data done [14:08:42]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49458,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [14:08:42]process_action_free close_receipt [14:08:42]json_value_free [14:08:42]json_value_free done [14:08:42]process_json_proto returns [14:08:42]Send response to host [14:08:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49458,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [14:08:42]free response buf [14:08:42]execute_script done [14:08:42]execute_script returns [14:08:42]free content buf [14:08:42]Sock 7.Close socket [14:08:42]Sock 7.Thread stoped [14:08:45]OFD Sender: No OFD packet to send [14:08:50]OFD Sender: No OFD packet to send [14:08:55]OFD Sender: No OFD packet to send [14:09:00]OFD Sender: No OFD packet to send [14:09:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]OFD Sender: No OFD packet to send [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09:40]OFD Sender: No OFD packet to send [14:09:45]OFD Sender: No OFD packet to send [14:09:50]OFD Sender: No OFD packet to send [14:09:55]OFD Sender: No OFD packet to send [14:10:00]OFD Sender: No OFD packet to send [14:10:05]OFD Sender: No OFD packet to send [14:10:10]OFD Sender: No OFD packet to send [14:10:15]OFD Sender: No OFD packet to send [14:10:20]OFD Sender: No OFD packet to send [14:10:25]OFD Sender: No OFD packet to send [14:10:30]OFD Sender: No OFD packet to send [14:10:35]OFD Sender: No OFD packet to send [14:10:40]OFD Sender: No OFD packet to send [14:10:45]OFD Sender: No OFD packet to send [14:10:50]OFD Sender: No OFD packet to send [14:10:55]OFD Sender: No OFD packet to send [14:11:00]OFD Sender: No OFD packet to send [14:11:05]OFD Sender: No OFD packet to send [14:11:10]OFD Sender: No OFD packet to send [14:11:15]OFD Sender: No OFD packet to send [14:11:20]OFD Sender: No OFD packet to send [14:11:25]OFD Sender: No OFD packet to send [14:11:30]OFD Sender: No OFD packet to send [14:11:35]OFD Sender: No OFD packet to send [14:11:40]OFD Sender: No OFD packet to send [14:11:45]OFD Sender: No OFD packet to send [14:11:50]OFD Sender: No OFD packet to send [14:11:55]OFD Sender: No OFD packet to send [14:12:00]OFD Sender: No OFD packet to send [14:12:05]OFD Sender: No OFD packet to send [14:12:10]OFD Sender: No OFD packet to send [14:12:15]OFD Sender: No OFD packet to send [14:12:20]OFD Sender: No OFD packet to send [14:12:25]OFD Sender: No OFD packet to send [14:12:30]OFD Sender: No OFD packet to send [14:12:35]OFD Sender: No OFD packet to send [14:12:40]OFD Sender: No OFD packet to send [14:12:45]OFD Sender: No OFD packet to send [14:12:50]OFD Sender: No OFD packet to send [14:12:55]OFD Sender: No OFD packet to send [14:13:00]OFD Sender: No OFD packet to send [14:13:05]OFD Sender: No OFD packet to send [14:13:10]OFD Sender: No OFD packet to send [14:13:15]OFD Sender: No OFD packet to send [14:13:20]OFD Sender: No OFD packet to send [14:13:25]OFD Sender: No OFD packet to send [14:13:30]OFD Sender: No OFD packet to send [14:13:35]OFD Sender: No OFD packet to send [14:13:40]OFD Sender: No OFD packet to send [14:13:45]OFD Sender: No OFD packet to send [14:13:50]OFD Sender: No OFD packet to send [14:13:55]OFD Sender: No OFD packet to send [14:14:00]OFD Sender: No OFD packet to send [14:14:05]OFD Sender: No OFD packet to send [14:14:10]OFD Sender: No OFD packet to send [14:14:15]OFD Sender: No OFD packet to send [14:14:20]OFD Sender: No OFD packet to send [14:14:25]OFD Sender: No OFD packet to send [14:14:30]OFD Sender: No OFD packet to send [14:14:35]OFD Sender: No OFD packet to send [14:14:40]OFD Sender: No OFD packet to send [14:14:45]OFD Sender: No OFD packet to send [14:14:50]OFD Sender: No OFD packet to send [14:14:55]OFD Sender: No OFD packet to send [14:15:05]OFD Sender: No OFD packet to send [14:15:10]OFD Sender: No OFD packet to send [14:15:15]OFD Sender: No OFD packet to send [14:15:20]OFD Sender: No OFD packet to send [14:15:25]OFD Sender: No OFD packet to send [14:15:30]OFD Sender: No OFD packet to send [14:15:35]OFD Sender: No OFD packet to send [14:15:40]OFD Sender: No OFD packet to send [14:15:43]recv_with_timeout no data received [14:15:45]OFD Sender: No OFD packet to send [14:15:50]OFD Sender: No OFD packet to send [14:15:55]OFD Sender: No OFD packet to send [14:16:00]OFD Sender: No OFD packet to send [14:16:05]OFD Sender: No OFD packet to send [14:16:10]OFD Sender: No OFD packet to send [14:16:15]OFD Sender: No OFD packet to send [14:16:20]OFD Sender: No OFD packet to send [14:16:25]OFD Sender: No OFD packet to send [14:16:30]OFD Sender: No OFD packet to send [14:16:35]OFD Sender: No OFD packet to send [14:16:40]OFD Sender: No OFD packet to send [14:16:45]OFD Sender: No OFD packet to send [14:16:50]OFD Sender: No OFD packet to send [14:16:55]OFD Sender: No OFD packet to send [14:17:00]OFD Sender: No OFD packet to send [14:17:05]OFD Sender: No OFD packet to send [14:17:10]OFD Sender: No OFD packet to send [14:17:15]OFD Sender: No OFD packet to send [14:17:20]OFD Sender: No OFD packet to send [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:35]OFD Sender: No OFD packet to send [14:20:40]OFD Sender: No OFD packet to send [14:20:45]OFD Sender: No OFD packet to send [14:20:50]OFD Sender: No OFD packet to send [14:20:55]OFD Sender: No OFD packet to send [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:35]OFD Sender: No OFD packet to send [14:21:40]OFD Sender: No OFD packet to send [14:21:45]OFD Sender: No OFD packet to send [14:21:50]OFD Sender: No OFD packet to send [14:21:55]OFD Sender: No OFD packet to send [14:22:00]OFD Sender: No OFD packet to send [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:15]OFD Sender: No OFD packet to send [14:22:20]OFD Sender: No OFD packet to send [14:22:25]OFD Sender: No OFD packet to send [14:22:30]OFD Sender: No OFD packet to send [14:22:35]OFD Sender: No OFD packet to send [14:22:40]OFD Sender: No OFD packet to send [14:22:45]OFD Sender: No OFD packet to send [14:22:50]OFD Sender: No OFD packet to send [14:22:55]OFD Sender: No OFD packet to send [14:23:00]OFD Sender: No OFD packet to send [14:23:05]OFD Sender: No OFD packet to send [14:23:10]OFD Sender: No OFD packet to send [14:23:15]OFD Sender: No OFD packet to send [14:23:20]OFD Sender: No OFD packet to send [14:23:25]OFD Sender: No OFD packet to send [14:23:30]OFD Sender: No OFD packet to send [14:23:35]OFD Sender: No OFD packet to send [14:23:40]OFD Sender: No OFD packet to send [14:23:45]OFD Sender: No OFD packet to send [14:23:50]OFD Sender: No OFD packet to send [14:23:55]OFD Sender: No OFD packet to send [14:24:00]OFD Sender: No OFD packet to send [14:24:05]OFD Sender: No OFD packet to send [14:24:10]OFD Sender: No OFD packet to send [14:24:11]accept exits with 10 [14:24:11]New connection [14:24:11]New thread 3066973540 created [14:24:11]Thread 3066830180 joined [14:24:11]Waiting for new connection... [14:24:11] Sock 10.Parse request [14:24:11]Sock 10.Check first char [14:24:11]Sock 10.First char is OK [14:24:11]request: POST /json_proto HTTP/1.0 [14:24:11]Method: POST [14:24:11]URL: /json_proto [14:24:11]Method is POST - this is cgi request [14:24:11]url: /json_proto [14:24:11]query_string will be loaded in cgi processing [14:24:11]execute_cgi json_proto POST (null) [14:24:11]execute_cgi path=json_proto method=POST [14:24:11]POST find Content-Length [14:24:11]Host: 172.17.46.196:8080 [14:24:11]Content-Length: 1069 [14:24:11]Content-Type: application/json [14:24:11] [14:24:11]POST finish read [14:24:11]Found Content-Length = 1069 [14:24:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189673", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:11]execute_script... [14:24:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189673", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:11]POST & json_proto [14:24:11]process_json_proto [14:24:11]json parsed OK: [14:24:11]protocol is kg_v1.0 [14:24:11]action value=close_receipt [14:24:11]process_action close_receipt [14:24:11]cmd_close_receipt [14:24:11]MH_GetDate [14:24:11]Write to MH i2c: F0 00 00 26 49 5E [14:24:11]Write i2c OK [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: F0 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: F0 09 00 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: F0 09 00 26 49 00 11 61 BF 66 07 E8 5D 66 B0 [14:24:11]GetLastDocTimeStamp 1723817323 [14:24:11]current date 1723818257 [14:24:11]FM_GetShiftState [14:24:11]SAM_PROTO_GetShiftState [14:24:11]wFMCommunicate request_size=4 [14:24:11]MH_SAM_APDU [14:24:11]CAPDU: 80 13 01 00 [14:24:11]Write to MH i2c: E2 08 00 27 49 80 13 01 00 00 00 00 00 ED [14:24:11]Write i2c OK [14:24:11]MH_I2C_Read... [14:24:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:11]Read from MH i2c: E2 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 0E 00 [14:24:11]MH_I2C_Read... [14:24:11]Read from MH i2c: E2 0E 00 27 49 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 63 [14:24:11]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:24:11]wFMCommunicate OK [14:24:11]SAM_PROTO_GetShiftState done [14:24:11]FM_GetShiftState done [14:24:11]opened in 1723766958 [14:24:11]opened+sec_in_day 1723853358 [14:24:11]quantity*price = 17500 [14:24:11]sum+1 = 17501 [14:24:11]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4650243871828 Gorilla эн нап манго-кокос 0,45 ж/б 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 265.00 НСП 1% : 2.35 НДС 12% : 28.14 Наличными: 0.00 Безнал.: 265.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 107 16.08.2024 14:24 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49459 ФПД: 115642409468459 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T142417&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49459&fm=115642409468459&tin=02508201610067®Number=0000000000092546&sum=26500 0 [14:24:12]StoreToDocumentArchive [14:24:12]shift 464 fd 49459 [14:24:12]save to /storage/0464/doc_00049459 [14:24:12]save last doc name /storage/0464/doc_00049459 to /storage/kkm_last_doc_name [14:24:12]save OK [14:24:12]Clear old archive folders... [14:24:12]ProcessDocumentItem done err = 0, tmpTLVsize=392 [14:24:12]tlvbuf is 00F26960 [14:24:12]SAM_PROTO_ClearQueue [14:24:12]wFMCommunicate request_size=4 [14:24:12]MH_SAM_APDU [14:24:12]CAPDU: 80 09 00 00 [14:24:12]Write to MH i2c: E2 08 00 34 49 80 09 00 00 00 00 00 00 EF [14:24:12]Write i2c OK [14:24:12]MH_I2C_Read... [14:24:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:12]Read from MH i2c: E2 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 03 00 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 03 00 34 49 00 90 00 F1 [14:24:12]RAPDU: 90 00 [14:24:12]wFMCommunicate OK [14:24:12]SAM_PROTO_ClearQueue done [14:24:12]KKMCreateOFDPacket [14:24:12]OFDProtocolAddRootSTLVToBuf [14:24:12]FM_MakeSignedData [14:24:12]FM_MakeSignedData [14:24:12]SAM_PROTO_SignData [14:24:12]wFMCommunicate request_size=4 [14:24:12]MH_SAM_APDU [14:24:12]CAPDU: 80 0D 01 02 [14:24:12]Write to MH i2c: E2 08 00 35 49 80 0D 01 02 00 00 00 00 F7 [14:24:12]Write i2c OK [14:24:12]MH_I2C_Read... [14:24:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:12]Read from MH i2c: E2 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 03 00 [14:24:12]MH_I2C_Read... [14:24:12]Read from MH i2c: E2 03 00 35 49 00 90 00 F2 [14:24:12]RAPDU: 90 00 [14:24:12]wFMCommunicate OK [14:24:12]wFMCommunicate request_size=255 [14:24:12]MH_SAM_APDU [14:24:12]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [14:24:12]Write to MH i2c: E2 02 01 36 49 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 A1 [14:24:13]Write i2c OK [14:24:13]MH_I2C_Read... [14:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:13]Read from MH i2c: E2 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 03 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 03 00 36 49 00 90 00 F3 [14:24:13]RAPDU: 90 00 [14:24:13]wFMCommunicate OK [14:24:13]wFMCommunicate request_size=151 [14:24:13]MH_SAM_APDU [14:24:13]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 11 61 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 33 C1 00 00 35 04 06 00 69 2D 18 BC C2 2B [14:24:13]Write to MH i2c: E2 9A 00 37 49 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 11 61 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 33 C1 00 00 35 04 06 00 69 2D 18 BC C2 2B 00 00 45 [14:24:13]Write i2c OK [14:24:13]MH_I2C_Read... [14:24:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:13]Read from MH i2c: E2 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 03 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 03 00 37 49 00 90 00 F4 [14:24:13]RAPDU: 90 00 [14:24:13]wFMCommunicate OK [14:24:13]wFMCommunicate request_size=4 [14:24:13]MH_SAM_APDU [14:24:13]CAPDU: 80 0D 03 02 [14:24:13]Write to MH i2c: E2 08 00 38 49 80 0D 03 02 00 00 00 00 FC [14:24:13]Write i2c OK [14:24:13]MH_I2C_Read... [14:24:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:13]Read from MH i2c: E2 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 0B 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 0B 00 38 49 00 D5 A3 75 60 23 B9 AA 0C 90 00 DC [14:24:13]RAPDU: D5 A3 75 60 23 B9 AA 0C 90 00 [14:24:13]wFMCommunicate OK [14:24:13]SAM_PROTO_SignData done [14:24:13]FM_MakeSignedData done [14:24:13]CreateOFDProtocolMessage [14:24:13]wFMCommunicate request_size=4 [14:24:13]MH_SAM_APDU [14:24:13]CAPDU: 80 11 00 00 [14:24:13]Write to MH i2c: E2 08 00 39 49 80 11 00 00 00 00 00 00 FC [14:24:13]Write i2c OK [14:24:13]MH_I2C_Read... [14:24:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:13]Read from MH i2c: E2 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 17 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: E2 17 00 39 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 47 [14:24:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:24:13]wFMCommunicate OK [14:24:13]CreateOFDProtocolMessage done [14:24:13]OFDSenderStorePacket 49459 [14:24:13]StoreOFDPacket docnum=49459 [14:24:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9C 01 00 00 F6 6C 94 01 BA 61 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 11 61 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 33 C1 00 00 35 04 06 00 69 2D 18 BC C2 2B D5 A3 75 60 23 B9 AA 0C [14:24:13]CheckFolder [14:24:13]dirname=/storage/ofd_packets [14:24:13]CheckFolder done [14:24:13]ProducePacketName [14:24:13]name=ofd_packets/00049459 [14:24:13]NVStorageSaveData ofd_packets/00049459 [14:24:13]File name is /storage/ofd_packets/00049459 [14:24:13]Write 442 bytes [14:24:13]NVStorageSaveData done [14:24:13]OFDSenderStorePacket done [14:24:13]KKMCreateOFDPacket done [14:24:13]NVStorageSaveData kkm_last_timestamp [14:24:13]File name is /storage/kkm_last_timestamp [14:24:13]Write 4 bytes [14:24:13]NVStorageSaveData done [14:24:13]ExternCall_PrintAddStr [14:24:13]wPrintStart [14:24:13]Write to MH i2c: 01 00 00 3A 49 83 [14:24:13]OFD Sender: Processing packet 49459 [packets to send 21, broken 20] [14:24:13]ProducePacketName [14:24:13]name=ofd_packets/00049459 [14:24:13]OFD Sender: To server: pG, [14:24:13]CommunicateWithHost lk.salyk.kg:30040 [14:24:13]ConnectInit lk.salyk.kg [14:24:13]Write i2c OK [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: 01 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: 01 07 00 [14:24:13]MH_I2C_Read... [14:24:13]Read from MH i2c: 01 07 00 3A 49 00 00 00 00 00 FF 0F 98 [14:24:13]RasterBufferAndPrint [14:24:13]line Счет N : (3)189673 [14:24:13]line ИНН: 02508201610067 [14:24:13]line Контрольно-Кассовый Чек [14:24:13]line ПРОДАЖА [14:24:13]line Товар: 4870002329487 [14:24:13]line Напиток Pepsi 1,5л [14:24:13]line 1.000 * 175.00 [14:24:13]line = 175.00 [14:24:13]line НДС 12% НСП 1% [14:24:13]line > о реализуемом товаре [14:24:13]line Товар: 4650243871828 [14:24:13]line Gorilla эн нап манго-кокос 0,45 ж/б [14:24:13]line 1.000 * 90.00 [14:24:13]line = 90.00 [14:24:13]line НДС 12% НСП 1% [14:24:13]line > о реализуемом товаре [14:24:13]line ИТОГО: 265.00 [14:24:13]line НСП 1% : 2.35 [14:24:13]line НДС 12% : 28.14 [14:24:13]line Наличными: 0.00 [14:24:13]line Безнал.: 265.00 [14:24:13]line Место: АЗС № 95 "Партнер Нефть" [14:24:13]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:24:13]line СНО: Общий режим [14:24:13]line Чек 107 16.08.2024 14:24 [14:24:13]line Смена: 464 ФФД: 1.0 [14:24:13]line ЗНМ: 0300000078 [14:24:13]line РНМ: 0000000000092546 [14:24:13]line Версия ККМ: 001 [14:24:13]line Платежная система: O! деньги [14:24:13]line ФМ: 0000000000871800 [14:24:13]line ФД: 49459 [14:24:13]line ФПД: 115642409468459 [14:24:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T142417&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49459&fm=115642409468459&tin=02508201610067®Number=0000000000092546&sum=26500 [14:24:13]line 0 [14:24:13]written 0, free lines is 4095 [14:24:14]Connected sock=9 [14:24:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9C 01 00 00 F6 6C 94 01 BA 61 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 11 61 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 33 C1 00 00 35 04 06 00 69 2D 18 BC C2 2B D5 A3 75 60 23 B9 AA 0C [14:24:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 69 0A 47 00 C5 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 33 C1 00 00 F4 03 04 00 50 0C BF 66 B6 04 01 00 00 F2 39 C6 62 28 DB C5 B3 [14:24:14]CommunicateWithHost err = 0 [14:24:14]CheckOFDResponse [14:24:14]1017 (14) - 77093643461234 [14:24:14]1041 (16) - 0000000000871800 [14:24:14]1040 (4) - 49459 [14:24:14]1012 (4) - 16.08.2024 08:22 [14:24:14]1206 (1) - 0 [14:24:14]OFD Sender: Remove packet 49459 [14:24:14]ProducePacketName [14:24:14]name=ofd_packets/00049459 [14:24:14]NVStorageDeleteData [14:24:14]Write to MH i2c: 01 00 00 6B 49 B4 [14:24:14]Write i2c OK [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: 01 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: 01 07 00 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: 01 07 00 6B 49 00 00 00 00 00 6C 0C 33 [14:24:14]RasterBufferAndPrint [14:24:14]line [14:24:14]line [14:24:14]line [14:24:14]line [14:24:14]line [14:24:14]written 0, free lines is 3187 [14:24:14]MH_Cut [14:24:14]Write to MH i2c: D1 01 00 72 49 01 8D [14:24:14]Write i2c OK [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: D1 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: D1 01 00 [14:24:14]MH_I2C_Read... [14:24:14]Read from MH i2c: D1 01 00 72 49 00 8C [14:24:14]Write to MH i2c: 01 00 00 73 49 BC [14:24:14]Write i2c OK [14:24:14]MH_I2C_Read... [14:24:14]OFD Sender: No OFD packet to send [14:24:15]*** Cut start [14:24:15]*** Purtial cut [14:24:15]*** Stage 1: CUTSNS_PIN = 1 [14:24:15]Read from MH i2c: 01 [14:24:15]MH_I2C_Read... [14:24:15]*** Stop cut motor [14:24:15]*** Cut end [14:24:15]Read from MH i2c: 01 07 00 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: 01 07 00 73 49 00 00 00 00 00 FF 0F D1 [14:24:15]process_action close_receipt done [14:24:15]requested_data is exist [14:24:15]produce_requested_data [14:24:15]requested_item fm.sn is exist - process it [14:24:15]wFMCommunicate request_size=4 [14:24:15]MH_SAM_APDU [14:24:15]CAPDU: 80 11 00 00 [14:24:15]Write to MH i2c: E2 08 00 74 49 80 11 00 00 00 00 00 00 37 [14:24:15]Write i2c OK [14:24:15]MH_I2C_Read... [14:24:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:15]Read from MH i2c: E2 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 17 00 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 17 00 74 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 82 [14:24:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:24:15]wFMCommunicate OK [14:24:15]requested_item fd.num is exist - process it [14:24:15]SAM_PROTO_GetFieldsCounters [14:24:15]wFMCommunicate request_size=4 [14:24:15]MH_SAM_APDU [14:24:15]CAPDU: 80 13 00 00 [14:24:15]Write to MH i2c: E2 08 00 75 49 80 13 00 00 00 00 00 00 3A [14:24:15]Write i2c OK [14:24:15]MH_I2C_Read... [14:24:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:15]Read from MH i2c: E2 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 62 00 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 62 00 75 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 33 C1 00 00 0E 04 04 00 D0 01 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 5A [14:24:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 33 C1 00 00 0E 04 04 00 D0 01 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 [14:24:15]wFMCommunicate OK [14:24:15]SAM_PROTO_GetFieldsCounters done [14:24:15]requested_item shift.num is exist - process it [14:24:15]requested_item shift.opened is exist - process it [14:24:15]req_shift_opened [14:24:15]FM_GetShiftState [14:24:15]SAM_PROTO_GetShiftState [14:24:15]wFMCommunicate request_size=4 [14:24:15]MH_SAM_APDU [14:24:15]CAPDU: 80 13 01 00 [14:24:15]Write to MH i2c: E2 08 00 76 49 80 13 01 00 00 00 00 00 3C [14:24:15]Write i2c OK [14:24:15]MH_I2C_Read... [14:24:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:15]Read from MH i2c: E2 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 0E 00 [14:24:15]MH_I2C_Read... [14:24:15]Read from MH i2c: E2 0E 00 76 49 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 B2 [14:24:15]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:24:15]wFMCommunicate OK [14:24:15]SAM_PROTO_GetShiftState done [14:24:15]FM_GetShiftState done [14:24:15]req_shift_opened done [14:24:15]requested_item shift.open_date is exist - process it [14:24:15]req_shift_open_date [14:24:15]req_shift_open_date done [14:24:15]produce_requested_data done [14:24:15]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49459,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [14:24:15]process_action_free close_receipt [14:24:15]json_value_free [14:24:15]json_value_free done [14:24:15]process_json_proto returns [14:24:15]Send response to host [14:24:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49459,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [14:24:15]free response buf [14:24:15]execute_script done [14:24:15]execute_script returns [14:24:15]free content buf [14:24:15]Sock 10.Close socket [14:24:15]Sock 10.Thread stoped [14:24:19]OFD Sender: No OFD packet to send [14:24:24]OFD Sender: No OFD packet to send [14:24:29]accept exits with 7 [14:24:29]New connection [14:24:29]New thread 3066830180 created [14:24:29]Thread 3066973540 joined [14:24:29]Waiting for new connection... [14:24:29] Sock 7.Parse request [14:24:29]Sock 7.Check first char [14:24:29]Sock 7.First char is OK [14:24:29]request: POST /json_proto HTTP/1.0 [14:24:29]Method: POST [14:24:29]URL: /json_proto [14:24:29]Method is POST - this is cgi request [14:24:29]url: /json_proto [14:24:29]query_string will be loaded in cgi processing [14:24:29]execute_cgi json_proto POST (null) [14:24:29]execute_cgi path=json_proto method=POST [14:24:29]POST find Content-Length [14:24:29]Host: 172.17.46.196:8080 [14:24:29]Content-Length: 675 [14:24:29]Content-Type: application/json [14:24:29] [14:24:29]POST finish read [14:24:29]Found Content-Length = 675 [14:24:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189674", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:29]execute_script... [14:24: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 : (3)189674", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:29]POST & json_proto [14:24:29]process_json_proto [14:24:29]json parsed OK: [14:24:29]protocol is kg_v1.0 [14:24:29]action value=close_receipt [14:24:29]process_action close_receipt [14:24:29]cmd_close_receipt [14:24:29]MH_GetDate [14:24:29]Write to MH i2c: F0 00 00 77 49 AF [14:24:29]Write i2c OK [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: F0 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: F0 09 00 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: F0 09 00 77 49 00 23 61 BF 66 07 E8 5D 66 13 [14:24:29]GetLastDocTimeStamp 1723818257 [14:24:29]current date 1723818275 [14:24:29]FM_GetShiftState [14:24:29]SAM_PROTO_GetShiftState [14:24:29]wFMCommunicate request_size=4 [14:24:29]MH_SAM_APDU [14:24:29]CAPDU: 80 13 01 00 [14:24:29]Write to MH i2c: E2 08 00 78 49 80 13 01 00 00 00 00 00 3E [14:24:29]Write i2c OK [14:24:29]MH_I2C_Read... [14:24:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:29]Read from MH i2c: E2 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 0E 00 [14:24:29]MH_I2C_Read... [14:24:29]Read from MH i2c: E2 0E 00 78 49 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 B4 [14:24:29]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:24:29]wFMCommunicate OK [14:24:29]SAM_PROTO_GetShiftState done [14:24:29]FM_GetShiftState done [14:24:29]opened in 1723766958 [14:24:29]opened+sec_in_day 1723853358 [14:24:29]quantity*price = 6500 [14:24:29]sum+1 = 6501 [14:24:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 108 16.08.2024 14:24 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49460 ФПД: 163820829202270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T142435&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49460&fm=163820829202270&tin=02508201610067®Number=0000000000092546&sum=6500 0 [14:24:30]StoreToDocumentArchive [14:24:30]shift 464 fd 49460 [14:24:30]save to /storage/0464/doc_00049460 [14:24:30]save last doc name /storage/0464/doc_00049460 to /storage/kkm_last_doc_name [14:24:30]save OK [14:24:30]Clear old archive folders... [14:24:30]ProcessDocumentItem done err = 0, tmpTLVsize=286 [14:24:30]tlvbuf is 00EC65A0 [14:24:30]SAM_PROTO_ClearQueue [14:24:30]wFMCommunicate request_size=4 [14:24:30]MH_SAM_APDU [14:24:30]CAPDU: 80 09 00 00 [14:24:30]Write to MH i2c: E2 08 00 85 49 80 09 00 00 00 00 00 00 40 [14:24:30]Write i2c OK [14:24:30]MH_I2C_Read... [14:24:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:30]Read from MH i2c: E2 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: E2 03 00 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: E2 03 00 85 49 00 90 00 42 [14:24:30]RAPDU: 90 00 [14:24:30]wFMCommunicate OK [14:24:30]SAM_PROTO_ClearQueue done [14:24:30]KKMCreateOFDPacket [14:24:30]OFDProtocolAddRootSTLVToBuf [14:24:30]FM_MakeSignedData [14:24:30]FM_MakeSignedData [14:24:30]SAM_PROTO_SignData [14:24:30]wFMCommunicate request_size=4 [14:24:30]MH_SAM_APDU [14:24:30]CAPDU: 80 0D 01 02 [14:24:30]Write to MH i2c: E2 08 00 86 49 80 0D 01 02 00 00 00 00 48 [14:24:30]Write i2c OK [14:24:30]MH_I2C_Read... [14:24:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:30]Read from MH i2c: E2 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: E2 03 00 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: E2 03 00 86 49 00 90 00 43 [14:24:30]RAPDU: 90 00 [14:24:30]wFMCommunicate OK [14:24:30]wFMCommunicate request_size=255 [14:24:30]MH_SAM_APDU [14:24:30]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 23 61 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 [14:24:30]Write to MH i2c: E2 02 01 87 49 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 23 61 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 00 00 F5 [14:24:30]Write i2c OK [14:24:30]MH_I2C_Read... [14:24:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:31]Read from MH i2c: E2 [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: E2 03 00 [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: E2 03 00 87 49 00 90 00 44 [14:24:31]RAPDU: 90 00 [14:24:31]wFMCommunicate OK [14:24:31]wFMCommunicate request_size=45 [14:24:31]MH_SAM_APDU [14:24:31]CAPDU: 80 0D 02 02 28 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 34 C1 00 00 35 04 06 00 94 FE 82 54 D7 5E [14:24:31]Write to MH i2c: E2 30 00 88 49 80 0D 02 02 28 00 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 34 C1 00 00 35 04 06 00 94 FE 82 54 D7 5E 00 00 2B [14:24:31]Write i2c OK [14:24:31]MH_I2C_Read... [14:24:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:31]Read from MH i2c: E2 [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: E2 03 00 [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: E2 03 00 88 49 00 90 00 45 [14:24:31]RAPDU: 90 00 [14:24:31]wFMCommunicate OK [14:24:31]wFMCommunicate request_size=4 [14:24:31]MH_SAM_APDU [14:24:31]CAPDU: 80 0D 03 02 [14:24:31]Write to MH i2c: E2 08 00 89 49 80 0D 03 02 00 00 00 00 4D [14:24:31]Write i2c OK [14:24:31]MH_I2C_Read... [14:24:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:31]Read from MH i2c: E2 [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: E2 0B 00 [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: E2 0B 00 89 49 00 86 B4 18 25 FB 84 C7 E0 90 00 EB [14:24:31]RAPDU: 86 B4 18 25 FB 84 C7 E0 90 00 [14:24:31]wFMCommunicate OK [14:24:31]SAM_PROTO_SignData done [14:24:31]FM_MakeSignedData done [14:24:31]CreateOFDProtocolMessage [14:24:31]wFMCommunicate request_size=4 [14:24:31]MH_SAM_APDU [14:24:31]CAPDU: 80 11 00 00 [14:24:31]Write to MH i2c: E2 08 00 8A 49 80 11 00 00 00 00 00 00 4D [14:24:31]Write i2c OK [14:24:31]MH_I2C_Read... [14:24:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:31]Read from MH i2c: E2 [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: E2 17 00 [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: E2 17 00 8A 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 98 [14:24:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:24:31]wFMCommunicate OK [14:24:31]CreateOFDProtocolMessage done [14:24:31]OFDSenderStorePacket 49460 [14:24:31]StoreOFDPacket docnum=49460 [14:24:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 32 01 00 00 BD 4C 2A 01 36 0D 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 23 61 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 34 C1 00 00 35 04 06 00 94 FE 82 54 D7 5E 86 B4 18 25 FB 84 C7 E0 [14:24:31]CheckFolder [14:24:31]dirname=/storage/ofd_packets [14:24:31]CheckFolder done [14:24:31]ProducePacketName [14:24:31]name=ofd_packets/00049460 [14:24:31]NVStorageSaveData ofd_packets/00049460 [14:24:31]File name is /storage/ofd_packets/00049460 [14:24:31]Write 336 bytes [14:24:31]NVStorageSaveData done [14:24:31]OFDSenderStorePacket done [14:24:31]KKMCreateOFDPacket done [14:24:31]NVStorageSaveData kkm_last_timestamp [14:24:31]File name is /storage/kkm_last_timestamp [14:24:31]Write 4 bytes [14:24:31]NVStorageSaveData done [14:24:31]ExternCall_PrintAddStr [14:24:31]wPrintStart [14:24:31]Write to MH i2c: 01 00 00 8B 49 D4 [14:24:31]OFD Sender: Processing packet 49460 [packets to send 21, broken 20] [14:24:31]ProducePacketName [14:24:31]name=ofd_packets/00049460 [14:24:31]OFD Sender: To server: pG, [14:24:31]CommunicateWithHost lk.salyk.kg:30040 [14:24:31]ConnectInit lk.salyk.kg [14:24:31]Write i2c OK [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: 01 [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: 01 07 00 [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: 01 07 00 8B 49 00 00 00 00 00 FF 0F E9 [14:24:31]RasterBufferAndPrint [14:24:31]line Счет N : (3)189674 [14:24:31]line ИНН: 02508201610067 [14:24:31]line Контрольно-Кассовый Чек [14:24:31]line ПРОДАЖА [14:24:31]line Товар: 4700040114120 [14:24:31]line Султан чай 1л. чер персик [14:24:31]line 1.000 * 65.00 [14:24:31]line = 65.00 [14:24:31]line НДС 12% НСП 1% [14:24:31]line > о реализуемом товаре [14:24:31]line ИТОГО: 65.00 [14:24:31]line НСП 1% : 0.57 [14:24:31]line НДС 12% : 6.90 [14:24:31]line Наличными: 65.00 [14:24:31]line Безнал.: 0.00 [14:24:31]line Место: АЗС № 95 "Партнер Нефть" [14:24:31]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:24:31]line СНО: Общий режим [14:24:31]line Чек 108 16.08.2024 14:24 [14:24:31]line Смена: 464 ФФД: 1.0 [14:24:31]line ЗНМ: 0300000078 [14:24:31]line РНМ: 0000000000092546 [14:24:31]line Версия ККМ: 001 [14:24:31]line ФМ: 0000000000871800 [14:24:31]line ФД: 49460 [14:24:31]line ФПД: 163820829202270 [14:24:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T142435&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49460&fm=163820829202270&tin=02508201610067®Number=0000000000092546&sum=6500 [14:24:31]Connected sock=10 [14:24:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 32 01 00 00 BD 4C 2A 01 36 0D 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 23 61 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 34 C1 00 00 35 04 06 00 94 FE 82 54 D7 5E 86 B4 18 25 FB 84 C7 E0 [14:24:31]line 0 [14:24:31]written 0, free lines is 4095 [14:24:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 65 8D 47 00 CF 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 38 37 31 38 30 30 10 04 04 00 34 C1 00 00 F4 03 04 00 61 0C BF 66 B6 04 01 00 00 2F 34 41 AE 37 52 C0 77 [14:24:32]CommunicateWithHost err = 0 [14:24:32]CheckOFDResponse [14:24:32]1017 (14) - 77093643461234 [14:24:32]1041 (16) - 0000000000871800 [14:24:32]1040 (4) - 49460 [14:24:32]1012 (4) - 16.08.2024 08:22 [14:24:32]1206 (1) - 0 [14:24:32]OFD Sender: Remove packet 49460 [14:24:32]ProducePacketName [14:24:32]name=ofd_packets/00049460 [14:24:32]NVStorageDeleteData [14:24:32]Write to MH i2c: 01 00 00 B3 49 FC [14:24:32]Write i2c OK [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: 01 [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: 01 07 00 [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: 01 07 00 B3 49 00 00 00 00 00 EC 0C FB [14:24:32]RasterBufferAndPrint [14:24:32]line [14:24:32]line [14:24:32]line [14:24:32]line [14:24:32]line [14:24:32]written 0, free lines is 3314 [14:24:32]MH_Cut [14:24:32]Write to MH i2c: D1 01 00 BA 49 01 D5 [14:24:32]Write i2c OK [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: D1 [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: D1 01 00 [14:24:32]MH_I2C_Read... [14:24:32]Read from MH i2c: D1 01 00 BA 49 00 D4 [14:24:32]Write to MH i2c: 01 00 00 BB 49 04 [14:24:32]Write i2c OK [14:24:32]MH_I2C_Read... [14:24:32]OFD Sender: No OFD packet to send [14:24:32]*** Cut start [14:24:32]*** Purtial cut [14:24:32]*** CUTSNS_PIN = 0 [14:24:33]*** Stage 1: CUTSNS_PIN = 1 [14:24:34]Read from MH i2c: 01 [14:24:34]MH_I2C_Read... [14:24:34]*** Stop cut motor [14:24:34]*** Cut end [14:24:34]Read from MH i2c: 01 07 00 [14:24:34]MH_I2C_Read... [14:24:34]Read from MH i2c: 01 07 00 BB 49 00 00 00 00 00 FF 0F 19 [14:24:34]process_action close_receipt done [14:24:34]requested_data is exist [14:24:34]produce_requested_data [14:24:34]requested_item fm.sn is exist - process it [14:24:34]wFMCommunicate request_size=4 [14:24:34]MH_SAM_APDU [14:24:34]CAPDU: 80 11 00 00 [14:24:34]Write to MH i2c: E2 08 00 BC 49 80 11 00 00 00 00 00 00 7F [14:24:34]Write i2c OK [14:24:34]MH_I2C_Read... [14:24:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:34]Read from MH i2c: E2 [14:24:34]MH_I2C_Read... [14:24:34]Read from MH i2c: E2 17 00 [14:24:34]MH_I2C_Read... [14:24:34]Read from MH i2c: E2 17 00 BC 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CA [14:24:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:24:34]wFMCommunicate OK [14:24:34]requested_item fd.num is exist - process it [14:24:34]SAM_PROTO_GetFieldsCounters [14:24:34]wFMCommunicate request_size=4 [14:24:34]MH_SAM_APDU [14:24:34]CAPDU: 80 13 00 00 [14:24:34]Write to MH i2c: E2 08 00 BD 49 80 13 00 00 00 00 00 00 82 [14:24:34]Write i2c OK [14:24:34]MH_I2C_Read... [14:24:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:35]Read from MH i2c: E2 [14:24:35]MH_I2C_Read... [14:24:35]Read from MH i2c: E2 62 00 [14:24:35]MH_I2C_Read... [14:24:35]Read from MH i2c: E2 62 00 BD 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 34 C1 00 00 0E 04 04 00 D0 01 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 A6 [14:24:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 34 C1 00 00 0E 04 04 00 D0 01 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 [14:24:35]wFMCommunicate OK [14:24:35]SAM_PROTO_GetFieldsCounters done [14:24:35]requested_item shift.num is exist - process it [14:24:35]requested_item shift.opened is exist - process it [14:24:35]req_shift_opened [14:24:35]FM_GetShiftState [14:24:35]SAM_PROTO_GetShiftState [14:24:35]wFMCommunicate request_size=4 [14:24:35]MH_SAM_APDU [14:24:35]CAPDU: 80 13 01 00 [14:24:35]Write to MH i2c: E2 08 00 BE 49 80 13 01 00 00 00 00 00 84 [14:24:35]Write i2c OK [14:24:35]MH_I2C_Read... [14:24:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:35]Read from MH i2c: E2 [14:24:35]MH_I2C_Read... [14:24:35]Read from MH i2c: E2 0E 00 [14:24:35]MH_I2C_Read... [14:24:35]Read from MH i2c: E2 0E 00 BE 49 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 FA [14:24:35]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:24:35]wFMCommunicate OK [14:24:35]SAM_PROTO_GetShiftState done [14:24:35]FM_GetShiftState done [14:24:35]req_shift_opened done [14:24:35]requested_item shift.open_date is exist - process it [14:24:35]req_shift_open_date [14:24:35]req_shift_open_date done [14:24:35]produce_requested_data done [14:24:35]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49460,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [14:24:35]process_action_free close_receipt [14:24:35]json_value_free [14:24:35]json_value_free done [14:24:35]process_json_proto returns [14:24:35]Send response to host [14:24:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49460,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [14:24:35]free response buf [14:24:35]execute_script done [14:24:35]execute_script returns [14:24:35]free content buf [14:24:35]Sock 7.Close socket [14:24:35]Sock 7.Thread stoped [14:24:37]OFD Sender: No OFD packet to send [14:24:42]OFD Sender: No OFD packet to send [14:24:47]OFD Sender: No OFD packet to send [14:24:52]OFD Sender: No OFD packet to send [14:24:57]OFD Sender: No OFD packet to send [14:25:02]OFD Sender: No OFD packet to send [14:25:07]OFD Sender: No OFD packet to send [14:25:12]OFD Sender: No OFD packet to send [14:25:17]OFD Sender: No OFD packet to send [14:25:22]OFD Sender: No OFD packet to send [14:25:27]OFD Sender: No OFD packet to send [14:25:32]OFD Sender: No OFD packet to send [14:25:37]OFD Sender: No OFD packet to send [14:25:42]OFD Sender: No OFD packet to send [14:25:47]OFD Sender: No OFD packet to send [14:25:52]OFD Sender: No OFD packet to send [14:25:57]OFD Sender: No OFD packet to send [14:26:02]OFD Sender: No OFD packet to send [14:26:07]OFD Sender: No OFD packet to send [14:26:12]OFD Sender: No OFD packet to send [14:26:13]accept exits with 9 [14:26:13]New connection [14:26:13]New thread 3066973540 created [14:26:13]Thread 3066830180 joined [14:26:13]Waiting for new connection... [14:26:13] Sock 9.Parse request [14:26:13]Sock 9.Check first char [14:26:13]Sock 9.First char is OK [14:26:13]request: POST /json_proto HTTP/1.0 [14:26:13]Method: POST [14:26:13]URL: /json_proto [14:26:13]Method is POST - this is cgi request [14:26:13]url: /json_proto [14:26:13]query_string will be loaded in cgi processing [14:26:13]execute_cgi json_proto POST (null) [14:26:13]execute_cgi path=json_proto method=POST [14:26:13]POST find Content-Length [14:26:13]Host: 172.17.46.196:8080 [14:26:13]Content-Length: 756 [14:26:13]Content-Type: application/json [14:26:13] [14:26:13]POST finish read [14:26:13]Found Content-Length = 756 [14:26:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30121265", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:13]execute_script... [14:26: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)11325430", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30121265", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:13]POST & json_proto [14:26:13]process_json_proto [14:26:13]json parsed OK: [14:26:13]protocol is kg_v1.0 [14:26:13]action value=close_receipt [14:26:13]process_action close_receipt [14:26:13]cmd_close_receipt [14:26:13]MH_GetDate [14:26:13]Write to MH i2c: F0 00 00 BF 49 F7 [14:26:13]Write i2c OK [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: F0 [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: F0 09 00 [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: F0 09 00 BF 49 00 8B 61 BF 66 07 E8 5D 66 C3 [14:26:13]GetLastDocTimeStamp 1723818275 [14:26:13]current date 1723818379 [14:26:13]FM_GetShiftState [14:26:13]SAM_PROTO_GetShiftState [14:26:13]wFMCommunicate request_size=4 [14:26:13]MH_SAM_APDU [14:26:13]CAPDU: 80 13 01 00 [14:26:13]Write to MH i2c: E2 08 00 C0 49 80 13 01 00 00 00 00 00 86 [14:26:13]Write i2c OK [14:26:13]MH_I2C_Read... [14:26:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:13]Read from MH i2c: E2 [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: E2 0E 00 [14:26:13]MH_I2C_Read... [14:26:13]Read from MH i2c: E2 0E 00 C0 49 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 FC [14:26:13]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:26:13]wFMCommunicate OK [14:26:13]SAM_PROTO_GetShiftState done [14:26:13]FM_GetShiftState done [14:26:13]opened in 1723766958 [14:26:13]opened+sec_in_day 1723853358 [14:26:13]quantity*price = 0 [14:26:13]sum+1 = 1 [14:26:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 109 16.08.2024 14:26 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30121265 ФМ: 0000000000871800 ФД: 49461 ФПД: 170969311310068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T142619&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49461&fm=170969311310068&tin=02508201610067®Number=0000000000092546&sum=0 [14:26:14]StoreToDocumentArchive [14:26:14]shift 464 fd 49461 [14:26:14]save to /storage/0464/doc_00049461 [14:26:14]save last doc name /storage/0464/doc_00049461 to /storage/kkm_last_doc_name [14:26:14]save OK [14:26:14]Clear old archive folders... [14:26:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:14]tlvbuf is 00DFB070 [14:26:14]SAM_PROTO_ClearQueue [14:26:14]wFMCommunicate request_size=4 [14:26:14]MH_SAM_APDU [14:26:14]CAPDU: 80 09 00 00 [14:26:14]Write to MH i2c: E2 08 00 CD 49 80 09 00 00 00 00 00 00 88 [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:14]Read from MH i2c: E2 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 CD 49 00 90 00 8A [14:26:14]RAPDU: 90 00 [14:26:14]wFMCommunicate OK [14:26:14]SAM_PROTO_ClearQueue done [14:26:14]KKMCreateOFDPacket [14:26:14]OFDProtocolAddRootSTLVToBuf [14:26:14]FM_MakeSignedData [14:26:14]FM_MakeSignedData [14:26:14]SAM_PROTO_SignData [14:26:14]wFMCommunicate request_size=4 [14:26:14]MH_SAM_APDU [14:26:14]CAPDU: 80 0D 01 02 [14:26:14]Write to MH i2c: E2 08 00 CE 49 80 0D 01 02 00 00 00 00 90 [14:26:14]Write i2c OK [14:26:14]MH_I2C_Read... [14:26:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:14]Read from MH i2c: E2 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 [14:26:14]MH_I2C_Read... [14:26:14]Read from MH i2c: E2 03 00 CE 49 00 90 00 8B [14:26:14]RAPDU: 90 00 [14:26:14]wFMCommunicate OK [14:26:14]wFMCommunicate request_size=255 [14:26:14]MH_SAM_APDU [14:26:14]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 8B 61 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 35 C1 00 00 35 04 06 00 9B [14:26:15]Write to MH i2c: E2 02 01 CF 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 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 8B 61 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 35 C1 00 00 35 04 06 00 9B 00 00 17 [14:26:15]Write i2c OK [14:26:15]MH_I2C_Read... [14:26:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:15]Read from MH i2c: E2 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: E2 03 00 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: E2 03 00 CF 49 00 90 00 8C [14:26:15]RAPDU: 90 00 [14:26:15]wFMCommunicate OK [14:26:15]wFMCommunicate request_size=10 [14:26:15]MH_SAM_APDU [14:26:15]CAPDU: 80 0D 02 02 05 7E E5 11 70 F4 [14:26:15]Write to MH i2c: E2 0D 00 D0 49 80 0D 02 02 05 00 7E E5 11 70 F4 00 00 75 [14:26:15]Write i2c OK [14:26:15]MH_I2C_Read... [14:26:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:15]Read from MH i2c: E2 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: E2 03 00 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: E2 03 00 D0 49 00 90 00 8D [14:26:15]RAPDU: 90 00 [14:26:15]wFMCommunicate OK [14:26:15]wFMCommunicate request_size=4 [14:26:15]MH_SAM_APDU [14:26:15]CAPDU: 80 0D 03 02 [14:26:15]Write to MH i2c: E2 08 00 D1 49 80 0D 03 02 00 00 00 00 95 [14:26:15]Write i2c OK [14:26:15]MH_I2C_Read... [14:26:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:15]Read from MH i2c: E2 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: E2 0B 00 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: E2 0B 00 D1 49 00 F1 C4 E3 7A 25 4C E2 8C 90 00 87 [14:26:15]RAPDU: F1 C4 E3 7A 25 4C E2 8C 90 00 [14:26:15]wFMCommunicate OK [14:26:15]SAM_PROTO_SignData done [14:26:15]FM_MakeSignedData done [14:26:15]CreateOFDProtocolMessage [14:26:15]wFMCommunicate request_size=4 [14:26:15]MH_SAM_APDU [14:26:15]CAPDU: 80 11 00 00 [14:26:15]Write to MH i2c: E2 08 00 D2 49 80 11 00 00 00 00 00 00 95 [14:26:15]Write i2c OK [14:26:15]MH_I2C_Read... [14:26:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:15]Read from MH i2c: E2 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: E2 17 00 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: E2 17 00 D2 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E0 [14:26:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:26:15]wFMCommunicate OK [14:26:15]CreateOFDProtocolMessage done [14:26:15]OFDSenderStorePacket 49461 [14:26:15]StoreOFDPacket docnum=49461 [14:26:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 2B 0C 07 01 47 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 8B 61 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 35 C1 00 00 35 04 06 00 9B 7E E5 11 70 F4 F1 C4 E3 7A 25 4C E2 8C [14:26:15]CheckFolder [14:26:15]dirname=/storage/ofd_packets [14:26:15]CheckFolder done [14:26:15]ProducePacketName [14:26:15]name=ofd_packets/00049461 [14:26:15]NVStorageSaveData ofd_packets/00049461 [14:26:15]File name is /storage/ofd_packets/00049461 [14:26:15]Write 301 bytes [14:26:15]NVStorageSaveData done [14:26:15]OFDSenderStorePacket done [14:26:15]KKMCreateOFDPacket done [14:26:15]NVStorageSaveData kkm_last_timestamp [14:26:15]File name is /storage/kkm_last_timestamp [14:26:15]Write 4 bytes [14:26:15]NVStorageSaveData done [14:26:15]ExternCall_PrintAddStr [14:26:15]wPrintStart [14:26:15]Write to MH i2c: 01 00 00 D3 49 1C [14:26:15]OFD Sender: Processing packet 49461 [packets to send 21, broken 20] [14:26:15]ProducePacketName [14:26:15]name=ofd_packets/00049461 [14:26:15]OFD Sender: To server: pG, [14:26:15]CommunicateWithHost lk.salyk.kg:30040 [14:26:15]ConnectInit lk.salyk.kg [14:26:15]Write i2c OK [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: 01 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: 01 07 00 [14:26:15]MH_I2C_Read... [14:26:15]Read from MH i2c: 01 07 00 D3 49 00 00 00 00 00 FF 0F 31 [14:26:15]RasterBufferAndPrint [14:26:15]line Счет N : (1)11325430 [14:26:15]line ИНН: 02508201610067 [14:26:15]line Контрольно-Кассовый Чек [14:26:15]line ПРОДАЖА [14:26:15]line ТРК (МРК, ГНК) : 12 [14:26:15]line Товар: 2710124130 [14:26:15]line Аи-92-К-4 [14:26:15]line 30.000 * 0.00 [14:26:15]line = 0.00 [14:26:15]line НДС 12% НСП 1% [14:26:15]line > о реализуемом товаре [14:26:15]line ИТОГО: 0.00 [14:26:15]line НСП 1% : 0.00 [14:26:15]line НДС 12% : 0.00 [14:26:15]line Наличными: 0.00 [14:26:15]line Безнал.: 0.00 [14:26:15]line Место: АЗС № 95 "Партнер Нефть" [14:26:15]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:26:15]line СНО: Общий режим [14:26:15]line Чек 109 16.08.2024 14:26 [14:26:15]line Смена: 464 ФФД: 1.0 [14:26:15]line ЗНМ: 0300000078 [14:26:15]line РНМ: 0000000000092546 [14:26:15]line Версия ККМ: 001 [14:26:15]line Талоны: ТК ГПНА Online [14:26:15]line 30121265 [14:26:15]line ФМ: 0000000000871800 [14:26:15]line ФД: 49461 [14:26:15]line ФПД: 170969311310068 [14:26:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T142619&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49461&fm=170969311310068&tin=02508201610067®Number=0000000000092546&sum=0 [14:26:15]Connected sock=10 [14:26:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 2B 0C 07 01 47 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 8B 61 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 35 C1 00 00 35 04 06 00 9B 7E E5 11 70 F4 F1 C4 E3 7A 25 4C E2 8C [14:26:15]written 0, free lines is 4095 [14:26:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C8 61 47 00 3B C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 35 C1 00 00 F4 03 04 00 CA 0C BF 66 B6 04 01 00 00 DE 85 44 D1 42 3A 24 14 [14:26:15]CommunicateWithHost err = 0 [14:26:15]CheckOFDResponse [14:26:15]1017 (14) - 77093643461234 [14:26:15]1041 (16) - 0000000000871800 [14:26:15]1040 (4) - 49461 [14:26:15]1012 (4) - 16.08.2024 08:24 [14:26:15]1206 (1) - 0 [14:26:15]OFD Sender: Remove packet 49461 [14:26:15]ProducePacketName [14:26:15]name=ofd_packets/00049461 [14:26:15]NVStorageDeleteData [14:26:16]Write to MH i2c: 01 00 00 FD 49 46 [14:26:16]Write i2c OK [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: 01 [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: 01 07 00 [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: 01 07 00 FD 49 00 00 00 00 00 D9 0C 32 [14:26:16]RasterBufferAndPrint [14:26:16]line [14:26:16]line [14:26:16]line [14:26:16]line [14:26:16]line [14:26:16]written 0, free lines is 3295 [14:26:16]MH_Cut [14:26:16]Write to MH i2c: D1 01 00 04 4A 01 20 [14:26:16]Write i2c OK [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: D1 [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: D1 01 00 [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: D1 01 00 04 4A 00 1F [14:26:16]Write to MH i2c: 01 00 00 05 4A 4F [14:26:16]Write i2c OK [14:26:16]MH_I2C_Read... [14:26:16]OFD Sender: No OFD packet to send [14:26:16]*** Cut start [14:26:16]*** Purtial cut [14:26:16]*** Stage 1: CUTSNS_PIN = 1 [14:26:17]Read from MH i2c: 01 [14:26:17]MH_I2C_Read... [14:26:17]*** Stop cut motor [14:26:17]*** Cut end [14:26:17]Read from MH i2c: 01 07 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: 01 07 00 05 4A 00 00 00 00 00 FF 0F 64 [14:26:17]process_action close_receipt done [14:26:17]requested_data is exist [14:26:17]produce_requested_data [14:26:17]requested_item fm.sn is exist - process it [14:26:17]wFMCommunicate request_size=4 [14:26:17]MH_SAM_APDU [14:26:17]CAPDU: 80 11 00 00 [14:26:17]Write to MH i2c: E2 08 00 06 4A 80 11 00 00 00 00 00 00 CA [14:26:17]Write i2c OK [14:26:17]MH_I2C_Read... [14:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:17]Read from MH i2c: E2 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 17 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 17 00 06 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 15 [14:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:26:17]wFMCommunicate OK [14:26:17]requested_item fd.num is exist - process it [14:26:17]SAM_PROTO_GetFieldsCounters [14:26:17]wFMCommunicate request_size=4 [14:26:17]MH_SAM_APDU [14:26:17]CAPDU: 80 13 00 00 [14:26:17]Write to MH i2c: E2 08 00 07 4A 80 13 00 00 00 00 00 00 CD [14:26:17]Write i2c OK [14:26:17]MH_I2C_Read... [14:26:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:17]Read from MH i2c: E2 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 62 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 62 00 07 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 35 C1 00 00 0E 04 04 00 D0 01 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 F5 [14:26:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 35 C1 00 00 0E 04 04 00 D0 01 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 [14:26:17]wFMCommunicate OK [14:26:17]SAM_PROTO_GetFieldsCounters done [14:26:17]requested_item shift.num is exist - process it [14:26:17]requested_item shift.opened is exist - process it [14:26:17]req_shift_opened [14:26:17]FM_GetShiftState [14:26:17]SAM_PROTO_GetShiftState [14:26:17]wFMCommunicate request_size=4 [14:26:17]MH_SAM_APDU [14:26:17]CAPDU: 80 13 01 00 [14:26:17]Write to MH i2c: E2 08 00 08 4A 80 13 01 00 00 00 00 00 CF [14:26:17]Write i2c OK [14:26:17]MH_I2C_Read... [14:26:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:17]Read from MH i2c: E2 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 0E 00 [14:26:17]MH_I2C_Read... [14:26:17]Read from MH i2c: E2 0E 00 08 4A 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 45 [14:26:17]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:26:17]wFMCommunicate OK [14:26:17]SAM_PROTO_GetShiftState done [14:26:17]FM_GetShiftState done [14:26:17]req_shift_opened done [14:26:17]requested_item shift.open_date is exist - process it [14:26:17]req_shift_open_date [14:26:17]req_shift_open_date done [14:26:17]produce_requested_data done [14:26:17]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49461,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [14:26:17]process_action_free close_receipt [14:26:17]json_value_free [14:26:17]json_value_free done [14:26:17]process_json_proto returns [14:26:17]Send response to host [14:26:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49461,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [14:26:17]free response buf [14:26:17]execute_script done [14:26:17]execute_script returns [14:26:17]free content buf [14:26:17]Sock 9.Close socket [14:26:17]Sock 9.Thread stoped [14:26:21]OFD Sender: No OFD packet to send [14:26:26]OFD Sender: No OFD packet to send [14:26:31]OFD Sender: No OFD packet to send [14:26:36]OFD Sender: No OFD packet to send [14:26:41]OFD Sender: No OFD packet to send [14:26:46]OFD Sender: No OFD packet to send [14:26:51]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:06]OFD Sender: No OFD packet to send [14:27:11]OFD Sender: No OFD packet to send [14:27:16]OFD Sender: No OFD packet to send [14:27:21]OFD Sender: No OFD packet to send [14:27:26]OFD Sender: No OFD packet to send [14:27:31]OFD Sender: No OFD packet to send [14:27:36]OFD Sender: No OFD packet to send [14:27:41]OFD Sender: No OFD packet to send [14:27:46]OFD Sender: No OFD packet to send [14:27:51]OFD Sender: No OFD packet to send [14:27:56]OFD Sender: No OFD packet to send [14:28:01]OFD Sender: No OFD packet to send [14:28:06]OFD Sender: No OFD packet to send [14:28:11]OFD Sender: No OFD packet to send [14:28:16]OFD Sender: No OFD packet to send [14:28:21]OFD Sender: No OFD packet to send [14:28:26]OFD Sender: No OFD packet to send [14:28:31]OFD Sender: No OFD packet to send [14:28:36]OFD Sender: No OFD packet to send [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:51]accept exits with 7 [14:30:51]New connection [14:30:51]New thread 3066830180 created [14:30:51]Thread 3066973540 joined [14:30:51]Waiting for new connection... [14:30:51] Sock 7.Parse request [14:30:51]Sock 7.Check first char [14:30:51]Sock 7.First char is OK [14:30:51]request: POST /json_proto HTTP/1.0 [14:30:51]Method: POST [14:30:51]URL: /json_proto [14:30:51]Method is POST - this is cgi request [14:30:51]url: /json_proto [14:30:51]query_string will be loaded in cgi processing [14:30:51]execute_cgi json_proto POST (null) [14:30:51]execute_cgi path=json_proto method=POST [14:30:51]POST find Content-Length [14:30:51]Host: 172.17.46.196:8080 [14:30:51]Content-Length: 891 [14:30:51]Content-Type: application/json [14:30:51] [14:30:51]POST finish read [14:30:51]Found Content-Length = 891 [14:30:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189675", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:51]execute_script... [14:30: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 : (3)189675", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:51]POST & json_proto [14:30:51]process_json_proto [14:30:51]json parsed OK: [14:30:51]protocol is kg_v1.0 [14:30:51]action value=close_receipt [14:30:51]process_action close_receipt [14:30:51]cmd_close_receipt [14:30:51]MH_GetDate [14:30:51]Write to MH i2c: F0 00 00 09 4A 42 [14:30:51]Write i2c OK [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: F0 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: F0 09 00 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: F0 09 00 09 4A 00 A1 62 BF 66 07 E8 5D 66 25 [14:30:51]GetLastDocTimeStamp 1723818379 [14:30:51]current date 1723818657 [14:30:51]FM_GetShiftState [14:30:51]SAM_PROTO_GetShiftState [14:30:51]wFMCommunicate request_size=4 [14:30:51]MH_SAM_APDU [14:30:51]CAPDU: 80 13 01 00 [14:30:51]Write to MH i2c: E2 08 00 0A 4A 80 13 01 00 00 00 00 00 D1 [14:30:51]Write i2c OK [14:30:51]MH_I2C_Read... [14:30:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:51]Read from MH i2c: E2 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 0E 00 [14:30:51]MH_I2C_Read... [14:30:51]Read from MH i2c: E2 0E 00 0A 4A 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 47 [14:30:51]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:30:51]wFMCommunicate OK [14:30:51]SAM_PROTO_GetShiftState done [14:30:51]FM_GetShiftState done [14:30:51]opened in 1723766958 [14:30:51]opened+sec_in_day 1723853358 [14:30:51]quantity*price = 3500 [14:30:51]sum+1 = 3501 [14:30:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 110 16.08.2024 14:30 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49462 ФПД: 14357942559485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T143057&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49462&fm=14357942559485&tin=02508201610067®Number=0000000000092546&sum=8500 0 [14:30:52]StoreToDocumentArchive [14:30:52]shift 464 fd 49462 [14:30:52]save to /storage/0464/doc_00049462 [14:30:52]save last doc name /storage/0464/doc_00049462 to /storage/kkm_last_doc_name [14:30:52]save OK [14:30:52]Clear old archive folders... [14:30:52]ProcessDocumentItem done err = 0, tmpTLVsize=374 [14:30:52]tlvbuf is 00F4A2F0 [14:30:52]SAM_PROTO_ClearQueue [14:30:52]wFMCommunicate request_size=4 [14:30:52]MH_SAM_APDU [14:30:52]CAPDU: 80 09 00 00 [14:30:52]Write to MH i2c: E2 08 00 17 4A 80 09 00 00 00 00 00 00 D3 [14:30:52]Write i2c OK [14:30:52]MH_I2C_Read... [14:30:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:52]Read from MH i2c: E2 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: E2 03 00 [14:30:52]MH_I2C_Read... [14:30:52]Read from MH i2c: E2 03 00 17 4A 00 90 00 D5 [14:30:52]RAPDU: 90 00 [14:30:52]wFMCommunicate OK [14:30:52]SAM_PROTO_ClearQueue done [14:30:52]KKMCreateOFDPacket [14:30:52]OFDProtocolAddRootSTLVToBuf [14:30:52]FM_MakeSignedData [14:30:52]FM_MakeSignedData [14:30:52]SAM_PROTO_SignData [14:30:52]wFMCommunicate request_size=4 [14:30:52]MH_SAM_APDU [14:30:52]CAPDU: 80 0D 01 02 [14:30:52]Write to MH i2c: E2 08 00 18 4A 80 0D 01 02 00 00 00 00 DB [14:30:52]Write i2c OK [14:30:52]MH_I2C_Read... [14:30:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:53]Read from MH i2c: E2 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 03 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 03 00 18 4A 00 90 00 D6 [14:30:53]RAPDU: 90 00 [14:30:53]wFMCommunicate OK [14:30:53]wFMCommunicate request_size=255 [14:30:53]MH_SAM_APDU [14:30:53]CAPDU: 80 0D 02 02 FA 03 00 76 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 [14:30:53]Write to MH i2c: E2 02 01 19 4A 80 0D 02 02 FA 00 03 00 76 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 00 00 AB [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:53]Read from MH i2c: E2 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 03 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 03 00 19 4A 00 90 00 D7 [14:30:53]RAPDU: 90 00 [14:30:53]wFMCommunicate OK [14:30:53]wFMCommunicate request_size=133 [14:30:53]MH_SAM_APDU [14:30:53]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 A1 62 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 36 C1 00 00 35 04 06 00 0D 0E F8 10 E2 FD [14:30:53]Write to MH i2c: E2 88 00 1A 4A 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 A1 62 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 36 C1 00 00 35 04 06 00 0D 0E F8 10 E2 FD 00 00 43 [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:53]Read from MH i2c: E2 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 03 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 03 00 1A 4A 00 90 00 D8 [14:30:53]RAPDU: 90 00 [14:30:53]wFMCommunicate OK [14:30:53]wFMCommunicate request_size=4 [14:30:53]MH_SAM_APDU [14:30:53]CAPDU: 80 0D 03 02 [14:30:53]Write to MH i2c: E2 08 00 1B 4A 80 0D 03 02 00 00 00 00 E0 [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:53]Read from MH i2c: E2 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 0B 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 0B 00 1B 4A 00 F5 D5 04 47 49 D6 CF DD 90 00 C1 [14:30:53]RAPDU: F5 D5 04 47 49 D6 CF DD 90 00 [14:30:53]wFMCommunicate OK [14:30:53]SAM_PROTO_SignData done [14:30:53]FM_MakeSignedData done [14:30:53]CreateOFDProtocolMessage [14:30:53]wFMCommunicate request_size=4 [14:30:53]MH_SAM_APDU [14:30:53]CAPDU: 80 11 00 00 [14:30:53]Write to MH i2c: E2 08 00 1C 4A 80 11 00 00 00 00 00 00 E0 [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:53]Read from MH i2c: E2 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 17 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: E2 17 00 1C 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2B [14:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:30:53]wFMCommunicate OK [14:30:53]CreateOFDProtocolMessage done [14:30:53]OFDSenderStorePacket 49462 [14:30:53]StoreOFDPacket docnum=49462 [14:30:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 8A 01 00 00 CA 02 82 01 5C E8 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 A1 62 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 36 C1 00 00 35 04 06 00 0D 0E F8 10 E2 FD F5 D5 04 47 49 D6 CF DD [14:30:53]CheckFolder [14:30:53]dirname=/storage/ofd_packets [14:30:53]CheckFolder done [14:30:53]ProducePacketName [14:30:53]name=ofd_packets/00049462 [14:30:53]NVStorageSaveData ofd_packets/00049462 [14:30:53]File name is /storage/ofd_packets/00049462 [14:30:53]Write 424 bytes [14:30:53]NVStorageSaveData done [14:30:53]OFDSenderStorePacket done [14:30:53]KKMCreateOFDPacket done [14:30:53]NVStorageSaveData kkm_last_timestamp [14:30:53]File name is /storage/kkm_last_timestamp [14:30:53]Write 4 bytes [14:30:53]NVStorageSaveData done [14:30:53]ExternCall_PrintAddStr [14:30:53]wPrintStart [14:30:53]Write to MH i2c: 01 00 00 1D 4A 67 [14:30:53]Write i2c OK [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: 01 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: 01 07 00 [14:30:53]MH_I2C_Read... [14:30:53]Read from MH i2c: 01 07 00 1D 4A 00 00 00 00 00 FF 0F 7C [14:30:53]RasterBufferAndPrint [14:30:53]line Счет N : (3)189675 [14:30:53]line ИНН: 02508201610067 [14:30:53]line Контрольно-Кассовый Чек [14:30:53]line ПРОДАЖА [14:30:53]line Товар: 4700000310326 [14:30:53]line Вода Адыгене 1л б/г [14:30:53]line 1.000 * 35.00 [14:30:53]line = 35.00 [14:30:53]line НДС 12% НСП 1% [14:30:53]line > о реализуемом товаре [14:30:53]line Товар: 4700000160358 [14:30:53]line Вода Легенда 1л [14:30:53]line 1.000 * 50.00 [14:30:53]line = 50.00 [14:30:53]line НДС 12% НСП 1% [14:30:53]line > о реализуемом товаре [14:30:53]line ИТОГО: 85.00 [14:30:53]line НСП 1% : 0.75 [14:30:53]line НДС 12% : 9.03 [14:30:53]line Наличными: 85.00 [14:30:53]line Безнал.: 0.00 [14:30:53]line Место: АЗС № 95 "Партнер Нефть" [14:30:53]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:30:53]line СНО: Общий режим [14:30:53]line Чек 110 16.08.2024 14:30 [14:30:53]line Смена: 464 ФФД: 1.0 [14:30:53]line ЗНМ: 0300000078 [14:30:53]line РНМ: 0000000000092546 [14:30:53]line Версия ККМ: 001 [14:30:53]line ФМ: 0000000000871800 [14:30:53]line ФД: 49462 [14:30:53]line ФПД: 14357942559485 [14:30:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T143057&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49462&fm=14357942559485&tin=02508201610067®Number=0000000000092546&sum=8500 [14:30:53]line 0 [14:30:53]OFD Sender: Processing packet 49462 [packets to send 21, broken 20] [14:30:53]ProducePacketName [14:30:53]name=ofd_packets/00049462 [14:30:53]OFD Sender: To server: pG, [14:30:53]CommunicateWithHost lk.salyk.kg:30040 [14:30:53]ConnectInit lk.salyk.kg [14:30:53]written 0, free lines is 4095 [14:30:54]Connected sock=10 [14:30:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 8A 01 00 00 CA 02 82 01 5C E8 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 A1 62 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 36 C1 00 00 35 04 06 00 0D 0E F8 10 E2 FD F5 D5 04 47 49 D6 CF DD [14:30:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C7 5B 47 00 F4 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 36 C1 00 00 F4 03 04 00 E0 0D BF 66 B6 04 01 00 00 68 CF 41 10 C0 D4 2D 77 [14:30:54]CommunicateWithHost err = 0 [14:30:54]CheckOFDResponse [14:30:54]1017 (14) - 77093643461234 [14:30:54]1041 (16) - 0000000000871800 [14:30:54]1040 (4) - 49462 [14:30:54]1012 (4) - 16.08.2024 08:29 [14:30:54]1206 (1) - 0 [14:30:54]OFD Sender: Remove packet 49462 [14:30:54]ProducePacketName [14:30:54]name=ofd_packets/00049462 [14:30:54]NVStorageDeleteData [14:30:54]Write to MH i2c: 01 00 00 4B 4A 95 [14:30:54]Write i2c OK [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: 01 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: 01 07 00 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: 01 07 00 4B 4A 00 00 00 00 00 94 0C 3C [14:30:54]RasterBufferAndPrint [14:30:54]line [14:30:54]line [14:30:54]line [14:30:54]line [14:30:54]line [14:30:54]written 0, free lines is 3227 [14:30:54]MH_Cut [14:30:54]Write to MH i2c: D1 01 00 52 4A 01 6E [14:30:54]Write i2c OK [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: D1 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: D1 01 00 [14:30:54]MH_I2C_Read... [14:30:54]Read from MH i2c: D1 01 00 52 4A 00 6D [14:30:54]Write to MH i2c: 01 00 00 53 4A 9D [14:30:54]Write i2c OK [14:30:54]MH_I2C_Read... [14:30:54]OFD Sender: No OFD packet to send [14:30:55]*** Cut start [14:30:55]*** Purtial cut [14:30:55]*** CUTSNS_PIN = 0 [14:30:55]*** Stage 1: CUTSNS_PIN = 1 [14:30:57]Read from MH i2c: 01 [14:30:57]MH_I2C_Read... [14:30:57]*** Stop cut motor [14:30:57]*** Cut end [14:30:57]Read from MH i2c: 01 07 00 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: 01 07 00 53 4A 00 00 00 00 00 FF 0F B2 [14:30:57]process_action close_receipt done [14:30:57]requested_data is exist [14:30:57]produce_requested_data [14:30:57]requested_item fm.sn is exist - process it [14:30:57]wFMCommunicate request_size=4 [14:30:57]MH_SAM_APDU [14:30:57]CAPDU: 80 11 00 00 [14:30:57]Write to MH i2c: E2 08 00 54 4A 80 11 00 00 00 00 00 00 18 [14:30:57]Write i2c OK [14:30:57]MH_I2C_Read... [14:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:57]Read from MH i2c: E2 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: E2 17 00 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: E2 17 00 54 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 63 [14:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:30:57]wFMCommunicate OK [14:30:57]requested_item fd.num is exist - process it [14:30:57]SAM_PROTO_GetFieldsCounters [14:30:57]wFMCommunicate request_size=4 [14:30:57]MH_SAM_APDU [14:30:57]CAPDU: 80 13 00 00 [14:30:57]Write to MH i2c: E2 08 00 55 4A 80 13 00 00 00 00 00 00 1B [14:30:57]Write i2c OK [14:30:57]MH_I2C_Read... [14:30:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:57]Read from MH i2c: E2 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: E2 62 00 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: E2 62 00 55 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 36 C1 00 00 0E 04 04 00 D0 01 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 47 [14:30:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 36 C1 00 00 0E 04 04 00 D0 01 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 [14:30:57]wFMCommunicate OK [14:30:57]SAM_PROTO_GetFieldsCounters done [14:30:57]requested_item shift.num is exist - process it [14:30:57]requested_item shift.opened is exist - process it [14:30:57]req_shift_opened [14:30:57]FM_GetShiftState [14:30:57]SAM_PROTO_GetShiftState [14:30:57]wFMCommunicate request_size=4 [14:30:57]MH_SAM_APDU [14:30:57]CAPDU: 80 13 01 00 [14:30:57]Write to MH i2c: E2 08 00 56 4A 80 13 01 00 00 00 00 00 1D [14:30:57]Write i2c OK [14:30:57]MH_I2C_Read... [14:30:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:57]Read from MH i2c: E2 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: E2 0E 00 [14:30:57]MH_I2C_Read... [14:30:57]Read from MH i2c: E2 0E 00 56 4A 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 93 [14:30:57]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:30:57]wFMCommunicate OK [14:30:57]SAM_PROTO_GetShiftState done [14:30:57]FM_GetShiftState done [14:30:57]req_shift_opened done [14:30:57]requested_item shift.open_date is exist - process it [14:30:57]req_shift_open_date [14:30:57]req_shift_open_date done [14:30:57]produce_requested_data done [14:30:57]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49462,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [14:30:57]process_action_free close_receipt [14:30:57]json_value_free [14:30:57]json_value_free done [14:30:57]process_json_proto returns [14:30:57]Send response to host [14:30:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49462,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [14:30:57]free response buf [14:30:57]execute_script done [14:30:57]execute_script returns [14:30:57]free content buf [14:30:57]Sock 7.Close socket [14:30:57]Sock 7.Thread stoped [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:35]OFD Sender: No OFD packet to send [14:33:40]OFD Sender: No OFD packet to send [14:33:45]OFD Sender: No OFD packet to send [14:33:50]OFD Sender: No OFD packet to send [14:33:55]OFD Sender: No OFD packet to send [14:34:00]OFD Sender: No OFD packet to send [14:34:05]OFD Sender: No OFD packet to send [14:34:10]OFD Sender: No OFD packet to send [14:34:15]OFD Sender: No OFD packet to send [14:34:20]OFD Sender: No OFD packet to send [14:34:25]OFD Sender: No OFD packet to send [14:34:30]OFD Sender: No OFD packet to send [14:34:35]OFD Sender: No OFD packet to send [14:34:40]OFD Sender: No OFD packet to send [14:34:45]OFD Sender: No OFD packet to send [14:34:50]OFD Sender: No OFD packet to send [14:34:55]OFD Sender: No OFD packet to send [14:35:00]OFD Sender: No OFD packet to send [14:35:05]OFD Sender: No OFD packet to send [14:35:10]OFD Sender: No OFD packet to send [14:35:15]OFD Sender: No OFD packet to send [14:35:20]OFD Sender: No OFD packet to send [14:35:25]OFD Sender: No OFD packet to send [14:35:30]OFD Sender: No OFD packet to send [14:35:35]OFD Sender: No OFD packet to send [14:35:40]OFD Sender: No OFD packet to send [14:35:45]OFD Sender: No OFD packet to send [14:35:50]OFD Sender: No OFD packet to send [14:35:55]OFD Sender: No OFD packet to send [14:36:00]OFD Sender: No OFD packet to send [14:36:05]OFD Sender: No OFD packet to send [14:36:10]OFD Sender: No OFD packet to send [14:36:15]OFD Sender: No OFD packet to send [14:36:20]OFD Sender: No OFD packet to send [14:36:25]OFD Sender: No OFD packet to send [14:36:30]OFD Sender: No OFD packet to send [14:36:35]OFD Sender: No OFD packet to send [14:36:40]OFD Sender: No OFD packet to send [14:36:45]OFD Sender: No OFD packet to send [14:36:50]OFD Sender: No OFD packet to send [14:36:55]OFD Sender: No OFD packet to send [14:37:00]OFD Sender: No OFD packet to send [14:37:05]OFD Sender: No OFD packet to send [14:37:10]OFD Sender: No OFD packet to send [14:37:15]OFD Sender: No OFD packet to send [14:37:20]OFD Sender: No OFD packet to send [14:37:25]OFD Sender: No OFD packet to send [14:37:30]OFD Sender: No OFD packet to send [14:37:35]OFD Sender: No OFD packet to send [14:37:40]OFD Sender: No OFD packet to send [14:37:45]OFD Sender: No OFD packet to send [14:37:50]OFD Sender: No OFD packet to send [14:37:55]OFD Sender: No OFD packet to send [14:38:00]OFD Sender: No OFD packet to send [14:38:05]OFD Sender: No OFD packet to send [14:38:10]OFD Sender: No OFD packet to send [14:38:15]OFD Sender: No OFD packet to send [14:38:20]OFD Sender: No OFD packet to send [14:38:25]OFD Sender: No OFD packet to send [14:38:30]OFD Sender: No OFD packet to send [14:38:35]OFD Sender: No OFD packet to send [14:38:40]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:47]accept exits with 9 [14:39:47]New connection [14:39:47]New thread 3066973540 created [14:39:47]Thread 3066830180 joined [14:39:47]Waiting for new connection... [14:39:47] Sock 9.Parse request [14:39:47]Sock 9.Check first char [14:39:47]Sock 9.First char is OK [14:39:47]request: POST /json_proto HTTP/1.0 [14:39:47]Method: POST [14:39:47]URL: /json_proto [14:39:47]Method is POST - this is cgi request [14:39:47]url: /json_proto [14:39:47]query_string will be loaded in cgi processing [14:39:47]execute_cgi json_proto POST (null) [14:39:47]execute_cgi path=json_proto method=POST [14:39:47]POST find Content-Length [14:39:47]Host: 172.17.46.196:8080 [14:39:47]Content-Length: 632 [14:39:47]Content-Type: application/json [14:39:47] [14:39:47]POST finish read [14:39:47]Found Content-Length = 632 [14:39:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189676", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:47]execute_script... [14:39:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189676", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:47]POST & json_proto [14:39:47]process_json_proto [14:39:47]json parsed OK: [14:39:47]protocol is kg_v1.0 [14:39:47]action value=close_receipt [14:39:47]process_action close_receipt [14:39:47]cmd_close_receipt [14:39:47]MH_GetDate [14:39:47]Write to MH i2c: F0 00 00 57 4A 90 [14:39:47]Write i2c OK [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: F0 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: F0 09 00 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: F0 09 00 57 4A 00 B9 64 BF 66 07 E8 5D 66 8D [14:39:47]GetLastDocTimeStamp 1723818657 [14:39:47]current date 1723819193 [14:39:47]FM_GetShiftState [14:39:47]SAM_PROTO_GetShiftState [14:39:47]wFMCommunicate request_size=4 [14:39:47]MH_SAM_APDU [14:39:47]CAPDU: 80 13 01 00 [14:39:47]Write to MH i2c: E2 08 00 58 4A 80 13 01 00 00 00 00 00 1F [14:39:47]Write i2c OK [14:39:47]MH_I2C_Read... [14:39:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:47]Read from MH i2c: E2 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 0E 00 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 0E 00 58 4A 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 95 [14:39:47]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:39:47]wFMCommunicate OK [14:39:47]SAM_PROTO_GetShiftState done [14:39:47]FM_GetShiftState done [14:39:47]opened in 1723766958 [14:39:47]opened+sec_in_day 1723853358 [14:39:47]quantity*price = 4000 [14:39:47]sum+1 = 4001 [14:39:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 111 16.08.2024 14:39 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49463 ФПД: 114924740706602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T143953&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49463&fm=114924740706602&tin=02508201610067®Number=0000000000092546&sum=4000 0 [14:39:48]StoreToDocumentArchive [14:39:48]shift 464 fd 49463 [14:39:48]save to /storage/0464/doc_00049463 [14:39:48]save last doc name /storage/0464/doc_00049463 to /storage/kkm_last_doc_name [14:39:48]save OK [14:39:48]Clear old archive folders... [14:39:48]ProcessDocumentItem done err = 0, tmpTLVsize=271 [14:39:48]tlvbuf is B6F5AB90 [14:39:48]SAM_PROTO_ClearQueue [14:39:48]wFMCommunicate request_size=4 [14:39:48]MH_SAM_APDU [14:39:48]CAPDU: 80 09 00 00 [14:39:48]Write to MH i2c: E2 08 00 65 4A 80 09 00 00 00 00 00 00 21 [14:39:48]Write i2c OK [14:39:48]MH_I2C_Read... [14:39:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:48]Read from MH i2c: E2 [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: E2 03 00 [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: E2 03 00 65 4A 00 90 00 23 [14:39:48]RAPDU: 90 00 [14:39:48]wFMCommunicate OK [14:39:48]SAM_PROTO_ClearQueue done [14:39:48]KKMCreateOFDPacket [14:39:48]OFDProtocolAddRootSTLVToBuf [14:39:48]FM_MakeSignedData [14:39:48]FM_MakeSignedData [14:39:48]SAM_PROTO_SignData [14:39:48]wFMCommunicate request_size=4 [14:39:48]MH_SAM_APDU [14:39:48]CAPDU: 80 0D 01 02 [14:39:48]Write to MH i2c: E2 08 00 66 4A 80 0D 01 02 00 00 00 00 29 [14:39:48]Write i2c OK [14:39:48]MH_I2C_Read... [14:39:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:48]Read from MH i2c: E2 [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: E2 03 00 [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: E2 03 00 66 4A 00 90 00 24 [14:39:48]RAPDU: 90 00 [14:39:48]wFMCommunicate OK [14:39:48]wFMCommunicate request_size=255 [14:39:48]MH_SAM_APDU [14:39:48]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 B9 64 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [14:39:48]Write to MH i2c: E2 02 01 67 4A 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 B9 64 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 91 [14:39:48]Write i2c OK [14:39:48]MH_I2C_Read... [14:39:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:48]Read from MH i2c: E2 [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: E2 03 00 [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: E2 03 00 67 4A 00 90 00 25 [14:39:48]RAPDU: 90 00 [14:39:48]wFMCommunicate OK [14:39:48]wFMCommunicate request_size=30 [14:39:48]MH_SAM_APDU [14:39:48]CAPDU: 80 0D 02 02 19 30 38 37 31 38 30 30 10 04 04 00 37 C1 00 00 35 04 06 00 68 86 00 58 81 2A [14:39:48]Write to MH i2c: E2 21 00 68 4A 80 0D 02 02 19 00 30 38 37 31 38 30 30 10 04 04 00 37 C1 00 00 35 04 06 00 68 86 00 58 81 2A 00 00 06 [14:39:48]Write i2c OK [14:39:48]MH_I2C_Read... [14:39:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:49]Read from MH i2c: E2 [14:39:49]MH_I2C_Read... [14:39:49]Read from MH i2c: E2 03 00 [14:39:49]MH_I2C_Read... [14:39:49]Read from MH i2c: E2 03 00 68 4A 00 90 00 26 [14:39:49]RAPDU: 90 00 [14:39:49]wFMCommunicate OK [14:39:49]wFMCommunicate request_size=4 [14:39:49]MH_SAM_APDU [14:39:49]CAPDU: 80 0D 03 02 [14:39:49]Write to MH i2c: E2 08 00 69 4A 80 0D 03 02 00 00 00 00 2E [14:39:49]Write i2c OK [14:39:49]MH_I2C_Read... [14:39:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:49]Read from MH i2c: E2 [14:39:49]MH_I2C_Read... [14:39:49]Read from MH i2c: E2 0B 00 [14:39:49]MH_I2C_Read... [14:39:49]Read from MH i2c: E2 0B 00 69 4A 00 DA 50 A6 2A 49 9E AF C8 90 00 87 [14:39:49]RAPDU: DA 50 A6 2A 49 9E AF C8 90 00 [14:39:49]wFMCommunicate OK [14:39:49]SAM_PROTO_SignData done [14:39:49]FM_MakeSignedData done [14:39:49]CreateOFDProtocolMessage [14:39:49]wFMCommunicate request_size=4 [14:39:49]MH_SAM_APDU [14:39:49]CAPDU: 80 11 00 00 [14:39:49]Write to MH i2c: E2 08 00 6A 4A 80 11 00 00 00 00 00 00 2E [14:39:49]Write i2c OK [14:39:49]MH_I2C_Read... [14:39:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:49]Read from MH i2c: E2 [14:39:49]MH_I2C_Read... [14:39:49]Read from MH i2c: E2 17 00 [14:39:49]MH_I2C_Read... [14:39:49]Read from MH i2c: E2 17 00 6A 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 79 [14:39:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:39:49]wFMCommunicate OK [14:39:49]CreateOFDProtocolMessage done [14:39:49]OFDSenderStorePacket 49463 [14:39:49]StoreOFDPacket docnum=49463 [14:39:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 96 2C 1B 01 9A BB 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 B9 64 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 37 C1 00 00 35 04 06 00 68 86 00 58 81 2A DA 50 A6 2A 49 9E AF C8 [14:39:49]CheckFolder [14:39:49]dirname=/storage/ofd_packets [14:39:49]CheckFolder done [14:39:49]ProducePacketName [14:39:49]name=ofd_packets/00049463 [14:39:49]NVStorageSaveData ofd_packets/00049463 [14:39:49]File name is /storage/ofd_packets/00049463 [14:39:49]Write 321 bytes [14:39:49]NVStorageSaveData done [14:39:49]OFDSenderStorePacket done [14:39:49]KKMCreateOFDPacket done [14:39:49]NVStorageSaveData kkm_last_timestamp [14:39:49]File name is /storage/kkm_last_timestamp [14:39:49]Write 4 bytes [14:39:49]NVStorageSaveData done [14:39:49]ExternCall_PrintAddStr [14:39:49]wPrintStart [14:39:49]Write to MH i2c: 01 00 00 6B 4A B5 [14:39:49]Write i2c OK [14:39:49]MH_I2C_Read... [14:39:49]Read from MH i2c: 01 [14:39:49]MH_I2C_Read... [14:39:49]Read from MH i2c: 01 07 00 [14:39:49]MH_I2C_Read... [14:39:49]Read from MH i2c: 01 07 00 6B 4A 00 00 00 00 00 FF 0F CA [14:39:49]RasterBufferAndPrint [14:39:49]line Счет N : (3)189676 [14:39:49]line ИНН: 02508201610067 [14:39:49]line Контрольно-Кассовый Чек [14:39:49]line ПРОДАЖА [14:39:49]line Товар: 4700000160211 [14:39:49]line Вода Легенда 0,5л [14:39:49]line 1.000 * 40.00 [14:39:49]line = 40.00 [14:39:49]line НДС 12% НСП 1% [14:39:49]line > о реализуемом товаре [14:39:49]line ИТОГО: 40.00 [14:39:49]line НСП 1% : 0.35 [14:39:49]line НДС 12% : 4.25 [14:39:49]line Наличными: 40.00 [14:39:49]line Безнал.: 0.00 [14:39:49]line Место: АЗС № 95 "Партнер Нефть" [14:39:49]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:39:49]line СНО: Общий режим [14:39:49]line Чек 111 16.08.2024 14:39 [14:39:49]line Смена: 464 ФФД: 1.0 [14:39:49]line ЗНМ: 0300000078 [14:39:49]line РНМ: 0000000000092546 [14:39:49]line Версия ККМ: 001 [14:39:49]line ФМ: 0000000000871800 [14:39:49]line ФД: 49463 [14:39:49]line ФПД: 114924740706602 [14:39:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T143953&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49463&fm=114924740706602&tin=02508201610067®Number=0000000000092546&sum=4000 [14:39:49]OFD Sender: Processing packet 49463 [packets to send 21, broken 20] [14:39:49]ProducePacketName [14:39:49]name=ofd_packets/00049463 [14:39:49]OFD Sender: To server: pG, [14:39:49]CommunicateWithHost lk.salyk.kg:30040 [14:39:49]ConnectInit lk.salyk.kg [14:39:49]line 0 [14:39:49]written 0, free lines is 4095 [14:39:49]Connected sock=10 [14:39:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 96 2C 1B 01 9A BB 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 B9 64 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 37 C1 00 00 35 04 06 00 68 86 00 58 81 2A DA 50 A6 2A 49 9E AF C8 [14:39:49]Write to MH i2c: 01 00 00 93 4A DD [14:39:49]Write i2c OK [14:39:49]MH_I2C_Read... [14:39:49]Read from MH i2c: 01 [14:39:49]MH_I2C_Read... [14:39:49]Read from MH i2c: 01 07 00 [14:39:49]MH_I2C_Read... [14:39:49]Read from MH i2c: 01 07 00 93 4A 00 00 00 00 00 E4 0C D4 [14:39:49]RasterBufferAndPrint [14:39:49]line [14:39:49]line [14:39:49]line [14:39:49]line [14:39:49]line [14:39:49]written 0, free lines is 3308 [14:39:49]MH_Cut [14:39:49]Write to MH i2c: D1 01 00 9A 4A 01 B6 [14:39:49]Write i2c OK [14:39:49]MH_I2C_Read... [14:39:49]Read from MH i2c: D1 [14:39:49]MH_I2C_Read... [14:39:49]Read from MH i2c: D1 01 00 [14:39:49]MH_I2C_Read... [14:39:49]Read from MH i2c: D1 01 00 9A 4A 00 B5 [14:39:49]Write to MH i2c: 01 00 00 9B 4A E5 [14:39:49]Write i2c OK [14:39:49]MH_I2C_Read... [14:39:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 68 A2 47 00 B9 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 38 37 31 38 30 30 10 04 04 00 37 C1 00 00 F4 03 04 00 F8 0F BF 66 B6 04 01 00 00 12 C3 DC A8 60 E0 F1 AD [14:39:50]CommunicateWithHost err = 0 [14:39:50]CheckOFDResponse [14:39:50]1017 (14) - 77093643461234 [14:39:50]1041 (16) - 0000000000871800 [14:39:50]1040 (4) - 49463 [14:39:50]1012 (4) - 16.08.2024 08:38 [14:39:50]1206 (1) - 0 [14:39:50]OFD Sender: Remove packet 49463 [14:39:50]ProducePacketName [14:39:50]name=ofd_packets/00049463 [14:39:50]NVStorageDeleteData [14:39:50]OFD Sender: No OFD packet to send [14:39:50]*** Cut start [14:39:50]*** Purtial cut [14:39:50]*** Stage 1: CUTSNS_PIN = 1 [14:39:50]Read from MH i2c: 01 [14:39:50]MH_I2C_Read... [14:39:50]*** Stop cut motor [14:39:50]*** Cut end [14:39:50]Read from MH i2c: 01 07 00 [14:39:50]MH_I2C_Read... [14:39:50]Read from MH i2c: 01 07 00 9B 4A 00 00 00 00 00 FF 0F FA [14:39:50]process_action close_receipt done [14:39:50]requested_data is exist [14:39:50]produce_requested_data [14:39:50]requested_item fm.sn is exist - process it [14:39:50]wFMCommunicate request_size=4 [14:39:50]MH_SAM_APDU [14:39:50]CAPDU: 80 11 00 00 [14:39:50]Write to MH i2c: E2 08 00 9C 4A 80 11 00 00 00 00 00 00 60 [14:39:50]Write i2c OK [14:39:50]MH_I2C_Read... [14:39:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:51]Read from MH i2c: E2 [14:39:51]MH_I2C_Read... [14:39:51]Read from MH i2c: E2 17 00 [14:39:51]MH_I2C_Read... [14:39:51]Read from MH i2c: E2 17 00 9C 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AB [14:39:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:39:51]wFMCommunicate OK [14:39:51]requested_item fd.num is exist - process it [14:39:51]SAM_PROTO_GetFieldsCounters [14:39:51]wFMCommunicate request_size=4 [14:39:51]MH_SAM_APDU [14:39:51]CAPDU: 80 13 00 00 [14:39:51]Write to MH i2c: E2 08 00 9D 4A 80 13 00 00 00 00 00 00 63 [14:39:51]Write i2c OK [14:39:51]MH_I2C_Read... [14:39:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:51]Read from MH i2c: E2 [14:39:51]MH_I2C_Read... [14:39:51]Read from MH i2c: E2 62 00 [14:39:51]MH_I2C_Read... [14:39:51]Read from MH i2c: E2 62 00 9D 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 37 C1 00 00 0E 04 04 00 D0 01 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 93 [14:39:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 37 C1 00 00 0E 04 04 00 D0 01 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 [14:39:51]wFMCommunicate OK [14:39:51]SAM_PROTO_GetFieldsCounters done [14:39:51]requested_item shift.num is exist - process it [14:39:51]requested_item shift.opened is exist - process it [14:39:51]req_shift_opened [14:39:51]FM_GetShiftState [14:39:51]SAM_PROTO_GetShiftState [14:39:51]wFMCommunicate request_size=4 [14:39:51]MH_SAM_APDU [14:39:51]CAPDU: 80 13 01 00 [14:39:51]Write to MH i2c: E2 08 00 9E 4A 80 13 01 00 00 00 00 00 65 [14:39:51]Write i2c OK [14:39:51]MH_I2C_Read... [14:39:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:51]Read from MH i2c: E2 [14:39:51]MH_I2C_Read... [14:39:51]Read from MH i2c: E2 0E 00 [14:39:51]MH_I2C_Read... [14:39:51]Read from MH i2c: E2 0E 00 9E 4A 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 DB [14:39:51]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:39:51]wFMCommunicate OK [14:39:51]SAM_PROTO_GetShiftState done [14:39:51]FM_GetShiftState done [14:39:51]req_shift_opened done [14:39:51]requested_item shift.open_date is exist - process it [14:39:51]req_shift_open_date [14:39:51]req_shift_open_date done [14:39:51]produce_requested_data done [14:39:51]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49463,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [14:39:51]process_action_free close_receipt [14:39:51]json_value_free [14:39:51]json_value_free done [14:39:51]process_json_proto returns [14:39:51]Send response to host [14:39:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49463,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [14:39:51]free response buf [14:39:51]execute_script done [14:39:51]execute_script returns [14:39:51]free content buf [14:39:51]Sock 9.Close socket [14:39:51]Sock 9.Thread stoped [14:39:55]OFD Sender: No OFD packet to send [14:40:00]OFD Sender: No OFD packet to send [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14: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:25]OFD Sender: No OFD packet to send [14:42:30]OFD Sender: No OFD packet to send [14:42:35]OFD Sender: No OFD packet to send [14:42:40]OFD Sender: No OFD packet to send [14:42:45]OFD Sender: No OFD packet to send [14:42:50]OFD Sender: No OFD packet to send [14:42:55]OFD Sender: No OFD packet to send [14:43:00]OFD Sender: No OFD packet to send [14:43:05]OFD Sender: No OFD packet to send [14:43:10]OFD Sender: No OFD packet to send [14:43:15]OFD Sender: No OFD packet to send [14:43:20]OFD Sender: No OFD packet to send [14:43:25]OFD Sender: No OFD packet to send [14:43:30]OFD Sender: No OFD packet to send [14:43:35]OFD Sender: No OFD packet to send [14:43:40]OFD Sender: No OFD packet to send [14:43:44]accept exits with 7 [14:43:44]New connection [14:43:44]New thread 3066830180 created [14:43:44]Thread 3066973540 joined [14:43:44]Waiting for new connection... [14:43:44] Sock 7.Parse request [14:43:44]Sock 7.Check first char [14:43:44]Sock 7.First char is OK [14:43:44]request: POST /json_proto HTTP/1.0 [14:43:44]Method: POST [14:43:44]URL: /json_proto [14:43:44]Method is POST - this is cgi request [14:43:44]url: /json_proto [14:43:44]query_string will be loaded in cgi processing [14:43:44]execute_cgi json_proto POST (null) [14:43:44]execute_cgi path=json_proto method=POST [14:43:44]POST find Content-Length [14:43:44]Host: 172.17.46.196:8080 [14:43:44]Content-Length: 647 [14:43:44]Content-Type: application/json [14:43:44] [14:43:44]POST finish read [14:43:44]Found Content-Length = 647 [14:43:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189677", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:44]execute_script... [14:43: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 : (3)189677", "tax_sys" : 0, "items" : [ { "code": "47011656", "name": "\u0412\u043E\u0434\u043A\u0430 \u041F\u0448\u0435\u043D\u0438\u0447\u043D\u0430\u044F 0,1\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:43:44]POST & json_proto [14:43:44]process_json_proto [14:43:44]json parsed OK: [14:43:44]protocol is kg_v1.0 [14:43:44]action value=close_receipt [14:43:44]process_action close_receipt [14:43:44]cmd_close_receipt [14:43:44]MH_GetDate [14:43:44]Write to MH i2c: F0 00 00 9F 4A D8 [14:43:44]Write i2c OK [14:43:44]MH_I2C_Read... [14:43:44]Read from MH i2c: F0 [14:43:44]MH_I2C_Read... [14:43:44]Read from MH i2c: F0 09 00 [14:43:44]MH_I2C_Read... [14:43:44]Read from MH i2c: F0 09 00 9F 4A 00 A6 65 BF 66 07 E8 5D 66 C3 [14:43:44]GetLastDocTimeStamp 1723819193 [14:43:44]current date 1723819430 [14:43:44]FM_GetShiftState [14:43:44]SAM_PROTO_GetShiftState [14:43:44]wFMCommunicate request_size=4 [14:43:44]MH_SAM_APDU [14:43:44]CAPDU: 80 13 01 00 [14:43:44]Write to MH i2c: E2 08 00 A0 4A 80 13 01 00 00 00 00 00 67 [14:43:44]Write i2c OK [14:43:44]MH_I2C_Read... [14:43:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:44]Read from MH i2c: E2 [14:43:44]MH_I2C_Read... [14:43:44]Read from MH i2c: E2 0E 00 [14:43:44]MH_I2C_Read... [14:43:44]Read from MH i2c: E2 0E 00 A0 4A 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 DD [14:43:44]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:43:44]wFMCommunicate OK [14:43:44]SAM_PROTO_GetShiftState done [14:43:44]FM_GetShiftState done [14:43:44]opened in 1723766958 [14:43:44]opened+sec_in_day 1723853358 [14:43:44]quantity*price = 13000 [14:43:44]sum+1 = 13001 [14:43:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 112 16.08.2024 14:43 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49464 ФПД: 256328012240620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T144350&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49464&fm=256328012240620&tin=02508201610067®Number=0000000000092546&sum=13000 0 [14:43:45]StoreToDocumentArchive [14:43:45]shift 464 fd 49464 [14:43:45]save to /storage/0464/doc_00049464 [14:43:45]save last doc name /storage/0464/doc_00049464 to /storage/kkm_last_doc_name [14:43:45]save OK [14:43:45]Clear old archive folders... [14:43:45]ProcessDocumentItem done err = 0, tmpTLVsize=272 [14:43:45]tlvbuf is 00F19660 [14:43:45]SAM_PROTO_ClearQueue [14:43:45]wFMCommunicate request_size=4 [14:43:45]MH_SAM_APDU [14:43:45]CAPDU: 80 09 00 00 [14:43:45]Write to MH i2c: E2 08 00 AD 4A 80 09 00 00 00 00 00 00 69 [14:43:45]Write i2c OK [14:43:45]MH_I2C_Read... [14:43:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:43:45]Read from MH i2c: E2 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 03 00 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 03 00 AD 4A 00 90 00 6B [14:43:45]RAPDU: 90 00 [14:43:45]wFMCommunicate OK [14:43:45]SAM_PROTO_ClearQueue done [14:43:45]KKMCreateOFDPacket [14:43:45]OFDProtocolAddRootSTLVToBuf [14:43:45]FM_MakeSignedData [14:43:45]FM_MakeSignedData [14:43:45]SAM_PROTO_SignData [14:43:45]wFMCommunicate request_size=4 [14:43:45]MH_SAM_APDU [14:43:45]CAPDU: 80 0D 01 02 [14:43:45]Write to MH i2c: E2 08 00 AE 4A 80 0D 01 02 00 00 00 00 71 [14:43:45]Write i2c OK [14:43:45]MH_I2C_Read... [14:43:45]OFD Sender: No OFD packet to send [14:43:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:43:45]Read from MH i2c: E2 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 03 00 [14:43:45]MH_I2C_Read... [14:43:45]Read from MH i2c: E2 03 00 AE 4A 00 90 00 6C [14:43:45]RAPDU: 90 00 [14:43:45]wFMCommunicate OK [14:43:45]wFMCommunicate request_size=255 [14:43:45]MH_SAM_APDU [14:43:45]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 A6 65 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 [14:43:45]Write to MH i2c: E2 02 01 AF 4A 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 A6 65 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 81 [14:43:45]Write i2c OK [14:43:45]MH_I2C_Read... [14:43:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:46]Read from MH i2c: E2 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: E2 03 00 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: E2 03 00 AF 4A 00 90 00 6D [14:43:46]RAPDU: 90 00 [14:43:46]wFMCommunicate OK [14:43:46]wFMCommunicate request_size=31 [14:43:46]MH_SAM_APDU [14:43:46]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 30 30 10 04 04 00 38 C1 00 00 35 04 06 00 E9 21 04 1D 96 EC [14:43:46]Write to MH i2c: E2 22 00 B0 4A 80 0D 02 02 1A 00 30 30 38 37 31 38 30 30 10 04 04 00 38 C1 00 00 35 04 06 00 E9 21 04 1D 96 EC 00 00 3D [14:43:46]Write i2c OK [14:43:46]MH_I2C_Read... [14:43:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:43:46]Read from MH i2c: E2 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: E2 03 00 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: E2 03 00 B0 4A 00 90 00 6E [14:43:46]RAPDU: 90 00 [14:43:46]wFMCommunicate OK [14:43:46]wFMCommunicate request_size=4 [14:43:46]MH_SAM_APDU [14:43:46]CAPDU: 80 0D 03 02 [14:43:46]Write to MH i2c: E2 08 00 B1 4A 80 0D 03 02 00 00 00 00 76 [14:43:46]Write i2c OK [14:43:46]MH_I2C_Read... [14:43:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:43:46]Read from MH i2c: E2 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: E2 0B 00 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: E2 0B 00 B1 4A 00 13 DE 76 04 B5 E0 A5 90 90 00 AC [14:43:46]RAPDU: 13 DE 76 04 B5 E0 A5 90 90 00 [14:43:46]wFMCommunicate OK [14:43:46]SAM_PROTO_SignData done [14:43:46]FM_MakeSignedData done [14:43:46]CreateOFDProtocolMessage [14:43:46]wFMCommunicate request_size=4 [14:43:46]MH_SAM_APDU [14:43:46]CAPDU: 80 11 00 00 [14:43:46]Write to MH i2c: E2 08 00 B2 4A 80 11 00 00 00 00 00 00 76 [14:43:46]Write i2c OK [14:43:46]MH_I2C_Read... [14:43:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:46]Read from MH i2c: E2 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: E2 17 00 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: E2 17 00 B2 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C1 [14:43:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:43:46]wFMCommunicate OK [14:43:46]CreateOFDProtocolMessage done [14:43:46]OFDSenderStorePacket 49464 [14:43:46]StoreOFDPacket docnum=49464 [14:43:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 95 B2 1C 01 8B 0D 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 A6 65 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 38 C1 00 00 35 04 06 00 E9 21 04 1D 96 EC 13 DE 76 04 B5 E0 A5 90 [14:43:46]CheckFolder [14:43:46]dirname=/storage/ofd_packets [14:43:46]CheckFolder done [14:43:46]ProducePacketName [14:43:46]name=ofd_packets/00049464 [14:43:46]NVStorageSaveData ofd_packets/00049464 [14:43:46]File name is /storage/ofd_packets/00049464 [14:43:46]Write 322 bytes [14:43:46]NVStorageSaveData done [14:43:46]OFDSenderStorePacket done [14:43:46]KKMCreateOFDPacket done [14:43:46]NVStorageSaveData kkm_last_timestamp [14:43:46]File name is /storage/kkm_last_timestamp [14:43:46]Write 4 bytes [14:43:46]NVStorageSaveData done [14:43:46]ExternCall_PrintAddStr [14:43:46]wPrintStart [14:43:46]Write to MH i2c: 01 00 00 B3 4A FD [14:43:46]Write i2c OK [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: 01 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: 01 07 00 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: 01 07 00 B3 4A 00 00 00 00 00 FF 0F 12 [14:43:46]RasterBufferAndPrint [14:43:46]line Счет N : (3)189677 [14:43:46]line ИНН: 02508201610067 [14:43:46]line Контрольно-Кассовый Чек [14:43:46]line ПРОДАЖА [14:43:46]line Товар: 47011656 [14:43:46]line Водка Пшеничная 0,1л [14:43:46]line 2.000 * 65.00 [14:43:46]line = 130.00 [14:43:46]line НДС 12% НСП 1% [14:43:46]line > о реализуемом товаре [14:43:46]line ИТОГО: 130.00 [14:43:46]line НСП 1% : 1.15 [14:43:46]line НДС 12% : 13.80 [14:43:46]line Наличными: 130.00 [14:43:46]line Безнал.: 0.00 [14:43:46]line Место: АЗС № 95 "Партнер Нефть" [14:43:46]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:43:46]line СНО: Общий режим [14:43:46]line Чек 112 16.08.2024 14:43 [14:43:46]line Смена: 464 ФФД: 1.0 [14:43:46]line ЗНМ: 0300000078 [14:43:46]line РНМ: 0000000000092546 [14:43:46]line Версия ККМ: 001 [14:43:46]line ФМ: 0000000000871800 [14:43:46]line ФД: 49464 [14:43:46]line ФПД: 256328012240620 [14:43:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T144350&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49464&fm=256328012240620&tin=02508201610067®Number=0000000000092546&sum=13000 [14:43:46]line 0 [14:43:46]written 0, free lines is 4095 [14:43:46]OFD Sender: Processing packet 49464 [packets to send 21, broken 20] [14:43:46]ProducePacketName [14:43:46]name=ofd_packets/00049464 [14:43:46]OFD Sender: To server: pG, [14:43:46]CommunicateWithHost lk.salyk.kg:30040 [14:43:46]ConnectInit lk.salyk.kg [14:43:46]Write to MH i2c: 01 00 00 DB 4A 25 [14:43:46]Write i2c OK [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: 01 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: 01 07 00 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: 01 07 00 DB 4A 00 00 00 00 00 E6 0C 1E [14:43:46]RasterBufferAndPrint [14:43:46]line [14:43:46]line [14:43:46]line [14:43:46]line [14:43:46]line [14:43:46]written 0, free lines is 3308 [14:43:46]MH_Cut [14:43:46]Write to MH i2c: D1 01 00 E2 4A 01 FE [14:43:46]Write i2c OK [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: D1 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: D1 01 00 [14:43:46]MH_I2C_Read... [14:43:46]Read from MH i2c: D1 01 00 E2 4A 00 FD [14:43:46]Write to MH i2c: 01 00 00 E3 4A 2D [14:43:46]Write i2c OK [14:43:46]MH_I2C_Read... [14:43:46]Connected sock=10 [14:43:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 95 B2 1C 01 8B 0D 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 A6 65 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 38 C1 00 00 35 04 06 00 E9 21 04 1D 96 EC 13 DE 76 04 B5 E0 A5 90 [14:43:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 39 AC 47 00 85 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 38 37 31 38 30 30 10 04 04 00 38 C1 00 00 F4 03 04 00 E5 10 BF 66 B6 04 01 00 00 55 31 31 1E 24 1F 65 2F [14:43:47]CommunicateWithHost err = 0 [14:43:47]CheckOFDResponse [14:43:47]1017 (14) - 77093643461234 [14:43:47]1041 (16) - 0000000000871800 [14:43:47]1040 (4) - 49464 [14:43:47]1012 (4) - 16.08.2024 08:42 [14:43:47]1206 (1) - 0 [14:43:47]OFD Sender: Remove packet 49464 [14:43:47]ProducePacketName [14:43:47]name=ofd_packets/00049464 [14:43:47]NVStorageDeleteData [14:43:47]*** Cut start [14:43:47]*** Purtial cut [14:43:47]*** CUTSNS_PIN = 0 [14:43:47]OFD Sender: No OFD packet to send [14:43:47]*** Stage 1: CUTSNS_PIN = 1 [14:43:49]Read from MH i2c: 01 [14:43:49]MH_I2C_Read... [14:43:49]*** Stop cut motor [14:43:49]*** Cut end [14:43:49]Read from MH i2c: 01 07 00 [14:43:49]MH_I2C_Read... [14:43:49]Read from MH i2c: 01 07 00 E3 4A 00 00 00 00 00 FF 0F 42 [14:43:49]process_action close_receipt done [14:43:49]requested_data is exist [14:43:49]produce_requested_data [14:43:49]requested_item fm.sn is exist - process it [14:43:49]wFMCommunicate request_size=4 [14:43:49]MH_SAM_APDU [14:43:49]CAPDU: 80 11 00 00 [14:43:49]Write to MH i2c: E2 08 00 E4 4A 80 11 00 00 00 00 00 00 A8 [14:43:49]Write i2c OK [14:43:49]MH_I2C_Read... [14:43:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:43:49]Read from MH i2c: E2 [14:43:49]MH_I2C_Read... [14:43:49]Read from MH i2c: E2 17 00 [14:43:49]MH_I2C_Read... [14:43:49]Read from MH i2c: E2 17 00 E4 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F3 [14:43:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:43:49]wFMCommunicate OK [14:43:49]requested_item fd.num is exist - process it [14:43:49]SAM_PROTO_GetFieldsCounters [14:43:49]wFMCommunicate request_size=4 [14:43:49]MH_SAM_APDU [14:43:49]CAPDU: 80 13 00 00 [14:43:49]Write to MH i2c: E2 08 00 E5 4A 80 13 00 00 00 00 00 00 AB [14:43:49]Write i2c OK [14:43:49]MH_I2C_Read... [14:43:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:43:49]Read from MH i2c: E2 [14:43:49]MH_I2C_Read... [14:43:49]Read from MH i2c: E2 62 00 [14:43:49]MH_I2C_Read... [14:43:49]Read from MH i2c: E2 62 00 E5 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 38 C1 00 00 0E 04 04 00 D0 01 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 DF [14:43:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 38 C1 00 00 0E 04 04 00 D0 01 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 [14:43:49]wFMCommunicate OK [14:43:49]SAM_PROTO_GetFieldsCounters done [14:43:49]requested_item shift.num is exist - process it [14:43:49]requested_item shift.opened is exist - process it [14:43:49]req_shift_opened [14:43:49]FM_GetShiftState [14:43:49]SAM_PROTO_GetShiftState [14:43:49]wFMCommunicate request_size=4 [14:43:49]MH_SAM_APDU [14:43:49]CAPDU: 80 13 01 00 [14:43:49]Write to MH i2c: E2 08 00 E6 4A 80 13 01 00 00 00 00 00 AD [14:43:49]Write i2c OK [14:43:49]MH_I2C_Read... [14:43:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:43:49]Read from MH i2c: E2 [14:43:49]MH_I2C_Read... [14:43:49]Read from MH i2c: E2 0E 00 [14:43:49]MH_I2C_Read... [14:43:49]Read from MH i2c: E2 0E 00 E6 4A 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 23 [14:43:49]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:43:49]wFMCommunicate OK [14:43:49]SAM_PROTO_GetShiftState done [14:43:49]FM_GetShiftState done [14:43:49]req_shift_opened done [14:43:49]requested_item shift.open_date is exist - process it [14:43:49]req_shift_open_date [14:43:49]req_shift_open_date done [14:43:49]produce_requested_data done [14:43:49]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49464,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [14:43:49]process_action_free close_receipt [14:43:49]json_value_free [14:43:49]json_value_free done [14:43:49]process_json_proto returns [14:43:49]Send response to host [14:43:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49464,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [14:43:49]free response buf [14:43:49]execute_script done [14:43:49]execute_script returns [14:43:49]free content buf [14:43:49]Sock 7.Close socket [14:43:49]Sock 7.Thread stoped [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:49:31]ConnectInit Can't connect to host [14:49:31]OFD Sender: Processing packet 49465 [packets to send 21, broken 20] [14:49:31]ProducePacketName [14:49:31]name=ofd_packets/00049465 [14:49:31]OFD Sender: To server: pG, [14:49:31]CommunicateWithHost lk.salyk.kg:30040 [14:49:31]ConnectInit lk.salyk.kg [14:49:34]Connected sock=9 [14:49:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 75 E9 26 01 1A 5B 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 39 39 35 35 06 04 28 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 EB 66 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 39 C1 00 00 35 04 06 00 9F 36 5E 91 1C D8 E4 E3 41 FF D3 0F 0F C2 [14:49:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A6 ED 47 00 8E 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 38 37 31 38 30 30 10 04 04 00 39 C1 00 00 F4 03 04 00 40 12 BF 66 B6 04 01 00 00 F1 2A D2 3F B0 41 90 21 [14:49:34]CommunicateWithHost err = 0 [14:49:34]CheckOFDResponse [14:49:34]1017 (14) - 77093643461234 [14:49:34]1041 (16) - 0000000000871800 [14:49:34]1040 (4) - 49465 [14:49:34]1012 (4) - 16.08.2024 08:48 [14:49:34]1206 (1) - 0 [14:49:34]OFD Sender: Remove packet 49465 [14:49:34]ProducePacketName [14:49:34]name=ofd_packets/00049465 [14:49:34]NVStorageDeleteData [14:49:35]OFD Sender: No OFD packet to send [14:49:40]OFD Sender: No OFD packet to send [14:49:45]OFD Sender: No OFD packet to send [14:49:50]OFD Sender: No OFD packet to send [14:49:55]OFD Sender: No OFD packet to send [14:50:00]OFD Sender: No OFD packet to send [14:50:05]OFD Sender: No OFD packet to send [14:50:10]OFD Sender: No OFD packet to send [14:50:15]OFD Sender: No OFD packet to send [14:50:20]OFD Sender: No OFD packet to send [14:50:25]OFD Sender: No OFD packet to send [14:50:30]OFD Sender: No OFD packet to send [14:50:35]OFD Sender: No OFD packet to send [14:50:40]OFD Sender: No OFD packet to send [14:50:45]OFD Sender: No OFD packet to send [14:50:50]OFD Sender: No OFD packet to send [14:50:55]OFD Sender: No OFD packet to send [14:51:00]OFD Sender: No OFD packet to send [14:51:05]OFD Sender: No OFD packet to send [14:51:10]OFD Sender: No OFD packet to send [14:51:12]accept exits with 7 [14:51:12]New connection [14:51:12]New thread 3066830180 created [14:51:12]Thread 3066973540 joined [14:51:12]Waiting for new connection... [14:51:12] Sock 7.Parse request [14:51:12]Sock 7.Check first char [14:51:12]Sock 7.First char is OK [14:51:12]request: POST /json_proto HTTP/1.0 [14:51:12]Method: POST [14:51:12]URL: /json_proto [14:51:12]Method is POST - this is cgi request [14:51:12]url: /json_proto [14:51:12]query_string will be loaded in cgi processing [14:51:12]execute_cgi json_proto POST (null) [14:51:12]execute_cgi path=json_proto method=POST [14:51:12]POST find Content-Length [14:51:12]Host: 172.17.46.196:8080 [14:51:12]Content-Length: 620 [14:51:12]Content-Type: application/json [14:51:12] [14:51:12]POST finish read [14:51:12]Found Content-Length = 620 [14:51:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189679", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:12]execute_script... [14:51: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 : (3)189679", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:12]POST & json_proto [14:51:12]process_json_proto [14:51:12]json parsed OK: [14:51:12]protocol is kg_v1.0 [14:51:12]action value=close_receipt [14:51:12]process_action close_receipt [14:51:12]cmd_close_receipt [14:51:12]MH_GetDate [14:51:12]Write to MH i2c: F0 00 00 2F 4B 69 [14:51:12]Write i2c OK [14:51:12]MH_I2C_Read... [14:51:12]Read from MH i2c: F0 [14:51:12]MH_I2C_Read... [14:51:12]Read from MH i2c: F0 09 00 [14:51:12]MH_I2C_Read... [14:51:12]Read from MH i2c: F0 09 00 2F 4B 00 66 67 BF 66 07 E8 5D 66 16 [14:51:12]GetLastDocTimeStamp 1723819755 [14:51:12]current date 1723819878 [14:51:12]FM_GetShiftState [14:51:12]SAM_PROTO_GetShiftState [14:51:12]wFMCommunicate request_size=4 [14:51:12]MH_SAM_APDU [14:51:12]CAPDU: 80 13 01 00 [14:51:12]Write to MH i2c: E2 08 00 30 4B 80 13 01 00 00 00 00 00 F8 [14:51:12]Write i2c OK [14:51:12]MH_I2C_Read... [14:51:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:12]Read from MH i2c: E2 [14:51:12]MH_I2C_Read... [14:51:12]Read from MH i2c: E2 0E 00 [14:51:12]MH_I2C_Read... [14:51:12]Read from MH i2c: E2 0E 00 30 4B 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 6E [14:51:12]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:51:12]wFMCommunicate OK [14:51:12]SAM_PROTO_GetShiftState done [14:51:12]FM_GetShiftState done [14:51:12]opened in 1723766958 [14:51:12]opened+sec_in_day 1723853358 [14:51:12]quantity*price = 15000 [14:51:12]sum+1 = 15001 [14:51:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 114 16.08.2024 14:51 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49466 ФПД: 247620638037978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T145118&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49466&fm=247620638037978&tin=02508201610067®Number=0000000000092546&sum=15000 0 [14:51:13]StoreToDocumentArchive [14:51:13]shift 464 fd 49466 [14:51:13]save to /storage/0464/doc_00049466 [14:51:13]save last doc name /storage/0464/doc_00049466 to /storage/kkm_last_doc_name [14:51:13]save OK [14:51:13]Clear old archive folders... [14:51:13]ProcessDocumentItem done err = 0, tmpTLVsize=272 [14:51:13]tlvbuf is 00E19B70 [14:51:13]SAM_PROTO_ClearQueue [14:51:13]wFMCommunicate request_size=4 [14:51:13]MH_SAM_APDU [14:51:13]CAPDU: 80 09 00 00 [14:51:13]Write to MH i2c: E2 08 00 3D 4B 80 09 00 00 00 00 00 00 FA [14:51:13]Write i2c OK [14:51:13]MH_I2C_Read... [14:51:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:13]Read from MH i2c: E2 [14:51:13]MH_I2C_Read... [14:51:13]Read from MH i2c: E2 03 00 [14:51:13]MH_I2C_Read... [14:51:13]Read from MH i2c: E2 03 00 3D 4B 00 90 00 FC [14:51:13]RAPDU: 90 00 [14:51:13]wFMCommunicate OK [14:51:13]SAM_PROTO_ClearQueue done [14:51:13]KKMCreateOFDPacket [14:51:13]OFDProtocolAddRootSTLVToBuf [14:51:13]FM_MakeSignedData [14:51:13]FM_MakeSignedData [14:51:13]SAM_PROTO_SignData [14:51:13]wFMCommunicate request_size=4 [14:51:13]MH_SAM_APDU [14:51:13]CAPDU: 80 0D 01 02 [14:51:13]Write to MH i2c: E2 08 00 3E 4B 80 0D 01 02 00 00 00 00 02 [14:51:13]Write i2c OK [14:51:13]MH_I2C_Read... [14:51:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:13]Read from MH i2c: E2 [14:51:13]MH_I2C_Read... [14:51:13]Read from MH i2c: E2 03 00 [14:51:13]MH_I2C_Read... [14:51:13]Read from MH i2c: E2 03 00 3E 4B 00 90 00 FD [14:51:13]RAPDU: 90 00 [14:51:13]wFMCommunicate OK [14:51:13]wFMCommunicate request_size=255 [14:51:13]MH_SAM_APDU [14:51:13]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 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 39 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 72 00 00 00 F4 03 04 00 66 67 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 [14:51:13]Write to MH i2c: E2 02 01 3F 4B 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 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 39 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 72 00 00 00 F4 03 04 00 66 67 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 00 00 C0 [14:51:13]Write i2c OK [14:51:13]MH_I2C_Read... [14:51:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:14]Read from MH i2c: E2 [14:51:14]MH_I2C_Read... [14:51:14]Read from MH i2c: E2 03 00 [14:51:14]MH_I2C_Read... [14:51:14]Read from MH i2c: E2 03 00 3F 4B 00 90 00 FE [14:51:14]RAPDU: 90 00 [14:51:14]wFMCommunicate OK [14:51:14]wFMCommunicate request_size=31 [14:51:14]MH_SAM_APDU [14:51:14]CAPDU: 80 0D 02 02 1A 30 30 38 37 31 38 30 30 10 04 04 00 3A C1 00 00 35 04 06 00 E1 35 AC 2B 57 DA [14:51:14]Write to MH i2c: E2 22 00 40 4B 80 0D 02 02 1A 00 30 30 38 37 31 38 30 30 10 04 04 00 3A C1 00 00 35 04 06 00 E1 35 AC 2B 57 DA 00 00 41 [14:51:14]Write i2c OK [14:51:14]MH_I2C_Read... [14:51:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:14]Read from MH i2c: E2 [14:51:14]MH_I2C_Read... [14:51:14]Read from MH i2c: E2 03 00 [14:51:14]MH_I2C_Read... [14:51:14]Read from MH i2c: E2 03 00 40 4B 00 90 00 FF [14:51:14]RAPDU: 90 00 [14:51:14]wFMCommunicate OK [14:51:14]wFMCommunicate request_size=4 [14:51:14]MH_SAM_APDU [14:51:14]CAPDU: 80 0D 03 02 [14:51:14]Write to MH i2c: E2 08 00 41 4B 80 0D 03 02 00 00 00 00 07 [14:51:14]Write i2c OK [14:51:14]MH_I2C_Read... [14:51:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:14]Read from MH i2c: E2 [14:51:14]MH_I2C_Read... [14:51:14]Read from MH i2c: E2 0B 00 [14:51:14]MH_I2C_Read... [14:51:14]Read from MH i2c: E2 0B 00 41 4B 00 C1 1C 65 C3 9C 47 FA D9 90 00 C3 [14:51:14]RAPDU: C1 1C 65 C3 9C 47 FA D9 90 00 [14:51:14]wFMCommunicate OK [14:51:14]SAM_PROTO_SignData done [14:51:14]FM_MakeSignedData done [14:51:14]CreateOFDProtocolMessage [14:51:14]wFMCommunicate request_size=4 [14:51:14]MH_SAM_APDU [14:51:14]CAPDU: 80 11 00 00 [14:51:14]Write to MH i2c: E2 08 00 42 4B 80 11 00 00 00 00 00 00 07 [14:51:14]Write i2c OK [14:51:14]MH_I2C_Read... [14:51:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:14]Read from MH i2c: E2 [14:51:14]MH_I2C_Read... [14:51:14]Read from MH i2c: E2 17 00 [14:51:14]MH_I2C_Read... [14:51:14]Read from MH i2c: E2 17 00 42 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 52 [14:51:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:51:14]wFMCommunicate OK [14:51:14]CreateOFDProtocolMessage done [14:51:14]OFDSenderStorePacket 49466 [14:51:14]StoreOFDPacket docnum=49466 [14:51:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 FA 55 1C 01 EA C1 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 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 39 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 72 00 00 00 F4 03 04 00 66 67 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3A C1 00 00 35 04 06 00 E1 35 AC 2B 57 DA C1 1C 65 C3 9C 47 FA D9 [14:51:14]CheckFolder [14:51:14]dirname=/storage/ofd_packets [14:51:14]CheckFolder done [14:51:14]ProducePacketName [14:51:14]name=ofd_packets/00049466 [14:51:14]NVStorageSaveData ofd_packets/00049466 [14:51:14]File name is /storage/ofd_packets/00049466 [14:51:14]Write 322 bytes [14:51:14]NVStorageSaveData done [14:51:14]OFDSenderStorePacket done [14:51:14]KKMCreateOFDPacket done [14:51:14]NVStorageSaveData kkm_last_timestamp [14:51:14]File name is /storage/kkm_last_timestamp [14:51:14]Write 4 bytes [14:51:14]NVStorageSaveData done [14:51:14]ExternCall_PrintAddStr [14:51:14]wPrintStart [14:51:14]Write to MH i2c: 01 00 00 43 4B 8E [14:51:14]Write i2c OK [14:51:14]MH_I2C_Read... [14:51:14]Read from MH i2c: 01 [14:51:14]MH_I2C_Read... [14:51:14]Read from MH i2c: 01 07 00 [14:51:14]MH_I2C_Read... [14:51:14]Read from MH i2c: 01 07 00 43 4B 00 00 00 00 00 FF 0F A3 [14:51:14]RasterBufferAndPrint [14:51:14]line Счет N : (3)189679 [14:51:14]line ИНН: 02508201610067 [14:51:14]line Контрольно-Кассовый Чек [14:51:14]line ПРОДАЖА [14:51:14]line Товар: 4640030091607 [14:51:14]line Сигареты ESSE Exchange [14:51:14]line 1.000 * 150.00 [14:51:14]line = 150.00 [14:51:14]line НДС 12% НСП 1% [14:51:14]line > о реализуемом товаре [14:51:14]line ИТОГО: 150.00 [14:51:14]line НСП 1% : 1.33 [14:51:14]line НДС 12% : 15.93 [14:51:14]line Наличными: 150.00 [14:51:14]line Безнал.: 0.00 [14:51:14]line Место: АЗС № 95 "Партнер Нефть" [14:51:14]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:51:14]line СНО: Общий режим [14:51:14]line Чек 114 16.08.2024 14:51 [14:51:14]line Смена: 464 ФФД: 1.0 [14:51:14]line ЗНМ: 0300000078 [14:51:14]line РНМ: 0000000000092546 [14:51:14]line Версия ККМ: 001 [14:51:14]line ФМ: 0000000000871800 [14:51:14]line ФД: 49466 [14:51:14]line ФПД: 247620638037978 [14:51:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T145118&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49466&fm=247620638037978&tin=02508201610067®Number=0000000000092546&sum=15000 [14:51:14]line 0 [14:51:14]OFD Sender: Processing packet 49466 [packets to send 21, broken 20] [14:51:14]ProducePacketName [14:51:14]name=ofd_packets/00049466 [14:51:14]OFD Sender: To server: pG, [14:51:14]CommunicateWithHost lk.salyk.kg:30040 [14:51:14]ConnectInit lk.salyk.kg [14:51:14]written 0, free lines is 4095 [14:51:14]Connected sock=10 [14:51:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 FA 55 1C 01 EA C1 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 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 39 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 72 00 00 00 F4 03 04 00 66 67 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3A C1 00 00 35 04 06 00 E1 35 AC 2B 57 DA C1 1C 65 C3 9C 47 FA D9 [14:51:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 39 84 47 00 99 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3A C1 00 00 F4 03 04 00 A5 12 BF 66 B6 04 01 00 00 38 60 DF 7B BD BB B3 F4 [14:51:14]CommunicateWithHost err = 0 [14:51:14]CheckOFDResponse [14:51:14]1017 (14) - 77093643461234 [14:51:14]1041 (16) - 0000000000871800 [14:51:14]1040 (4) - 49466 [14:51:14]1012 (4) - 16.08.2024 08:49 [14:51:14]1206 (1) - 0 [14:51:14]OFD Sender: Remove packet 49466 [14:51:14]ProducePacketName [14:51:14]name=ofd_packets/00049466 [14:51:14]NVStorageDeleteData [14:51:14]Write to MH i2c: 01 00 00 6B 4B B6 [14:51:14]Write i2c OK [14:51:14]MH_I2C_Read... [14:51:14]Read from MH i2c: 01 [14:51:14]MH_I2C_Read... [14:51:14]Read from MH i2c: 01 07 00 [14:51:14]MH_I2C_Read... [14:51:14]Read from MH i2c: 01 07 00 6B 4B 00 00 00 00 00 FD 0C C6 [14:51:14]RasterBufferAndPrint [14:51:14]line [14:51:14]line [14:51:14]line [14:51:14]line [14:51:14]line [14:51:14]written 0, free lines is 3331 [14:51:14]MH_Cut [14:51:14]Write to MH i2c: D1 01 00 72 4B 01 8F [14:51:14]Write i2c OK [14:51:14]MH_I2C_Read... [14:51:14]Read from MH i2c: D1 [14:51:14]MH_I2C_Read... [14:51:14]Read from MH i2c: D1 01 00 [14:51:14]MH_I2C_Read... [14:51:14]Read from MH i2c: D1 01 00 72 4B 00 8E [14:51:14]Write to MH i2c: 01 00 00 73 4B BE [14:51:14]Write i2c OK [14:51:14]MH_I2C_Read... [14:51:15]OFD Sender: No OFD packet to send [14:51:15]*** Cut start [14:51:15]*** Purtial cut [14:51:15]*** CUTSNS_PIN = 0 [14:51:15]*** Stage 1: CUTSNS_PIN = 1 [14:51:17]Read from MH i2c: 01 [14:51:17]MH_I2C_Read... [14:51:17]*** Stop cut motor [14:51:17]*** Cut end [14:51:17]Read from MH i2c: 01 07 00 [14:51:17]MH_I2C_Read... [14:51:17]Read from MH i2c: 01 07 00 73 4B 00 00 00 00 00 FF 0F D3 [14:51:17]process_action close_receipt done [14:51:17]requested_data is exist [14:51:17]produce_requested_data [14:51:17]requested_item fm.sn is exist - process it [14:51:17]wFMCommunicate request_size=4 [14:51:17]MH_SAM_APDU [14:51:17]CAPDU: 80 11 00 00 [14:51:17]Write to MH i2c: E2 08 00 74 4B 80 11 00 00 00 00 00 00 39 [14:51:17]Write i2c OK [14:51:17]MH_I2C_Read... [14:51:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:17]Read from MH i2c: E2 [14:51:17]MH_I2C_Read... [14:51:17]Read from MH i2c: E2 17 00 [14:51:17]MH_I2C_Read... [14:51:17]Read from MH i2c: E2 17 00 74 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 84 [14:51:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:51:17]wFMCommunicate OK [14:51:17]requested_item fd.num is exist - process it [14:51:17]SAM_PROTO_GetFieldsCounters [14:51:17]wFMCommunicate request_size=4 [14:51:17]MH_SAM_APDU [14:51:17]CAPDU: 80 13 00 00 [14:51:17]Write to MH i2c: E2 08 00 75 4B 80 13 00 00 00 00 00 00 3C [14:51:17]Write i2c OK [14:51:17]MH_I2C_Read... [14:51:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:17]Read from MH i2c: E2 [14:51:17]MH_I2C_Read... [14:51:17]Read from MH i2c: E2 62 00 [14:51:17]MH_I2C_Read... [14:51:17]Read from MH i2c: E2 62 00 75 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3A C1 00 00 0E 04 04 00 D0 01 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 78 [14:51:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3A C1 00 00 0E 04 04 00 D0 01 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 [14:51:17]wFMCommunicate OK [14:51:17]SAM_PROTO_GetFieldsCounters done [14:51:17]requested_item shift.num is exist - process it [14:51:17]requested_item shift.opened is exist - process it [14:51:17]req_shift_opened [14:51:17]FM_GetShiftState [14:51:17]SAM_PROTO_GetShiftState [14:51:17]wFMCommunicate request_size=4 [14:51:17]MH_SAM_APDU [14:51:17]CAPDU: 80 13 01 00 [14:51:17]Write to MH i2c: E2 08 00 76 4B 80 13 01 00 00 00 00 00 3E [14:51:17]Write i2c OK [14:51:17]MH_I2C_Read... [14:51:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:18]Read from MH i2c: E2 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: E2 0E 00 [14:51:18]MH_I2C_Read... [14:51:18]Read from MH i2c: E2 0E 00 76 4B 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 B4 [14:51:18]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:51:18]wFMCommunicate OK [14:51:18]SAM_PROTO_GetShiftState done [14:51:18]FM_GetShiftState done [14:51:18]req_shift_opened done [14:51:18]requested_item shift.open_date is exist - process it [14:51:18]req_shift_open_date [14:51:18]req_shift_open_date done [14:51:18]produce_requested_data done [14:51:18]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49466,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [14:51:18]process_action_free close_receipt [14:51:18]json_value_free [14:51:18]json_value_free done [14:51:18]process_json_proto returns [14:51:18]Send response to host [14:51:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49466,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [14:51:18]free response buf [14:51:18]execute_script done [14:51:18]execute_script returns [14:51:18]free content buf [14:51:18]Sock 7.Close socket [14:51:18]Sock 7.Thread stoped [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:33]accept exits with 9 [14:51:33]New connection [14:51:33]New thread 3066973540 created [14:51:33]Thread 3066830180 joined [14:51:33]Waiting for new connection... [14:51:33] Sock 9.Parse request [14:51:33]Sock 9.Check first char [14:51:33]Sock 9.First char is OK [14:51:33]request: POST /json_proto HTTP/1.0 [14:51:33]Method: POST [14:51:33]URL: /json_proto [14:51:33]Method is POST - this is cgi request [14:51:33]url: /json_proto [14:51:33]query_string will be loaded in cgi processing [14:51:33]execute_cgi json_proto POST (null) [14:51:33]execute_cgi path=json_proto method=POST [14:51:33]POST find Content-Length [14:51:33]Host: 172.17.46.196:8080 [14:51:33]Content-Length: 632 [14:51:33]Content-Type: application/json [14:51:33] [14:51:33]POST finish read [14:51:33]Found Content-Length = 632 [14:51:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189680", "tax_sys" : 0, "items" : [ { "code": "48745031", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:33]execute_script... [14:51: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 : (3)189680", "tax_sys" : 0, "items" : [ { "code": "48745031", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Superslims Expand Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:51:33]POST & json_proto [14:51:33]process_json_proto [14:51:33]json parsed OK: [14:51:33]protocol is kg_v1.0 [14:51:33]action value=close_receipt [14:51:33]process_action close_receipt [14:51:33]cmd_close_receipt [14:51:33]MH_GetDate [14:51:33]Write to MH i2c: F0 00 00 77 4B B1 [14:51:33]Write i2c OK [14:51:33]MH_I2C_Read... [14:51:33]Read from MH i2c: F0 [14:51:33]MH_I2C_Read... [14:51:33]Read from MH i2c: F0 09 00 [14:51:33]MH_I2C_Read... [14:51:33]Read from MH i2c: F0 09 00 77 4B 00 7B 67 BF 66 07 E8 5D 66 73 [14:51:33]GetLastDocTimeStamp 1723819878 [14:51:33]current date 1723819899 [14:51:33]FM_GetShiftState [14:51:33]SAM_PROTO_GetShiftState [14:51:33]wFMCommunicate request_size=4 [14:51:33]MH_SAM_APDU [14:51:33]CAPDU: 80 13 01 00 [14:51:33]Write to MH i2c: E2 08 00 78 4B 80 13 01 00 00 00 00 00 40 [14:51:33]Write i2c OK [14:51:33]MH_I2C_Read... [14:51:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:33]Read from MH i2c: E2 [14:51:33]MH_I2C_Read... [14:51:33]Read from MH i2c: E2 0E 00 [14:51:33]MH_I2C_Read... [14:51:33]Read from MH i2c: E2 0E 00 78 4B 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 B6 [14:51:33]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:51:33]wFMCommunicate OK [14:51:33]SAM_PROTO_GetShiftState done [14:51:33]FM_GetShiftState done [14:51:33]opened in 1723766958 [14:51:33]opened+sec_in_day 1723853358 [14:51:33]quantity*price = 14000 [14:51:33]sum+1 = 14001 [14:51:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 115 16.08.2024 14:51 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49467 ФПД: 109466050802957 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T145139&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49467&fm=109466050802957&tin=02508201610067®Number=0000000000092546&sum=14000 0 [14:51:34]StoreToDocumentArchive [14:51:34]shift 464 fd 49467 [14:51:34]save to /storage/0464/doc_00049467 [14:51:34]save last doc name /storage/0464/doc_00049467 to /storage/kkm_last_doc_name [14:51:34]save OK [14:51:34]Clear old archive folders... [14:51:34]ProcessDocumentItem done err = 0, tmpTLVsize=284 [14:51:34]tlvbuf is 00E12900 [14:51:34]SAM_PROTO_ClearQueue [14:51:34]wFMCommunicate request_size=4 [14:51:34]MH_SAM_APDU [14:51:34]CAPDU: 80 09 00 00 [14:51:34]Write to MH i2c: E2 08 00 85 4B 80 09 00 00 00 00 00 00 42 [14:51:34]Write i2c OK [14:51:34]MH_I2C_Read... [14:51:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:51:34]Read from MH i2c: E2 [14:51:34]MH_I2C_Read... [14:51:34]Read from MH i2c: E2 03 00 [14:51:34]MH_I2C_Read... [14:51:34]Read from MH i2c: E2 03 00 85 4B 00 90 00 44 [14:51:34]RAPDU: 90 00 [14:51:34]wFMCommunicate OK [14:51:34]SAM_PROTO_ClearQueue done [14:51:34]KKMCreateOFDPacket [14:51:34]OFDProtocolAddRootSTLVToBuf [14:51:34]FM_MakeSignedData [14:51:34]FM_MakeSignedData [14:51:34]SAM_PROTO_SignData [14:51:34]wFMCommunicate request_size=4 [14:51:34]MH_SAM_APDU [14:51:34]CAPDU: 80 0D 01 02 [14:51:34]Write to MH i2c: E2 08 00 86 4B 80 0D 01 02 00 00 00 00 4A [14:51:34]Write i2c OK [14:51:34]MH_I2C_Read... [14:51:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:51:34]Read from MH i2c: E2 [14:51:34]MH_I2C_Read... [14:51:34]Read from MH i2c: E2 03 00 [14:51:34]MH_I2C_Read... [14:51:34]Read from MH i2c: E2 03 00 86 4B 00 90 00 45 [14:51:34]RAPDU: 90 00 [14:51:34]wFMCommunicate OK [14:51:34]wFMCommunicate request_size=255 [14:51:34]MH_SAM_APDU [14:51:34]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 7B 67 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 [14:51:34]Write to MH i2c: E2 02 01 87 4B 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 7B 67 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 00 00 7F [14:51:34]Write i2c OK [14:51:34]MH_I2C_Read... [14:51:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:35]Read from MH i2c: E2 [14:51:35]MH_I2C_Read... [14:51:35]Read from MH i2c: E2 03 00 [14:51:35]MH_I2C_Read... [14:51:35]Read from MH i2c: E2 03 00 87 4B 00 90 00 46 [14:51:35]RAPDU: 90 00 [14:51:35]wFMCommunicate OK [14:51:35]wFMCommunicate request_size=43 [14:51:35]MH_SAM_APDU [14:51:35]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3B C1 00 00 35 04 06 00 63 8F 0D 12 B5 0D [14:51:35]Write to MH i2c: E2 2E 00 88 4B 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3B C1 00 00 35 04 06 00 63 8F 0D 12 B5 0D 00 00 FC [14:51:35]Write i2c OK [14:51:35]MH_I2C_Read... [14:51:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:51:35]Read from MH i2c: E2 [14:51:35]MH_I2C_Read... [14:51:35]Read from MH i2c: E2 03 00 [14:51:35]MH_I2C_Read... [14:51:35]Read from MH i2c: E2 03 00 88 4B 00 90 00 47 [14:51:35]RAPDU: 90 00 [14:51:35]wFMCommunicate OK [14:51:35]wFMCommunicate request_size=4 [14:51:35]MH_SAM_APDU [14:51:35]CAPDU: 80 0D 03 02 [14:51:35]Write to MH i2c: E2 08 00 89 4B 80 0D 03 02 00 00 00 00 4F [14:51:35]Write i2c OK [14:51:35]MH_I2C_Read... [14:51:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:51:35]Read from MH i2c: E2 [14:51:35]MH_I2C_Read... [14:51:35]Read from MH i2c: E2 0B 00 [14:51:35]MH_I2C_Read... [14:51:35]Read from MH i2c: E2 0B 00 89 4B 00 CD 56 8C BD 9E B4 62 DE 90 00 4E [14:51:35]RAPDU: CD 56 8C BD 9E B4 62 DE 90 00 [14:51:35]wFMCommunicate OK [14:51:35]SAM_PROTO_SignData done [14:51:35]FM_MakeSignedData done [14:51:35]CreateOFDProtocolMessage [14:51:35]wFMCommunicate request_size=4 [14:51:35]MH_SAM_APDU [14:51:35]CAPDU: 80 11 00 00 [14:51:35]Write to MH i2c: E2 08 00 8A 4B 80 11 00 00 00 00 00 00 4F [14:51:35]Write i2c OK [14:51:35]MH_I2C_Read... [14:51:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:35]Read from MH i2c: E2 [14:51:35]MH_I2C_Read... [14:51:35]Read from MH i2c: E2 17 00 [14:51:35]MH_I2C_Read... [14:51:35]Read from MH i2c: E2 17 00 8A 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9A [14:51:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:51:35]wFMCommunicate OK [14:51:35]CreateOFDProtocolMessage done [14:51:35]OFDSenderStorePacket 49467 [14:51:35]StoreOFDPacket docnum=49467 [14:51:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 30 01 00 00 57 23 28 01 7E 74 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 7B 67 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3B C1 00 00 35 04 06 00 63 8F 0D 12 B5 0D CD 56 8C BD 9E B4 62 DE [14:51:35]CheckFolder [14:51:35]dirname=/storage/ofd_packets [14:51:35]CheckFolder done [14:51:35]ProducePacketName [14:51:35]name=ofd_packets/00049467 [14:51:35]NVStorageSaveData ofd_packets/00049467 [14:51:35]File name is /storage/ofd_packets/00049467 [14:51:35]Write 334 bytes [14:51:35]NVStorageSaveData done [14:51:35]OFDSenderStorePacket done [14:51:35]KKMCreateOFDPacket done [14:51:35]NVStorageSaveData kkm_last_timestamp [14:51:35]File name is /storage/kkm_last_timestamp [14:51:35]Write 4 bytes [14:51:35]NVStorageSaveData done [14:51:35]ExternCall_PrintAddStr [14:51:35]wPrintStart [14:51:35]Write to MH i2c: 01 00 00 8B 4B D6 [14:51:35]Write i2c OK [14:51:35]MH_I2C_Read... [14:51:35]Read from MH i2c: 01 [14:51:35]MH_I2C_Read... [14:51:35]Read from MH i2c: 01 07 00 [14:51:35]MH_I2C_Read... [14:51:35]Read from MH i2c: 01 07 00 8B 4B 00 00 00 00 00 FF 0F EB [14:51:35]RasterBufferAndPrint [14:51:35]line Счет N : (3)189680 [14:51:35]line ИНН: 02508201610067 [14:51:35]line Контрольно-Кассовый Чек [14:51:35]line ПРОДАЖА [14:51:35]line Товар: 48745031 [14:51:35]line Сигареты Winston Superslims Expand Blue [14:51:35]line 1.000 * 140.00 [14:51:35]line = 140.00 [14:51:35]line НДС 12% НСП 1% [14:51:35]line > о реализуемом товаре [14:51:35]line ИТОГО: 140.00 [14:51:35]line НСП 1% : 1.24 [14:51:35]line НДС 12% : 14.87 [14:51:35]line Наличными: 140.00 [14:51:35]line Безнал.: 0.00 [14:51:35]line Место: АЗС № 95 "Партнер Нефть" [14:51:35]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:51:35]line СНО: Общий режим [14:51:35]line Чек 115 16.08.2024 14:51 [14:51:35]line Смена: 464 ФФД: 1.0 [14:51:35]line ЗНМ: 0300000078 [14:51:35]line РНМ: 0000000000092546 [14:51:35]line Версия ККМ: 001 [14:51:35]line ФМ: 0000000000871800 [14:51:35]line ФД: 49467 [14:51:35]line ФПД: 109466050802957 [14:51:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T145139&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49467&fm=109466050802957&tin=02508201610067®Number=0000000000092546&sum=14000 [14:51:35]line 0 [14:51:35]OFD Sender: Processing packet 49467 [packets to send 21, broken 20] [14:51:35]ProducePacketName [14:51:35]name=ofd_packets/00049467 [14:51:35]OFD Sender: To server: pG, [14:51:35]CommunicateWithHost lk.salyk.kg:30040 [14:51:35]ConnectInit lk.salyk.kg [14:51:35]written 0, free lines is 4095 [14:51:35]Write to MH i2c: 01 00 00 B4 4B FF [14:51:35]Write i2c OK [14:51:35]MH_I2C_Read... [14:51:35]Read from MH i2c: 01 [14:51:35]MH_I2C_Read... [14:51:35]Read from MH i2c: 01 07 00 [14:51:35]MH_I2C_Read... [14:51:35]Read from MH i2c: 01 07 00 B4 4B 00 00 00 00 00 C8 0C DA [14:51:35]RasterBufferAndPrint [14:51:35]line [14:51:35]line [14:51:35]line [14:51:35]line [14:51:35]line [14:51:35]written 0, free lines is 3277 [14:51:35]MH_Cut [14:51:35]Write to MH i2c: D1 01 00 BB 4B 01 D8 [14:51:35]Write i2c OK [14:51:35]MH_I2C_Read... [14:51:35]Read from MH i2c: D1 [14:51:35]MH_I2C_Read... [14:51:35]Read from MH i2c: D1 01 00 [14:51:35]MH_I2C_Read... [14:51:35]Read from MH i2c: D1 01 00 BB 4B 00 D7 [14:51:35]Write to MH i2c: 01 00 00 BC 4B 07 [14:51:35]Write i2c OK [14:51:35]MH_I2C_Read... [14:51:36]Connected sock=11 [14:51:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 30 01 00 00 57 23 28 01 7E 74 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 08 00 34 38 37 34 35 30 33 31 06 04 2F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 73 6C 69 6D 73 20 45 78 70 61 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 7B 67 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3B C1 00 00 35 04 06 00 63 8F 0D 12 B5 0D CD 56 8C BD 9E B4 62 DE [14:51:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 CE 64 47 00 6F 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3B C1 00 00 F4 03 04 00 BA 12 BF 66 B6 04 01 00 00 DA 27 2B D9 BA 62 E8 06 [14:51:36]CommunicateWithHost err = 0 [14:51:36]CheckOFDResponse [14:51:36]1017 (14) - 77093643461234 [14:51:36]1041 (16) - 0000000000871800 [14:51:36]1040 (4) - 49467 [14:51:36]1012 (4) - 16.08.2024 08:50 [14:51:36]1206 (1) - 0 [14:51:36]OFD Sender: Remove packet 49467 [14:51:36]ProducePacketName [14:51:36]name=ofd_packets/00049467 [14:51:36]NVStorageDeleteData [14:51:36]*** Cut start [14:51:36]*** Purtial cut [14:51:36]*** Stage 1: CUTSNS_PIN = 1 [14:51:36]OFD Sender: No OFD packet to send [14:51:37]Read from MH i2c: 01 [14:51:37]MH_I2C_Read... [14:51:37]*** Stop cut motor [14:51:37]*** Cut end [14:51:37]Read from MH i2c: 01 07 00 [14:51:37]MH_I2C_Read... [14:51:37]Read from MH i2c: 01 07 00 BC 4B 00 00 00 00 00 FF 0F 1C [14:51:37]process_action close_receipt done [14:51:37]requested_data is exist [14:51:37]produce_requested_data [14:51:37]requested_item fm.sn is exist - process it [14:51:37]wFMCommunicate request_size=4 [14:51:37]MH_SAM_APDU [14:51:37]CAPDU: 80 11 00 00 [14:51:37]Write to MH i2c: E2 08 00 BD 4B 80 11 00 00 00 00 00 00 82 [14:51:37]Write i2c OK [14:51:37]MH_I2C_Read... [14:51:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:51:37]Read from MH i2c: E2 [14:51:37]MH_I2C_Read... [14:51:37]Read from MH i2c: E2 17 00 [14:51:37]MH_I2C_Read... [14:51:37]Read from MH i2c: E2 17 00 BD 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CD [14:51:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:51:37]wFMCommunicate OK [14:51:37]requested_item fd.num is exist - process it [14:51:37]SAM_PROTO_GetFieldsCounters [14:51:37]wFMCommunicate request_size=4 [14:51:37]MH_SAM_APDU [14:51:37]CAPDU: 80 13 00 00 [14:51:37]Write to MH i2c: E2 08 00 BE 4B 80 13 00 00 00 00 00 00 85 [14:51:37]Write i2c OK [14:51:37]MH_I2C_Read... [14:51:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:51:37]Read from MH i2c: E2 [14:51:37]MH_I2C_Read... [14:51:37]Read from MH i2c: E2 62 00 [14:51:37]MH_I2C_Read... [14:51:37]Read from MH i2c: E2 62 00 BE 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3B C1 00 00 0E 04 04 00 D0 01 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 C5 [14:51:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3B C1 00 00 0E 04 04 00 D0 01 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 [14:51:37]wFMCommunicate OK [14:51:37]SAM_PROTO_GetFieldsCounters done [14:51:37]requested_item shift.num is exist - process it [14:51:37]requested_item shift.opened is exist - process it [14:51:37]req_shift_opened [14:51:37]FM_GetShiftState [14:51:37]SAM_PROTO_GetShiftState [14:51:37]wFMCommunicate request_size=4 [14:51:37]MH_SAM_APDU [14:51:37]CAPDU: 80 13 01 00 [14:51:37]Write to MH i2c: E2 08 00 BF 4B 80 13 01 00 00 00 00 00 87 [14:51:37]Write i2c OK [14:51:37]MH_I2C_Read... [14:51:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:51:37]Read from MH i2c: E2 [14:51:37]MH_I2C_Read... [14:51:37]Read from MH i2c: E2 0E 00 [14:51:37]MH_I2C_Read... [14:51:37]Read from MH i2c: E2 0E 00 BF 4B 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 FD [14:51:37]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:51:37]wFMCommunicate OK [14:51:37]SAM_PROTO_GetShiftState done [14:51:37]FM_GetShiftState done [14:51:37]req_shift_opened done [14:51:37]requested_item shift.open_date is exist - process it [14:51:37]req_shift_open_date [14:51:37]req_shift_open_date done [14:51:37]produce_requested_data done [14:51:37]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49467,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [14:51:37]process_action_free close_receipt [14:51:37]json_value_free [14:51:37]json_value_free done [14:51:37]process_json_proto returns [14:51:37]Send response to host [14:51:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49467,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [14:51:37]free response buf [14:51:37]execute_script done [14:51:37]execute_script returns [14:51:37]free content buf [14:51:37]Sock 9.Close socket [14:51:37]Sock 9.Thread stoped [14:51:41]OFD Sender: No OFD packet to send [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:52:01]OFD Sender: No OFD packet to send [14:52:06]OFD Sender: No OFD packet to send [14:52:11]OFD Sender: No OFD packet to send [14:52:16]OFD Sender: No OFD packet to send [14:52:21]OFD Sender: No OFD packet to send [14:52:26]OFD Sender: No OFD packet to send [14:52:31]OFD Sender: No OFD packet to send [14:52:36]OFD Sender: No OFD packet to send [14:52:41]OFD Sender: No OFD packet to send [14:52:46]OFD Sender: No OFD packet to send [14:52:51]OFD Sender: No OFD packet to send [14:52:56]OFD Sender: No OFD packet to send [14:53:01]OFD Sender: No OFD packet to send [14:53:06]OFD Sender: No OFD packet to send [14:53:11]OFD Sender: No OFD packet to send [14:53:16]OFD Sender: No OFD packet to send [14:53:21]OFD Sender: No OFD packet to send [14:53:26]OFD Sender: No OFD packet to send [14:53:31]OFD Sender: No OFD packet to send [14:53:36]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:47]OFD Sender: No OFD packet to send [14:53:52]OFD Sender: No OFD packet to send [14:53:57]OFD Sender: No OFD packet to send [14:54:02]OFD Sender: No OFD packet to send [14:54:07]OFD Sender: No OFD packet to send [14:54:12]OFD Sender: No OFD packet to send [14:54:17]OFD Sender: No OFD packet to send [14:54:22]OFD Sender: No OFD packet to send [14:54:27]OFD Sender: No OFD packet to send [14:54:32]OFD Sender: No OFD packet to send [14:54:37]OFD Sender: No OFD packet to send [14:54:42]OFD Sender: No OFD packet to send [14:54:47]OFD Sender: No OFD packet to send [14:54:52]OFD Sender: No OFD packet to send [14:54:57]OFD Sender: No OFD packet to send [14:55:02]OFD Sender: No OFD packet to send [14:55:07]OFD Sender: No OFD packet to send [14:55:12]OFD Sender: No OFD packet to send [14:55:17]OFD Sender: No OFD packet to send [14:55:22]OFD Sender: No OFD packet to send [14:55:27]OFD Sender: No OFD packet to send [14:55:32]OFD Sender: No OFD packet to send [14:55:37]OFD Sender: No OFD packet to send [14:55:37]accept exits with 7 [14:55:37]New connection [14:55:37]New thread 3066830180 created [14:55:37]Thread 3066973540 joined [14:55:37]Waiting for new connection... [14:55:37] Sock 7.Parse request [14:55:37]Sock 7.Check first char [14:55:37]Sock 7.First char is OK [14:55:37]request: POST /json_proto HTTP/1.0 [14:55:37]Method: POST [14:55:37]URL: /json_proto [14:55:37]Method is POST - this is cgi request [14:55:37]url: /json_proto [14:55:37]query_string will be loaded in cgi processing [14:55:37]execute_cgi json_proto POST (null) [14:55:37]execute_cgi path=json_proto method=POST [14:55:37]POST find Content-Length [14:55:37]Host: 172.17.46.196:8080 [14:55:37]Content-Length: 650 [14:55:37]Content-Type: application/json [14:55:37] [14:55:37]POST finish read [14:55:37]Found Content-Length = 650 [14:55:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189681", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:37]execute_script... [14:55: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 : (3)189681", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:55:37]POST & json_proto [14:55:37]process_json_proto [14:55:37]json parsed OK: [14:55:37]protocol is kg_v1.0 [14:55:37]action value=close_receipt [14:55:37]process_action close_receipt [14:55:37]cmd_close_receipt [14:55:37]MH_GetDate [14:55:37]Write to MH i2c: F0 00 00 C0 4B FA [14:55:37]Write i2c OK [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: F0 [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: F0 09 00 [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: F0 09 00 C0 4B 00 6F 68 BF 66 07 E8 5D 66 B1 [14:55:37]GetLastDocTimeStamp 1723819899 [14:55:37]current date 1723820143 [14:55:37]FM_GetShiftState [14:55:37]SAM_PROTO_GetShiftState [14:55:37]wFMCommunicate request_size=4 [14:55:37]MH_SAM_APDU [14:55:37]CAPDU: 80 13 01 00 [14:55:37]Write to MH i2c: E2 08 00 C1 4B 80 13 01 00 00 00 00 00 89 [14:55:37]Write i2c OK [14:55:37]MH_I2C_Read... [14:55:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:37]Read from MH i2c: E2 [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: E2 0E 00 [14:55:37]MH_I2C_Read... [14:55:37]Read from MH i2c: E2 0E 00 C1 4B 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 FF [14:55:37]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:55:37]wFMCommunicate OK [14:55:37]SAM_PROTO_GetShiftState done [14:55:37]FM_GetShiftState done [14:55:37]opened in 1723766958 [14:55:37]opened+sec_in_day 1723853358 [14:55:37]quantity*price = 10500 [14:55:37]sum+1 = 10501 [14:55:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 116 16.08.2024 14:55 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49468 ФПД: 155328736915387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T145543&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49468&fm=155328736915387&tin=02508201610067®Number=0000000000092546&sum=10500 0 [14:55:38]StoreToDocumentArchive [14:55:38]shift 464 fd 49468 [14:55:38]save to /storage/0464/doc_00049468 [14:55:38]save last doc name /storage/0464/doc_00049468 to /storage/kkm_last_doc_name [14:55:38]save OK [14:55:38]Clear old archive folders... [14:55:38]ProcessDocumentItem done err = 0, tmpTLVsize=282 [14:55:38]tlvbuf is B6F5A210 [14:55:38]SAM_PROTO_ClearQueue [14:55:38]wFMCommunicate request_size=4 [14:55:38]MH_SAM_APDU [14:55:38]CAPDU: 80 09 00 00 [14:55:38]Write to MH i2c: E2 08 00 CE 4B 80 09 00 00 00 00 00 00 8B [14:55:38]Write i2c OK [14:55:38]MH_I2C_Read... [14:55:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:38]Read from MH i2c: E2 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 03 00 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 03 00 CE 4B 00 90 00 8D [14:55:38]RAPDU: 90 00 [14:55:38]wFMCommunicate OK [14:55:38]SAM_PROTO_ClearQueue done [14:55:38]KKMCreateOFDPacket [14:55:38]OFDProtocolAddRootSTLVToBuf [14:55:38]FM_MakeSignedData [14:55:38]FM_MakeSignedData [14:55:38]SAM_PROTO_SignData [14:55:38]wFMCommunicate request_size=4 [14:55:38]MH_SAM_APDU [14:55:38]CAPDU: 80 0D 01 02 [14:55:38]Write to MH i2c: E2 08 00 CF 4B 80 0D 01 02 00 00 00 00 93 [14:55:38]Write i2c OK [14:55:38]MH_I2C_Read... [14:55:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:38]Read from MH i2c: E2 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 03 00 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 03 00 CF 4B 00 90 00 8E [14:55:38]RAPDU: 90 00 [14:55:38]wFMCommunicate OK [14:55:38]wFMCommunicate request_size=255 [14:55:38]MH_SAM_APDU [14:55:38]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 6F 68 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 [14:55:38]Write to MH i2c: E2 02 01 D0 4B 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 6F 68 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 00 00 9D [14:55:38]Write i2c OK [14:55:38]MH_I2C_Read... [14:55:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:38]Read from MH i2c: E2 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 03 00 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 03 00 D0 4B 00 90 00 8F [14:55:38]RAPDU: 90 00 [14:55:38]wFMCommunicate OK [14:55:38]wFMCommunicate request_size=41 [14:55:38]MH_SAM_APDU [14:55:38]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3C C1 00 00 35 04 06 00 8D 45 4A 2F EF BB [14:55:38]Write to MH i2c: E2 2C 00 D1 4B 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3C C1 00 00 35 04 06 00 8D 45 4A 2F EF BB 00 00 4F [14:55:38]Write i2c OK [14:55:38]MH_I2C_Read... [14:55:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:55:38]Read from MH i2c: E2 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 03 00 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 03 00 D1 4B 00 90 00 90 [14:55:38]RAPDU: 90 00 [14:55:38]wFMCommunicate OK [14:55:38]wFMCommunicate request_size=4 [14:55:38]MH_SAM_APDU [14:55:38]CAPDU: 80 0D 03 02 [14:55:38]Write to MH i2c: E2 08 00 D2 4B 80 0D 03 02 00 00 00 00 98 [14:55:38]Write i2c OK [14:55:38]MH_I2C_Read... [14:55:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:55:38]Read from MH i2c: E2 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 0B 00 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 0B 00 D2 4B 00 18 52 2A AB 27 16 BF 9E 90 00 72 [14:55:38]RAPDU: 18 52 2A AB 27 16 BF 9E 90 00 [14:55:38]wFMCommunicate OK [14:55:38]SAM_PROTO_SignData done [14:55:38]FM_MakeSignedData done [14:55:38]CreateOFDProtocolMessage [14:55:38]wFMCommunicate request_size=4 [14:55:38]MH_SAM_APDU [14:55:38]CAPDU: 80 11 00 00 [14:55:38]Write to MH i2c: E2 08 00 D3 4B 80 11 00 00 00 00 00 00 98 [14:55:38]Write i2c OK [14:55:38]MH_I2C_Read... [14:55:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:38]Read from MH i2c: E2 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 17 00 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: E2 17 00 D3 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E3 [14:55:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:55:38]wFMCommunicate OK [14:55:38]CreateOFDProtocolMessage done [14:55:38]OFDSenderStorePacket 49468 [14:55:38]StoreOFDPacket docnum=49468 [14:55:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 27 12 26 01 D2 30 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 6F 68 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3C C1 00 00 35 04 06 00 8D 45 4A 2F EF BB 18 52 2A AB 27 16 BF 9E [14:55:38]CheckFolder [14:55:38]dirname=/storage/ofd_packets [14:55:38]CheckFolder done [14:55:38]ProducePacketName [14:55:38]name=ofd_packets/00049468 [14:55:38]NVStorageSaveData ofd_packets/00049468 [14:55:38]File name is /storage/ofd_packets/00049468 [14:55:38]Write 332 bytes [14:55:38]NVStorageSaveData done [14:55:38]OFDSenderStorePacket done [14:55:38]KKMCreateOFDPacket done [14:55:38]NVStorageSaveData kkm_last_timestamp [14:55:38]File name is /storage/kkm_last_timestamp [14:55:38]Write 4 bytes [14:55:38]NVStorageSaveData done [14:55:38]ExternCall_PrintAddStr [14:55:38]wPrintStart [14:55:38]Write to MH i2c: 01 00 00 D4 4B 1F [14:55:38]Write i2c OK [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: 01 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: 01 07 00 [14:55:38]MH_I2C_Read... [14:55:38]Read from MH i2c: 01 07 00 D4 4B 00 00 00 00 00 FF 0F 34 [14:55:38]RasterBufferAndPrint [14:55:38]line Счет N : (3)189681 [14:55:38]line ИНН: 02508201610067 [14:55:38]line Контрольно-Кассовый Чек [14:55:38]line ПРОДАЖА [14:55:38]line Товар: 2000034730018 [14:55:38]line Кофе Американо (GABB TRADE) [14:55:38]line 1.000 * 105.00 [14:55:39]line = 105.00 [14:55:39]line НДС 12% НСП 1% [14:55:39]line > о реализуемом товаре [14:55:39]line ИТОГО: 105.00 [14:55:39]line НСП 1% : 0.93 [14:55:39]line НДС 12% : 11.15 [14:55:39]line Наличными: 105.00 [14:55:39]line Безнал.: 0.00 [14:55:39]line Место: АЗС № 95 "Партнер Нефть" [14:55:39]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [14:55:39]line СНО: Общий режим [14:55:39]line Чек 116 16.08.2024 14:55 [14:55:39]line Смена: 464 ФФД: 1.0 [14:55:39]line ЗНМ: 0300000078 [14:55:39]line РНМ: 0000000000092546 [14:55:39]line Версия ККМ: 001 [14:55:39]line ФМ: 0000000000871800 [14:55:39]line ФД: 49468 [14:55:39]line ФПД: 155328736915387 [14:55:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T145543&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49468&fm=155328736915387&tin=02508201610067®Number=0000000000092546&sum=10500 [14:55:39]line 0 [14:55:39]OFD Sender: Processing packet 49468 [packets to send 21, broken 20] [14:55:39]ProducePacketName [14:55:39]name=ofd_packets/00049468 [14:55:39]OFD Sender: To server: pG, [14:55:39]CommunicateWithHost lk.salyk.kg:30040 [14:55:39]ConnectInit lk.salyk.kg [14:55:39]written 0, free lines is 4095 [14:55:39]Connected sock=10 [14:55:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 27 12 26 01 D2 30 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 6F 68 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3C C1 00 00 35 04 06 00 8D 45 4A 2F EF BB 18 52 2A AB 27 16 BF 9E [14:55:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 37 79 47 00 5B 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3C C1 00 00 F4 03 04 00 AD 13 BF 66 B6 04 01 00 00 98 A9 CC 89 90 3C ED 25 [14:55:39]CommunicateWithHost err = 0 [14:55:39]CheckOFDResponse [14:55:39]1017 (14) - 77093643461234 [14:55:39]1041 (16) - 0000000000871800 [14:55:39]1040 (4) - 49468 [14:55:39]1012 (4) - 16.08.2024 08:54 [14:55:39]1206 (1) - 0 [14:55:39]OFD Sender: Remove packet 49468 [14:55:39]ProducePacketName [14:55:39]name=ofd_packets/00049468 [14:55:39]NVStorageDeleteData [14:55:39]Write to MH i2c: 01 00 00 FD 4B 48 [14:55:39]Write i2c OK [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: 01 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: 01 07 00 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: 01 07 00 FD 4B 00 00 00 00 00 DF 0C 3A [14:55:39]RasterBufferAndPrint [14:55:39]line [14:55:39]line [14:55:39]line [14:55:39]line [14:55:39]line [14:55:39]written 0, free lines is 3301 [14:55:39]MH_Cut [14:55:39]Write to MH i2c: D1 01 00 04 4C 01 22 [14:55:39]Write i2c OK [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: D1 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: D1 01 00 [14:55:39]MH_I2C_Read... [14:55:39]Read from MH i2c: D1 01 00 04 4C 00 21 [14:55:39]Write to MH i2c: 01 00 00 05 4C 51 [14:55:39]Write i2c OK [14:55:39]MH_I2C_Read... [14:55:40]OFD Sender: No OFD packet to send [14:55:40]*** Cut start [14:55:40]*** Purtial cut [14:55:40]*** CUTSNS_PIN = 0 [14:55:40]*** Stage 1: CUTSNS_PIN = 1 [14:55:42]Read from MH i2c: 01 [14:55:42]MH_I2C_Read... [14:55:42]*** Stop cut motor [14:55:42]*** Cut end [14:55:42]Read from MH i2c: 01 07 00 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: 01 07 00 05 4C 00 00 00 00 00 FF 0F 66 [14:55:42]process_action close_receipt done [14:55:42]requested_data is exist [14:55:42]produce_requested_data [14:55:42]requested_item fm.sn is exist - process it [14:55:42]wFMCommunicate request_size=4 [14:55:42]MH_SAM_APDU [14:55:42]CAPDU: 80 11 00 00 [14:55:42]Write to MH i2c: E2 08 00 06 4C 80 11 00 00 00 00 00 00 CC [14:55:42]Write i2c OK [14:55:42]MH_I2C_Read... [14:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:55:42]Read from MH i2c: E2 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 17 00 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 17 00 06 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 17 [14:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [14:55:42]wFMCommunicate OK [14:55:42]requested_item fd.num is exist - process it [14:55:42]SAM_PROTO_GetFieldsCounters [14:55:42]wFMCommunicate request_size=4 [14:55:42]MH_SAM_APDU [14:55:42]CAPDU: 80 13 00 00 [14:55:42]Write to MH i2c: E2 08 00 07 4C 80 13 00 00 00 00 00 00 CF [14:55:42]Write i2c OK [14:55:42]MH_I2C_Read... [14:55:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:55:42]Read from MH i2c: E2 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 62 00 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 62 00 07 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3C C1 00 00 0E 04 04 00 D0 01 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 13 [14:55:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3C C1 00 00 0E 04 04 00 D0 01 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 [14:55:42]wFMCommunicate OK [14:55:42]SAM_PROTO_GetFieldsCounters done [14:55:42]requested_item shift.num is exist - process it [14:55:42]requested_item shift.opened is exist - process it [14:55:42]req_shift_opened [14:55:42]FM_GetShiftState [14:55:42]SAM_PROTO_GetShiftState [14:55:42]wFMCommunicate request_size=4 [14:55:42]MH_SAM_APDU [14:55:42]CAPDU: 80 13 01 00 [14:55:42]Write to MH i2c: E2 08 00 08 4C 80 13 01 00 00 00 00 00 D1 [14:55:42]Write i2c OK [14:55:42]MH_I2C_Read... [14:55:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:42]Read from MH i2c: E2 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 0E 00 [14:55:42]MH_I2C_Read... [14:55:42]Read from MH i2c: E2 0E 00 08 4C 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 47 [14:55:42]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [14:55:42]wFMCommunicate OK [14:55:42]SAM_PROTO_GetShiftState done [14:55:42]FM_GetShiftState done [14:55:42]req_shift_opened done [14:55:42]requested_item shift.open_date is exist - process it [14:55:42]req_shift_open_date [14:55:42]req_shift_open_date done [14:55:42]produce_requested_data done [14:55:42]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49468,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [14:55:42]process_action_free close_receipt [14:55:42]json_value_free [14:55:42]json_value_free done [14:55:42]process_json_proto returns [14:55:42]Send response to host [14:55:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49468,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [14:55:42]free response buf [14:55:42]execute_script done [14:55:42]execute_script returns [14:55:42]free content buf [14:55:42]Sock 7.Close socket [14:55:42]Sock 7.Thread stoped [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:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:15]OFD Sender: No OFD packet to send [14:59:20]OFD Sender: No OFD packet to send [14:59:25]OFD Sender: No OFD packet to send [14:59:30]OFD Sender: No OFD packet to send [14:59:35]OFD Sender: No OFD packet to send [14:59:40]OFD Sender: No OFD packet to send [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:20]OFD Sender: No OFD packet to send [15:00:25]OFD Sender: No OFD packet to send [15:00:30]OFD Sender: No OFD packet to send [15:00:35]OFD Sender: No OFD packet to send [15:00:40]OFD Sender: No OFD packet to send [15:00:45]OFD Sender: No OFD packet to send [15:00:50]OFD Sender: No OFD packet to send [15:00:55]OFD Sender: No OFD packet to send [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:10]OFD Sender: No OFD packet to send [15:03:47]ConnectInit Can't connect to host [15:03:47]accept exits with 9 [15:03:47]New connection [15:03:47]New thread 3066973540 created [15:03:47]Thread 3066830180 joined [15:03:47]Waiting for new connection... [15:03:47] Sock 9.Parse request [15:03:47]Sock 9.Check first char [15:03:47]Sock 9.First char is OK [15:03:47]request: POST /json_proto HTTP/1.0 [15:03:47]Method: POST [15:03:47]URL: /json_proto [15:03:47]Method is POST - this is cgi request [15:03:47]url: /json_proto [15:03:47]query_string will be loaded in cgi processing [15:03:47]execute_cgi json_proto POST (null) [15:03:47]execute_cgi path=json_proto method=POST [15:03:47]POST find Content-Length [15:03:47]Host: 172.17.46.196:8080 [15:03:47]Content-Length: 756 [15:03:47]Content-Type: application/json [15:03:47] [15:03:47]POST finish read [15:03:47]Found Content-Length = 756 [15:03:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30025870", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:47]execute_script... [15:03:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30025870", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:47]POST & json_proto [15:03:47]process_json_proto [15:03:47]json parsed OK: [15:03:47]protocol is kg_v1.0 [15:03:47]action value=close_receipt [15:03:47]process_action close_receipt [15:03:47]cmd_close_receipt [15:03:47]MH_GetDate [15:03:47]Write to MH i2c: F0 00 00 09 4C 44 [15:03:47]Write i2c OK [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: F0 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: F0 09 00 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: F0 09 00 09 4C 00 59 6A BF 66 07 E8 5D 66 E7 [15:03:47]GetLastDocTimeStamp 1723820143 [15:03:47]current date 1723820633 [15:03:47]FM_GetShiftState [15:03:47]SAM_PROTO_GetShiftState [15:03:47]wFMCommunicate request_size=4 [15:03:47]MH_SAM_APDU [15:03:47]CAPDU: 80 13 01 00 [15:03:47]Write to MH i2c: E2 08 00 0A 4C 80 13 01 00 00 00 00 00 D3 [15:03:47]Write i2c OK [15:03:47]MH_I2C_Read... [15:03:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:47]Read from MH i2c: E2 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: E2 0E 00 [15:03:47]MH_I2C_Read... [15:03:47]Read from MH i2c: E2 0E 00 0A 4C 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 49 [15:03:47]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:03:47]wFMCommunicate OK [15:03:47]SAM_PROTO_GetShiftState done [15:03:47]FM_GetShiftState done [15:03:47]opened in 1723766958 [15:03:47]opened+sec_in_day 1723853358 [15:03:47]quantity*price = 0 [15:03:47]sum+1 = 1 [15:03:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 117 16.08.2024 15:03 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30025870 ФМ: 0000000000871800 ФД: 49469 ФПД: 237466776057035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T150353&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49469&fm=237466776057035&tin=02508201610067®Number=0000000000092546&sum=0 [15:03:48]StoreToDocumentArchive [15:03:48]shift 464 fd 49469 [15:03:48]save to /storage/0464/doc_00049469 [15:03:48]save last doc name /storage/0464/doc_00049469 to /storage/kkm_last_doc_name [15:03:48]save OK [15:03:48]Clear old archive folders... [15:03:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:03:48]tlvbuf is 00E45C60 [15:03:48]SAM_PROTO_ClearQueue [15:03:48]wFMCommunicate request_size=4 [15:03:48]MH_SAM_APDU [15:03:48]CAPDU: 80 09 00 00 [15:03:48]Write to MH i2c: E2 08 00 17 4C 80 09 00 00 00 00 00 00 D5 [15:03:48]Write i2c OK [15:03:48]MH_I2C_Read... [15:03:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:48]Read from MH i2c: E2 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 03 00 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 03 00 17 4C 00 90 00 D7 [15:03:48]RAPDU: 90 00 [15:03:48]wFMCommunicate OK [15:03:48]SAM_PROTO_ClearQueue done [15:03:48]KKMCreateOFDPacket [15:03:48]OFDProtocolAddRootSTLVToBuf [15:03:48]FM_MakeSignedData [15:03:48]FM_MakeSignedData [15:03:48]SAM_PROTO_SignData [15:03:48]wFMCommunicate request_size=4 [15:03:48]MH_SAM_APDU [15:03:48]CAPDU: 80 0D 01 02 [15:03:48]Write to MH i2c: E2 08 00 18 4C 80 0D 01 02 00 00 00 00 DD [15:03:48]Write i2c OK [15:03:48]MH_I2C_Read... [15:03:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:48]Read from MH i2c: E2 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 03 00 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 03 00 18 4C 00 90 00 D8 [15:03:48]RAPDU: 90 00 [15:03:48]wFMCommunicate OK [15:03:48]wFMCommunicate request_size=255 [15:03:48]MH_SAM_APDU [15:03: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 34 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 59 6A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3D C1 00 00 35 04 06 00 D7 [15:03:48]Write to MH i2c: E2 02 01 19 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 34 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 59 6A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3D C1 00 00 35 04 06 00 D7 00 00 EB [15:03:48]Write i2c OK [15:03:48]MH_I2C_Read... [15:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:48]Read from MH i2c: E2 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 03 00 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 03 00 19 4C 00 90 00 D9 [15:03:48]RAPDU: 90 00 [15:03:48]wFMCommunicate OK [15:03:48]wFMCommunicate request_size=10 [15:03:48]MH_SAM_APDU [15:03:48]CAPDU: 80 0D 02 02 05 F9 8A D5 34 CB [15:03:48]Write to MH i2c: E2 0D 00 1A 4C 80 0D 02 02 05 00 F9 8A D5 34 CB 00 00 41 [15:03:48]Write i2c OK [15:03:48]MH_I2C_Read... [15:03:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:48]Read from MH i2c: E2 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 03 00 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 03 00 1A 4C 00 90 00 DA [15:03:48]RAPDU: 90 00 [15:03:48]wFMCommunicate OK [15:03:48]wFMCommunicate request_size=4 [15:03:48]MH_SAM_APDU [15:03:48]CAPDU: 80 0D 03 02 [15:03:48]Write to MH i2c: E2 08 00 1B 4C 80 0D 03 02 00 00 00 00 E2 [15:03:48]Write i2c OK [15:03:48]MH_I2C_Read... [15:03:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:03:48]Read from MH i2c: E2 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 0B 00 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 0B 00 1B 4C 00 E6 55 91 31 A6 01 C5 C6 90 00 12 [15:03:48]RAPDU: E6 55 91 31 A6 01 C5 C6 90 00 [15:03:48]wFMCommunicate OK [15:03:48]SAM_PROTO_SignData done [15:03:48]FM_MakeSignedData done [15:03:48]CreateOFDProtocolMessage [15:03:48]wFMCommunicate request_size=4 [15:03:48]MH_SAM_APDU [15:03:48]CAPDU: 80 11 00 00 [15:03:48]Write to MH i2c: E2 08 00 1C 4C 80 11 00 00 00 00 00 00 E2 [15:03:48]Write i2c OK [15:03:48]MH_I2C_Read... [15:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:48]Read from MH i2c: E2 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 17 00 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: E2 17 00 1C 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2D [15:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:03:48]wFMCommunicate OK [15:03:48]CreateOFDProtocolMessage done [15:03:48]OFDSenderStorePacket 49469 [15:03:48]StoreOFDPacket docnum=49469 [15:03:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 EE 06 07 01 F9 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 34 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 59 6A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3D C1 00 00 35 04 06 00 D7 F9 8A D5 34 CB E6 55 91 31 A6 01 C5 C6 [15:03:48]CheckFolder [15:03:48]dirname=/storage/ofd_packets [15:03:48]CheckFolder done [15:03:48]ProducePacketName [15:03:48]name=ofd_packets/00049469 [15:03:48]NVStorageSaveData ofd_packets/00049469 [15:03:48]File name is /storage/ofd_packets/00049469 [15:03:48]Write 301 bytes [15:03:48]NVStorageSaveData done [15:03:48]OFDSenderStorePacket done [15:03:48]KKMCreateOFDPacket done [15:03:48]NVStorageSaveData kkm_last_timestamp [15:03:48]File name is /storage/kkm_last_timestamp [15:03:48]Write 4 bytes [15:03:48]NVStorageSaveData done [15:03:48]ExternCall_PrintAddStr [15:03:48]wPrintStart [15:03:48]Write to MH i2c: 01 00 00 1D 4C 69 [15:03:48]Write i2c OK [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: 01 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: 01 07 00 [15:03:48]MH_I2C_Read... [15:03:48]Read from MH i2c: 01 07 00 1D 4C 00 00 00 00 00 FF 0F 7E [15:03:48]RasterBufferAndPrint [15:03:48]line Счет N : (1)11325452 [15:03:48]line ИНН: 02508201610067 [15:03:48]line Контрольно-Кассовый Чек [15:03:48]line ПРОДАЖА [15:03:48]line ТРК (МРК, ГНК) : 42 [15:03:48]line Товар: 2710124130 [15:03:48]line Аи-92-К-4 [15:03:48]line 25.000 * 0.00 [15:03:48]line = 0.00 [15:03:48]line НДС 12% НСП 1% [15:03:48]line > о реализуемом товаре [15:03:48]line ИТОГО: 0.00 [15:03:48]line НСП 1% : 0.00 [15:03:48]line НДС 12% : 0.00 [15:03:48]line Наличными: 0.00 [15:03:48]line Безнал.: 0.00 [15:03:48]line Место: АЗС № 95 "Партнер Нефть" [15:03:48]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:03:48]line СНО: Общий режим [15:03:48]line Чек 117 16.08.2024 15:03 [15:03:48]line Смена: 464 ФФД: 1.0 [15:03:48]line ЗНМ: 0300000078 [15:03:48]line РНМ: 0000000000092546 [15:03:48]line Версия ККМ: 001 [15:03:48]line Талоны: ТК ГПНА Online [15:03:48]line 30025870 [15:03:48]line ФМ: 0000000000871800 [15:03:48]line ФД: 49469 [15:03:48]line ФПД: 237466776057035 [15:03:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T150353&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49469&fm=237466776057035&tin=02508201610067®Number=0000000000092546&sum=0 [15:03:48]written 0, free lines is 4095 [15:03:49]OFD Sender: Processing packet 49469 [packets to send 21, broken 20] [15:03:49]ProducePacketName [15:03:49]name=ofd_packets/00049469 [15:03:49]OFD Sender: To server: pG, [15:03:49]CommunicateWithHost lk.salyk.kg:30040 [15:03:49]ConnectInit lk.salyk.kg [15:03:49]Write to MH i2c: 01 00 00 47 4C 93 [15:03:49]Write i2c OK [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: 01 [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: 01 07 00 [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: 01 07 00 47 4C 00 00 00 00 00 D0 0C 76 [15:03:49]RasterBufferAndPrint [15:03:49]line [15:03:49]line [15:03:49]line [15:03:49]line [15:03:49]line [15:03:49]written 0, free lines is 3286 [15:03:49]MH_Cut [15:03:49]Write to MH i2c: D1 01 00 4E 4C 01 6C [15:03:49]Write i2c OK [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: D1 [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: D1 01 00 [15:03:49]MH_I2C_Read... [15:03:49]Read from MH i2c: D1 01 00 4E 4C 00 6B [15:03:49]Write to MH i2c: 01 00 00 4F 4C 9B [15:03:49]Write i2c OK [15:03:49]MH_I2C_Read... [15:03:49]Connected sock=10 [15:03:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 EE 06 07 01 F9 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 34 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 59 6A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3D C1 00 00 35 04 06 00 D7 F9 8A D5 34 CB E6 55 91 31 A6 01 C5 C6 [15:03:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F8 70 47 00 77 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 38 37 31 38 30 30 10 04 04 00 3D C1 00 00 F4 03 04 00 97 15 BF 66 B6 04 01 00 00 E2 B3 3F 40 F1 5A A3 88 [15:03:49]CommunicateWithHost err = 0 [15:03:49]CheckOFDResponse [15:03:49]1017 (14) - 77093643461234 [15:03:49]1041 (16) - 0000000000871800 [15:03:49]1040 (4) - 49469 [15:03:49]1012 (4) - 16.08.2024 09:02 [15:03:49]1206 (1) - 0 [15:03:49]OFD Sender: Remove packet 49469 [15:03:49]ProducePacketName [15:03:49]name=ofd_packets/00049469 [15:03:49]NVStorageDeleteData [15:03:50]*** Cut start [15:03:50]*** Purtial cut [15:03:50]*** Stage 1: CUTSNS_PIN = 1 [15:03:50]OFD Sender: No OFD packet to send [15:03:50]Read from MH i2c: 01 [15:03:50]MH_I2C_Read... [15:03:50]*** Stop cut motor [15:03:50]*** Cut end [15:03:50]Read from MH i2c: 01 07 00 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: 01 07 00 4F 4C 00 00 00 00 00 FF 0F B0 [15:03:50]process_action close_receipt done [15:03:50]requested_data is exist [15:03:50]produce_requested_data [15:03:50]requested_item fm.sn is exist - process it [15:03:50]wFMCommunicate request_size=4 [15:03:50]MH_SAM_APDU [15:03:50]CAPDU: 80 11 00 00 [15:03:50]Write to MH i2c: E2 08 00 50 4C 80 11 00 00 00 00 00 00 16 [15:03:50]Write i2c OK [15:03:50]MH_I2C_Read... [15:03:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:03:50]Read from MH i2c: E2 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 17 00 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 17 00 50 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 61 [15:03:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:03:50]wFMCommunicate OK [15:03:50]requested_item fd.num is exist - process it [15:03:50]SAM_PROTO_GetFieldsCounters [15:03:50]wFMCommunicate request_size=4 [15:03:50]MH_SAM_APDU [15:03:50]CAPDU: 80 13 00 00 [15:03:50]Write to MH i2c: E2 08 00 51 4C 80 13 00 00 00 00 00 00 19 [15:03:50]Write i2c OK [15:03:50]MH_I2C_Read... [15:03:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:03:50]Read from MH i2c: E2 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 62 00 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 62 00 51 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3D C1 00 00 0E 04 04 00 D0 01 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 61 [15:03:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3D C1 00 00 0E 04 04 00 D0 01 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 [15:03:50]wFMCommunicate OK [15:03:50]SAM_PROTO_GetFieldsCounters done [15:03:50]requested_item shift.num is exist - process it [15:03:50]requested_item shift.opened is exist - process it [15:03:50]req_shift_opened [15:03:50]FM_GetShiftState [15:03:50]SAM_PROTO_GetShiftState [15:03:50]wFMCommunicate request_size=4 [15:03:50]MH_SAM_APDU [15:03:50]CAPDU: 80 13 01 00 [15:03:50]Write to MH i2c: E2 08 00 52 4C 80 13 01 00 00 00 00 00 1B [15:03:50]Write i2c OK [15:03:50]MH_I2C_Read... [15:03:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:50]Read from MH i2c: E2 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 0E 00 [15:03:50]MH_I2C_Read... [15:03:50]Read from MH i2c: E2 0E 00 52 4C 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 91 [15:03:50]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:03:50]wFMCommunicate OK [15:03:50]SAM_PROTO_GetShiftState done [15:03:50]FM_GetShiftState done [15:03:50]req_shift_opened done [15:03:50]requested_item shift.open_date is exist - process it [15:03:50]req_shift_open_date [15:03:50]req_shift_open_date done [15:03:50]produce_requested_data done [15:03:50]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49469,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [15:03:50]process_action_free close_receipt [15:03:50]json_value_free [15:03:50]json_value_free done [15:03:50]process_json_proto returns [15:03:50]Send response to host [15:03:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49469,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [15:03:50]free response buf [15:03:50]execute_script done [15:03:50]execute_script returns [15:03:50]free content buf [15:03:50]Sock 9.Close socket [15:03:50]Sock 9.Thread stoped [15:03:55]OFD Sender: No OFD packet to send [15:03:58]accept exits with 7 [15:03:58]New connection [15:03:58]New thread 3066830180 created [15:03:58]Thread 3066973540 joined [15:03:58]Waiting for new connection... [15:03:58] Sock 7.Parse request [15:03:58]Sock 7.Check first char [15:03:58]Sock 7.First char is OK [15:03:58]request: POST /json_proto HTTP/1.0 [15:03:58]Method: POST [15:03:58]URL: /json_proto [15:03:58]Method is POST - this is cgi request [15:03:58]url: /json_proto [15:03:58]query_string will be loaded in cgi processing [15:03:58]execute_cgi json_proto POST (null) [15:03:58]execute_cgi path=json_proto method=POST [15:03:58]POST find Content-Length [15:03:58]Host: 172.17.46.196:8080 [15:03:58]Content-Length: 622 [15:03:58]Content-Type: application/json [15:03:58] [15:03:58]POST finish read [15:03:58]Found Content-Length = 622 [15:03:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189682", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:58]execute_script... [15:03: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 : (3)189682", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:03:58]POST & json_proto [15:03:58]process_json_proto [15:03:58]json parsed OK: [15:03:58]protocol is kg_v1.0 [15:03:58]action value=close_receipt [15:03:58]process_action close_receipt [15:03:58]cmd_close_receipt [15:03:58]MH_GetDate [15:03:58]Write to MH i2c: F0 00 00 53 4C 8E [15:03:58]Write i2c OK [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: F0 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: F0 09 00 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: F0 09 00 53 4C 00 64 6A BF 66 07 E8 5D 66 3C [15:03:58]GetLastDocTimeStamp 1723820633 [15:03:58]current date 1723820644 [15:03:58]FM_GetShiftState [15:03:58]SAM_PROTO_GetShiftState [15:03:58]wFMCommunicate request_size=4 [15:03:58]MH_SAM_APDU [15:03:58]CAPDU: 80 13 01 00 [15:03:58]Write to MH i2c: E2 08 00 54 4C 80 13 01 00 00 00 00 00 1D [15:03:58]Write i2c OK [15:03:58]MH_I2C_Read... [15:03:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:03:58]Read from MH i2c: E2 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 0E 00 [15:03:58]MH_I2C_Read... [15:03:58]Read from MH i2c: E2 0E 00 54 4C 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 93 [15:03:58]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:03:58]wFMCommunicate OK [15:03:58]SAM_PROTO_GetShiftState done [15:03:58]FM_GetShiftState done [15:03:58]opened in 1723766958 [15:03:58]opened+sec_in_day 1723853358 [15:03:58]quantity*price = 15100 [15:03:58]sum+1 = 15101 [15:03:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 118 16.08.2024 15:04 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49470 ФПД: 170068565465993 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T150404&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49470&fm=170068565465993&tin=02508201610067®Number=0000000000092546&sum=15100 0 [15:03:59]StoreToDocumentArchive [15:03:59]shift 464 fd 49470 [15:03:59]save to /storage/0464/doc_00049470 [15:03:59]save last doc name /storage/0464/doc_00049470 to /storage/kkm_last_doc_name [15:03:59]save OK [15:03:59]Clear old archive folders... [15:03:59]ProcessDocumentItem done err = 0, tmpTLVsize=274 [15:03:59]tlvbuf is 00E412F0 [15:03:59]SAM_PROTO_ClearQueue [15:03:59]wFMCommunicate request_size=4 [15:03:59]MH_SAM_APDU [15:03:59]CAPDU: 80 09 00 00 [15:03:59]Write to MH i2c: E2 08 00 61 4C 80 09 00 00 00 00 00 00 1F [15:03:59]Write i2c OK [15:03:59]MH_I2C_Read... [15:03:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:03:59]Read from MH i2c: E2 [15:03:59]MH_I2C_Read... [15:03:59]Read from MH i2c: E2 03 00 [15:03:59]MH_I2C_Read... [15:03:59]Read from MH i2c: E2 03 00 61 4C 00 90 00 21 [15:03:59]RAPDU: 90 00 [15:03:59]wFMCommunicate OK [15:03:59]SAM_PROTO_ClearQueue done [15:03:59]KKMCreateOFDPacket [15:03:59]OFDProtocolAddRootSTLVToBuf [15:03:59]FM_MakeSignedData [15:03:59]FM_MakeSignedData [15:03:59]SAM_PROTO_SignData [15:03:59]wFMCommunicate request_size=4 [15:03:59]MH_SAM_APDU [15:03:59]CAPDU: 80 0D 01 02 [15:03:59]Write to MH i2c: E2 08 00 62 4C 80 0D 01 02 00 00 00 00 27 [15:03:59]Write i2c OK [15:03:59]MH_I2C_Read... [15:03:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:03:59]Read from MH i2c: E2 [15:03:59]MH_I2C_Read... [15:03:59]Read from MH i2c: E2 03 00 [15:03:59]MH_I2C_Read... [15:03:59]Read from MH i2c: E2 03 00 62 4C 00 90 00 22 [15:03:59]RAPDU: 90 00 [15:03:59]wFMCommunicate OK [15:03:59]wFMCommunicate request_size=255 [15:03:59]MH_SAM_APDU [15:03:59]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 76 00 00 00 F4 03 04 00 64 6A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 [15:03:59]Write to MH i2c: E2 02 01 63 4C 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 76 00 00 00 F4 03 04 00 64 6A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 00 00 2B [15:03:59]Write i2c OK [15:03:59]MH_I2C_Read... [15:03:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:03:59]Read from MH i2c: E2 [15:03:59]MH_I2C_Read... [15:03:59]Read from MH i2c: E2 03 00 [15:03:59]MH_I2C_Read... [15:03:59]Read from MH i2c: E2 03 00 63 4C 00 90 00 23 [15:03:59]RAPDU: 90 00 [15:03:59]wFMCommunicate OK [15:03:59]wFMCommunicate request_size=33 [15:03:59]MH_SAM_APDU [15:03:59]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3E C1 00 00 35 04 06 00 9A AD 2C 6E 9B 89 [15:03:59]Write to MH i2c: E2 24 00 64 4C 80 0D 02 02 1C 00 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3E C1 00 00 35 04 06 00 9A AD 2C 6E 9B 89 00 00 B5 [15:03:59]Write i2c OK [15:03:59]MH_I2C_Read... [15:04:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:00]Read from MH i2c: E2 [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: E2 03 00 [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: E2 03 00 64 4C 00 90 00 24 [15:04:00]RAPDU: 90 00 [15:04:00]wFMCommunicate OK [15:04:00]wFMCommunicate request_size=4 [15:04:00]MH_SAM_APDU [15:04:00]CAPDU: 80 0D 03 02 [15:04:00]Write to MH i2c: E2 08 00 65 4C 80 0D 03 02 00 00 00 00 2C [15:04:00]Write i2c OK [15:04:00]MH_I2C_Read... [15:04:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:00]Read from MH i2c: E2 [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: E2 0B 00 [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: E2 0B 00 65 4C 00 91 BC 24 BB A3 64 E7 B0 90 00 F7 [15:04:00]RAPDU: 91 BC 24 BB A3 64 E7 B0 90 00 [15:04:00]wFMCommunicate OK [15:04:00]SAM_PROTO_SignData done [15:04:00]FM_MakeSignedData done [15:04:00]CreateOFDProtocolMessage [15:04:00]wFMCommunicate request_size=4 [15:04:00]MH_SAM_APDU [15:04:00]CAPDU: 80 11 00 00 [15:04:00]Write to MH i2c: E2 08 00 66 4C 80 11 00 00 00 00 00 00 2C [15:04:00]Write i2c OK [15:04:00]MH_I2C_Read... [15:04:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:00]Read from MH i2c: E2 [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: E2 17 00 [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: E2 17 00 66 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 77 [15:04:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:04:00]wFMCommunicate OK [15:04:00]CreateOFDProtocolMessage done [15:04:00]OFDSenderStorePacket 49470 [15:04:00]StoreOFDPacket docnum=49470 [15:04:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 7D C1 1E 01 82 34 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 76 00 00 00 F4 03 04 00 64 6A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3E C1 00 00 35 04 06 00 9A AD 2C 6E 9B 89 91 BC 24 BB A3 64 E7 B0 [15:04:00]CheckFolder [15:04:00]dirname=/storage/ofd_packets [15:04:00]CheckFolder done [15:04:00]ProducePacketName [15:04:00]name=ofd_packets/00049470 [15:04:00]NVStorageSaveData ofd_packets/00049470 [15:04:00]File name is /storage/ofd_packets/00049470 [15:04:00]Write 324 bytes [15:04:00]NVStorageSaveData done [15:04:00]OFDSenderStorePacket done [15:04:00]KKMCreateOFDPacket done [15:04:00]NVStorageSaveData kkm_last_timestamp [15:04:00]File name is /storage/kkm_last_timestamp [15:04:00]Write 4 bytes [15:04:00]NVStorageSaveData done [15:04:00]ExternCall_PrintAddStr [15:04:00]wPrintStart [15:04:00]Write to MH i2c: 01 00 00 67 4C B3 [15:04:00]Write i2c OK [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: 01 [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: 01 07 00 [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: 01 07 00 67 4C 00 00 00 00 00 FF 0F C8 [15:04:00]RasterBufferAndPrint [15:04:00]line Счет N : (3)189682 [15:04:00]line ИНН: 02508201610067 [15:04:00]line Контрольно-Кассовый Чек [15:04:00]line ПРОДАЖА [15:04:00]line Товар: 48741958 [15:04:00]line Сигареты Parliament Aqua Blue [15:04:00]line 1.000 * 151.00 [15:04:00]line = 151.00 [15:04:00]line НДС 12% НСП 1% [15:04:00]line > о реализуемом товаре [15:04:00]line ИТОГО: 151.00 [15:04:00]line НСП 1% : 1.34 [15:04:00]line НДС 12% : 16.03 [15:04:00]line Наличными: 151.00 [15:04:00]line Безнал.: 0.00 [15:04:00]line Место: АЗС № 95 "Партнер Нефть" [15:04:00]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:04:00]line СНО: Общий режим [15:04:00]line Чек 118 16.08.2024 15:04 [15:04:00]line Смена: 464 ФФД: 1.0 [15:04:00]line ЗНМ: 0300000078 [15:04:00]line РНМ: 0000000000092546 [15:04:00]line Версия ККМ: 001 [15:04:00]line ФМ: 0000000000871800 [15:04:00]line ФД: 49470 [15:04:00]line ФПД: 170068565465993 [15:04:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T150404&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49470&fm=170068565465993&tin=02508201610067®Number=0000000000092546&sum=15100 [15:04:00]line 0 [15:04:00]written 0, free lines is 4095 [15:04:00]OFD Sender: Processing packet 49470 [packets to send 21, broken 20] [15:04:00]ProducePacketName [15:04:00]name=ofd_packets/00049470 [15:04:00]OFD Sender: To server: pG, [15:04:00]CommunicateWithHost lk.salyk.kg:30040 [15:04:00]ConnectInit lk.salyk.kg [15:04:00]Connected sock=10 [15:04:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 7D C1 1E 01 82 34 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 76 00 00 00 F4 03 04 00 64 6A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3E C1 00 00 35 04 06 00 9A AD 2C 6E 9B 89 91 BC 24 BB A3 64 E7 B0 [15:04:00]Write to MH i2c: 01 00 00 90 4C DC [15:04:00]Write i2c OK [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: 01 [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: 01 07 00 [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: 01 07 00 90 4C 00 00 00 00 00 C5 0C B4 [15:04:00]RasterBufferAndPrint [15:04:00]line [15:04:00]line [15:04:00]line [15:04:00]line [15:04:00]line [15:04:00]written 0, free lines is 3276 [15:04:00]MH_Cut [15:04:00]Write to MH i2c: D1 01 00 97 4C 01 B5 [15:04:00]Write i2c OK [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: D1 [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: D1 01 00 [15:04:00]MH_I2C_Read... [15:04:00]Read from MH i2c: D1 01 00 97 4C 00 B4 [15:04:00]Write to MH i2c: 01 00 00 98 4C E4 [15:04:00]Write i2c OK [15:04:00]MH_I2C_Read... [15:04:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 1F 64 47 00 A3 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 38 37 31 38 30 30 10 04 04 00 3E C1 00 00 F4 03 04 00 A2 15 BF 66 B6 04 01 00 00 2E 8F C2 DD ED AB D6 14 [15:04:00]CommunicateWithHost err = 0 [15:04:00]CheckOFDResponse [15:04:00]1017 (14) - 77093643461234 [15:04:00]1041 (16) - 0000000000871800 [15:04:00]1040 (4) - 49470 [15:04:00]1012 (4) - 16.08.2024 09:02 [15:04:00]1206 (1) - 0 [15:04:00]OFD Sender: Remove packet 49470 [15:04:00]ProducePacketName [15:04:00]name=ofd_packets/00049470 [15:04:00]NVStorageDeleteData [15:04:01]OFD Sender: No OFD packet to send [15:04:01]*** Cut start [15:04:01]*** Purtial cut [15:04:01]*** CUTSNS_PIN = 0 [15:04:01]*** Stage 1: CUTSNS_PIN = 1 [15:04:03]Read from MH i2c: 01 [15:04:03]MH_I2C_Read... [15:04:03]*** Stop cut motor [15:04:03]*** Cut end [15:04:03]Read from MH i2c: 01 07 00 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: 01 07 00 98 4C 00 00 00 00 00 FF 0F F9 [15:04:03]process_action close_receipt done [15:04:03]requested_data is exist [15:04:03]produce_requested_data [15:04:03]requested_item fm.sn is exist - process it [15:04:03]wFMCommunicate request_size=4 [15:04:03]MH_SAM_APDU [15:04:03]CAPDU: 80 11 00 00 [15:04:03]Write to MH i2c: E2 08 00 99 4C 80 11 00 00 00 00 00 00 5F [15:04:03]Write i2c OK [15:04:03]MH_I2C_Read... [15:04:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:03]Read from MH i2c: E2 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: E2 17 00 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: E2 17 00 99 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AA [15:04:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:04:03]wFMCommunicate OK [15:04:03]requested_item fd.num is exist - process it [15:04:03]SAM_PROTO_GetFieldsCounters [15:04:03]wFMCommunicate request_size=4 [15:04:03]MH_SAM_APDU [15:04:03]CAPDU: 80 13 00 00 [15:04:03]Write to MH i2c: E2 08 00 9A 4C 80 13 00 00 00 00 00 00 62 [15:04:03]Write i2c OK [15:04:03]MH_I2C_Read... [15:04:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:03]Read from MH i2c: E2 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: E2 62 00 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: E2 62 00 9A 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3E C1 00 00 0E 04 04 00 D0 01 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 AE [15:04:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3E C1 00 00 0E 04 04 00 D0 01 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 [15:04:03]wFMCommunicate OK [15:04:03]SAM_PROTO_GetFieldsCounters done [15:04:03]requested_item shift.num is exist - process it [15:04:03]requested_item shift.opened is exist - process it [15:04:03]req_shift_opened [15:04:03]FM_GetShiftState [15:04:03]SAM_PROTO_GetShiftState [15:04:03]wFMCommunicate request_size=4 [15:04:03]MH_SAM_APDU [15:04:03]CAPDU: 80 13 01 00 [15:04:03]Write to MH i2c: E2 08 00 9B 4C 80 13 01 00 00 00 00 00 64 [15:04:03]Write i2c OK [15:04:03]MH_I2C_Read... [15:04:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:03]Read from MH i2c: E2 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: E2 0E 00 [15:04:03]MH_I2C_Read... [15:04:03]Read from MH i2c: E2 0E 00 9B 4C 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 DA [15:04:03]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:04:03]wFMCommunicate OK [15:04:03]SAM_PROTO_GetShiftState done [15:04:03]FM_GetShiftState done [15:04:03]req_shift_opened done [15:04:03]requested_item shift.open_date is exist - process it [15:04:03]req_shift_open_date [15:04:03]req_shift_open_date done [15:04:03]produce_requested_data done [15:04:03]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49470,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [15:04:03]process_action_free close_receipt [15:04:03]json_value_free [15:04:03]json_value_free done [15:04:03]process_json_proto returns [15:04:03]Send response to host [15:04:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49470,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [15:04:03]free response buf [15:04:03]execute_script done [15:04:03]execute_script returns [15:04:03]free content buf [15:04:03]Sock 7.Close socket [15:04:03]Sock 7.Thread stoped [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:21]OFD Sender: No OFD packet to send [15:04:26]OFD Sender: No OFD packet to send [15:04:31]OFD Sender: No OFD packet to send [15:04:36]OFD Sender: No OFD packet to send [15:04:41]OFD Sender: No OFD packet to send [15:04:46]OFD Sender: No OFD packet to send [15:04:51]OFD Sender: No OFD packet to send [15:04:56]OFD Sender: No OFD packet to send [15:05:01]OFD Sender: No OFD packet to send [15:05:06]OFD Sender: No OFD packet to send [15:05:11]OFD Sender: No OFD packet to send [15:05:16]OFD Sender: No OFD packet to send [15:05:17]accept exits with 9 [15:05:17]New connection [15:05:17]New thread 3066973540 created [15:05:17]Thread 3066830180 joined [15:05:17]Waiting for new connection... [15:05:17] Sock 9.Parse request [15:05:17]Sock 9.Check first char [15:05:17]Sock 9.First char is OK [15:05:17]request: POST /json_proto HTTP/1.0 [15:05:17]Method: POST [15:05:17]URL: /json_proto [15:05:17]Method is POST - this is cgi request [15:05:17]url: /json_proto [15:05:17]query_string will be loaded in cgi processing [15:05:17]execute_cgi json_proto POST (null) [15:05:17]execute_cgi path=json_proto method=POST [15:05:17]POST find Content-Length [15:05:17]Host: 172.17.46.196:8080 [15:05:17]Content-Length: 874 [15:05:17]Content-Type: application/json [15:05:17] [15:05:17]POST finish read [15:05:17]Found Content-Length = 874 [15:05:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189683", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:17]execute_script... [15:05:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189683", "tax_sys" : 0, "items" : [ { "code": "4870001571023", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:17]POST & json_proto [15:05:17]process_json_proto [15:05:17]json parsed OK: [15:05:17]protocol is kg_v1.0 [15:05:17]action value=close_receipt [15:05:17]process_action close_receipt [15:05:17]cmd_close_receipt [15:05:17]MH_GetDate [15:05:17]Write to MH i2c: F0 00 00 9C 4C D7 [15:05:17]Write i2c OK [15:05:17]MH_I2C_Read... [15:05:17]Read from MH i2c: F0 [15:05:17]MH_I2C_Read... [15:05:17]Read from MH i2c: F0 09 00 [15:05:17]MH_I2C_Read... [15:05:17]Read from MH i2c: F0 09 00 9C 4C 00 B3 6A BF 66 07 E8 5D 66 D4 [15:05:17]GetLastDocTimeStamp 1723820644 [15:05:17]current date 1723820723 [15:05:17]FM_GetShiftState [15:05:17]SAM_PROTO_GetShiftState [15:05:17]wFMCommunicate request_size=4 [15:05:17]MH_SAM_APDU [15:05:17]CAPDU: 80 13 01 00 [15:05:17]Write to MH i2c: E2 08 00 9D 4C 80 13 01 00 00 00 00 00 66 [15:05:17]Write i2c OK [15:05:17]MH_I2C_Read... [15:05:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:17]Read from MH i2c: E2 [15:05:17]MH_I2C_Read... [15:05:17]Read from MH i2c: E2 0E 00 [15:05:17]MH_I2C_Read... [15:05:17]Read from MH i2c: E2 0E 00 9D 4C 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 DC [15:05:17]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:05:17]wFMCommunicate OK [15:05:17]SAM_PROTO_GetShiftState done [15:05:17]FM_GetShiftState done [15:05:17]opened in 1723766958 [15:05:17]opened+sec_in_day 1723853358 [15:05:17]quantity*price = 6500 [15:05:17]sum+1 = 6501 [15:05:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 0.00 Безнал.: 65.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 119 16.08.2024 15:05 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49471 ФПД: 65490489487061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T150523&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49471&fm=65490489487061&tin=02508201610067®Number=0000000000092546&sum=6500 0 [15:05:18]StoreToDocumentArchive [15:05:18]shift 464 fd 49471 [15:05:18]save to /storage/0464/doc_00049471 [15:05:18]save last doc name /storage/0464/doc_00049471 to /storage/kkm_last_doc_name [15:05:18]save OK [15:05:18]Clear old archive folders... [15:05:18]ProcessDocumentItem done err = 0, tmpTLVsize=304 [15:05:18]tlvbuf is 00E45D10 [15:05:18]SAM_PROTO_ClearQueue [15:05:18]wFMCommunicate request_size=4 [15:05:18]MH_SAM_APDU [15:05:18]CAPDU: 80 09 00 00 [15:05:18]Write to MH i2c: E2 08 00 AA 4C 80 09 00 00 00 00 00 00 68 [15:05:18]Write i2c OK [15:05:18]MH_I2C_Read... [15:05:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:18]Read from MH i2c: E2 [15:05:18]MH_I2C_Read... [15:05:18]Read from MH i2c: E2 03 00 [15:05:18]MH_I2C_Read... [15:05:18]Read from MH i2c: E2 03 00 AA 4C 00 90 00 6A [15:05:18]RAPDU: 90 00 [15:05:18]wFMCommunicate OK [15:05:18]SAM_PROTO_ClearQueue done [15:05:18]KKMCreateOFDPacket [15:05:18]OFDProtocolAddRootSTLVToBuf [15:05:18]FM_MakeSignedData [15:05:18]FM_MakeSignedData [15:05:18]SAM_PROTO_SignData [15:05:18]wFMCommunicate request_size=4 [15:05:18]MH_SAM_APDU [15:05:18]CAPDU: 80 0D 01 02 [15:05:18]Write to MH i2c: E2 08 00 AB 4C 80 0D 01 02 00 00 00 00 70 [15:05:18]Write i2c OK [15:05:18]MH_I2C_Read... [15:05:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:18]Read from MH i2c: E2 [15:05:18]MH_I2C_Read... [15:05:18]Read from MH i2c: E2 03 00 [15:05:18]MH_I2C_Read... [15:05:18]Read from MH i2c: E2 03 00 AB 4C 00 90 00 6B [15:05:18]RAPDU: 90 00 [15:05:18]wFMCommunicate OK [15:05:18]wFMCommunicate request_size=255 [15:05:18]MH_SAM_APDU [15:05:18]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 B3 6A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 [15:05:18]Write to MH i2c: E2 02 01 AC 4C 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 B3 6A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 00 00 47 [15:05:18]Write i2c OK [15:05:18]MH_I2C_Read... [15:05:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:18]Read from MH i2c: E2 [15:05:18]MH_I2C_Read... [15:05:18]Read from MH i2c: E2 03 00 [15:05:18]MH_I2C_Read... [15:05:18]Read from MH i2c: E2 03 00 AC 4C 00 90 00 6C [15:05:18]RAPDU: 90 00 [15:05:18]wFMCommunicate OK [15:05:18]wFMCommunicate request_size=63 [15:05:18]MH_SAM_APDU [15:05:18]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3F C1 00 00 35 04 06 00 3B 90 31 5C AE D5 [15:05:18]Write to MH i2c: E2 42 00 AD 4C 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3F C1 00 00 35 04 06 00 3B 90 31 5C AE D5 00 00 91 [15:05:18]Write i2c OK [15:05:18]MH_I2C_Read... [15:05:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:19]Read from MH i2c: E2 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: E2 03 00 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: E2 03 00 AD 4C 00 90 00 6D [15:05:19]RAPDU: 90 00 [15:05:19]wFMCommunicate OK [15:05:19]wFMCommunicate request_size=4 [15:05:19]MH_SAM_APDU [15:05:19]CAPDU: 80 0D 03 02 [15:05:19]Write to MH i2c: E2 08 00 AE 4C 80 0D 03 02 00 00 00 00 75 [15:05:19]Write i2c OK [15:05:19]MH_I2C_Read... [15:05:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:19]Read from MH i2c: E2 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: E2 0B 00 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: E2 0B 00 AE 4C 00 BD 1E 85 26 25 55 33 B8 90 00 61 [15:05:19]RAPDU: BD 1E 85 26 25 55 33 B8 90 00 [15:05:19]wFMCommunicate OK [15:05:19]SAM_PROTO_SignData done [15:05:19]FM_MakeSignedData done [15:05:19]CreateOFDProtocolMessage [15:05:19]wFMCommunicate request_size=4 [15:05:19]MH_SAM_APDU [15:05:19]CAPDU: 80 11 00 00 [15:05:19]Write to MH i2c: E2 08 00 AF 4C 80 11 00 00 00 00 00 00 75 [15:05:19]Write i2c OK [15:05:19]MH_I2C_Read... [15:05:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:19]Read from MH i2c: E2 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: E2 17 00 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: E2 17 00 AF 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C0 [15:05:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:05:19]wFMCommunicate OK [15:05:19]CreateOFDProtocolMessage done [15:05:19]OFDSenderStorePacket 49471 [15:05:19]StoreOFDPacket docnum=49471 [15:05:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 44 01 00 00 F2 FE 3C 01 DF 2F 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 B3 6A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3F C1 00 00 35 04 06 00 3B 90 31 5C AE D5 BD 1E 85 26 25 55 33 B8 [15:05:19]CheckFolder [15:05:19]dirname=/storage/ofd_packets [15:05:19]CheckFolder done [15:05:19]ProducePacketName [15:05:19]name=ofd_packets/00049471 [15:05:19]NVStorageSaveData ofd_packets/00049471 [15:05:19]File name is /storage/ofd_packets/00049471 [15:05:19]Write 354 bytes [15:05:19]NVStorageSaveData done [15:05:19]OFDSenderStorePacket done [15:05:19]KKMCreateOFDPacket done [15:05:19]NVStorageSaveData kkm_last_timestamp [15:05:19]File name is /storage/kkm_last_timestamp [15:05:19]Write 4 bytes [15:05:19]NVStorageSaveData done [15:05:19]ExternCall_PrintAddStr [15:05:19]wPrintStart [15:05:19]Write to MH i2c: 01 00 00 B0 4C FC [15:05:19]Write i2c OK [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: 01 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: 01 07 00 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: 01 07 00 B0 4C 00 00 00 00 00 FF 0F 11 [15:05:19]RasterBufferAndPrint [15:05:19]line Счет N : (3)189683 [15:05:19]line ИНН: 02508201610067 [15:05:19]line Контрольно-Кассовый Чек [15:05:19]line ПРОДАЖА [15:05:19]line Товар: 4870001571023 [15:05:19]line Вода ASU пит н.газ клубн,киви ПЭТ 0,5л [15:05:19]line 1.000 * 65.00 [15:05:19]line = 65.00 [15:05:19]line НДС 12% НСП 1% [15:05:19]line > о реализуемом товаре [15:05:19]line ИТОГО: 65.00 [15:05:19]line НСП 1% : 0.57 [15:05:19]line НДС 12% : 6.90 [15:05:19]line Наличными: 0.00 [15:05:19]line Безнал.: 65.00 [15:05:19]line Место: АЗС № 95 "Партнер Нефть" [15:05:19]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:05:19]line СНО: Общий режим [15:05:19]line Чек 119 16.08.2024 15:05 [15:05:19]line Смена: 464 ФФД: 1.0 [15:05:19]line ЗНМ: 0300000078 [15:05:19]line РНМ: 0000000000092546 [15:05:19]line Версия ККМ: 001 [15:05:19]line Платежная система: O! деньги [15:05:19]line ФМ: 0000000000871800 [15:05:19]line ФД: 49471 [15:05:19]line ФПД: 65490489487061 [15:05:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T150523&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49471&fm=65490489487061&tin=02508201610067®Number=0000000000092546&sum=6500 [15:05:19]line 0 [15:05:19]OFD Sender: Processing packet 49471 [packets to send 21, broken 20] [15:05:19]ProducePacketName [15:05:19]name=ofd_packets/00049471 [15:05:19]OFD Sender: To server: pG, [15:05:19]CommunicateWithHost lk.salyk.kg:30040 [15:05:19]ConnectInit lk.salyk.kg [15:05:19]written 0, free lines is 4095 [15:05:19]Connected sock=11 [15:05:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 44 01 00 00 F2 FE 3C 01 DF 2F 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 32 33 06 04 3E 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 B3 6A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3F C1 00 00 35 04 06 00 3B 90 31 5C AE D5 BD 1E 85 26 25 55 33 B8 [15:05:19]Write to MH i2c: 01 00 00 DB 4C 27 [15:05:19]Write i2c OK [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: 01 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: 01 07 00 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: 01 07 00 DB 4C 00 00 00 00 00 C8 0C 02 [15:05:19]RasterBufferAndPrint [15:05:19]line [15:05:19]line [15:05:19]line [15:05:19]line [15:05:19]line [15:05:19]written 0, free lines is 3278 [15:05:19]MH_Cut [15:05:19]Write to MH i2c: D1 01 00 E2 4C 01 00 [15:05:19]Write i2c OK [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: D1 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: D1 01 00 [15:05:19]MH_I2C_Read... [15:05:19]Read from MH i2c: D1 01 00 E2 4C 00 FF [15:05:19]Write to MH i2c: 01 00 00 E3 4C 2F [15:05:19]Write i2c OK [15:05:19]MH_I2C_Read... [15:05:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C5 D7 47 00 2B AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 3F C1 00 00 F4 03 04 00 F2 15 BF 66 B6 04 01 00 00 B5 5A 4F 26 A9 B3 63 02 [15:05:19]CommunicateWithHost err = 0 [15:05:19]CheckOFDResponse [15:05:19]1017 (14) - 77093643461234 [15:05:19]1041 (16) - 0000000000871800 [15:05:19]1040 (4) - 49471 [15:05:19]1012 (4) - 16.08.2024 09:03 [15:05:19]1206 (1) - 0 [15:05:19]OFD Sender: Remove packet 49471 [15:05:19]ProducePacketName [15:05:19]name=ofd_packets/00049471 [15:05:19]NVStorageDeleteData [15:05:20]OFD Sender: No OFD packet to send [15:05:20]*** Cut start [15:05:20]*** Purtial cut [15:05:20]*** Stage 1: CUTSNS_PIN = 1 [15:05:20]Read from MH i2c: 01 [15:05:20]MH_I2C_Read... [15:05:20]*** Stop cut motor [15:05:21]*** Cut end [15:05:21]Read from MH i2c: 01 07 00 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: 01 07 00 E3 4C 00 00 00 00 00 FF 0F 44 [15:05:21]process_action close_receipt done [15:05:21]requested_data is exist [15:05:21]produce_requested_data [15:05:21]requested_item fm.sn is exist - process it [15:05:21]wFMCommunicate request_size=4 [15:05:21]MH_SAM_APDU [15:05:21]CAPDU: 80 11 00 00 [15:05:21]Write to MH i2c: E2 08 00 E4 4C 80 11 00 00 00 00 00 00 AA [15:05:21]Write i2c OK [15:05:21]MH_I2C_Read... [15:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:21]Read from MH i2c: E2 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 17 00 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 17 00 E4 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F5 [15:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:05:21]wFMCommunicate OK [15:05:21]requested_item fd.num is exist - process it [15:05:21]SAM_PROTO_GetFieldsCounters [15:05:21]wFMCommunicate request_size=4 [15:05:21]MH_SAM_APDU [15:05:21]CAPDU: 80 13 00 00 [15:05:21]Write to MH i2c: E2 08 00 E5 4C 80 13 00 00 00 00 00 00 AD [15:05:21]Write i2c OK [15:05:21]MH_I2C_Read... [15:05:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:21]Read from MH i2c: E2 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 62 00 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 62 00 E5 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3F C1 00 00 0E 04 04 00 D0 01 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 FD [15:05:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 3F C1 00 00 0E 04 04 00 D0 01 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 [15:05:21]wFMCommunicate OK [15:05:21]SAM_PROTO_GetFieldsCounters done [15:05:21]requested_item shift.num is exist - process it [15:05:21]requested_item shift.opened is exist - process it [15:05:21]req_shift_opened [15:05:21]FM_GetShiftState [15:05:21]SAM_PROTO_GetShiftState [15:05:21]wFMCommunicate request_size=4 [15:05:21]MH_SAM_APDU [15:05:21]CAPDU: 80 13 01 00 [15:05:21]Write to MH i2c: E2 08 00 E6 4C 80 13 01 00 00 00 00 00 AF [15:05:21]Write i2c OK [15:05:21]MH_I2C_Read... [15:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:21]Read from MH i2c: E2 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 0E 00 [15:05:21]MH_I2C_Read... [15:05:21]Read from MH i2c: E2 0E 00 E6 4C 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 25 [15:05:21]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:05:21]wFMCommunicate OK [15:05:21]SAM_PROTO_GetShiftState done [15:05:21]FM_GetShiftState done [15:05:21]req_shift_opened done [15:05:21]requested_item shift.open_date is exist - process it [15:05:21]req_shift_open_date [15:05:21]req_shift_open_date done [15:05:21]produce_requested_data done [15:05:21]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49471,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [15:05:21]process_action_free close_receipt [15:05:21]json_value_free [15:05:21]json_value_free done [15:05:21]process_json_proto returns [15:05:21]Send response to host [15:05:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49471,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [15:05:21]free response buf [15:05:21]execute_script done [15:05:21]execute_script returns [15:05:21]free content buf [15:05:21]Sock 9.Close socket [15:05:21]Sock 9.Thread stoped [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:47]accept exits with 7 [15:05:47]New connection [15:05:47]New thread 3066830180 created [15:05:47]Thread 3066973540 joined [15:05:47]Waiting for new connection... [15:05:47] Sock 7.Parse request [15:05:47]Sock 7.Check first char [15:05:47]Sock 7.First char is OK [15:05:47]request: POST /json_proto HTTP/1.0 [15:05:47]Method: POST [15:05:47]URL: /json_proto [15:05:47]Method is POST - this is cgi request [15:05:47]url: /json_proto [15:05:47]query_string will be loaded in cgi processing [15:05:47]execute_cgi json_proto POST (null) [15:05:47]execute_cgi path=json_proto method=POST [15:05:47]POST find Content-Length [15:05:47]Host: 172.17.46.196:8080 [15:05:47]Content-Length: 626 [15:05:47]Content-Type: application/json [15:05:47] [15:05:47]POST finish read [15:05:47]Found Content-Length = 626 [15:05:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189684", "tax_sys" : 0, "items" : [ { "code": "4700000160198", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:47]execute_script... [15:05:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189684", "tax_sys" : 0, "items" : [ { "code": "4700000160198", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:05:47]POST & json_proto [15:05:47]process_json_proto [15:05:47]json parsed OK: [15:05:47]protocol is kg_v1.0 [15:05:47]action value=close_receipt [15:05:47]process_action close_receipt [15:05:47]cmd_close_receipt [15:05:47]MH_GetDate [15:05:47]Write to MH i2c: F0 00 00 E7 4C 22 [15:05:47]Write i2c OK [15:05:47]MH_I2C_Read... [15:05:47]Read from MH i2c: F0 [15:05:47]MH_I2C_Read... [15:05:47]Read from MH i2c: F0 09 00 [15:05:47]MH_I2C_Read... [15:05:47]Read from MH i2c: F0 09 00 E7 4C 00 D1 6A BF 66 07 E8 5D 66 3D [15:05:47]GetLastDocTimeStamp 1723820723 [15:05:47]current date 1723820753 [15:05:47]FM_GetShiftState [15:05:47]SAM_PROTO_GetShiftState [15:05:47]wFMCommunicate request_size=4 [15:05:47]MH_SAM_APDU [15:05:47]CAPDU: 80 13 01 00 [15:05:47]Write to MH i2c: E2 08 00 E8 4C 80 13 01 00 00 00 00 00 B1 [15:05:47]Write i2c OK [15:05:47]MH_I2C_Read... [15:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:47]Read from MH i2c: E2 [15:05:47]MH_I2C_Read... [15:05:47]Read from MH i2c: E2 0E 00 [15:05:47]MH_I2C_Read... [15:05:47]Read from MH i2c: E2 0E 00 E8 4C 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 27 [15:05:47]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:05:47]wFMCommunicate OK [15:05:47]SAM_PROTO_GetShiftState done [15:05:47]FM_GetShiftState done [15:05:47]opened in 1723766958 [15:05:47]opened+sec_in_day 1723853358 [15:05:47]quantity*price = 4000 [15:05:47]sum+1 = 4001 [15:05:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 120 16.08.2024 15:05 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49472 ФПД: 23321600852777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T150553&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49472&fm=23321600852777&tin=02508201610067®Number=0000000000092546&sum=4000 0 [15:05:48]StoreToDocumentArchive [15:05:48]shift 464 fd 49472 [15:05:48]save to /storage/0464/doc_00049472 [15:05:48]save last doc name /storage/0464/doc_00049472 to /storage/kkm_last_doc_name [15:05:48]save OK [15:05:48]Clear old archive folders... [15:05:48]ProcessDocumentItem done err = 0, tmpTLVsize=269 [15:05:48]tlvbuf is 00E28690 [15:05:48]SAM_PROTO_ClearQueue [15:05:48]wFMCommunicate request_size=4 [15:05:48]MH_SAM_APDU [15:05:48]CAPDU: 80 09 00 00 [15:05:48]Write to MH i2c: E2 08 00 F5 4C 80 09 00 00 00 00 00 00 B3 [15:05:48]Write i2c OK [15:05:48]MH_I2C_Read... [15:05:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:05:48]Read from MH i2c: E2 [15:05:48]MH_I2C_Read... [15:05:48]Read from MH i2c: E2 03 00 [15:05:48]MH_I2C_Read... [15:05:48]Read from MH i2c: E2 03 00 F5 4C 00 90 00 B5 [15:05:48]RAPDU: 90 00 [15:05:48]wFMCommunicate OK [15:05:48]SAM_PROTO_ClearQueue done [15:05:48]KKMCreateOFDPacket [15:05:48]OFDProtocolAddRootSTLVToBuf [15:05:48]FM_MakeSignedData [15:05:48]FM_MakeSignedData [15:05:48]SAM_PROTO_SignData [15:05:48]wFMCommunicate request_size=4 [15:05:48]MH_SAM_APDU [15:05:48]CAPDU: 80 0D 01 02 [15:05:48]Write to MH i2c: E2 08 00 F6 4C 80 0D 01 02 00 00 00 00 BB [15:05:48]Write i2c OK [15:05:48]MH_I2C_Read... [15:05:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:05:48]Read from MH i2c: E2 [15:05:48]MH_I2C_Read... [15:05:48]Read from MH i2c: E2 03 00 [15:05:48]MH_I2C_Read... [15:05:48]Read from MH i2c: E2 03 00 F6 4C 00 90 00 B6 [15:05:48]RAPDU: 90 00 [15:05:48]wFMCommunicate OK [15:05:48]wFMCommunicate request_size=255 [15:05:48]MH_SAM_APDU [15:05:48]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 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 D1 6A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [15:05:48]Write to MH i2c: E2 02 01 F7 4C 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 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 D1 6A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 00 [15:05:48]Write i2c OK [15:05:48]MH_I2C_Read... [15:05:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:48]Read from MH i2c: E2 [15:05:48]MH_I2C_Read... [15:05:48]Read from MH i2c: E2 03 00 [15:05:48]MH_I2C_Read... [15:05:48]Read from MH i2c: E2 03 00 F7 4C 00 90 00 B7 [15:05:48]RAPDU: 90 00 [15:05:48]wFMCommunicate OK [15:05:48]wFMCommunicate request_size=28 [15:05:48]MH_SAM_APDU [15:05:48]CAPDU: 80 0D 02 02 17 37 31 38 30 30 10 04 04 00 40 C1 00 00 35 04 06 00 15 35 FB BC 03 29 [15:05:48]Write to MH i2c: E2 1F 00 F8 4C 80 0D 02 02 17 00 37 31 38 30 30 10 04 04 00 40 C1 00 00 35 04 06 00 15 35 FB BC 03 29 00 00 71 [15:05:48]Write i2c OK [15:05:48]MH_I2C_Read... [15:05:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:05:49]Read from MH i2c: E2 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: E2 03 00 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: E2 03 00 F8 4C 00 90 00 B8 [15:05:49]RAPDU: 90 00 [15:05:49]wFMCommunicate OK [15:05:49]wFMCommunicate request_size=4 [15:05:49]MH_SAM_APDU [15:05:49]CAPDU: 80 0D 03 02 [15:05:49]Write to MH i2c: E2 08 00 F9 4C 80 0D 03 02 00 00 00 00 C0 [15:05:49]Write i2c OK [15:05:49]MH_I2C_Read... [15:05:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:05:49]Read from MH i2c: E2 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: E2 0B 00 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: E2 0B 00 F9 4C 00 C8 61 60 C4 68 F3 4D 25 90 00 DB [15:05:49]RAPDU: C8 61 60 C4 68 F3 4D 25 90 00 [15:05:49]wFMCommunicate OK [15:05:49]SAM_PROTO_SignData done [15:05:49]FM_MakeSignedData done [15:05:49]CreateOFDProtocolMessage [15:05:49]wFMCommunicate request_size=4 [15:05:49]MH_SAM_APDU [15:05:49]CAPDU: 80 11 00 00 [15:05:49]Write to MH i2c: E2 08 00 FA 4C 80 11 00 00 00 00 00 00 C0 [15:05:49]Write i2c OK [15:05:49]MH_I2C_Read... [15:05:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:49]Read from MH i2c: E2 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: E2 17 00 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: E2 17 00 FA 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 0B [15:05:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:05:49]wFMCommunicate OK [15:05:49]CreateOFDProtocolMessage done [15:05:49]OFDSenderStorePacket 49472 [15:05:49]StoreOFDPacket docnum=49472 [15:05:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 35 2D 19 01 D9 9A 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 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 D1 6A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 40 C1 00 00 35 04 06 00 15 35 FB BC 03 29 C8 61 60 C4 68 F3 4D 25 [15:05:49]CheckFolder [15:05:49]dirname=/storage/ofd_packets [15:05:49]CheckFolder done [15:05:49]ProducePacketName [15:05:49]name=ofd_packets/00049472 [15:05:49]NVStorageSaveData ofd_packets/00049472 [15:05:49]File name is /storage/ofd_packets/00049472 [15:05:49]Write 319 bytes [15:05:49]NVStorageSaveData done [15:05:49]OFDSenderStorePacket done [15:05:49]KKMCreateOFDPacket done [15:05:49]NVStorageSaveData kkm_last_timestamp [15:05:49]File name is /storage/kkm_last_timestamp [15:05:49]Write 4 bytes [15:05:49]NVStorageSaveData done [15:05:49]ExternCall_PrintAddStr [15:05:49]wPrintStart [15:05:49]Write to MH i2c: 01 00 00 FB 4C 47 [15:05:49]Write i2c OK [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: 01 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: 01 07 00 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: 01 07 00 FB 4C 00 00 00 00 00 FF 0F 5C [15:05:49]RasterBufferAndPrint [15:05:49]line Счет N : (3)189684 [15:05:49]line ИНН: 02508201610067 [15:05:49]line Контрольно-Кассовый Чек [15:05:49]line ПРОДАЖА [15:05:49]line Товар: 4700000160198 [15:05:49]line Вода Байтик 0,5л [15:05:49]line 1.000 * 40.00 [15:05:49]line = 40.00 [15:05:49]line НДС 12% НСП 1% [15:05:49]line > о реализуемом товаре [15:05:49]line ИТОГО: 40.00 [15:05:49]line НСП 1% : 0.35 [15:05:49]line НДС 12% : 4.25 [15:05:49]line Наличными: 40.00 [15:05:49]line Безнал.: 0.00 [15:05:49]line Место: АЗС № 95 "Партнер Нефть" [15:05:49]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:05:49]line СНО: Общий режим [15:05:49]line Чек 120 16.08.2024 15:05 [15:05:49]line Смена: 464 ФФД: 1.0 [15:05:49]line ЗНМ: 0300000078 [15:05:49]line РНМ: 0000000000092546 [15:05:49]line Версия ККМ: 001 [15:05:49]line ФМ: 0000000000871800 [15:05:49]line ФД: 49472 [15:05:49]line ФПД: 23321600852777 [15:05:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T150553&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49472&fm=23321600852777&tin=02508201610067®Number=0000000000092546&sum=4000 [15:05:49]line 0 [15:05:49]OFD Sender: Processing packet 49472 [packets to send 21, broken 20] [15:05:49]ProducePacketName [15:05:49]name=ofd_packets/00049472 [15:05:49]OFD Sender: To server: pG, [15:05:49]CommunicateWithHost lk.salyk.kg:30040 [15:05:49]ConnectInit lk.salyk.kg [15:05:49]written 0, free lines is 4095 [15:05:49]Connected sock=10 [15:05:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 35 2D 19 01 D9 9A 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 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 D1 6A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 40 C1 00 00 35 04 06 00 15 35 FB BC 03 29 C8 61 60 C4 68 F3 4D 25 [15:05:49]Write to MH i2c: 01 00 00 23 4D 70 [15:05:49]Write i2c OK [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: 01 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: 01 07 00 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: 01 07 00 23 4D 00 00 00 00 00 FB 0C 7E [15:05:49]RasterBufferAndPrint [15:05:49]line [15:05:49]line [15:05:49]line [15:05:49]line [15:05:49]line [15:05:49]written 0, free lines is 3329 [15:05:49]MH_Cut [15:05:49]Write to MH i2c: D1 01 00 2A 4D 01 49 [15:05:49]Write i2c OK [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: D1 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: D1 01 00 [15:05:49]MH_I2C_Read... [15:05:49]Read from MH i2c: D1 01 00 2A 4D 00 48 [15:05:49]Write to MH i2c: 01 00 00 2B 4D 78 [15:05:49]Write i2c OK [15:05:49]MH_I2C_Read... [15:05:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C9 FA 47 00 99 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 38 37 31 38 30 30 10 04 04 00 40 C1 00 00 F4 03 04 00 10 16 BF 66 B6 04 01 00 00 91 EF 19 F7 07 39 FB 23 [15:05:49]CommunicateWithHost err = 0 [15:05:49]CheckOFDResponse [15:05:49]1017 (14) - 77093643461234 [15:05:49]1041 (16) - 0000000000871800 [15:05:49]1040 (4) - 49472 [15:05:49]1012 (4) - 16.08.2024 09:04 [15:05:49]1206 (1) - 0 [15:05:49]OFD Sender: Remove packet 49472 [15:05:49]ProducePacketName [15:05:49]name=ofd_packets/00049472 [15:05:49]NVStorageDeleteData [15:05:50]OFD Sender: No OFD packet to send [15:05:50]*** Cut start [15:05:50]*** Purtial cut [15:05:50]*** CUTSNS_PIN = 0 [15:05:50]*** Stage 1: CUTSNS_PIN = 1 [15:05:52]Read from MH i2c: 01 [15:05:52]MH_I2C_Read... [15:05:52]*** Stop cut motor [15:05:52]*** Cut end [15:05:52]Read from MH i2c: 01 07 00 [15:05:52]MH_I2C_Read... [15:05:52]Read from MH i2c: 01 07 00 2B 4D 00 00 00 00 00 FF 0F 8D [15:05:52]process_action close_receipt done [15:05:52]requested_data is exist [15:05:52]produce_requested_data [15:05:52]requested_item fm.sn is exist - process it [15:05:52]wFMCommunicate request_size=4 [15:05:52]MH_SAM_APDU [15:05:52]CAPDU: 80 11 00 00 [15:05:52]Write to MH i2c: E2 08 00 2C 4D 80 11 00 00 00 00 00 00 F3 [15:05:52]Write i2c OK [15:05:52]MH_I2C_Read... [15:05:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:05:52]Read from MH i2c: E2 [15:05:52]MH_I2C_Read... [15:05:52]Read from MH i2c: E2 17 00 [15:05:52]MH_I2C_Read... [15:05:52]Read from MH i2c: E2 17 00 2C 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3E [15:05:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:05:52]wFMCommunicate OK [15:05:52]requested_item fd.num is exist - process it [15:05:52]SAM_PROTO_GetFieldsCounters [15:05:52]wFMCommunicate request_size=4 [15:05:52]MH_SAM_APDU [15:05:52]CAPDU: 80 13 00 00 [15:05:52]Write to MH i2c: E2 08 00 2D 4D 80 13 00 00 00 00 00 00 F6 [15:05:52]Write i2c OK [15:05:52]MH_I2C_Read... [15:05:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:05:52]Read from MH i2c: E2 [15:05:52]MH_I2C_Read... [15:05:52]Read from MH i2c: E2 62 00 [15:05:52]MH_I2C_Read... [15:05:52]Read from MH i2c: E2 62 00 2D 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 40 C1 00 00 0E 04 04 00 D0 01 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 4A [15:05:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 40 C1 00 00 0E 04 04 00 D0 01 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 [15:05:52]wFMCommunicate OK [15:05:52]SAM_PROTO_GetFieldsCounters done [15:05:52]requested_item shift.num is exist - process it [15:05:52]requested_item shift.opened is exist - process it [15:05:52]req_shift_opened [15:05:52]FM_GetShiftState [15:05:52]SAM_PROTO_GetShiftState [15:05:52]wFMCommunicate request_size=4 [15:05:52]MH_SAM_APDU [15:05:52]CAPDU: 80 13 01 00 [15:05:52]Write to MH i2c: E2 08 00 2E 4D 80 13 01 00 00 00 00 00 F8 [15:05:52]Write i2c OK [15:05:52]MH_I2C_Read... [15:05:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:05:52]Read from MH i2c: E2 [15:05:52]MH_I2C_Read... [15:05:52]Read from MH i2c: E2 0E 00 [15:05:52]MH_I2C_Read... [15:05:52]Read from MH i2c: E2 0E 00 2E 4D 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 6E [15:05:52]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:05:52]wFMCommunicate OK [15:05:52]SAM_PROTO_GetShiftState done [15:05:52]FM_GetShiftState done [15:05:52]req_shift_opened done [15:05:52]requested_item shift.open_date is exist - process it [15:05:52]req_shift_open_date [15:05:52]req_shift_open_date done [15:05:52]produce_requested_data done [15:05:52]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49472,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [15:05:52]process_action_free close_receipt [15:05:52]json_value_free [15:05:52]json_value_free done [15:05:52]process_json_proto returns [15:05:52]Send response to host [15:05:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49472,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [15:05:52]free response buf [15:05:52]execute_script done [15:05:52]execute_script returns [15:05:52]free content buf [15:05:52]Sock 7.Close socket [15:05:52]Sock 7.Thread stoped [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:48]accept exits with 9 [15:10:48]New connection [15:10:48]New thread 3066973540 created [15:10:48]Thread 3066830180 joined [15:10:48]Waiting for new connection... [15:10:48] Sock 9.Parse request [15:10:48]Sock 9.Check first char [15:10:48]Sock 9.First char is OK [15:10:48]request: POST /json_proto HTTP/1.0 [15:10:48]Method: POST [15:10:48]URL: /json_proto [15:10:48]Method is POST - this is cgi request [15:10:48]url: /json_proto [15:10:48]query_string will be loaded in cgi processing [15:10:48]execute_cgi json_proto POST (null) [15:10:48]execute_cgi path=json_proto method=POST [15:10:48]POST find Content-Length [15:10:48]Host: 172.17.46.196:8080 [15:10:48]Content-Length: 753 [15:10:48]Content-Type: application/json [15:10:48] [15:10:48]POST finish read [15:10:48]Found Content-Length = 753 [15:10:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30150199", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:48]execute_script... [15:10: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)11325458", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30150199", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:10:48]POST & json_proto [15:10:48]process_json_proto [15:10:48]json parsed OK: [15:10:48]protocol is kg_v1.0 [15:10:48]action value=close_receipt [15:10:48]process_action close_receipt [15:10:48]cmd_close_receipt [15:10:48]MH_GetDate [15:10:48]Write to MH i2c: F0 00 00 2F 4D 6B [15:10:48]Write i2c OK [15:10:48]MH_I2C_Read... [15:10:48]Read from MH i2c: F0 [15:10:48]MH_I2C_Read... [15:10:48]Read from MH i2c: F0 09 00 [15:10:48]MH_I2C_Read... [15:10:48]Read from MH i2c: F0 09 00 2F 4D 00 FE 6B BF 66 07 E8 5D 66 B4 [15:10:48]GetLastDocTimeStamp 1723820753 [15:10:48]current date 1723821054 [15:10:48]FM_GetShiftState [15:10:48]SAM_PROTO_GetShiftState [15:10:48]wFMCommunicate request_size=4 [15:10:48]MH_SAM_APDU [15:10:48]CAPDU: 80 13 01 00 [15:10:48]Write to MH i2c: E2 08 00 30 4D 80 13 01 00 00 00 00 00 FA [15:10:48]Write i2c OK [15:10:48]MH_I2C_Read... [15:10:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:48]Read from MH i2c: E2 [15:10:48]MH_I2C_Read... [15:10:48]Read from MH i2c: E2 0E 00 [15:10:48]MH_I2C_Read... [15:10:48]Read from MH i2c: E2 0E 00 30 4D 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 70 [15:10:48]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:10:48]wFMCommunicate OK [15:10:48]SAM_PROTO_GetShiftState done [15:10:48]FM_GetShiftState done [15:10:48]opened in 1723766958 [15:10:48]opened+sec_in_day 1723853358 [15:10:48]quantity*price = 0 [15:10:48]sum+1 = 1 [15:10:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 121 16.08.2024 15:10 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30150199 ФМ: 0000000000871800 ФД: 49473 ФПД: 278457727944741 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T151054&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49473&fm=278457727944741&tin=02508201610067®Number=0000000000092546&sum=0 [15:10:49]StoreToDocumentArchive [15:10:49]shift 464 fd 49473 [15:10:49]save to /storage/0464/doc_00049473 [15:10:49]save last doc name /storage/0464/doc_00049473 to /storage/kkm_last_doc_name [15:10:49]save OK [15:10:49]Clear old archive folders... [15:10:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:10:49]tlvbuf is 00EFB410 [15:10:49]SAM_PROTO_ClearQueue [15:10:49]wFMCommunicate request_size=4 [15:10:49]MH_SAM_APDU [15:10:49]CAPDU: 80 09 00 00 [15:10:49]Write to MH i2c: E2 08 00 3D 4D 80 09 00 00 00 00 00 00 FC [15:10:49]Write i2c OK [15:10:49]MH_I2C_Read... [15:10:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:10:49]Read from MH i2c: E2 [15:10:49]MH_I2C_Read... [15:10:49]Read from MH i2c: E2 03 00 [15:10:49]MH_I2C_Read... [15:10:49]Read from MH i2c: E2 03 00 3D 4D 00 90 00 FE [15:10:49]RAPDU: 90 00 [15:10:49]wFMCommunicate OK [15:10:49]SAM_PROTO_ClearQueue done [15:10:49]KKMCreateOFDPacket [15:10:49]OFDProtocolAddRootSTLVToBuf [15:10:49]FM_MakeSignedData [15:10:49]FM_MakeSignedData [15:10:49]SAM_PROTO_SignData [15:10:49]wFMCommunicate request_size=4 [15:10:49]MH_SAM_APDU [15:10:49]CAPDU: 80 0D 01 02 [15:10:49]Write to MH i2c: E2 08 00 3E 4D 80 0D 01 02 00 00 00 00 04 [15:10:49]Write i2c OK [15:10:49]MH_I2C_Read... [15:10:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:10:49]Read from MH i2c: E2 [15:10:49]MH_I2C_Read... [15:10:49]Read from MH i2c: E2 03 00 [15:10:49]MH_I2C_Read... [15:10:49]Read from MH i2c: E2 03 00 3E 4D 00 90 00 FF [15:10:49]RAPDU: 90 00 [15:10:49]wFMCommunicate OK [15:10:49]wFMCommunicate request_size=255 [15:10:49]MH_SAM_APDU [15:10:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 FE 6B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 41 C1 00 00 35 04 06 00 FD 41 7D F5 [15:10:49]Write to MH i2c: E2 02 01 3F 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 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 FE 6B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 41 C1 00 00 35 04 06 00 FD 41 7D F5 00 00 C0 [15:10:49]Write i2c OK [15:10:49]MH_I2C_Read... [15:10:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:50]Read from MH i2c: E2 [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: E2 03 00 [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: E2 03 00 3F 4D 00 90 00 00 [15:10:50]RAPDU: 90 00 [15:10:50]wFMCommunicate OK [15:10:50]wFMCommunicate request_size=7 [15:10:50]MH_SAM_APDU [15:10:50]CAPDU: 80 0D 02 02 02 88 25 [15:10:50]Write to MH i2c: E2 0A 00 40 4D 80 0D 02 02 02 00 88 25 00 00 B8 [15:10:50]Write i2c OK [15:10:50]MH_I2C_Read... [15:10:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:10:50]Read from MH i2c: E2 [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: E2 03 00 [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: E2 03 00 40 4D 00 90 00 01 [15:10:50]RAPDU: 90 00 [15:10:50]wFMCommunicate OK [15:10:50]wFMCommunicate request_size=4 [15:10:50]MH_SAM_APDU [15:10:50]CAPDU: 80 0D 03 02 [15:10:50]Write to MH i2c: E2 08 00 41 4D 80 0D 03 02 00 00 00 00 09 [15:10:50]Write i2c OK [15:10:50]MH_I2C_Read... [15:10:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:10:50]Read from MH i2c: E2 [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: E2 0B 00 [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: E2 0B 00 41 4D 00 57 DD C3 85 94 FA EA B9 90 00 B7 [15:10:50]RAPDU: 57 DD C3 85 94 FA EA B9 90 00 [15:10:50]wFMCommunicate OK [15:10:50]SAM_PROTO_SignData done [15:10:50]FM_MakeSignedData done [15:10:50]CreateOFDProtocolMessage [15:10:50]wFMCommunicate request_size=4 [15:10:50]MH_SAM_APDU [15:10:50]CAPDU: 80 11 00 00 [15:10:50]Write to MH i2c: E2 08 00 42 4D 80 11 00 00 00 00 00 00 09 [15:10:50]Write i2c OK [15:10:50]MH_I2C_Read... [15:10:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:50]Read from MH i2c: E2 [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: E2 17 00 [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: E2 17 00 42 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 54 [15:10:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:10:50]wFMCommunicate OK [15:10:50]CreateOFDProtocolMessage done [15:10:50]OFDSenderStorePacket 49473 [15:10:50]StoreOFDPacket docnum=49473 [15:10:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 FB D3 04 01 50 A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 FE 6B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 41 C1 00 00 35 04 06 00 FD 41 7D F5 88 25 57 DD C3 85 94 FA EA B9 [15:10:50]CheckFolder [15:10:50]dirname=/storage/ofd_packets [15:10:50]CheckFolder done [15:10:50]ProducePacketName [15:10:50]name=ofd_packets/00049473 [15:10:50]NVStorageSaveData ofd_packets/00049473 [15:10:50]File name is /storage/ofd_packets/00049473 [15:10:50]Write 298 bytes [15:10:50]NVStorageSaveData done [15:10:50]OFDSenderStorePacket done [15:10:50]KKMCreateOFDPacket done [15:10:50]NVStorageSaveData kkm_last_timestamp [15:10:50]File name is /storage/kkm_last_timestamp [15:10:50]Write 4 bytes [15:10:50]NVStorageSaveData done [15:10:50]ExternCall_PrintAddStr [15:10:50]wPrintStart [15:10:50]Write to MH i2c: 01 00 00 43 4D 90 [15:10:50]Write i2c OK [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: 01 [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: 01 07 00 [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: 01 07 00 43 4D 00 00 00 00 00 FF 0F A5 [15:10:50]RasterBufferAndPrint [15:10:50]line Счет N : (1)11325458 [15:10:50]line ИНН: 02508201610067 [15:10:50]line Контрольно-Кассовый Чек [15:10:50]line ПРОДАЖА [15:10:50]line ТРК (МРК, ГНК) : 51 [15:10:50]line Товар: 2710194210 [15:10:50]line ДТ-К-5 [15:10:50]line 40.000 * 0.00 [15:10:50]line = 0.00 [15:10:50]line НДС 12% НСП 1% [15:10:50]line > о реализуемом товаре [15:10:50]line ИТОГО: 0.00 [15:10:50]line НСП 1% : 0.00 [15:10:50]line НДС 12% : 0.00 [15:10:50]line Наличными: 0.00 [15:10:50]line Безнал.: 0.00 [15:10:50]line Место: АЗС № 95 "Партнер Нефть" [15:10:50]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:10:50]line СНО: Общий режим [15:10:50]line Чек 121 16.08.2024 15:10 [15:10:50]line Смена: 464 ФФД: 1.0 [15:10:50]line ЗНМ: 0300000078 [15:10:50]line РНМ: 0000000000092546 [15:10:50]line Версия ККМ: 001 [15:10:50]line Талоны: ТК ГПНА Online [15:10:50]line 30150199 [15:10:50]line ФМ: 0000000000871800 [15:10:50]line ФД: 49473 [15:10:50]line ФПД: 278457727944741 [15:10:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T151054&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49473&fm=278457727944741&tin=02508201610067®Number=0000000000092546&sum=0 [15:10:50]OFD Sender: Processing packet 49473 [packets to send 21, broken 20] [15:10:50]ProducePacketName [15:10:50]name=ofd_packets/00049473 [15:10:50]OFD Sender: To server: pG, [15:10:50]CommunicateWithHost lk.salyk.kg:30040 [15:10:50]ConnectInit lk.salyk.kg [15:10:50]written 0, free lines is 4095 [15:10:50]Connected sock=7 [15:10:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0C 01 00 00 FB D3 04 01 50 A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 FE 6B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 41 C1 00 00 35 04 06 00 FD 41 7D F5 88 25 57 DD C3 85 94 FA EA B9 [15:10:50]Write to MH i2c: 01 00 00 6D 4D BA [15:10:50]Write i2c OK [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: 01 [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: 01 07 00 [15:10:50]MH_I2C_Read... [15:10:50]Read from MH i2c: 01 07 00 6D 4D 00 00 00 00 00 CA 0C 97 [15:10:50]RasterBufferAndPrint [15:10:50]line [15:10:50]line [15:10:50]line [15:10:50]line [15:10:50]line [15:10:50]written 0, free lines is 3281 [15:10:51]MH_Cut [15:10:51]Write to MH i2c: D1 01 00 74 4D 01 93 [15:10:51]Write i2c OK [15:10:51]MH_I2C_Read... [15:10:51]Read from MH i2c: D1 [15:10:51]MH_I2C_Read... [15:10:51]Read from MH i2c: D1 01 00 [15:10:51]MH_I2C_Read... [15:10:51]Read from MH i2c: D1 01 00 74 4D 00 92 [15:10:51]Write to MH i2c: 01 00 00 75 4D C2 [15:10:51]Write i2c OK [15:10:51]MH_I2C_Read... [15:10:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 72 4D 47 00 E5 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 41 C1 00 00 F4 03 04 00 3D 17 BF 66 B6 04 01 00 00 C2 6D B3 DD 62 BC 0E 43 [15:10:51]CommunicateWithHost err = 0 [15:10:51]CheckOFDResponse [15:10:51]1017 (14) - 77093643461234 [15:10:51]1041 (16) - 0000000000871800 [15:10:51]1040 (4) - 49473 [15:10:51]1012 (4) - 16.08.2024 09:09 [15:10:51]1206 (1) - 0 [15:10:51]OFD Sender: Remove packet 49473 [15:10:51]ProducePacketName [15:10:51]name=ofd_packets/00049473 [15:10:51]NVStorageDeleteData [15:10:51]OFD Sender: No OFD packet to send [15:10:51]*** Cut start [15:10:51]*** Purtial cut [15:10:51]*** Stage 1: CUTSNS_PIN = 1 [15:10:52]Read from MH i2c: 01 [15:10:52]MH_I2C_Read... [15:10:52]*** Stop cut motor [15:10:52]*** Cut end [15:10:52]Read from MH i2c: 01 07 00 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: 01 07 00 75 4D 00 00 00 00 00 FF 0F D7 [15:10:52]process_action close_receipt done [15:10:52]requested_data is exist [15:10:52]produce_requested_data [15:10:52]requested_item fm.sn is exist - process it [15:10:52]wFMCommunicate request_size=4 [15:10:52]MH_SAM_APDU [15:10:52]CAPDU: 80 11 00 00 [15:10:52]Write to MH i2c: E2 08 00 76 4D 80 11 00 00 00 00 00 00 3D [15:10:52]Write i2c OK [15:10:52]MH_I2C_Read... [15:10:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:10:52]Read from MH i2c: E2 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 17 00 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 17 00 76 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 88 [15:10:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:10:52]wFMCommunicate OK [15:10:52]requested_item fd.num is exist - process it [15:10:52]SAM_PROTO_GetFieldsCounters [15:10:52]wFMCommunicate request_size=4 [15:10:52]MH_SAM_APDU [15:10:52]CAPDU: 80 13 00 00 [15:10:52]Write to MH i2c: E2 08 00 77 4D 80 13 00 00 00 00 00 00 40 [15:10:52]Write i2c OK [15:10:52]MH_I2C_Read... [15:10:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:10:52]Read from MH i2c: E2 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 62 00 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 62 00 77 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 41 C1 00 00 0E 04 04 00 D0 01 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 98 [15:10:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 41 C1 00 00 0E 04 04 00 D0 01 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 [15:10:52]wFMCommunicate OK [15:10:52]SAM_PROTO_GetFieldsCounters done [15:10:52]requested_item shift.num is exist - process it [15:10:52]requested_item shift.opened is exist - process it [15:10:52]req_shift_opened [15:10:52]FM_GetShiftState [15:10:52]SAM_PROTO_GetShiftState [15:10:52]wFMCommunicate request_size=4 [15:10:52]MH_SAM_APDU [15:10:52]CAPDU: 80 13 01 00 [15:10:52]Write to MH i2c: E2 08 00 78 4D 80 13 01 00 00 00 00 00 42 [15:10:52]Write i2c OK [15:10:52]MH_I2C_Read... [15:10:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:10:52]Read from MH i2c: E2 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 0E 00 [15:10:52]MH_I2C_Read... [15:10:52]Read from MH i2c: E2 0E 00 78 4D 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 B8 [15:10:52]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:10:52]wFMCommunicate OK [15:10:52]SAM_PROTO_GetShiftState done [15:10:52]FM_GetShiftState done [15:10:52]req_shift_opened done [15:10:52]requested_item shift.open_date is exist - process it [15:10:52]req_shift_open_date [15:10:52]req_shift_open_date done [15:10:52]produce_requested_data done [15:10:52]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49473,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [15:10:52]process_action_free close_receipt [15:10:52]json_value_free [15:10:52]json_value_free done [15:10:52]process_json_proto returns [15:10:52]Send response to host [15:10:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49473,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [15:10:52]free response buf [15:10:52]execute_script done [15:10:52]execute_script returns [15:10:52]free content buf [15:10:52]Sock 9.Close socket [15:10:52]Sock 9.Thread stoped [15:10:56]OFD Sender: No OFD packet to send [15:11:01]OFD Sender: No OFD packet to send [15:11:06]OFD Sender: No OFD packet to send [15:11:11]OFD Sender: No OFD packet to send [15:11:16]OFD Sender: No OFD packet to send [15:11:21]OFD Sender: No OFD packet to send [15:11:26]OFD Sender: No OFD packet to send [15:11:31]OFD Sender: No OFD packet to send [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:31]OFD Sender: No OFD packet to send [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:04]accept exits with 10 [15:15:04]New connection [15:15:04]New thread 3066830180 created [15:15:04]Thread 3066973540 joined [15:15:04]Waiting for new connection... [15:15:04] Sock 10.Parse request [15:15:04]Sock 10.Check first char [15:15:04]Sock 10.First char is OK [15:15:04]request: POST /json_proto HTTP/1.0 [15:15:04]Method: POST [15:15:04]URL: /json_proto [15:15:04]Method is POST - this is cgi request [15:15:04]url: /json_proto [15:15:04]query_string will be loaded in cgi processing [15:15:04]execute_cgi json_proto POST (null) [15:15:04]execute_cgi path=json_proto method=POST [15:15:04]POST find Content-Length [15:15:04]Host: 172.17.46.196:8080 [15:15:04]Content-Length: 642 [15:15:04]Content-Type: application/json [15:15:04] [15:15:04]POST finish read [15:15:04]Found Content-Length = 642 [15:15:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189685", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:04]execute_script... [15:15: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 : (3)189685", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:04]POST & json_proto [15:15:04]process_json_proto [15:15:04]json parsed OK: [15:15:04]protocol is kg_v1.0 [15:15:04]action value=close_receipt [15:15:04]process_action close_receipt [15:15:04]cmd_close_receipt [15:15:04]MH_GetDate [15:15:04]Write to MH i2c: F0 00 00 79 4D B5 [15:15:04]Write i2c OK [15:15:04]MH_I2C_Read... [15:15:04]Read from MH i2c: F0 [15:15:04]MH_I2C_Read... [15:15:04]Read from MH i2c: F0 09 00 [15:15:04]MH_I2C_Read... [15:15:04]Read from MH i2c: F0 09 00 79 4D 00 FE 6C BF 66 07 E8 5D 66 FF [15:15:04]GetLastDocTimeStamp 1723821054 [15:15:04]current date 1723821310 [15:15:04]FM_GetShiftState [15:15:04]SAM_PROTO_GetShiftState [15:15:04]wFMCommunicate request_size=4 [15:15:04]MH_SAM_APDU [15:15:04]CAPDU: 80 13 01 00 [15:15:04]Write to MH i2c: E2 08 00 7A 4D 80 13 01 00 00 00 00 00 44 [15:15:04]Write i2c OK [15:15:04]MH_I2C_Read... [15:15:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:04]Read from MH i2c: E2 [15:15:04]MH_I2C_Read... [15:15:04]Read from MH i2c: E2 0E 00 [15:15:04]MH_I2C_Read... [15:15:04]Read from MH i2c: E2 0E 00 7A 4D 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 BA [15:15:04]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:15:04]wFMCommunicate OK [15:15:04]SAM_PROTO_GetShiftState done [15:15:04]FM_GetShiftState done [15:15:04]opened in 1723766958 [15:15:04]opened+sec_in_day 1723853358 [15:15:04]quantity*price = 5900 [15:15:04]sum+1 = 5901 [15:15:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 59.00 НСП 1% : 0.52 НДС 12% : 6.26 Наличными: 59.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 122 16.08.2024 15:15 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49474 ФПД: 6106672430962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T151510&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49474&fm=6106672430962&tin=02508201610067®Number=0000000000092546&sum=5900 0 [15:15:05]StoreToDocumentArchive [15:15:05]shift 464 fd 49474 [15:15:05]save to /storage/0464/doc_00049474 [15:15:05]save last doc name /storage/0464/doc_00049474 to /storage/kkm_last_doc_name [15:15:05]save OK [15:15:05]Clear old archive folders... [15:15:05]ProcessDocumentItem done err = 0, tmpTLVsize=281 [15:15:05]tlvbuf is B6EDF490 [15:15:05]SAM_PROTO_ClearQueue [15:15:05]wFMCommunicate request_size=4 [15:15:05]MH_SAM_APDU [15:15:05]CAPDU: 80 09 00 00 [15:15:05]Write to MH i2c: E2 08 00 87 4D 80 09 00 00 00 00 00 00 46 [15:15:05]Write i2c OK [15:15:05]MH_I2C_Read... [15:15:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:05]Read from MH i2c: E2 [15:15:05]MH_I2C_Read... [15:15:05]Read from MH i2c: E2 03 00 [15:15:05]MH_I2C_Read... [15:15:05]Read from MH i2c: E2 03 00 87 4D 00 90 00 48 [15:15:05]RAPDU: 90 00 [15:15:05]wFMCommunicate OK [15:15:05]SAM_PROTO_ClearQueue done [15:15:05]KKMCreateOFDPacket [15:15:05]OFDProtocolAddRootSTLVToBuf [15:15:05]FM_MakeSignedData [15:15:05]FM_MakeSignedData [15:15:05]SAM_PROTO_SignData [15:15:05]wFMCommunicate request_size=4 [15:15:05]MH_SAM_APDU [15:15:05]CAPDU: 80 0D 01 02 [15:15:05]Write to MH i2c: E2 08 00 88 4D 80 0D 01 02 00 00 00 00 4E [15:15:05]Write i2c OK [15:15:05]MH_I2C_Read... [15:15:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:05]Read from MH i2c: E2 [15:15:05]MH_I2C_Read... [15:15:05]Read from MH i2c: E2 03 00 [15:15:05]MH_I2C_Read... [15:15:05]Read from MH i2c: E2 03 00 88 4D 00 90 00 49 [15:15:05]RAPDU: 90 00 [15:15:05]wFMCommunicate OK [15:15:05]wFMCommunicate request_size=255 [15:15:05]MH_SAM_APDU [15:15:05]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 FE 6C BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 [15:15:05]Write to MH i2c: E2 02 01 89 4D 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 FE 6C BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 B6 [15:15:05]Write i2c OK [15:15:05]MH_I2C_Read... [15:15:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:06]Read from MH i2c: E2 [15:15:06]MH_I2C_Read... [15:15:06]Read from MH i2c: E2 03 00 [15:15:06]MH_I2C_Read... [15:15:06]Read from MH i2c: E2 03 00 89 4D 00 90 00 4A [15:15:06]RAPDU: 90 00 [15:15:06]wFMCommunicate OK [15:15:06]wFMCommunicate request_size=40 [15:15:06]MH_SAM_APDU [15:15:06]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 42 C1 00 00 35 04 06 00 05 8D D2 0A 7F 72 [15:15:06]Write to MH i2c: E2 2B 00 8A 4D 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 42 C1 00 00 35 04 06 00 05 8D D2 0A 7F 72 00 00 68 [15:15:06]Write i2c OK [15:15:06]MH_I2C_Read... [15:15:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:06]Read from MH i2c: E2 [15:15:06]MH_I2C_Read... [15:15:06]Read from MH i2c: E2 03 00 [15:15:06]MH_I2C_Read... [15:15:06]Read from MH i2c: E2 03 00 8A 4D 00 90 00 4B [15:15:06]RAPDU: 90 00 [15:15:06]wFMCommunicate OK [15:15:06]wFMCommunicate request_size=4 [15:15:06]MH_SAM_APDU [15:15:06]CAPDU: 80 0D 03 02 [15:15:06]Write to MH i2c: E2 08 00 8B 4D 80 0D 03 02 00 00 00 00 53 [15:15:06]Write i2c OK [15:15:06]MH_I2C_Read... [15:15:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:06]Read from MH i2c: E2 [15:15:06]MH_I2C_Read... [15:15:06]Read from MH i2c: E2 0B 00 [15:15:06]MH_I2C_Read... [15:15:06]Read from MH i2c: E2 0B 00 8B 4D 00 52 33 F3 5A 4D 6C 58 35 90 00 6C [15:15:06]RAPDU: 52 33 F3 5A 4D 6C 58 35 90 00 [15:15:06]wFMCommunicate OK [15:15:06]SAM_PROTO_SignData done [15:15:06]FM_MakeSignedData done [15:15:06]CreateOFDProtocolMessage [15:15:06]wFMCommunicate request_size=4 [15:15:06]MH_SAM_APDU [15:15:06]CAPDU: 80 11 00 00 [15:15:06]Write to MH i2c: E2 08 00 8C 4D 80 11 00 00 00 00 00 00 53 [15:15:06]Write i2c OK [15:15:06]MH_I2C_Read... [15:15:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:06]Read from MH i2c: E2 [15:15:06]MH_I2C_Read... [15:15:06]Read from MH i2c: E2 17 00 [15:15:06]MH_I2C_Read... [15:15:06]Read from MH i2c: E2 17 00 8C 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9E [15:15:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:15:06]wFMCommunicate OK [15:15:06]CreateOFDProtocolMessage done [15:15:06]OFDSenderStorePacket 49474 [15:15:06]StoreOFDPacket docnum=49474 [15:15:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2D 01 00 00 6F 41 25 01 9D 5E 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 FE 6C BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 42 C1 00 00 35 04 06 00 05 8D D2 0A 7F 72 52 33 F3 5A 4D 6C 58 35 [15:15:06]CheckFolder [15:15:06]dirname=/storage/ofd_packets [15:15:06]CheckFolder done [15:15:06]ProducePacketName [15:15:06]name=ofd_packets/00049474 [15:15:06]NVStorageSaveData ofd_packets/00049474 [15:15:06]File name is /storage/ofd_packets/00049474 [15:15:06]Write 331 bytes [15:15:06]NVStorageSaveData done [15:15:06]OFDSenderStorePacket done [15:15:06]KKMCreateOFDPacket done [15:15:06]NVStorageSaveData kkm_last_timestamp [15:15:06]File name is /storage/kkm_last_timestamp [15:15:06]Write 4 bytes [15:15:06]NVStorageSaveData done [15:15:06]ExternCall_PrintAddStr [15:15:06]wPrintStart [15:15:06]Write to MH i2c: 01 00 00 8D 4D DA [15:15:06]Write i2c OK [15:15:06]MH_I2C_Read... [15:15:06]Read from MH i2c: 01 [15:15:06]MH_I2C_Read... [15:15:06]Read from MH i2c: 01 07 00 [15:15:06]MH_I2C_Read... [15:15:06]Read from MH i2c: 01 07 00 8D 4D 00 00 00 00 00 FF 0F EF [15:15:06]RasterBufferAndPrint [15:15:06]line Счет N : (3)189685 [15:15:06]line ИНН: 02508201610067 [15:15:06]line Контрольно-Кассовый Чек [15:15:06]line ПРОДАЖА [15:15:06]line Товар: 4607065001445 [15:15:06]line Шок батончик Snickers 50,5г [15:15:06]line 1.000 * 59.00 [15:15:06]line = 59.00 [15:15:06]line НДС 12% НСП 1% [15:15:06]line > о реализуемом товаре [15:15:06]line ИТОГО: 59.00 [15:15:06]line НСП 1% : 0.52 [15:15:06]line НДС 12% : 6.26 [15:15:06]line Наличными: 59.00 [15:15:06]line Безнал.: 0.00 [15:15:06]line Место: АЗС № 95 "Партнер Нефть" [15:15:06]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:15:06]line СНО: Общий режим [15:15:06]line Чек 122 16.08.2024 15:15 [15:15:06]line Смена: 464 ФФД: 1.0 [15:15:06]line ЗНМ: 0300000078 [15:15:06]line РНМ: 0000000000092546 [15:15:06]line Версия ККМ: 001 [15:15:06]line ФМ: 0000000000871800 [15:15:06]line ФД: 49474 [15:15:06]line ФПД: 6106672430962 [15:15:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T151510&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49474&fm=6106672430962&tin=02508201610067®Number=0000000000092546&sum=5900 [15:15:06]OFD Sender: Processing packet 49474 [packets to send 21, broken 20] [15:15:06]ProducePacketName [15:15:06]name=ofd_packets/00049474 [15:15:06]OFD Sender: To server: pG, [15:15:06]CommunicateWithHost lk.salyk.kg:30040 [15:15:06]ConnectInit lk.salyk.kg [15:15:06]line 0 [15:15:06]written 0, free lines is 4095 [15:15:06]Connected sock=9 [15:15:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2D 01 00 00 6F 41 25 01 9D 5E 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 FE 6C BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 42 C1 00 00 35 04 06 00 05 8D D2 0A 7F 72 52 33 F3 5A 4D 6C 58 35 [15:15:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F0 93 47 00 46 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 38 37 31 38 30 30 10 04 04 00 42 C1 00 00 F4 03 04 00 3D 18 BF 66 B6 04 01 00 00 E7 10 DC 7D A8 A4 1E 79 [15:15:07]CommunicateWithHost err = 0 [15:15:07]CheckOFDResponse [15:15:07]1017 (14) - 77093643461234 [15:15:07]1041 (16) - 0000000000871800 [15:15:07]1040 (4) - 49474 [15:15:07]1012 (4) - 16.08.2024 09:13 [15:15:07]1206 (1) - 0 [15:15:07]OFD Sender: Remove packet 49474 [15:15:07]ProducePacketName [15:15:07]name=ofd_packets/00049474 [15:15:07]NVStorageDeleteData [15:15:07]Write to MH i2c: 01 00 00 B5 4D 02 [15:15:07]Write i2c OK [15:15:07]MH_I2C_Read... [15:15:07]Read from MH i2c: 01 [15:15:07]MH_I2C_Read... [15:15:07]Read from MH i2c: 01 07 00 [15:15:07]MH_I2C_Read... [15:15:07]Read from MH i2c: 01 07 00 B5 4D 00 00 00 00 00 11 0D 27 [15:15:07]RasterBufferAndPrint [15:15:07]line [15:15:07]line [15:15:07]line [15:15:07]line [15:15:07]line [15:15:07]written 0, free lines is 3354 [15:15:07]MH_Cut [15:15:07]Write to MH i2c: D1 01 00 BC 4D 01 DB [15:15:07]Write i2c OK [15:15:07]MH_I2C_Read... [15:15:07]Read from MH i2c: D1 [15:15:07]MH_I2C_Read... [15:15:07]Read from MH i2c: D1 01 00 [15:15:07]MH_I2C_Read... [15:15:07]Read from MH i2c: D1 01 00 BC 4D 00 DA [15:15:07]Write to MH i2c: 01 00 00 BD 4D 0A [15:15:07]Write i2c OK [15:15:07]MH_I2C_Read... [15:15:07]OFD Sender: No OFD packet to send [15:15:07]*** Cut start [15:15:07]*** Purtial cut [15:15:07]*** CUTSNS_PIN = 0 [15:15:07]*** Stage 1: CUTSNS_PIN = 1 [15:15:09]Read from MH i2c: 01 [15:15:09]MH_I2C_Read... [15:15:09]*** Stop cut motor [15:15:09]*** Cut end [15:15:09]Read from MH i2c: 01 07 00 [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: 01 07 00 BD 4D 00 00 00 00 00 FF 0F 1F [15:15:09]process_action close_receipt done [15:15:09]requested_data is exist [15:15:09]produce_requested_data [15:15:09]requested_item fm.sn is exist - process it [15:15:09]wFMCommunicate request_size=4 [15:15:09]MH_SAM_APDU [15:15:09]CAPDU: 80 11 00 00 [15:15:09]Write to MH i2c: E2 08 00 BE 4D 80 11 00 00 00 00 00 00 85 [15:15:09]Write i2c OK [15:15:09]MH_I2C_Read... [15:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:09]Read from MH i2c: E2 [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: E2 17 00 [15:15:09]MH_I2C_Read... [15:15:09]Read from MH i2c: E2 17 00 BE 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D0 [15:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:15:09]wFMCommunicate OK [15:15:09]requested_item fd.num is exist - process it [15:15:09]SAM_PROTO_GetFieldsCounters [15:15:09]wFMCommunicate request_size=4 [15:15:09]MH_SAM_APDU [15:15:09]CAPDU: 80 13 00 00 [15:15:09]Write to MH i2c: E2 08 00 BF 4D 80 13 00 00 00 00 00 00 88 [15:15:09]Write i2c OK [15:15:09]MH_I2C_Read... [15:15:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:10]Read from MH i2c: E2 [15:15:10]MH_I2C_Read... [15:15:10]Read from MH i2c: E2 62 00 [15:15:10]MH_I2C_Read... [15:15:10]Read from MH i2c: E2 62 00 BF 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 42 C1 00 00 0E 04 04 00 D0 01 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 E4 [15:15:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 42 C1 00 00 0E 04 04 00 D0 01 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 [15:15:10]wFMCommunicate OK [15:15:10]SAM_PROTO_GetFieldsCounters done [15:15:10]requested_item shift.num is exist - process it [15:15:10]requested_item shift.opened is exist - process it [15:15:10]req_shift_opened [15:15:10]FM_GetShiftState [15:15:10]SAM_PROTO_GetShiftState [15:15:10]wFMCommunicate request_size=4 [15:15:10]MH_SAM_APDU [15:15:10]CAPDU: 80 13 01 00 [15:15:10]Write to MH i2c: E2 08 00 C0 4D 80 13 01 00 00 00 00 00 8A [15:15:10]Write i2c OK [15:15:10]MH_I2C_Read... [15:15:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:10]Read from MH i2c: E2 [15:15:10]MH_I2C_Read... [15:15:10]Read from MH i2c: E2 0E 00 [15:15:10]MH_I2C_Read... [15:15:10]Read from MH i2c: E2 0E 00 C0 4D 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 00 [15:15:10]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:15:10]wFMCommunicate OK [15:15:10]SAM_PROTO_GetShiftState done [15:15:10]FM_GetShiftState done [15:15:10]req_shift_opened done [15:15:10]requested_item shift.open_date is exist - process it [15:15:10]req_shift_open_date [15:15:10]req_shift_open_date done [15:15:10]produce_requested_data done [15:15:10]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49474,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [15:15:10]process_action_free close_receipt [15:15:10]json_value_free [15:15:10]json_value_free done [15:15:10]process_json_proto returns [15:15:10]Send response to host [15:15:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49474,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [15:15:10]free response buf [15:15:10]execute_script done [15:15:10]execute_script returns [15:15:10]free content buf [15:15:10]Sock 10.Close socket [15:15:10]Sock 10.Thread stoped [15:15:12]OFD Sender: No OFD packet to send [15:15:17]OFD Sender: No OFD packet to send [15:15:22]OFD Sender: No OFD packet to send [15:15:27]OFD Sender: No OFD packet to send [15:15:31]accept exits with 7 [15:15:31]New connection [15:15:31]New thread 3066973540 created [15:15:31]Thread 3066830180 joined [15:15:31]Waiting for new connection... [15:15:31] Sock 7.Parse request [15:15:31]Sock 7.Check first char [15:15:31]Sock 7.First char is OK [15:15:31]request: POST /json_proto HTTP/1.0 [15:15:31]Method: POST [15:15:31]URL: /json_proto [15:15:31]Method is POST - this is cgi request [15:15:31]url: /json_proto [15:15:31]query_string will be loaded in cgi processing [15:15:31]execute_cgi json_proto POST (null) [15:15:31]execute_cgi path=json_proto method=POST [15:15:31]POST find Content-Length [15:15:31]Host: 172.17.46.196:8080 [15:15:31]Content-Length: 1419 [15:15:31]Content-Type: application/json [15:15:31] [15:15:31]POST finish read [15:15:31]Found Content-Length = 1419 [15:15:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189686", "tax_sys" : 0, "items" : [ { "code": "4700000483297", "name": "\u042D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Nitro \u0410\u043D\u0430\u043D\u0430\u0441-\u0433\u0443\u0430\u0432", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46146625", "name": "\u0420/\u0436 Orbit XXL \u0441\u043B\u0430\u0434\u043A\u0430\u044F \u043C\u044F\u0442\u0430 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 386.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:31]execute_script... [15:15: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 : (3)189686", "tax_sys" : 0, "items" : [ { "code": "4700000483297", "name": "\u042D\u043D\u0435\u0440\u0433\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u0438\u0439 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Nitro \u0410\u043D\u0430\u043D\u0430\u0441-\u0433\u0443\u0430\u0432", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46146625", "name": "\u0420/\u0436 Orbit XXL \u0441\u043B\u0430\u0434\u043A\u0430\u044F \u043C\u044F\u0442\u0430 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 145.00, "quantity" : 1.000, "sum" : 145.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 386.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:31]POST & json_proto [15:15:31]process_json_proto [15:15:31]json parsed OK: [15:15:31]protocol is kg_v1.0 [15:15:31]action value=close_receipt [15:15:31]process_action close_receipt [15:15:31]cmd_close_receipt [15:15:31]MH_GetDate [15:15:31]Write to MH i2c: F0 00 00 C1 4D FD [15:15:31]Write i2c OK [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: F0 [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: F0 09 00 [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: F0 09 00 C1 4D 00 19 6D BF 66 07 E8 5D 66 63 [15:15:31]GetLastDocTimeStamp 1723821310 [15:15:31]current date 1723821337 [15:15:31]FM_GetShiftState [15:15:31]SAM_PROTO_GetShiftState [15:15:31]wFMCommunicate request_size=4 [15:15:31]MH_SAM_APDU [15:15:31]CAPDU: 80 13 01 00 [15:15:31]Write to MH i2c: E2 08 00 C2 4D 80 13 01 00 00 00 00 00 8C [15:15:32]Write i2c OK [15:15:32]MH_I2C_Read... [15:15:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:32]Read from MH i2c: E2 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 0E 00 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 0E 00 C2 4D 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 02 [15:15:32]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:15:32]wFMCommunicate OK [15:15:32]SAM_PROTO_GetShiftState done [15:15:32]FM_GetShiftState done [15:15:32]opened in 1723766958 [15:15:32]opened+sec_in_day 1723853358 [15:15:32]quantity*price = 19000 [15:15:32]sum+1 = 19001 [15:15:32]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46146625 Р/ж Orbit XXL сладкая мята 20,4г 1.000 * 51.00 = 51.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48744119 Сигареты Winston Xstyle Dual 1.000 * 145.00 = 145.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 386.00 НСП 1% : 3.41 НДС 12% : 41.00 Наличными: 0.00 Безнал.: 386.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 123 16.08.2024 15:15 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49475 ФПД: 187494543421964 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T151538&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49475&fm=187494543421964&tin=02508201610067®Number=0000000000092546&sum=38600 0 [15:15:32]StoreToDocumentArchive [15:15:32]shift 464 fd 49475 [15:15:32]save to /storage/0464/doc_00049475 [15:15:32]save last doc name /storage/0464/doc_00049475 to /storage/kkm_last_doc_name [15:15:32]save OK [15:15:32]Clear old archive folders... [15:15:32]ProcessDocumentItem done err = 0, tmpTLVsize=529 [15:15:32]tlvbuf is 00F9BF80 [15:15:32]SAM_PROTO_ClearQueue [15:15:32]wFMCommunicate request_size=4 [15:15:32]MH_SAM_APDU [15:15:32]CAPDU: 80 09 00 00 [15:15:32]Write to MH i2c: E2 08 00 CF 4D 80 09 00 00 00 00 00 00 8E [15:15:32]Write i2c OK [15:15:32]MH_I2C_Read... [15:15:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:33]Read from MH i2c: E2 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 CF 4D 00 90 00 90 [15:15:33]RAPDU: 90 00 [15:15:33]wFMCommunicate OK [15:15:33]SAM_PROTO_ClearQueue done [15:15:33]KKMCreateOFDPacket [15:15:33]OFDProtocolAddRootSTLVToBuf [15:15:33]FM_MakeSignedData [15:15:33]FM_MakeSignedData [15:15:33]SAM_PROTO_SignData [15:15:33]wFMCommunicate request_size=4 [15:15:33]MH_SAM_APDU [15:15:33]CAPDU: 80 0D 01 02 [15:15:33]Write to MH i2c: E2 08 00 D0 4D 80 0D 01 02 00 00 00 00 96 [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:33]Read from MH i2c: E2 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 D0 4D 00 90 00 91 [15:15:33]RAPDU: 90 00 [15:15:33]wFMCommunicate OK [15:15:33]wFMCommunicate request_size=255 [15:15:33]MH_SAM_APDU [15:15:33]CAPDU: 80 0D 02 02 FA 03 00 11 02 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 39 37 06 04 47 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 D0 90 D0 BD D0 B0 D0 BD D0 B0 D1 81 2D D0 B3 D1 83 D0 B0 D0 B2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 08 00 34 36 31 34 36 36 32 35 06 04 2E 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 [15:15:33]Write to MH i2c: E2 02 01 D1 4D 80 0D 02 02 FA 00 03 00 11 02 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 39 37 06 04 47 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 D0 90 D0 BD D0 B0 D0 BD D0 B0 D1 81 2D D0 B3 D1 83 D0 B0 D0 B2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 08 00 34 36 31 34 36 36 32 35 06 04 2E 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 00 00 7C [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:33]Read from MH i2c: E2 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 D1 4D 00 90 00 92 [15:15:33]RAPDU: 90 00 [15:15:33]wFMCommunicate OK [15:15:33]wFMCommunicate request_size=255 [15:15:33]MH_SAM_APDU [15:15:33]CAPDU: 80 0D 02 02 FA F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 1A 6D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 [15:15:33]Write to MH i2c: E2 02 01 D2 4D 80 0D 02 02 FA 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 1A 6D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 00 00 F4 [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:33]Read from MH i2c: E2 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: E2 03 00 D2 4D 00 90 00 93 [15:15:33]RAPDU: 90 00 [15:15:33]wFMCommunicate OK [15:15:33]wFMCommunicate request_size=38 [15:15:33]MH_SAM_APDU [15:15:33]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 43 C1 00 00 35 04 06 00 AA 86 79 A8 72 0C [15:15:33]Write to MH i2c: E2 29 00 D3 4D 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 43 C1 00 00 35 04 06 00 AA 86 79 A8 72 0C 00 00 EE [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:34]Read from MH i2c: E2 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 03 00 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 03 00 D3 4D 00 90 00 94 [15:15:34]RAPDU: 90 00 [15:15:34]wFMCommunicate OK [15:15:34]wFMCommunicate request_size=4 [15:15:34]MH_SAM_APDU [15:15:34]CAPDU: 80 0D 03 02 [15:15:34]Write to MH i2c: E2 08 00 D4 4D 80 0D 03 02 00 00 00 00 9C [15:15:34]Write i2c OK [15:15:34]MH_I2C_Read... [15:15:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:34]Read from MH i2c: E2 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 0B 00 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 0B 00 D4 4D 00 19 9C 94 1A A1 18 C8 0A 90 00 8B [15:15:34]RAPDU: 19 9C 94 1A A1 18 C8 0A 90 00 [15:15:34]wFMCommunicate OK [15:15:34]SAM_PROTO_SignData done [15:15:34]FM_MakeSignedData done [15:15:34]CreateOFDProtocolMessage [15:15:34]wFMCommunicate request_size=4 [15:15:34]MH_SAM_APDU [15:15:34]CAPDU: 80 11 00 00 [15:15:34]Write to MH i2c: E2 08 00 D5 4D 80 11 00 00 00 00 00 00 9C [15:15:34]Write i2c OK [15:15:34]MH_I2C_Read... [15:15:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:34]Read from MH i2c: E2 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 17 00 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: E2 17 00 D5 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E7 [15:15:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:15:34]wFMCommunicate OK [15:15:34]CreateOFDProtocolMessage done [15:15:34]OFDSenderStorePacket 49475 [15:15:34]StoreOFDPacket docnum=49475 [15:15:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 02 00 00 0F EA 1D 02 88 04 5A 03 01 00 03 00 11 02 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 39 37 06 04 47 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 D0 90 D0 BD D0 B0 D0 BD D0 B0 D1 81 2D D0 B3 D1 83 D0 B0 D0 B2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 08 00 34 36 31 34 36 36 32 35 06 04 2E 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 1A 6D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 43 C1 00 00 35 04 06 00 AA 86 79 A8 72 0C 19 9C 94 1A A1 18 C8 0A [15:15:34]CheckFolder [15:15:34]dirname=/storage/ofd_packets [15:15:34]CheckFolder done [15:15:34]ProducePacketName [15:15:34]name=ofd_packets/00049475 [15:15:34]NVStorageSaveData ofd_packets/00049475 [15:15:34]File name is /storage/ofd_packets/00049475 [15:15:34]Write 579 bytes [15:15:34]NVStorageSaveData done [15:15:34]OFDSenderStorePacket done [15:15:34]KKMCreateOFDPacket done [15:15:34]NVStorageSaveData kkm_last_timestamp [15:15:34]File name is /storage/kkm_last_timestamp [15:15:34]Write 4 bytes [15:15:34]NVStorageSaveData done [15:15:34]ExternCall_PrintAddStr [15:15:34]wPrintStart [15:15:34]Write to MH i2c: 01 00 00 D6 4D 23 [15:15:34]Write i2c OK [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: 01 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: 01 07 00 [15:15:34]MH_I2C_Read... [15:15:34]Read from MH i2c: 01 07 00 D6 4D 00 00 00 00 00 FF 0F 38 [15:15:34]RasterBufferAndPrint [15:15:34]line Счет N : (3)189686 [15:15:34]line ИНН: 02508201610067 [15:15:34]line Контрольно-Кассовый Чек [15:15:34]line ПРОДАЖА [15:15:34]line Товар: 4700000483297 [15:15:34]line Энергетический напиток Nitro Ананас-гуав [15:15:34]line 2.000 * 95.00 [15:15:34]line = 190.00 [15:15:34]line НДС 12% НСП 1% [15:15:34]line > о реализуемом товаре [15:15:34]line Товар: 46146625 [15:15:34]line Р/ж Orbit XXL сладкая мята 20,4г [15:15:34]line 1.000 * 51.00 [15:15:34]line = 51.00 [15:15:34]line НДС 12% НСП 1% [15:15:34]line > о реализуемом товаре [15:15:34]line Товар: 48744119 [15:15:34]line Сигареты Winston Xstyle Dual [15:15:34]line 1.000 * 145.00 [15:15:34]line = 145.00 [15:15:34]line НДС 12% НСП 1% [15:15:34]line > о реализуемом товаре [15:15:34]line ИТОГО: 386.00 [15:15:34]line НСП 1% : 3.41 [15:15:34]line НДС 12% : 41.00 [15:15:34]line Наличными: 0.00 [15:15:34]line Безнал.: 386.00 [15:15:34]line Место: АЗС № 95 "Партнер Нефть" [15:15:34]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:15:34]line СНО: Общий режим [15:15:34]line Чек 123 16.08.2024 15:15 [15:15:34]line Смена: 464 ФФД: 1.0 [15:15:34]line ЗНМ: 0300000078 [15:15:34]line РНМ: 0000000000092546 [15:15:34]line Версия ККМ: 001 [15:15:34]line Платежная система: O! деньги [15:15:34]line ФМ: 0000000000871800 [15:15:34]line ФД: 49475 [15:15:34]line ФПД: 187494543421964 [15:15:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T151538&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49475&fm=187494543421964&tin=02508201610067®Number=0000000000092546&sum=38600 [15:15:34]line 0 [15:15:34]OFD Sender: Processing packet 49475 [packets to send 21, broken 20] [15:15:34]ProducePacketName [15:15:34]name=ofd_packets/00049475 [15:15:34]OFD Sender: To server: pG, [15:15:34]CommunicateWithHost lk.salyk.kg:30040 [15:15:34]ConnectInit lk.salyk.kg [15:15:34]written 0, free lines is 4095 [15:15:34]Connected sock=10 [15:15:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 02 00 00 0F EA 1D 02 88 04 5A 03 01 00 03 00 11 02 1E 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 33 32 39 37 06 04 47 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 D0 B5 D1 82 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 D0 90 D0 BD D0 B0 D0 BD D0 B0 D1 81 2D D0 B3 D1 83 D0 B0 D0 B2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 08 00 34 36 31 34 36 36 32 35 06 04 2E 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 D0 BC D1 8F D1 82 D0 B0 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 96 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 55 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 96 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 1A 6D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 43 C1 00 00 35 04 06 00 AA 86 79 A8 72 0C 19 9C 94 1A A1 18 C8 0A [15:15:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 75 16 47 00 BF E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 43 C1 00 00 F4 03 04 00 59 18 BF 66 B6 04 01 00 00 1D 76 C9 EA 2E 23 0B 27 [15:15:34]CommunicateWithHost err = 0 [15:15:34]CheckOFDResponse [15:15:34]1017 (14) - 77093643461234 [15:15:34]1041 (16) - 0000000000871800 [15:15:34]1040 (4) - 49475 [15:15:34]1012 (4) - 16.08.2024 09:14 [15:15:34]1206 (1) - 0 [15:15:34]OFD Sender: Remove packet 49475 [15:15:34]ProducePacketName [15:15:34]name=ofd_packets/00049475 [15:15:34]NVStorageDeleteData [15:15:35]Write to MH i2c: 01 00 00 0E 4E 5C [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: 01 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: 01 07 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: 01 07 00 0E 4E 00 00 00 00 00 FA 0B 68 [15:15:35]RasterBufferAndPrint [15:15:35]line [15:15:35]line [15:15:35]line [15:15:35]line [15:15:35]line [15:15:35]written 0, free lines is 3071 [15:15:35]MH_Cut [15:15:35]Write to MH i2c: D1 01 00 15 4E 01 35 [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: D1 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: D1 01 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: D1 01 00 15 4E 00 34 [15:15:35]Write to MH i2c: 01 00 00 16 4E 64 [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]OFD Sender: No OFD packet to send [15:15:35]*** Cut start [15:15:35]*** Purtial cut [15:15:35]*** Stage 1: CUTSNS_PIN = 1 [15:15:36]Read from MH i2c: 01 [15:15:36]MH_I2C_Read... [15:15:36]*** Stop cut motor [15:15:36]*** Cut end [15:15:36]Read from MH i2c: 01 07 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: 01 07 00 16 4E 00 00 00 00 00 FF 0F 79 [15:15:36]process_action close_receipt done [15:15:36]requested_data is exist [15:15:36]produce_requested_data [15:15:36]requested_item fm.sn is exist - process it [15:15:36]wFMCommunicate request_size=4 [15:15:36]MH_SAM_APDU [15:15:36]CAPDU: 80 11 00 00 [15:15:36]Write to MH i2c: E2 08 00 17 4E 80 11 00 00 00 00 00 00 DF [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:36]Read from MH i2c: E2 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 17 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 17 00 17 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2A [15:15:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:15:36]wFMCommunicate OK [15:15:36]requested_item fd.num is exist - process it [15:15:36]SAM_PROTO_GetFieldsCounters [15:15:36]wFMCommunicate request_size=4 [15:15:36]MH_SAM_APDU [15:15:36]CAPDU: 80 13 00 00 [15:15:36]Write to MH i2c: E2 08 00 18 4E 80 13 00 00 00 00 00 00 E2 [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:36]Read from MH i2c: E2 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 62 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 62 00 18 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 43 C1 00 00 0E 04 04 00 D0 01 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 42 [15:15:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 43 C1 00 00 0E 04 04 00 D0 01 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 [15:15:36]wFMCommunicate OK [15:15:36]SAM_PROTO_GetFieldsCounters done [15:15:36]requested_item shift.num is exist - process it [15:15:36]requested_item shift.opened is exist - process it [15:15:36]req_shift_opened [15:15:36]FM_GetShiftState [15:15:36]SAM_PROTO_GetShiftState [15:15:36]wFMCommunicate request_size=4 [15:15:36]MH_SAM_APDU [15:15:36]CAPDU: 80 13 01 00 [15:15:36]Write to MH i2c: E2 08 00 19 4E 80 13 01 00 00 00 00 00 E4 [15:15:36]Write i2c OK [15:15:36]MH_I2C_Read... [15:15:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:36]Read from MH i2c: E2 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 0E 00 [15:15:36]MH_I2C_Read... [15:15:36]Read from MH i2c: E2 0E 00 19 4E 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 5A [15:15:36]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:15:36]wFMCommunicate OK [15:15:36]SAM_PROTO_GetShiftState done [15:15:36]FM_GetShiftState done [15:15:36]req_shift_opened done [15:15:36]requested_item shift.open_date is exist - process it [15:15:36]req_shift_open_date [15:15:36]req_shift_open_date done [15:15:36]produce_requested_data done [15:15:36]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49475,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [15:15:36]process_action_free close_receipt [15:15:36]json_value_free [15:15:36]json_value_free done [15:15:36]process_json_proto returns [15:15:36]Send response to host [15:15:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49475,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [15:15:36]free response buf [15:15:36]execute_script done [15:15:36]execute_script returns [15:15:36]free content buf [15:15:36]Sock 7.Close socket [15:15:36]Sock 7.Thread stoped [15:15:40]OFD Sender: No OFD packet to send [15:15:45]OFD Sender: No OFD packet to send [15:15:50]OFD Sender: No OFD packet to send [15:15:55]OFD Sender: No OFD packet to send [15:16:00]OFD Sender: No OFD packet to send [15:16:05]OFD Sender: No OFD packet to send [15:16:10]OFD Sender: No OFD packet to send [15:16:15]OFD Sender: No OFD packet to send [15:16:20]OFD Sender: No OFD packet to send [15:16:25]OFD Sender: No OFD packet to send [15:16:30]OFD Sender: No OFD packet to send [15:16:35]OFD Sender: No OFD packet to send [15:16:40]OFD Sender: No OFD packet to send [15:16:45]OFD Sender: No OFD packet to send [15:16:50]OFD Sender: No OFD packet to send [15:16:53]accept exits with 9 [15:16:53]New connection [15:16:53]New thread 3066830180 created [15:16:53]Thread 3066973540 joined [15:16:53]Waiting for new connection... [15:16:53] Sock 9.Parse request [15:16:53]Sock 9.Check first char [15:16:53]Sock 9.First char is OK [15:16:53]request: POST /json_proto HTTP/1.0 [15:16:53]Method: POST [15:16:53]URL: /json_proto [15:16:53]Method is POST - this is cgi request [15:16:53]url: /json_proto [15:16:53]query_string will be loaded in cgi processing [15:16:53]execute_cgi json_proto POST (null) [15:16:53]execute_cgi path=json_proto method=POST [15:16:53]POST find Content-Length [15:16:53]Host: 172.17.46.196:8080 [15:16:53]Content-Length: 756 [15:16:53]Content-Type: application/json [15:16:53] [15:16:53]POST finish read [15:16:53]Found Content-Length = 756 [15:16:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30030862", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:53]execute_script... [15:16: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)11325460", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30030862", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:16:53]POST & json_proto [15:16:53]process_json_proto [15:16:53]json parsed OK: [15:16:53]protocol is kg_v1.0 [15:16:53]action value=close_receipt [15:16:53]process_action close_receipt [15:16:53]cmd_close_receipt [15:16:53]MH_GetDate [15:16:53]Write to MH i2c: F0 00 00 1A 4E 57 [15:16:53]Write i2c OK [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: F0 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: F0 09 00 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: F0 09 00 1A 4E 00 6B 6D BF 66 07 E8 5D 66 0F [15:16:53]GetLastDocTimeStamp 1723821338 [15:16:53]current date 1723821419 [15:16:53]FM_GetShiftState [15:16:53]SAM_PROTO_GetShiftState [15:16:53]wFMCommunicate request_size=4 [15:16:53]MH_SAM_APDU [15:16:53]CAPDU: 80 13 01 00 [15:16:53]Write to MH i2c: E2 08 00 1B 4E 80 13 01 00 00 00 00 00 E6 [15:16:53]Write i2c OK [15:16:53]MH_I2C_Read... [15:16:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:53]Read from MH i2c: E2 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 0E 00 [15:16:53]MH_I2C_Read... [15:16:53]Read from MH i2c: E2 0E 00 1B 4E 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 5C [15:16:53]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:16:53]wFMCommunicate OK [15:16:53]SAM_PROTO_GetShiftState done [15:16:53]FM_GetShiftState done [15:16:53]opened in 1723766958 [15:16:53]opened+sec_in_day 1723853358 [15:16:53]quantity*price = 0 [15:16:53]sum+1 = 1 [15:16:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 124 16.08.2024 15:16 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30030862 ФМ: 0000000000871800 ФД: 49476 ФПД: 138280615535785 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T151659&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49476&fm=138280615535785&tin=02508201610067®Number=0000000000092546&sum=0 [15:16:54]StoreToDocumentArchive [15:16:54]shift 464 fd 49476 [15:16:54]save to /storage/0464/doc_00049476 [15:16:54]save last doc name /storage/0464/doc_00049476 to /storage/kkm_last_doc_name [15:16:54]save OK [15:16:54]Clear old archive folders... [15:16:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:16:54]tlvbuf is 00DFB2D0 [15:16:54]SAM_PROTO_ClearQueue [15:16:54]wFMCommunicate request_size=4 [15:16:54]MH_SAM_APDU [15:16:54]CAPDU: 80 09 00 00 [15:16:54]Write to MH i2c: E2 08 00 28 4E 80 09 00 00 00 00 00 00 E8 [15:16:54]Write i2c OK [15:16:54]MH_I2C_Read... [15:16:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:16:54]Read from MH i2c: E2 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: E2 03 00 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: E2 03 00 28 4E 00 90 00 EA [15:16:54]RAPDU: 90 00 [15:16:54]wFMCommunicate OK [15:16:54]SAM_PROTO_ClearQueue done [15:16:54]KKMCreateOFDPacket [15:16:54]OFDProtocolAddRootSTLVToBuf [15:16:54]FM_MakeSignedData [15:16:54]FM_MakeSignedData [15:16:54]SAM_PROTO_SignData [15:16:54]wFMCommunicate request_size=4 [15:16:54]MH_SAM_APDU [15:16:54]CAPDU: 80 0D 01 02 [15:16:54]Write to MH i2c: E2 08 00 29 4E 80 0D 01 02 00 00 00 00 F0 [15:16:54]Write i2c OK [15:16:54]MH_I2C_Read... [15:16:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:16:54]Read from MH i2c: E2 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: E2 03 00 [15:16:54]MH_I2C_Read... [15:16:54]Read from MH i2c: E2 03 00 29 4E 00 90 00 EB [15:16:54]RAPDU: 90 00 [15:16:54]wFMCommunicate OK [15:16:54]wFMCommunicate request_size=255 [15:16:54]MH_SAM_APDU [15:16: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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 6B 6D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 44 C1 00 00 35 04 06 00 7D [15:16:54]Write to MH i2c: E2 02 01 2A 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 6B 6D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 44 C1 00 00 35 04 06 00 7D 00 00 F5 [15:16:54]Write i2c OK [15:16:54]MH_I2C_Read... [15:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:55]Read from MH i2c: E2 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: E2 03 00 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: E2 03 00 2A 4E 00 90 00 EC [15:16:55]RAPDU: 90 00 [15:16:55]wFMCommunicate OK [15:16:55]wFMCommunicate request_size=10 [15:16:55]MH_SAM_APDU [15:16:55]CAPDU: 80 0D 02 02 05 C3 F6 F7 E4 A9 [15:16:55]Write to MH i2c: E2 0D 00 2B 4E 80 0D 02 02 05 00 C3 F6 F7 E4 A9 00 00 3A [15:16:55]Write i2c OK [15:16:55]MH_I2C_Read... [15:16:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:16:55]Read from MH i2c: E2 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: E2 03 00 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: E2 03 00 2B 4E 00 90 00 ED [15:16:55]RAPDU: 90 00 [15:16:55]wFMCommunicate OK [15:16:55]wFMCommunicate request_size=4 [15:16:55]MH_SAM_APDU [15:16:55]CAPDU: 80 0D 03 02 [15:16:55]Write to MH i2c: E2 08 00 2C 4E 80 0D 03 02 00 00 00 00 F5 [15:16:55]Write i2c OK [15:16:55]MH_I2C_Read... [15:16:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:16:55]Read from MH i2c: E2 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: E2 0B 00 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: E2 0B 00 2C 4E 00 D1 08 57 0D D0 60 C0 13 90 00 36 [15:16:55]RAPDU: D1 08 57 0D D0 60 C0 13 90 00 [15:16:55]wFMCommunicate OK [15:16:55]SAM_PROTO_SignData done [15:16:55]FM_MakeSignedData done [15:16:55]CreateOFDProtocolMessage [15:16:55]wFMCommunicate request_size=4 [15:16:55]MH_SAM_APDU [15:16:55]CAPDU: 80 11 00 00 [15:16:55]Write to MH i2c: E2 08 00 2D 4E 80 11 00 00 00 00 00 00 F5 [15:16:55]Write i2c OK [15:16:55]MH_I2C_Read... [15:16:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:55]Read from MH i2c: E2 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: E2 17 00 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: E2 17 00 2D 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 40 [15:16:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:16:55]wFMCommunicate OK [15:16:55]CreateOFDProtocolMessage done [15:16:55]OFDSenderStorePacket 49476 [15:16:55]StoreOFDPacket docnum=49476 [15:16:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 1A CB 07 01 35 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 6B 6D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 44 C1 00 00 35 04 06 00 7D C3 F6 F7 E4 A9 D1 08 57 0D D0 60 C0 13 [15:16:55]CheckFolder [15:16:55]dirname=/storage/ofd_packets [15:16:55]CheckFolder done [15:16:55]ProducePacketName [15:16:55]name=ofd_packets/00049476 [15:16:55]NVStorageSaveData ofd_packets/00049476 [15:16:55]File name is /storage/ofd_packets/00049476 [15:16:55]Write 301 bytes [15:16:55]NVStorageSaveData done [15:16:55]OFDSenderStorePacket done [15:16:55]KKMCreateOFDPacket done [15:16:55]NVStorageSaveData kkm_last_timestamp [15:16:55]File name is /storage/kkm_last_timestamp [15:16:55]Write 4 bytes [15:16:55]NVStorageSaveData done [15:16:55]ExternCall_PrintAddStr [15:16:55]wPrintStart [15:16:55]Write to MH i2c: 01 00 00 2E 4E 7C [15:16:55]Write i2c OK [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: 01 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: 01 07 00 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: 01 07 00 2E 4E 00 00 00 00 00 FF 0F 91 [15:16:55]RasterBufferAndPrint [15:16:55]line Счет N : (1)11325460 [15:16:55]line ИНН: 02508201610067 [15:16:55]line Контрольно-Кассовый Чек [15:16:55]line ПРОДАЖА [15:16:55]line ТРК (МРК, ГНК) : 22 [15:16:55]line Товар: 2710124130 [15:16:55]line Аи-92-К-4 [15:16:55]line 10.000 * 0.00 [15:16:55]line = 0.00 [15:16:55]line НДС 12% НСП 1% [15:16:55]line > о реализуемом товаре [15:16:55]line ИТОГО: 0.00 [15:16:55]line НСП 1% : 0.00 [15:16:55]line НДС 12% : 0.00 [15:16:55]line Наличными: 0.00 [15:16:55]line Безнал.: 0.00 [15:16:55]line Место: АЗС № 95 "Партнер Нефть" [15:16:55]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:16:55]line СНО: Общий режим [15:16:55]line Чек 124 16.08.2024 15:16 [15:16:55]line Смена: 464 ФФД: 1.0 [15:16:55]line ЗНМ: 0300000078 [15:16:55]line РНМ: 0000000000092546 [15:16:55]line Версия ККМ: 001 [15:16:55]line Талоны: ТК ГПНА Online [15:16:55]line 30030862 [15:16:55]line ФМ: 0000000000871800 [15:16:55]line ФД: 49476 [15:16:55]line ФПД: 138280615535785 [15:16:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T151659&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49476&fm=138280615535785&tin=02508201610067®Number=0000000000092546&sum=0 [15:16:55]written 0, free lines is 4095 [15:16:55]OFD Sender: Processing packet 49476 [packets to send 21, broken 20] [15:16:55]ProducePacketName [15:16:55]name=ofd_packets/00049476 [15:16:55]OFD Sender: To server: pG, [15:16:55]CommunicateWithHost lk.salyk.kg:30040 [15:16:55]ConnectInit lk.salyk.kg [15:16:55]Connected sock=10 [15:16:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 1A CB 07 01 35 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 6B 6D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 44 C1 00 00 35 04 06 00 7D C3 F6 F7 E4 A9 D1 08 57 0D D0 60 C0 13 [15:16:55]Write to MH i2c: 01 00 00 58 4E A6 [15:16:55]Write i2c OK [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: 01 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: 01 07 00 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: 01 07 00 58 4E 00 00 00 00 00 D3 0C 8C [15:16:55]RasterBufferAndPrint [15:16:55]line [15:16:55]line [15:16:55]line [15:16:55]line [15:16:55]line [15:16:55]written 0, free lines is 3289 [15:16:55]MH_Cut [15:16:55]Write to MH i2c: D1 01 00 5F 4E 01 7F [15:16:55]Write i2c OK [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: D1 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: D1 01 00 [15:16:55]MH_I2C_Read... [15:16:55]Read from MH i2c: D1 01 00 5F 4E 00 7E [15:16:55]Write to MH i2c: 01 00 00 60 4E AE [15:16:55]Write i2c OK [15:16:55]MH_I2C_Read... [15:16:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 1D 21 47 00 CB F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 44 C1 00 00 F4 03 04 00 AA 18 BF 66 B6 04 01 00 00 DC D5 73 4A 4D 03 89 46 [15:16:55]CommunicateWithHost err = 0 [15:16:55]CheckOFDResponse [15:16:55]1017 (14) - 77093643461234 [15:16:55]1041 (16) - 0000000000871800 [15:16:55]1040 (4) - 49476 [15:16:55]1012 (4) - 16.08.2024 09:15 [15:16:55]1206 (1) - 0 [15:16:55]OFD Sender: Remove packet 49476 [15:16:55]ProducePacketName [15:16:55]name=ofd_packets/00049476 [15:16:55]NVStorageDeleteData [15:16:56]OFD Sender: No OFD packet to send [15:16:56]*** Cut start [15:16:56]*** Purtial cut [15:16:56]*** CUTSNS_PIN = 0 [15:16:56]*** Stage 1: CUTSNS_PIN = 1 [15:16:58]Read from MH i2c: 01 [15:16:58]MH_I2C_Read... [15:16:58]*** Stop cut motor [15:16:58]*** Cut end [15:16:58]Read from MH i2c: 01 07 00 [15:16:58]MH_I2C_Read... [15:16:58]Read from MH i2c: 01 07 00 60 4E 00 00 00 00 00 FF 0F C3 [15:16:58]process_action close_receipt done [15:16:58]requested_data is exist [15:16:58]produce_requested_data [15:16:58]requested_item fm.sn is exist - process it [15:16:58]wFMCommunicate request_size=4 [15:16:58]MH_SAM_APDU [15:16:58]CAPDU: 80 11 00 00 [15:16:58]Write to MH i2c: E2 08 00 61 4E 80 11 00 00 00 00 00 00 29 [15:16:58]Write i2c OK [15:16:58]MH_I2C_Read... [15:16:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:16:58]Read from MH i2c: E2 [15:16:58]MH_I2C_Read... [15:16:58]Read from MH i2c: E2 17 00 [15:16:58]MH_I2C_Read... [15:16:58]Read from MH i2c: E2 17 00 61 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 74 [15:16:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:16:58]wFMCommunicate OK [15:16:58]requested_item fd.num is exist - process it [15:16:58]SAM_PROTO_GetFieldsCounters [15:16:58]wFMCommunicate request_size=4 [15:16:58]MH_SAM_APDU [15:16:58]CAPDU: 80 13 00 00 [15:16:58]Write to MH i2c: E2 08 00 62 4E 80 13 00 00 00 00 00 00 2C [15:16:58]Write i2c OK [15:16:58]MH_I2C_Read... [15:16:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:16:58]Read from MH i2c: E2 [15:16:58]MH_I2C_Read... [15:16:58]Read from MH i2c: E2 62 00 [15:16:58]MH_I2C_Read... [15:16:58]Read from MH i2c: E2 62 00 62 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 44 C1 00 00 0E 04 04 00 D0 01 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 90 [15:16:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 44 C1 00 00 0E 04 04 00 D0 01 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 [15:16:58]wFMCommunicate OK [15:16:58]SAM_PROTO_GetFieldsCounters done [15:16:58]requested_item shift.num is exist - process it [15:16:58]requested_item shift.opened is exist - process it [15:16:58]req_shift_opened [15:16:58]FM_GetShiftState [15:16:58]SAM_PROTO_GetShiftState [15:16:58]wFMCommunicate request_size=4 [15:16:58]MH_SAM_APDU [15:16:58]CAPDU: 80 13 01 00 [15:16:58]Write to MH i2c: E2 08 00 63 4E 80 13 01 00 00 00 00 00 2E [15:16:58]Write i2c OK [15:16:58]MH_I2C_Read... [15:16:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:16:58]Read from MH i2c: E2 [15:16:58]MH_I2C_Read... [15:16:58]Read from MH i2c: E2 0E 00 [15:16:58]MH_I2C_Read... [15:16:58]Read from MH i2c: E2 0E 00 63 4E 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 A4 [15:16:58]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:16:58]wFMCommunicate OK [15:16:58]SAM_PROTO_GetShiftState done [15:16:58]FM_GetShiftState done [15:16:58]req_shift_opened done [15:16:58]requested_item shift.open_date is exist - process it [15:16:58]req_shift_open_date [15:16:58]req_shift_open_date done [15:16:58]produce_requested_data done [15:16:58]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49476,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [15:16:58]process_action_free close_receipt [15:16:58]json_value_free [15:16:58]json_value_free done [15:16:58]process_json_proto returns [15:16:58]Send response to host [15:16:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49476,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [15:16:58]free response buf [15:16:58]execute_script done [15:16:58]execute_script returns [15:16:58]free content buf [15:16:58]Sock 9.Close socket [15:16:58]Sock 9.Thread stoped [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:44]accept exits with 7 [15:26:44]New connection [15:26:44]New thread 3066973540 created [15:26:44]Thread 3066830180 joined [15:26:44]Waiting for new connection... [15:26:44] Sock 7.Parse request [15:26:44]Sock 7.Check first char [15:26:44]Sock 7.First char is OK [15:26:44]request: POST /json_proto HTTP/1.0 [15:26:44]Method: POST [15:26:44]URL: /json_proto [15:26:44]Method is POST - this is cgi request [15:26:44]url: /json_proto [15:26:44]query_string will be loaded in cgi processing [15:26:44]execute_cgi json_proto POST (null) [15:26:44]execute_cgi path=json_proto method=POST [15:26:44]POST find Content-Length [15:26:44]Host: 172.17.46.196:8080 [15:26:44]Content-Length: 756 [15:26:44]Content-Type: application/json [15:26:44] [15:26:44]POST finish read [15:26:44]Found Content-Length = 756 [15:26:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30074589", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:44]execute_script... [15:26: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)11325471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30074589", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:44]POST & json_proto [15:26:44]process_json_proto [15:26:44]json parsed OK: [15:26:44]protocol is kg_v1.0 [15:26:44]action value=close_receipt [15:26:44]process_action close_receipt [15:26:44]cmd_close_receipt [15:26:44]MH_GetDate [15:26:44]Write to MH i2c: F0 00 00 64 4E A1 [15:26:44]Write i2c OK [15:26:44]MH_I2C_Read... [15:26:44]Read from MH i2c: F0 [15:26:44]MH_I2C_Read... [15:26:44]Read from MH i2c: F0 09 00 [15:26:44]MH_I2C_Read... [15:26:44]Read from MH i2c: F0 09 00 64 4E 00 BB 6F BF 66 07 E8 5D 66 AB [15:26:44]GetLastDocTimeStamp 1723821419 [15:26:44]current date 1723822011 [15:26:44]FM_GetShiftState [15:26:44]SAM_PROTO_GetShiftState [15:26:44]wFMCommunicate request_size=4 [15:26:44]MH_SAM_APDU [15:26:44]CAPDU: 80 13 01 00 [15:26:44]Write to MH i2c: E2 08 00 65 4E 80 13 01 00 00 00 00 00 30 [15:26:44]Write i2c OK [15:26:44]MH_I2C_Read... [15:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:44]Read from MH i2c: E2 [15:26:44]MH_I2C_Read... [15:26:44]Read from MH i2c: E2 0E 00 [15:26:44]MH_I2C_Read... [15:26:44]Read from MH i2c: E2 0E 00 65 4E 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 A6 [15:26:44]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:26:44]wFMCommunicate OK [15:26:44]SAM_PROTO_GetShiftState done [15:26:44]FM_GetShiftState done [15:26:44]opened in 1723766958 [15:26:44]opened+sec_in_day 1723853358 [15:26:44]quantity*price = 0 [15:26:44]sum+1 = 1 [15:26:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 125 16.08.2024 15:26 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30074589 ФМ: 0000000000871800 ФД: 49477 ФПД: 50158893430023 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T152651&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49477&fm=50158893430023&tin=02508201610067®Number=0000000000092546&sum=0 [15:26:46]StoreToDocumentArchive [15:26:46]shift 464 fd 49477 [15:26:46]save to /storage/0464/doc_00049477 [15:26:46]save last doc name /storage/0464/doc_00049477 to /storage/kkm_last_doc_name [15:26:46]save OK [15:26:46]Clear old archive folders... [15:26:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:26:46]tlvbuf is B6EDF8D0 [15:26:46]SAM_PROTO_ClearQueue [15:26:46]wFMCommunicate request_size=4 [15:26:46]MH_SAM_APDU [15:26:46]CAPDU: 80 09 00 00 [15:26:46]Write to MH i2c: E2 08 00 72 4E 80 09 00 00 00 00 00 00 32 [15:26:46]Write i2c OK [15:26:46]MH_I2C_Read... [15:26:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:46]Read from MH i2c: E2 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 03 00 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 03 00 72 4E 00 90 00 34 [15:26:46]RAPDU: 90 00 [15:26:46]wFMCommunicate OK [15:26:46]SAM_PROTO_ClearQueue done [15:26:46]KKMCreateOFDPacket [15:26:46]OFDProtocolAddRootSTLVToBuf [15:26:46]FM_MakeSignedData [15:26:46]FM_MakeSignedData [15:26:46]SAM_PROTO_SignData [15:26:46]wFMCommunicate request_size=4 [15:26:46]MH_SAM_APDU [15:26:46]CAPDU: 80 0D 01 02 [15:26:46]Write to MH i2c: E2 08 00 73 4E 80 0D 01 02 00 00 00 00 3A [15:26:46]Write i2c OK [15:26:46]MH_I2C_Read... [15:26:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:46]Read from MH i2c: E2 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 03 00 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 03 00 73 4E 00 90 00 35 [15:26:46]RAPDU: 90 00 [15:26:46]wFMCommunicate OK [15:26:46]wFMCommunicate request_size=255 [15:26:46]MH_SAM_APDU [15:26: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 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 BB 6F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 45 C1 00 00 35 04 06 00 2D [15:26:46]Write to MH i2c: E2 02 01 74 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 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 BB 6F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 45 C1 00 00 35 04 06 00 2D 00 00 E8 [15:26:46]Write i2c OK [15:26:46]MH_I2C_Read... [15:26:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:46]Read from MH i2c: E2 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 03 00 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 03 00 74 4E 00 90 00 36 [15:26:46]RAPDU: 90 00 [15:26:46]wFMCommunicate OK [15:26:46]wFMCommunicate request_size=10 [15:26:46]MH_SAM_APDU [15:26:46]CAPDU: 80 0D 02 02 05 9E 87 06 75 07 [15:26:46]Write to MH i2c: E2 0D 00 75 4E 80 0D 02 02 05 00 9E 87 06 75 07 00 00 EE [15:26:46]Write i2c OK [15:26:46]MH_I2C_Read... [15:26:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:46]Read from MH i2c: E2 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 03 00 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 03 00 75 4E 00 90 00 37 [15:26:46]RAPDU: 90 00 [15:26:46]wFMCommunicate OK [15:26:46]wFMCommunicate request_size=4 [15:26:46]MH_SAM_APDU [15:26:46]CAPDU: 80 0D 03 02 [15:26:46]Write to MH i2c: E2 08 00 76 4E 80 0D 03 02 00 00 00 00 3F [15:26:46]Write i2c OK [15:26:46]MH_I2C_Read... [15:26:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:46]Read from MH i2c: E2 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 0B 00 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 0B 00 76 4E 00 35 AB 33 B7 F2 DE FE EB 90 00 C3 [15:26:46]RAPDU: 35 AB 33 B7 F2 DE FE EB 90 00 [15:26:46]wFMCommunicate OK [15:26:46]SAM_PROTO_SignData done [15:26:46]FM_MakeSignedData done [15:26:46]CreateOFDProtocolMessage [15:26:46]wFMCommunicate request_size=4 [15:26:46]MH_SAM_APDU [15:26:46]CAPDU: 80 11 00 00 [15:26:46]Write to MH i2c: E2 08 00 77 4E 80 11 00 00 00 00 00 00 3F [15:26:46]Write i2c OK [15:26:46]MH_I2C_Read... [15:26:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:46]Read from MH i2c: E2 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 17 00 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: E2 17 00 77 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 8A [15:26:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:26:46]wFMCommunicate OK [15:26:46]CreateOFDProtocolMessage done [15:26:46]OFDSenderStorePacket 49477 [15:26:46]StoreOFDPacket docnum=49477 [15:26:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 B9 92 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 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 BB 6F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 45 C1 00 00 35 04 06 00 2D 9E 87 06 75 07 35 AB 33 B7 F2 DE FE EB [15:26:46]CheckFolder [15:26:46]dirname=/storage/ofd_packets [15:26:46]CheckFolder done [15:26:46]ProducePacketName [15:26:46]name=ofd_packets/00049477 [15:26:46]NVStorageSaveData ofd_packets/00049477 [15:26:46]File name is /storage/ofd_packets/00049477 [15:26:46]Write 301 bytes [15:26:46]NVStorageSaveData done [15:26:46]OFDSenderStorePacket done [15:26:46]KKMCreateOFDPacket done [15:26:46]NVStorageSaveData kkm_last_timestamp [15:26:46]File name is /storage/kkm_last_timestamp [15:26:46]Write 4 bytes [15:26:46]NVStorageSaveData done [15:26:46]ExternCall_PrintAddStr [15:26:46]wPrintStart [15:26:46]Write to MH i2c: 01 00 00 78 4E C6 [15:26:46]Write i2c OK [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: 01 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: 01 07 00 [15:26:46]MH_I2C_Read... [15:26:46]Read from MH i2c: 01 07 00 78 4E 00 00 00 00 00 FF 0F DB [15:26:46]RasterBufferAndPrint [15:26:46]line Счет N : (1)11325471 [15:26:46]line ИНН: 02508201610067 [15:26:46]line Контрольно-Кассовый Чек [15:26:46]line ПРОДАЖА [15:26:46]line ТРК (МРК, ГНК) : 22 [15:26:46]line Товар: 2710124130 [15:26:46]line Аи-92-К-4 [15:26:46]line 40.000 * 0.00 [15:26:46]line = 0.00 [15:26:46]line НДС 12% НСП 1% [15:26:46]line > о реализуемом товаре [15:26:46]line ИТОГО: 0.00 [15:26:46]line НСП 1% : 0.00 [15:26:46]line НДС 12% : 0.00 [15:26:46]line Наличными: 0.00 [15:26:46]line Безнал.: 0.00 [15:26:46]line Место: АЗС № 95 "Партнер Нефть" [15:26:46]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:26:46]line СНО: Общий режим [15:26:46]line Чек 125 16.08.2024 15:26 [15:26:46]line Смена: 464 ФФД: 1.0 [15:26:46]line ЗНМ: 0300000078 [15:26:46]line РНМ: 0000000000092546 [15:26:46]line Версия ККМ: 001 [15:26:46]line Талоны: ТК ГПНА Online [15:26:46]line 30074589 [15:26:46]line ФМ: 0000000000871800 [15:26:46]line ФД: 49477 [15:26:46]line ФПД: 50158893430023 [15:26:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T152651&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49477&fm=50158893430023&tin=02508201610067®Number=0000000000092546&sum=0 [15:26:46]written 0, free lines is 4095 [15:26:46]OFD Sender: Processing packet 49477 [packets to send 21, broken 20] [15:26:46]ProducePacketName [15:26:46]name=ofd_packets/00049477 [15:26:46]OFD Sender: To server: pG, [15:26:46]CommunicateWithHost lk.salyk.kg:30040 [15:26:46]ConnectInit lk.salyk.kg [15:26:46]Connected sock=9 [15:26:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 B9 92 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 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 BB 6F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 45 C1 00 00 35 04 06 00 2D 9E 87 06 75 07 35 AB 33 B7 F2 DE FE EB [15:26:47]Write to MH i2c: 01 00 00 A2 4E F0 [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: 01 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: 01 07 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: 01 07 00 A2 4E 00 00 00 00 00 ED 0C F0 [15:26:47]RasterBufferAndPrint [15:26:47]line [15:26:47]line [15:26:47]line [15:26:47]line [15:26:47]line [15:26:47]written 0, free lines is 3315 [15:26:47]MH_Cut [15:26:47]Write to MH i2c: D1 01 00 A9 4E 01 C9 [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: D1 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: D1 01 00 [15:26:47]MH_I2C_Read... [15:26:47]Read from MH i2c: D1 01 00 A9 4E 00 C8 [15:26:47]Write to MH i2c: 01 00 00 AA 4E F8 [15:26:47]Write i2c OK [15:26:47]MH_I2C_Read... [15:26:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 66 50 47 00 D2 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 38 37 31 38 30 30 10 04 04 00 45 C1 00 00 F4 03 04 00 F9 1A BF 66 B6 04 01 00 00 71 E2 D1 E6 FC 01 F3 32 [15:26:47]CommunicateWithHost err = 0 [15:26:47]CheckOFDResponse [15:26:47]1017 (14) - 77093643461234 [15:26:47]1041 (16) - 0000000000871800 [15:26:47]1040 (4) - 49477 [15:26:47]1012 (4) - 16.08.2024 09:25 [15:26:47]1206 (1) - 0 [15:26:47]OFD Sender: Remove packet 49477 [15:26:47]ProducePacketName [15:26:47]name=ofd_packets/00049477 [15:26:47]NVStorageDeleteData [15:26:47]OFD Sender: No OFD packet to send [15:26:47]*** Cut start [15:26:47]*** Purtial cut [15:26:47]*** Stage 1: CUTSNS_PIN = 1 [15:26:48]Read from MH i2c: 01 [15:26:48]MH_I2C_Read... [15:26:48]*** Stop cut motor [15:26:48]*** Cut end [15:26:48]Read from MH i2c: 01 07 00 [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: 01 07 00 AA 4E 00 00 00 00 00 FF 0F 0D [15:26:48]process_action close_receipt done [15:26:48]requested_data is exist [15:26:48]produce_requested_data [15:26:48]requested_item fm.sn is exist - process it [15:26:48]wFMCommunicate request_size=4 [15:26:48]MH_SAM_APDU [15:26:48]CAPDU: 80 11 00 00 [15:26:48]Write to MH i2c: E2 08 00 AB 4E 80 11 00 00 00 00 00 00 73 [15:26:48]Write i2c OK [15:26:48]MH_I2C_Read... [15:26:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:48]Read from MH i2c: E2 [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: E2 17 00 [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: E2 17 00 AB 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BE [15:26:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:26:48]wFMCommunicate OK [15:26:48]requested_item fd.num is exist - process it [15:26:48]SAM_PROTO_GetFieldsCounters [15:26:48]wFMCommunicate request_size=4 [15:26:48]MH_SAM_APDU [15:26:48]CAPDU: 80 13 00 00 [15:26:48]Write to MH i2c: E2 08 00 AC 4E 80 13 00 00 00 00 00 00 76 [15:26:48]Write i2c OK [15:26:48]MH_I2C_Read... [15:26:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:48]Read from MH i2c: E2 [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: E2 62 00 [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: E2 62 00 AC 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 45 C1 00 00 0E 04 04 00 D0 01 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 DE [15:26:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 45 C1 00 00 0E 04 04 00 D0 01 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 [15:26:48]wFMCommunicate OK [15:26:48]SAM_PROTO_GetFieldsCounters done [15:26:48]requested_item shift.num is exist - process it [15:26:48]requested_item shift.opened is exist - process it [15:26:48]req_shift_opened [15:26:48]FM_GetShiftState [15:26:48]SAM_PROTO_GetShiftState [15:26:48]wFMCommunicate request_size=4 [15:26:48]MH_SAM_APDU [15:26:48]CAPDU: 80 13 01 00 [15:26:48]Write to MH i2c: E2 08 00 AD 4E 80 13 01 00 00 00 00 00 78 [15:26:48]Write i2c OK [15:26:48]MH_I2C_Read... [15:26:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:48]Read from MH i2c: E2 [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: E2 0E 00 [15:26:48]MH_I2C_Read... [15:26:48]Read from MH i2c: E2 0E 00 AD 4E 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 EE [15:26:48]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:26:48]wFMCommunicate OK [15:26:48]SAM_PROTO_GetShiftState done [15:26:48]FM_GetShiftState done [15:26:48]req_shift_opened done [15:26:48]requested_item shift.open_date is exist - process it [15:26:48]req_shift_open_date [15:26:48]req_shift_open_date done [15:26:48]produce_requested_data done [15:26:48]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49477,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [15:26:48]process_action_free close_receipt [15:26:48]json_value_free [15:26:48]json_value_free done [15:26:48]process_json_proto returns [15:26:48]Send response to host [15:26:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49477,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [15:26:48]free response buf [15:26:48]execute_script done [15:26:48]execute_script returns [15:26:48]free content buf [15:26:48]Sock 7.Close socket [15:26:48]Sock 7.Thread stoped [15:26:49]accept exits with 10 [15:26:49]New connection [15:26:49]New thread 3066830180 created [15:26:49]Thread 3066973540 joined [15:26:49]Waiting for new connection... [15:26:49] Sock 10.Parse request [15:26:49]Sock 10.Check first char [15:26:49]Sock 10.First char is OK [15:26:49]request: POST /json_proto HTTP/1.0 [15:26:49]Method: POST [15:26:49]URL: /json_proto [15:26:49]Method is POST - this is cgi request [15:26:49]url: /json_proto [15:26:49]query_string will be loaded in cgi processing [15:26:49]execute_cgi json_proto POST (null) [15:26:49]execute_cgi path=json_proto method=POST [15:26:49]POST find Content-Length [15:26:49]Host: 172.17.46.196:8080 [15:26:49]Content-Length: 986 [15:26:49]Content-Type: application/json [15:26:49] [15:26:49]POST finish read [15:26:49]Found Content-Length = 986 [15:26:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189687", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002328404", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:49]execute_script... [15:26:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189687", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002328404", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043C\u044F\u0442\u0430 \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 2.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:26:49]POST & json_proto [15:26:49]process_json_proto [15:26:49]json parsed OK: [15:26:49]protocol is kg_v1.0 [15:26:49]action value=close_receipt [15:26:49]process_action close_receipt [15:26:49]cmd_close_receipt [15:26:49]MH_GetDate [15:26:49]Write to MH i2c: F0 00 00 AE 4E EB [15:26:49]Write i2c OK [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: F0 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: F0 09 00 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: F0 09 00 AE 4E 00 BF 6F BF 66 07 E8 5D 66 F9 [15:26:49]GetLastDocTimeStamp 1723822011 [15:26:49]current date 1723822015 [15:26:49]FM_GetShiftState [15:26:49]SAM_PROTO_GetShiftState [15:26:49]wFMCommunicate request_size=4 [15:26:49]MH_SAM_APDU [15:26:49]CAPDU: 80 13 01 00 [15:26:49]Write to MH i2c: E2 08 00 AF 4E 80 13 01 00 00 00 00 00 7A [15:26:49]Write i2c OK [15:26:49]MH_I2C_Read... [15:26:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:49]Read from MH i2c: E2 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 0E 00 [15:26:49]MH_I2C_Read... [15:26:49]Read from MH i2c: E2 0E 00 AF 4E 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 F0 [15:26:49]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:26:49]wFMCommunicate OK [15:26:49]SAM_PROTO_GetShiftState done [15:26:49]FM_GetShiftState done [15:26:49]opened in 1723766958 [15:26:49]opened+sec_in_day 1723853358 [15:26:49]quantity*price = 13000 [15:26:49]sum+1 = 13001 [15:26:49]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002328404 Вода ASU пит н.газ мята ПЭТ 0,5л 2.000 * 65.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.60 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 126 16.08.2024 15:26 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49478 ФПД: 113627713582756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T152655&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49478&fm=113627713582756&tin=02508201610067®Number=0000000000092546&sum=26000 0 [15:26:51]StoreToDocumentArchive [15:26:51]shift 464 fd 49478 [15:26:51]save to /storage/0464/doc_00049478 [15:26:51]save last doc name /storage/0464/doc_00049478 to /storage/kkm_last_doc_name [15:26:51]save OK [15:26:51]Clear old archive folders... [15:26:51]ProcessDocumentItem done err = 0, tmpTLVsize=418 [15:26:51]tlvbuf is 00F1F1E0 [15:26:51]SAM_PROTO_ClearQueue [15:26:51]wFMCommunicate request_size=4 [15:26:51]MH_SAM_APDU [15:26:51]CAPDU: 80 09 00 00 [15:26:51]Write to MH i2c: E2 08 00 BC 4E 80 09 00 00 00 00 00 00 7C [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:26:51]Read from MH i2c: E2 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 03 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 03 00 BC 4E 00 90 00 7E [15:26:51]RAPDU: 90 00 [15:26:51]wFMCommunicate OK [15:26:51]SAM_PROTO_ClearQueue done [15:26:51]KKMCreateOFDPacket [15:26:51]OFDProtocolAddRootSTLVToBuf [15:26:51]FM_MakeSignedData [15:26:51]FM_MakeSignedData [15:26:51]SAM_PROTO_SignData [15:26:51]wFMCommunicate request_size=4 [15:26:51]MH_SAM_APDU [15:26:51]CAPDU: 80 0D 01 02 [15:26:51]Write to MH i2c: E2 08 00 BD 4E 80 0D 01 02 00 00 00 00 84 [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:26:51]Read from MH i2c: E2 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 03 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 03 00 BD 4E 00 90 00 7F [15:26:51]RAPDU: 90 00 [15:26:51]wFMCommunicate OK [15:26:51]wFMCommunicate request_size=255 [15:26:51]MH_SAM_APDU [15:26:51]CAPDU: 80 0D 02 02 FA 03 00 A2 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 [15:26:51]Write to MH i2c: E2 02 01 BE 4E 80 0D 02 02 FA 00 03 00 A2 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 64 [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:51]Read from MH i2c: E2 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 03 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 03 00 BE 4E 00 90 00 80 [15:26:51]RAPDU: 90 00 [15:26:51]wFMCommunicate OK [15:26:51]wFMCommunicate request_size=177 [15:26:51]MH_SAM_APDU [15:26:51]CAPDU: 80 0D 02 02 AC 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 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 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 7E 00 00 00 F4 03 04 00 BF 6F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 46 C1 00 00 35 04 06 00 67 58 03 81 36 A4 [15:26:51]Write to MH i2c: E2 B4 00 BF 4E 80 0D 02 02 AC 00 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 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 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 7E 00 00 00 F4 03 04 00 BF 6F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 46 C1 00 00 35 04 06 00 67 58 03 81 36 A4 00 00 45 [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:26:51]Read from MH i2c: E2 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 03 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 03 00 BF 4E 00 90 00 81 [15:26:51]RAPDU: 90 00 [15:26:51]wFMCommunicate OK [15:26:51]wFMCommunicate request_size=4 [15:26:51]MH_SAM_APDU [15:26:51]CAPDU: 80 0D 03 02 [15:26:51]Write to MH i2c: E2 08 00 C0 4E 80 0D 03 02 00 00 00 00 89 [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:26:51]Read from MH i2c: E2 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 0B 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 0B 00 C0 4E 00 48 0B C5 FF E6 B4 74 E7 90 00 96 [15:26:51]RAPDU: 48 0B C5 FF E6 B4 74 E7 90 00 [15:26:51]wFMCommunicate OK [15:26:51]SAM_PROTO_SignData done [15:26:51]FM_MakeSignedData done [15:26:51]CreateOFDProtocolMessage [15:26:51]wFMCommunicate request_size=4 [15:26:51]MH_SAM_APDU [15:26:51]CAPDU: 80 11 00 00 [15:26:51]Write to MH i2c: E2 08 00 C1 4E 80 11 00 00 00 00 00 00 89 [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:51]Read from MH i2c: E2 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 17 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: E2 17 00 C1 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D4 [15:26:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:26:51]wFMCommunicate OK [15:26:51]CreateOFDProtocolMessage done [15:26:51]OFDSenderStorePacket 49478 [15:26:51]StoreOFDPacket docnum=49478 [15:26:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 B6 01 00 00 BE B5 AE 01 72 29 5A 03 01 00 03 00 A2 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 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 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 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 7E 00 00 00 F4 03 04 00 BF 6F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 46 C1 00 00 35 04 06 00 67 58 03 81 36 A4 48 0B C5 FF E6 B4 74 E7 [15:26:51]CheckFolder [15:26:51]dirname=/storage/ofd_packets [15:26:51]CheckFolder done [15:26:51]ProducePacketName [15:26:51]name=ofd_packets/00049478 [15:26:51]NVStorageSaveData ofd_packets/00049478 [15:26:51]File name is /storage/ofd_packets/00049478 [15:26:51]Write 468 bytes [15:26:51]NVStorageSaveData done [15:26:51]OFDSenderStorePacket done [15:26:51]KKMCreateOFDPacket done [15:26:51]NVStorageSaveData kkm_last_timestamp [15:26:51]File name is /storage/kkm_last_timestamp [15:26:51]Write 4 bytes [15:26:51]NVStorageSaveData done [15:26:51]ExternCall_PrintAddStr [15:26:51]wPrintStart [15:26:51]Write to MH i2c: 01 00 00 C2 4E 10 [15:26:51]Write i2c OK [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: 01 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: 01 07 00 [15:26:51]MH_I2C_Read... [15:26:51]Read from MH i2c: 01 07 00 C2 4E 00 00 00 00 00 FF 0F 25 [15:26:51]RasterBufferAndPrint [15:26:51]line Счет N : (3)189687 [15:26:51]line ИНН: 02508201610067 [15:26:51]line Контрольно-Кассовый Чек [15:26:51]line ПРОДАЖА [15:26:51]line Товар: 5449000027450 [15:26:51]line Напиток FuzeTea чай манго,ром 0,5л [15:26:51]line 2.000 * 65.00 [15:26:51]line = 130.00 [15:26:51]line НДС 12% НСП 1% [15:26:51]line > о реализуемом товаре [15:26:51]line Товар: 4870002328404 [15:26:51]line Вода ASU пит н.газ мята ПЭТ 0,5л [15:26:51]line 2.000 * 65.00 [15:26:51]line = 130.00 [15:26:51]line НДС 12% НСП 1% [15:26:51]line > о реализуемом товаре [15:26:51]line ИТОГО: 260.00 [15:26:51]line НСП 1% : 2.30 [15:26:51]line НДС 12% : 27.60 [15:26:51]line Наличными: 260.00 [15:26:51]line Безнал.: 0.00 [15:26:51]line Место: АЗС № 95 "Партнер Нефть" [15:26:51]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:26:51]line СНО: Общий режим [15:26:51]line Чек 126 16.08.2024 15:26 [15:26:51]line Смена: 464 ФФД: 1.0 [15:26:52]line ЗНМ: 0300000078 [15:26:52]line РНМ: 0000000000092546 [15:26:52]line Версия ККМ: 001 [15:26:52]line ФМ: 0000000000871800 [15:26:52]line ФД: 49478 [15:26:52]line ФПД: 113627713582756 [15:26:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T152655&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49478&fm=113627713582756&tin=02508201610067®Number=0000000000092546&sum=26000 [15:26:52]line 0 [15:26:52]OFD Sender: Processing packet 49478 [packets to send 21, broken 20] [15:26:52]ProducePacketName [15:26:52]name=ofd_packets/00049478 [15:26:52]OFD Sender: To server: pG, [15:26:52]CommunicateWithHost lk.salyk.kg:30040 [15:26:52]ConnectInit lk.salyk.kg [15:26:52]written 0, free lines is 4095 [15:26:52]Connected sock=9 [15:26:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 B6 01 00 00 BE B5 AE 01 72 29 5A 03 01 00 03 00 A2 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 34 30 34 06 04 33 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BC D1 8F D1 82 D0 B0 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 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 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 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 7E 00 00 00 F4 03 04 00 BF 6F BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 46 C1 00 00 35 04 06 00 67 58 03 81 36 A4 48 0B C5 FF E6 B4 74 E7 [15:26:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 28 2E 47 00 B5 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 38 37 31 38 30 30 10 04 04 00 46 C1 00 00 F4 03 04 00 FE 1A BF 66 B6 04 01 00 00 7B EB 01 70 C1 14 B2 C2 [15:26:52]CommunicateWithHost err = 0 [15:26:52]CheckOFDResponse [15:26:52]1017 (14) - 77093643461234 [15:26:52]1041 (16) - 0000000000871800 [15:26:52]1040 (4) - 49478 [15:26:52]1012 (4) - 16.08.2024 09:25 [15:26:52]1206 (1) - 0 [15:26:52]OFD Sender: Remove packet 49478 [15:26:52]ProducePacketName [15:26:52]name=ofd_packets/00049478 [15:26:52]NVStorageDeleteData [15:26:52]Write to MH i2c: 01 00 00 F2 4E 40 [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: 01 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: 01 07 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: 01 07 00 F2 4E 00 00 00 00 00 A3 0C F6 [15:26:52]RasterBufferAndPrint [15:26:52]line [15:26:52]line [15:26:52]line [15:26:52]line [15:26:52]line [15:26:52]written 0, free lines is 3251 [15:26:52]MH_Cut [15:26:52]Write to MH i2c: D1 01 00 F9 4E 01 19 [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: D1 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: D1 01 00 [15:26:52]MH_I2C_Read... [15:26:52]Read from MH i2c: D1 01 00 F9 4E 00 18 [15:26:52]Write to MH i2c: 01 00 00 FA 4E 48 [15:26:52]Write i2c OK [15:26:52]MH_I2C_Read... [15:26:53]OFD Sender: No OFD packet to send [15:26:53]*** Cut start [15:26:53]*** Purtial cut [15:26:53]*** CUTSNS_PIN = 0 [15:26:53]*** Stage 1: CUTSNS_PIN = 1 [15:26:55]Read from MH i2c: 01 [15:26:55]MH_I2C_Read... [15:26:55]*** Stop cut motor [15:26:55]*** Cut end [15:26:55]Read from MH i2c: 01 07 00 [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: 01 07 00 FA 4E 00 00 00 00 00 FF 0F 5D [15:26:55]process_action close_receipt done [15:26:55]requested_data is exist [15:26:55]produce_requested_data [15:26:55]requested_item fm.sn is exist - process it [15:26:55]wFMCommunicate request_size=4 [15:26:55]MH_SAM_APDU [15:26:55]CAPDU: 80 11 00 00 [15:26:55]Write to MH i2c: E2 08 00 FB 4E 80 11 00 00 00 00 00 00 C3 [15:26:55]Write i2c OK [15:26:55]MH_I2C_Read... [15:26:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:26:55]Read from MH i2c: E2 [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: E2 17 00 [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: E2 17 00 FB 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 0E [15:26:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:26:55]wFMCommunicate OK [15:26:55]requested_item fd.num is exist - process it [15:26:55]SAM_PROTO_GetFieldsCounters [15:26:55]wFMCommunicate request_size=4 [15:26:55]MH_SAM_APDU [15:26:55]CAPDU: 80 13 00 00 [15:26:55]Write to MH i2c: E2 08 00 FC 4E 80 13 00 00 00 00 00 00 C6 [15:26:55]Write i2c OK [15:26:55]MH_I2C_Read... [15:26:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:26:55]Read from MH i2c: E2 [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: E2 62 00 [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: E2 62 00 FC 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 46 C1 00 00 0E 04 04 00 D0 01 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 32 [15:26:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 46 C1 00 00 0E 04 04 00 D0 01 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 [15:26:55]wFMCommunicate OK [15:26:55]SAM_PROTO_GetFieldsCounters done [15:26:55]requested_item shift.num is exist - process it [15:26:55]requested_item shift.opened is exist - process it [15:26:55]req_shift_opened [15:26:55]FM_GetShiftState [15:26:55]SAM_PROTO_GetShiftState [15:26:55]wFMCommunicate request_size=4 [15:26:55]MH_SAM_APDU [15:26:55]CAPDU: 80 13 01 00 [15:26:55]Write to MH i2c: E2 08 00 FD 4E 80 13 01 00 00 00 00 00 C8 [15:26:55]Write i2c OK [15:26:55]MH_I2C_Read... [15:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:26:55]Read from MH i2c: E2 [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: E2 0E 00 [15:26:55]MH_I2C_Read... [15:26:55]Read from MH i2c: E2 0E 00 FD 4E 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 3E [15:26:55]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:26:55]wFMCommunicate OK [15:26:55]SAM_PROTO_GetShiftState done [15:26:55]FM_GetShiftState done [15:26:55]req_shift_opened done [15:26:55]requested_item shift.open_date is exist - process it [15:26:55]req_shift_open_date [15:26:55]req_shift_open_date done [15:26:55]produce_requested_data done [15:26:55]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49478,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [15:26:55]process_action_free close_receipt [15:26:55]json_value_free [15:26:55]json_value_free done [15:26:55]process_json_proto returns [15:26:55]Send response to host [15:26:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49478,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [15:26:55]free response buf [15:26:55]execute_script done [15:26:55]execute_script returns [15:26:55]free content buf [15:26:55]Sock 10.Close socket [15:26:55]Sock 10.Thread stoped [15:26:58]OFD Sender: No OFD packet to send [15:27:03]OFD Sender: No OFD packet to send [15:27:08]OFD Sender: No OFD packet to send [15:27:13]OFD Sender: No OFD packet to send [15:27:18]OFD Sender: No OFD packet to send [15:27:23]OFD Sender: No OFD packet to send [15:27:28]OFD Sender: No OFD packet to send [15:27:33]OFD Sender: No OFD packet to send [15:27:38]OFD Sender: No OFD packet to send [15:27:43]OFD Sender: No OFD packet to send [15:27:48]OFD Sender: No OFD packet to send [15:27:53]OFD Sender: No OFD packet to send [15:27:58]OFD Sender: No OFD packet to send [15:28:03]OFD Sender: No OFD packet to send [15:28:08]OFD Sender: No OFD packet to send [15:28:13]OFD Sender: No OFD packet to send [15:28:18]OFD Sender: No OFD packet to send [15:28:23]OFD Sender: No OFD packet to send [15:28:28]OFD Sender: No OFD packet to send [15:28:33]OFD Sender: No OFD packet to send [15:28:38]OFD Sender: No OFD packet to send [15:28:43]OFD Sender: No OFD packet to send [15:28:48]OFD Sender: No OFD packet to send [15:28:53]OFD Sender: No OFD packet to send [15:28:58]OFD Sender: No OFD packet to send [15:29:03]OFD Sender: No OFD packet to send [15:29:08]OFD Sender: No OFD packet to send [15:29:13]OFD Sender: No OFD packet to send [15:29:18]OFD Sender: No OFD packet to send [15:29:23]OFD Sender: No OFD packet to send [15:29:23]accept exits with 7 [15:29:23]New connection [15:29:23]New thread 3066973540 created [15:29:23]Thread 3066830180 joined [15:29:23]Waiting for new connection... [15:29:23] Sock 7.Parse request [15:29:23]Sock 7.Check first char [15:29:23]Sock 7.First char is OK [15:29:23]request: POST /json_proto HTTP/1.0 [15:29:23]Method: POST [15:29:23]URL: /json_proto [15:29:23]Method is POST - this is cgi request [15:29:23]url: /json_proto [15:29:23]query_string will be loaded in cgi processing [15:29:23]execute_cgi json_proto POST (null) [15:29:23]execute_cgi path=json_proto method=POST [15:29:23]POST find Content-Length [15:29:23]Host: 172.17.46.196:8080 [15:29:23]Content-Length: 828 [15:29:23]Content-Type: application/json [15:29:23] [15:29:23]POST finish read [15:29:23]Found Content-Length = 828 [15:29:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189688", "tax_sys" : 0, "items" : [ { "code": "4870216765088", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Purple Wave", "price" : 141.00, "quantity" : 1.000, "sum" : 141.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" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:23]execute_script... [15:29:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189688", "tax_sys" : 0, "items" : [ { "code": "4870216765088", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Purple Wave", "price" : 141.00, "quantity" : 1.000, "sum" : 141.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" : 141.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:23]POST & json_proto [15:29:23]process_json_proto [15:29:23]json parsed OK: [15:29:23]protocol is kg_v1.0 [15:29:23]action value=close_receipt [15:29:23]process_action close_receipt [15:29:23]cmd_close_receipt [15:29:23]MH_GetDate [15:29:23]Write to MH i2c: F0 00 00 FE 4E 3B [15:29:23]Write i2c OK [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: F0 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: F0 09 00 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: F0 09 00 FE 4E 00 59 70 BF 66 07 E8 5D 66 E4 [15:29:23]GetLastDocTimeStamp 1723822015 [15:29:23]current date 1723822169 [15:29:23]FM_GetShiftState [15:29:23]SAM_PROTO_GetShiftState [15:29:23]wFMCommunicate request_size=4 [15:29:23]MH_SAM_APDU [15:29:23]CAPDU: 80 13 01 00 [15:29:23]Write to MH i2c: E2 08 00 FF 4E 80 13 01 00 00 00 00 00 CA [15:29:23]Write i2c OK [15:29:23]MH_I2C_Read... [15:29:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:23]Read from MH i2c: E2 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: E2 0E 00 [15:29:23]MH_I2C_Read... [15:29:23]Read from MH i2c: E2 0E 00 FF 4E 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 40 [15:29:23]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:29:23]wFMCommunicate OK [15:29:23]SAM_PROTO_GetShiftState done [15:29:23]FM_GetShiftState done [15:29:23]opened in 1723766958 [15:29:23]opened+sec_in_day 1723853358 [15:29:23]quantity*price = 14100 [15:29:23]sum+1 = 14101 [15:29:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 141.00 НСП 1% : 1.25 НДС 12% : 14.97 Наличными: 0.00 Безнал.: 141.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 127 16.08.2024 15:29 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 49479 ФПД: 169972567366663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T152929&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49479&fm=169972567366663&tin=02508201610067®Number=0000000000092546&sum=14100 0 [15:29:24]StoreToDocumentArchive [15:29:24]shift 464 fd 49479 [15:29:24]save to /storage/0464/doc_00049479 [15:29:24]save last doc name /storage/0464/doc_00049479 to /storage/kkm_last_doc_name [15:29:24]save OK [15:29:24]Clear old archive folders... [15:29:24]ProcessDocumentItem done err = 0, tmpTLVsize=287 [15:29:24]tlvbuf is 00F90060 [15:29:24]SAM_PROTO_ClearQueue [15:29:24]wFMCommunicate request_size=4 [15:29:24]MH_SAM_APDU [15:29:24]CAPDU: 80 09 00 00 [15:29:24]Write to MH i2c: E2 08 00 0C 4F 80 09 00 00 00 00 00 00 CD [15:29:24]Write i2c OK [15:29:24]MH_I2C_Read... [15:29:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:24]Read from MH i2c: E2 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 03 00 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 03 00 0C 4F 00 90 00 CF [15:29:24]RAPDU: 90 00 [15:29:24]wFMCommunicate OK [15:29:24]SAM_PROTO_ClearQueue done [15:29:24]KKMCreateOFDPacket [15:29:24]OFDProtocolAddRootSTLVToBuf [15:29:24]FM_MakeSignedData [15:29:24]FM_MakeSignedData [15:29:24]SAM_PROTO_SignData [15:29:24]wFMCommunicate request_size=4 [15:29:24]MH_SAM_APDU [15:29:24]CAPDU: 80 0D 01 02 [15:29:24]Write to MH i2c: E2 08 00 0D 4F 80 0D 01 02 00 00 00 00 D5 [15:29:24]Write i2c OK [15:29:24]MH_I2C_Read... [15:29:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:24]Read from MH i2c: E2 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 03 00 [15:29:24]MH_I2C_Read... [15:29:24]Read from MH i2c: E2 03 00 0D 4F 00 90 00 D0 [15:29:24]RAPDU: 90 00 [15:29:24]wFMCommunicate OK [15:29:24]wFMCommunicate request_size=255 [15:29:24]MH_SAM_APDU [15:29:24]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 59 70 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [15:29:24]Write to MH i2c: E2 02 01 0E 4F 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 59 70 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 04 [15:29:24]Write i2c OK [15:29:24]MH_I2C_Read... [15:29:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:25]Read from MH i2c: E2 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: E2 03 00 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: E2 03 00 0E 4F 00 90 00 D1 [15:29:25]RAPDU: 90 00 [15:29:25]wFMCommunicate OK [15:29:25]wFMCommunicate request_size=46 [15:29:25]MH_SAM_APDU [15:29:25]CAPDU: 80 0D 02 02 29 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 47 C1 00 00 35 04 06 00 9A 96 D2 7F DC 07 [15:29:25]Write to MH i2c: E2 31 00 0F 4F 80 0D 02 02 29 00 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 47 C1 00 00 35 04 06 00 9A 96 D2 7F DC 07 00 00 C9 [15:29:25]Write i2c OK [15:29:25]MH_I2C_Read... [15:29:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:25]Read from MH i2c: E2 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: E2 03 00 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: E2 03 00 0F 4F 00 90 00 D2 [15:29:25]RAPDU: 90 00 [15:29:25]wFMCommunicate OK [15:29:25]wFMCommunicate request_size=4 [15:29:25]MH_SAM_APDU [15:29:25]CAPDU: 80 0D 03 02 [15:29:25]Write to MH i2c: E2 08 00 10 4F 80 0D 03 02 00 00 00 00 DA [15:29:25]Write i2c OK [15:29:25]MH_I2C_Read... [15:29:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:25]Read from MH i2c: E2 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: E2 0B 00 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: E2 0B 00 10 4F 00 4B EF 4C 13 C7 84 39 D5 90 00 CD [15:29:25]RAPDU: 4B EF 4C 13 C7 84 39 D5 90 00 [15:29:25]wFMCommunicate OK [15:29:25]SAM_PROTO_SignData done [15:29:25]FM_MakeSignedData done [15:29:25]CreateOFDProtocolMessage [15:29:25]wFMCommunicate request_size=4 [15:29:25]MH_SAM_APDU [15:29:25]CAPDU: 80 11 00 00 [15:29:25]Write to MH i2c: E2 08 00 11 4F 80 11 00 00 00 00 00 00 DA [15:29:25]Write i2c OK [15:29:25]MH_I2C_Read... [15:29:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:25]Read from MH i2c: E2 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: E2 17 00 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: E2 17 00 11 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 25 [15:29:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:29:25]wFMCommunicate OK [15:29:25]CreateOFDProtocolMessage done [15:29:25]OFDSenderStorePacket 49479 [15:29:25]StoreOFDPacket docnum=49479 [15:29:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 33 01 00 00 11 77 2B 01 8B D5 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 59 70 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 47 C1 00 00 35 04 06 00 9A 96 D2 7F DC 07 4B EF 4C 13 C7 84 39 D5 [15:29:25]CheckFolder [15:29:25]dirname=/storage/ofd_packets [15:29:25]CheckFolder done [15:29:25]ProducePacketName [15:29:25]name=ofd_packets/00049479 [15:29:25]NVStorageSaveData ofd_packets/00049479 [15:29:25]File name is /storage/ofd_packets/00049479 [15:29:25]Write 337 bytes [15:29:25]NVStorageSaveData done [15:29:25]OFDSenderStorePacket done [15:29:25]KKMCreateOFDPacket done [15:29:25]NVStorageSaveData kkm_last_timestamp [15:29:25]File name is /storage/kkm_last_timestamp [15:29:25]Write 4 bytes [15:29:25]NVStorageSaveData done [15:29:25]ExternCall_PrintAddStr [15:29:25]wPrintStart [15:29:25]Write to MH i2c: 01 00 00 12 4F 61 [15:29:25]OFD Sender: Processing packet 49479 [packets to send 21, broken 20] [15:29:25]ProducePacketName [15:29:25]name=ofd_packets/00049479 [15:29:25]OFD Sender: To server: pG, [15:29:25]CommunicateWithHost lk.salyk.kg:30040 [15:29:25]ConnectInit lk.salyk.kg [15:29:25]Write i2c OK [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: 01 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: 01 07 00 [15:29:25]MH_I2C_Read... [15:29:25]Read from MH i2c: 01 07 00 12 4F 00 00 00 00 00 FF 0F 76 [15:29:25]RasterBufferAndPrint [15:29:25]line Счет N : (3)189688 [15:29:25]line ИНН: 02508201610067 [15:29:25]line Контрольно-Кассовый Чек [15:29:25]line ПРОДАЖА [15:29:25]line Товар: 4870216765088 [15:29:25]line Нагр.Таб.Палоч. HEETS Purple Wave [15:29:25]line 1.000 * 141.00 [15:29:25]line = 141.00 [15:29:25]line НДС 12% НСП 1% [15:29:25]line > о реализуемом товаре [15:29:25]line ИТОГО: 141.00 [15:29:25]line НСП 1% : 1.25 [15:29:25]line НДС 12% : 14.97 [15:29:25]line Наличными: 0.00 [15:29:25]line Безнал.: 141.00 [15:29:25]line Место: АЗС № 95 "Партнер Нефть" [15:29:25]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:29:25]line СНО: Общий режим [15:29:25]line Чек 127 16.08.2024 15:29 [15:29:25]line Смена: 464 ФФД: 1.0 [15:29:25]line ЗНМ: 0300000078 [15:29:25]line РНМ: 0000000000092546 [15:29:25]line Версия ККМ: 001 [15:29:25]line Платежная система: Бакай Банк [15:29:25]line ФМ: 0000000000871800 [15:29:25]line ФД: 49479 [15:29:25]line ФПД: 169972567366663 [15:29:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T152929&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49479&fm=169972567366663&tin=02508201610067®Number=0000000000092546&sum=14100 [15:29:25]line 0 [15:29:25]Connected sock=10 [15:29:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 33 01 00 00 11 77 2B 01 8B D5 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 38 38 06 04 2D 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 50 75 72 70 6C 65 20 57 61 76 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 14 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 14 37 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 59 70 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 47 C1 00 00 35 04 06 00 9A 96 D2 7F DC 07 4B EF 4C 13 C7 84 39 D5 [15:29:25]written 0, free lines is 4095 [15:29:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A3 0A 47 00 44 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 38 37 31 38 30 30 10 04 04 00 47 C1 00 00 F4 03 04 00 97 1B BF 66 B6 04 01 00 00 75 46 48 70 13 75 90 E7 [15:29:25]CommunicateWithHost err = 0 [15:29:25]CheckOFDResponse [15:29:25]1017 (14) - 77093643461234 [15:29:25]1041 (16) - 0000000000871800 [15:29:25]1040 (4) - 49479 [15:29:25]1012 (4) - 16.08.2024 09:27 [15:29:25]1206 (1) - 0 [15:29:25]OFD Sender: Remove packet 49479 [15:29:25]ProducePacketName [15:29:25]name=ofd_packets/00049479 [15:29:25]NVStorageDeleteData [15:29:26]Write to MH i2c: 01 00 00 3D 4F 8C [15:29:26]Write i2c OK [15:29:26]MH_I2C_Read... [15:29:26]Read from MH i2c: 01 [15:29:26]MH_I2C_Read... [15:29:26]Read from MH i2c: 01 07 00 [15:29:26]MH_I2C_Read... [15:29:26]Read from MH i2c: 01 07 00 3D 4F 00 00 00 00 00 C8 0C 67 [15:29:26]RasterBufferAndPrint [15:29:26]line [15:29:26]line [15:29:26]line [15:29:26]line [15:29:26]line [15:29:26]written 0, free lines is 3278 [15:29:26]MH_Cut [15:29:26]Write to MH i2c: D1 01 00 44 4F 01 65 [15:29:26]Write i2c OK [15:29:26]MH_I2C_Read... [15:29:26]Read from MH i2c: D1 [15:29:26]MH_I2C_Read... [15:29:26]Read from MH i2c: D1 01 00 [15:29:26]MH_I2C_Read... [15:29:26]Read from MH i2c: D1 01 00 44 4F 00 64 [15:29:26]Write to MH i2c: 01 00 00 45 4F 94 [15:29:26]Write i2c OK [15:29:26]MH_I2C_Read... [15:29:26]OFD Sender: No OFD packet to send [15:29:26]*** Cut start [15:29:26]*** Purtial cut [15:29:26]*** Stage 1: CUTSNS_PIN = 1 [15:29:27]Read from MH i2c: 01 [15:29:27]MH_I2C_Read... [15:29:27]*** Stop cut motor [15:29:27]*** Cut end [15:29:27]Read from MH i2c: 01 07 00 [15:29:27]MH_I2C_Read... [15:29:27]Read from MH i2c: 01 07 00 45 4F 00 00 00 00 00 FF 0F A9 [15:29:27]process_action close_receipt done [15:29:27]requested_data is exist [15:29:27]produce_requested_data [15:29:27]requested_item fm.sn is exist - process it [15:29:27]wFMCommunicate request_size=4 [15:29:27]MH_SAM_APDU [15:29:27]CAPDU: 80 11 00 00 [15:29:27]Write to MH i2c: E2 08 00 46 4F 80 11 00 00 00 00 00 00 0F [15:29:27]Write i2c OK [15:29:27]MH_I2C_Read... [15:29:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:27]Read from MH i2c: E2 [15:29:27]MH_I2C_Read... [15:29:27]Read from MH i2c: E2 17 00 [15:29:27]MH_I2C_Read... [15:29:27]Read from MH i2c: E2 17 00 46 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5A [15:29:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:29:27]wFMCommunicate OK [15:29:27]requested_item fd.num is exist - process it [15:29:27]SAM_PROTO_GetFieldsCounters [15:29:27]wFMCommunicate request_size=4 [15:29:27]MH_SAM_APDU [15:29:27]CAPDU: 80 13 00 00 [15:29:27]Write to MH i2c: E2 08 00 47 4F 80 13 00 00 00 00 00 00 12 [15:29:27]Write i2c OK [15:29:27]MH_I2C_Read... [15:29:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:27]Read from MH i2c: E2 [15:29:27]MH_I2C_Read... [15:29:27]Read from MH i2c: E2 62 00 [15:29:27]MH_I2C_Read... [15:29:27]Read from MH i2c: E2 62 00 47 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 47 C1 00 00 0E 04 04 00 D0 01 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 82 [15:29:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 47 C1 00 00 0E 04 04 00 D0 01 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 [15:29:27]wFMCommunicate OK [15:29:27]SAM_PROTO_GetFieldsCounters done [15:29:27]requested_item shift.num is exist - process it [15:29:27]requested_item shift.opened is exist - process it [15:29:27]req_shift_opened [15:29:27]FM_GetShiftState [15:29:27]SAM_PROTO_GetShiftState [15:29:27]wFMCommunicate request_size=4 [15:29:27]MH_SAM_APDU [15:29:27]CAPDU: 80 13 01 00 [15:29:27]Write to MH i2c: E2 08 00 48 4F 80 13 01 00 00 00 00 00 14 [15:29:27]Write i2c OK [15:29:27]MH_I2C_Read... [15:29:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:27]Read from MH i2c: E2 [15:29:27]MH_I2C_Read... [15:29:27]Read from MH i2c: E2 0E 00 [15:29:27]MH_I2C_Read... [15:29:27]Read from MH i2c: E2 0E 00 48 4F 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 8A [15:29:27]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:29:27]wFMCommunicate OK [15:29:27]SAM_PROTO_GetShiftState done [15:29:27]FM_GetShiftState done [15:29:27]req_shift_opened done [15:29:27]requested_item shift.open_date is exist - process it [15:29:27]req_shift_open_date [15:29:27]req_shift_open_date done [15:29:27]produce_requested_data done [15:29:27]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49479,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [15:29:27]process_action_free close_receipt [15:29:27]json_value_free [15:29:27]json_value_free done [15:29:27]process_json_proto returns [15:29:27]Send response to host [15:29:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49479,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [15:29:27]free response buf [15:29:27]execute_script done [15:29:27]execute_script returns [15:29:27]free content buf [15:29:27]Sock 7.Close socket [15:29:27]Sock 7.Thread stoped [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:53]accept exits with 9 [15:29:53]New connection [15:29:53]New thread 3066830180 created [15:29:53]Thread 3066973540 joined [15:29:53]Waiting for new connection... [15:29:53] Sock 9.Parse request [15:29:53]Sock 9.Check first char [15:29:53]Sock 9.First char is OK [15:29:53]request: POST /json_proto HTTP/1.0 [15:29:53]Method: POST [15:29:53]URL: /json_proto [15:29:53]Method is POST - this is cgi request [15:29:53]url: /json_proto [15:29:53]query_string will be loaded in cgi processing [15:29:53]execute_cgi json_proto POST (null) [15:29:53]execute_cgi path=json_proto method=POST [15:29:53]POST find Content-Length [15:29:53]Host: 172.17.46.196:8080 [15:29:53]Content-Length: 674 [15:29:53]Content-Type: application/json [15:29:53] [15:29:53]POST finish read [15:29:53]Found Content-Length = 674 [15:29:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189689", "tax_sys" : 0, "items" : [ { "code": "4607010740733", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:53]execute_script... [15:29: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 : (3)189689", "tax_sys" : 0, "items" : [ { "code": "4607010740733", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:29:53]POST & json_proto [15:29:53]process_json_proto [15:29:53]json parsed OK: [15:29:53]protocol is kg_v1.0 [15:29:53]action value=close_receipt [15:29:53]process_action close_receipt [15:29:53]cmd_close_receipt [15:29:53]MH_GetDate [15:29:53]Write to MH i2c: F0 00 00 49 4F 87 [15:29:53]Write i2c OK [15:29:53]MH_I2C_Read... [15:29:53]Read from MH i2c: F0 [15:29:53]MH_I2C_Read... [15:29:53]Read from MH i2c: F0 09 00 [15:29:53]MH_I2C_Read... [15:29:53]Read from MH i2c: F0 09 00 49 4F 00 77 70 BF 66 07 E8 5D 66 4E [15:29:53]GetLastDocTimeStamp 1723822169 [15:29:53]current date 1723822199 [15:29:53]FM_GetShiftState [15:29:53]SAM_PROTO_GetShiftState [15:29:53]wFMCommunicate request_size=4 [15:29:53]MH_SAM_APDU [15:29:53]CAPDU: 80 13 01 00 [15:29:53]Write to MH i2c: E2 08 00 4A 4F 80 13 01 00 00 00 00 00 16 [15:29:53]Write i2c OK [15:29:53]MH_I2C_Read... [15:29:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:53]Read from MH i2c: E2 [15:29:53]MH_I2C_Read... [15:29:53]Read from MH i2c: E2 0E 00 [15:29:53]MH_I2C_Read... [15:29:53]Read from MH i2c: E2 0E 00 4A 4F 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 8C [15:29:53]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:29:53]wFMCommunicate OK [15:29:53]SAM_PROTO_GetShiftState done [15:29:53]FM_GetShiftState done [15:29:53]opened in 1723766958 [15:29:53]opened+sec_in_day 1723853358 [15:29:53]quantity*price = 4500 [15:29:53]sum+1 = 4501 [15:29:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 128 16.08.2024 15:29 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49480 ФПД: 101682496913293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T152959&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49480&fm=101682496913293&tin=02508201610067®Number=0000000000092546&sum=4500 0 [15:29:54]StoreToDocumentArchive [15:29:54]shift 464 fd 49480 [15:29:54]save to /storage/0464/doc_00049480 [15:29:54]save last doc name /storage/0464/doc_00049480 to /storage/kkm_last_doc_name [15:29:54]save OK [15:29:54]Clear old archive folders... [15:29:54]ProcessDocumentItem done err = 0, tmpTLVsize=285 [15:29:54]tlvbuf is B6F5A010 [15:29:54]SAM_PROTO_ClearQueue [15:29:54]wFMCommunicate request_size=4 [15:29:54]MH_SAM_APDU [15:29:54]CAPDU: 80 09 00 00 [15:29:54]Write to MH i2c: E2 08 00 57 4F 80 09 00 00 00 00 00 00 18 [15:29:54]Write i2c OK [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: E2 [15:29:54]MH_I2C_Read... [15:29:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:54]Read from MH i2c: E2 03 00 [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: E2 03 00 57 4F 00 90 00 1A [15:29:54]RAPDU: 90 00 [15:29:54]wFMCommunicate OK [15:29:54]SAM_PROTO_ClearQueue done [15:29:54]KKMCreateOFDPacket [15:29:54]OFDProtocolAddRootSTLVToBuf [15:29:54]FM_MakeSignedData [15:29:54]FM_MakeSignedData [15:29:54]SAM_PROTO_SignData [15:29:54]wFMCommunicate request_size=4 [15:29:54]MH_SAM_APDU [15:29:54]CAPDU: 80 0D 01 02 [15:29:54]Write to MH i2c: E2 08 00 58 4F 80 0D 01 02 00 00 00 00 20 [15:29:54]Write i2c OK [15:29:54]MH_I2C_Read... [15:29:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:54]Read from MH i2c: E2 [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: E2 03 00 [15:29:54]MH_I2C_Read... [15:29:54]Read from MH i2c: E2 03 00 58 4F 00 90 00 1B [15:29:54]RAPDU: 90 00 [15:29:54]wFMCommunicate OK [15:29:54]wFMCommunicate request_size=255 [15:29:54]MH_SAM_APDU [15:29:54]CAPDU: 80 0D 02 02 FA 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 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 77 70 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 [15:29:54]Write to MH i2c: E2 02 01 59 4F 80 0D 02 02 FA 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 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 77 70 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 00 00 4C [15:29:54]Write i2c OK [15:29:54]MH_I2C_Read... [15:29:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:55]Read from MH i2c: E2 [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: E2 03 00 [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: E2 03 00 59 4F 00 90 00 1C [15:29:55]RAPDU: 90 00 [15:29:55]wFMCommunicate OK [15:29:55]wFMCommunicate request_size=44 [15:29:55]MH_SAM_APDU [15:29:55]CAPDU: 80 0D 02 02 27 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 48 C1 00 00 35 04 06 00 5C 7A CD 1B BF 8D [15:29:55]Write to MH i2c: E2 2F 00 5A 4F 80 0D 02 02 27 00 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 48 C1 00 00 35 04 06 00 5C 7A CD 1B BF 8D 00 00 4E [15:29:55]Write i2c OK [15:29:55]MH_I2C_Read... [15:29:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:55]Read from MH i2c: E2 [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: E2 03 00 [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: E2 03 00 5A 4F 00 90 00 1D [15:29:55]RAPDU: 90 00 [15:29:55]wFMCommunicate OK [15:29:55]wFMCommunicate request_size=4 [15:29:55]MH_SAM_APDU [15:29:55]CAPDU: 80 0D 03 02 [15:29:55]Write to MH i2c: E2 08 00 5B 4F 80 0D 03 02 00 00 00 00 25 [15:29:55]Write i2c OK [15:29:55]MH_I2C_Read... [15:29:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:55]Read from MH i2c: E2 [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: E2 0B 00 [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: E2 0B 00 5B 4F 00 C8 6F 08 AA 6E 74 8B 86 90 00 02 [15:29:55]RAPDU: C8 6F 08 AA 6E 74 8B 86 90 00 [15:29:55]wFMCommunicate OK [15:29:55]SAM_PROTO_SignData done [15:29:55]FM_MakeSignedData done [15:29:55]CreateOFDProtocolMessage [15:29:55]wFMCommunicate request_size=4 [15:29:55]MH_SAM_APDU [15:29:55]CAPDU: 80 11 00 00 [15:29:55]Write to MH i2c: E2 08 00 5C 4F 80 11 00 00 00 00 00 00 25 [15:29:55]Write i2c OK [15:29:55]MH_I2C_Read... [15:29:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:55]Read from MH i2c: E2 [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: E2 17 00 [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: E2 17 00 5C 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 70 [15:29:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:29:55]wFMCommunicate OK [15:29:55]CreateOFDProtocolMessage done [15:29:55]OFDSenderStorePacket 49480 [15:29:55]StoreOFDPacket docnum=49480 [15:29:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 31 01 00 00 C7 DB 29 01 D2 2C 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 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 77 70 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 48 C1 00 00 35 04 06 00 5C 7A CD 1B BF 8D C8 6F 08 AA 6E 74 8B 86 [15:29:55]CheckFolder [15:29:55]dirname=/storage/ofd_packets [15:29:55]CheckFolder done [15:29:55]ProducePacketName [15:29:55]name=ofd_packets/00049480 [15:29:55]NVStorageSaveData ofd_packets/00049480 [15:29:55]File name is /storage/ofd_packets/00049480 [15:29:55]Write 335 bytes [15:29:55]NVStorageSaveData done [15:29:55]OFDSenderStorePacket done [15:29:55]KKMCreateOFDPacket done [15:29:55]NVStorageSaveData kkm_last_timestamp [15:29:55]File name is /storage/kkm_last_timestamp [15:29:55]Write 4 bytes [15:29:55]NVStorageSaveData done [15:29:55]ExternCall_PrintAddStr [15:29:55]wPrintStart [15:29:55]Write to MH i2c: 01 00 00 5D 4F AC [15:29:55]Write i2c OK [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: 01 [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: 01 07 00 [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: 01 07 00 5D 4F 00 00 00 00 00 FF 0F C1 [15:29:55]RasterBufferAndPrint [15:29:55]line Счет N : (3)189689 [15:29:55]line ИНН: 02508201610067 [15:29:55]line Контрольно-Кассовый Чек [15:29:55]line ПРОДАЖА [15:29:55]line Товар: 4607010740733 [15:29:55]line Чипсы Чипсоны шашлык 40г [15:29:55]line 1.000 * 45.00 [15:29:55]line = 45.00 [15:29:55]line НДС 12% НСП 1% [15:29:55]line > о реализуемом товаре [15:29:55]line ИТОГО: 45.00 [15:29:55]line НСП 1% : 0.40 [15:29:55]line НДС 12% : 4.78 [15:29:55]line Наличными: 45.00 [15:29:55]line Безнал.: 0.00 [15:29:55]line Место: АЗС № 95 "Партнер Нефть" [15:29:55]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:29:55]line СНО: Общий режим [15:29:55]line Чек 128 16.08.2024 15:29 [15:29:55]line Смена: 464 ФФД: 1.0 [15:29:55]line ЗНМ: 0300000078 [15:29:55]line РНМ: 0000000000092546 [15:29:55]line Версия ККМ: 001 [15:29:55]line ФМ: 0000000000871800 [15:29:55]line ФД: 49480 [15:29:55]line ФПД: 101682496913293 [15:29:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T152959&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49480&fm=101682496913293&tin=02508201610067®Number=0000000000092546&sum=4500 [15:29:55]line 0 [15:29:55]OFD Sender: Processing packet 49480 [packets to send 21, broken 20] [15:29:55]ProducePacketName [15:29:55]name=ofd_packets/00049480 [15:29:55]OFD Sender: To server: pG, [15:29:55]CommunicateWithHost lk.salyk.kg:30040 [15:29:55]ConnectInit lk.salyk.kg [15:29:55]written 0, free lines is 4095 [15:29:55]Connected sock=10 [15:29:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 31 01 00 00 C7 DB 29 01 D2 2C 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 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 77 70 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 48 C1 00 00 35 04 06 00 5C 7A CD 1B BF 8D C8 6F 08 AA 6E 74 8B 86 [15:29:55]Write to MH i2c: 01 00 00 85 4F D4 [15:29:55]Write i2c OK [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: 01 [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: 01 07 00 [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: 01 07 00 85 4F 00 00 00 00 00 EE 0C D5 [15:29:55]RasterBufferAndPrint [15:29:55]line [15:29:55]line [15:29:55]line [15:29:55]line [15:29:55]line [15:29:55]written 0, free lines is 3316 [15:29:55]MH_Cut [15:29:55]Write to MH i2c: D1 01 00 8C 4F 01 AD [15:29:55]Write i2c OK [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: D1 [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: D1 01 00 [15:29:55]MH_I2C_Read... [15:29:55]Read from MH i2c: D1 01 00 8C 4F 00 AC [15:29:55]Write to MH i2c: 01 00 00 8D 4F DC [15:29:55]Write i2c OK [15:29:55]MH_I2C_Read... [15:29:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F3 D7 47 00 58 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 38 37 31 38 30 30 10 04 04 00 48 C1 00 00 F4 03 04 00 B6 1B BF 66 B6 04 01 00 00 19 FC 56 7E AF 9D C9 9D [15:29:56]CommunicateWithHost err = 0 [15:29:56]CheckOFDResponse [15:29:56]1017 (14) - 77093643461234 [15:29:56]1041 (16) - 0000000000871800 [15:29:56]1040 (4) - 49480 [15:29:56]1012 (4) - 16.08.2024 09:28 [15:29:56]1206 (1) - 0 [15:29:56]OFD Sender: Remove packet 49480 [15:29:56]ProducePacketName [15:29:56]name=ofd_packets/00049480 [15:29:56]NVStorageDeleteData [15:29:56]OFD Sender: No OFD packet to send [15:29:56]*** Cut start [15:29:56]*** Purtial cut [15:29:56]*** CUTSNS_PIN = 0 [15:29:56]*** Stage 1: CUTSNS_PIN = 1 [15:29:58]Read from MH i2c: 01 [15:29:58]MH_I2C_Read... [15:29:58]*** Stop cut motor [15:29:58]*** Cut end [15:29:58]Read from MH i2c: 01 07 00 [15:29:58]MH_I2C_Read... [15:29:58]Read from MH i2c: 01 07 00 8D 4F 00 00 00 00 00 FF 0F F1 [15:29:58]process_action close_receipt done [15:29:58]requested_data is exist [15:29:58]produce_requested_data [15:29:58]requested_item fm.sn is exist - process it [15:29:58]wFMCommunicate request_size=4 [15:29:58]MH_SAM_APDU [15:29:58]CAPDU: 80 11 00 00 [15:29:58]Write to MH i2c: E2 08 00 8E 4F 80 11 00 00 00 00 00 00 57 [15:29:58]Write i2c OK [15:29:58]MH_I2C_Read... [15:29:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:58]Read from MH i2c: E2 [15:29:58]MH_I2C_Read... [15:29:58]Read from MH i2c: E2 17 00 [15:29:58]MH_I2C_Read... [15:29:58]Read from MH i2c: E2 17 00 8E 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A2 [15:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:29:58]wFMCommunicate OK [15:29:58]requested_item fd.num is exist - process it [15:29:58]SAM_PROTO_GetFieldsCounters [15:29:58]wFMCommunicate request_size=4 [15:29:58]MH_SAM_APDU [15:29:58]CAPDU: 80 13 00 00 [15:29:58]Write to MH i2c: E2 08 00 8F 4F 80 13 00 00 00 00 00 00 5A [15:29:58]Write i2c OK [15:29:58]MH_I2C_Read... [15:29:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:58]Read from MH i2c: E2 [15:29:58]MH_I2C_Read... [15:29:58]Read from MH i2c: E2 62 00 [15:29:58]MH_I2C_Read... [15:29:58]Read from MH i2c: E2 62 00 8F 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 48 C1 00 00 0E 04 04 00 D0 01 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 CE [15:29:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 48 C1 00 00 0E 04 04 00 D0 01 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 [15:29:58]wFMCommunicate OK [15:29:58]SAM_PROTO_GetFieldsCounters done [15:29:58]requested_item shift.num is exist - process it [15:29:58]requested_item shift.opened is exist - process it [15:29:58]req_shift_opened [15:29:58]FM_GetShiftState [15:29:58]SAM_PROTO_GetShiftState [15:29:58]wFMCommunicate request_size=4 [15:29:58]MH_SAM_APDU [15:29:58]CAPDU: 80 13 01 00 [15:29:58]Write to MH i2c: E2 08 00 90 4F 80 13 01 00 00 00 00 00 5C [15:29:58]Write i2c OK [15:29:58]MH_I2C_Read... [15:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:59]Read from MH i2c: E2 [15:29:59]MH_I2C_Read... [15:29:59]Read from MH i2c: E2 0E 00 [15:29:59]MH_I2C_Read... [15:29:59]Read from MH i2c: E2 0E 00 90 4F 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 D2 [15:29:59]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:29:59]wFMCommunicate OK [15:29:59]SAM_PROTO_GetShiftState done [15:29:59]FM_GetShiftState done [15:29:59]req_shift_opened done [15:29:59]requested_item shift.open_date is exist - process it [15:29:59]req_shift_open_date [15:29:59]req_shift_open_date done [15:29:59]produce_requested_data done [15:29:59]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49480,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [15:29:59]process_action_free close_receipt [15:29:59]json_value_free [15:29:59]json_value_free done [15:29:59]process_json_proto returns [15:29:59]Send response to host [15:29:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49480,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [15:29:59]free response buf [15:29:59]execute_script done [15:29:59]execute_script returns [15:29:59]free content buf [15:29:59]Sock 9.Close socket [15:29:59]Sock 9.Thread stoped [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:49]accept exits with 7 [15:30:49]New connection [15:30:49]New thread 3066973540 created [15:30:49]Thread 3066830180 joined [15:30:49]Waiting for new connection... [15:30:49] Sock 7.Parse request [15:30:49]Sock 7.Check first char [15:30:49]Sock 7.First char is OK [15:30:49]request: POST /json_proto HTTP/1.0 [15:30:49]Method: POST [15:30:49]URL: /json_proto [15:30:49]Method is POST - this is cgi request [15:30:49]url: /json_proto [15:30:49]query_string will be loaded in cgi processing [15:30:49]execute_cgi json_proto POST (null) [15:30:49]execute_cgi path=json_proto method=POST [15:30:49]POST find Content-Length [15:30:49]Host: 172.17.46.196:8080 [15:30:49]Content-Length: 645 [15:30:49]Content-Type: application/json [15:30:49] [15:30:49]POST finish read [15:30:49]Found Content-Length = 645 [15:30:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189690", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:49]execute_script... [15:30:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189690", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:49]POST & json_proto [15:30:49]process_json_proto [15:30:49]json parsed OK: [15:30:49]protocol is kg_v1.0 [15:30:49]action value=close_receipt [15:30:49]process_action close_receipt [15:30:49]cmd_close_receipt [15:30:49]MH_GetDate [15:30:49]Write to MH i2c: F0 00 00 91 4F CF [15:30:49]Write i2c OK [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: F0 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: F0 09 00 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: F0 09 00 91 4F 00 AF 70 BF 66 07 E8 5D 66 CE [15:30:49]GetLastDocTimeStamp 1723822199 [15:30:49]current date 1723822255 [15:30:49]FM_GetShiftState [15:30:49]SAM_PROTO_GetShiftState [15:30:49]wFMCommunicate request_size=4 [15:30:49]MH_SAM_APDU [15:30:49]CAPDU: 80 13 01 00 [15:30:49]Write to MH i2c: E2 08 00 92 4F 80 13 01 00 00 00 00 00 5E [15:30:49]Write i2c OK [15:30:49]MH_I2C_Read... [15:30:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:49]Read from MH i2c: E2 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: E2 0E 00 [15:30:49]MH_I2C_Read... [15:30:49]Read from MH i2c: E2 0E 00 92 4F 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 D4 [15:30:49]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:30:49]wFMCommunicate OK [15:30:49]SAM_PROTO_GetShiftState done [15:30:49]FM_GetShiftState done [15:30:49]opened in 1723766958 [15:30:49]opened+sec_in_day 1723853358 [15:30:49]quantity*price = 6000 [15:30:49]sum+1 = 6001 [15:30:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 129 16.08.2024 15:30 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49481 ФПД: 99619360891614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T153055&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49481&fm=99619360891614&tin=02508201610067®Number=0000000000092546&sum=6000 0 [15:30:50]StoreToDocumentArchive [15:30:50]shift 464 fd 49481 [15:30:50]save to /storage/0464/doc_00049481 [15:30:50]save last doc name /storage/0464/doc_00049481 to /storage/kkm_last_doc_name [15:30:50]save OK [15:30:50]Clear old archive folders... [15:30:50]ProcessDocumentItem done err = 0, tmpTLVsize=276 [15:30:50]tlvbuf is 00E207B0 [15:30:50]SAM_PROTO_ClearQueue [15:30:50]wFMCommunicate request_size=4 [15:30:50]MH_SAM_APDU [15:30:50]CAPDU: 80 09 00 00 [15:30:50]Write to MH i2c: E2 08 00 9F 4F 80 09 00 00 00 00 00 00 60 [15:30:50]Write i2c OK [15:30:50]MH_I2C_Read... [15:30:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:50]Read from MH i2c: E2 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: E2 03 00 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: E2 03 00 9F 4F 00 90 00 62 [15:30:50]RAPDU: 90 00 [15:30:50]wFMCommunicate OK [15:30:50]SAM_PROTO_ClearQueue done [15:30:50]KKMCreateOFDPacket [15:30:50]OFDProtocolAddRootSTLVToBuf [15:30:50]FM_MakeSignedData [15:30:50]FM_MakeSignedData [15:30:50]SAM_PROTO_SignData [15:30:50]wFMCommunicate request_size=4 [15:30:50]MH_SAM_APDU [15:30:50]CAPDU: 80 0D 01 02 [15:30:50]Write to MH i2c: E2 08 00 A0 4F 80 0D 01 02 00 00 00 00 68 [15:30:50]Write i2c OK [15:30:50]MH_I2C_Read... [15:30:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:50]Read from MH i2c: E2 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: E2 03 00 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: E2 03 00 A0 4F 00 90 00 63 [15:30:50]RAPDU: 90 00 [15:30:50]wFMCommunicate OK [15:30:50]wFMCommunicate request_size=255 [15:30:50]MH_SAM_APDU [15:30:50]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 AF 70 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 [15:30:50]Write to MH i2c: E2 02 01 A1 4F 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 AF 70 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 00 00 3A [15:30:50]Write i2c OK [15:30:50]MH_I2C_Read... [15:30:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:50]Read from MH i2c: E2 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: E2 03 00 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: E2 03 00 A1 4F 00 90 00 64 [15:30:50]RAPDU: 90 00 [15:30:50]wFMCommunicate OK [15:30:50]wFMCommunicate request_size=35 [15:30:50]MH_SAM_APDU [15:30:50]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 49 C1 00 00 35 04 06 00 5A 9A 70 9E 62 DE [15:30:50]Write to MH i2c: E2 26 00 A2 4F 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 49 C1 00 00 35 04 06 00 5A 9A 70 9E 62 DE 00 00 A2 [15:30:50]Write i2c OK [15:30:50]MH_I2C_Read... [15:30:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:51]Read from MH i2c: E2 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 03 00 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 03 00 A2 4F 00 90 00 65 [15:30:51]RAPDU: 90 00 [15:30:51]wFMCommunicate OK [15:30:51]wFMCommunicate request_size=4 [15:30:51]MH_SAM_APDU [15:30:51]CAPDU: 80 0D 03 02 [15:30:51]Write to MH i2c: E2 08 00 A3 4F 80 0D 03 02 00 00 00 00 6D [15:30:51]Write i2c OK [15:30:51]MH_I2C_Read... [15:30:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:51]Read from MH i2c: E2 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 0B 00 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 0B 00 A3 4F 00 42 A8 A7 26 53 D0 89 41 90 00 12 [15:30:51]RAPDU: 42 A8 A7 26 53 D0 89 41 90 00 [15:30:51]wFMCommunicate OK [15:30:51]SAM_PROTO_SignData done [15:30:51]FM_MakeSignedData done [15:30:51]CreateOFDProtocolMessage [15:30:51]wFMCommunicate request_size=4 [15:30:51]MH_SAM_APDU [15:30:51]CAPDU: 80 11 00 00 [15:30:51]Write to MH i2c: E2 08 00 A4 4F 80 11 00 00 00 00 00 00 6D [15:30:51]Write i2c OK [15:30:51]MH_I2C_Read... [15:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:51]Read from MH i2c: E2 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 17 00 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 17 00 A4 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 B8 [15:30:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:30:51]wFMCommunicate OK [15:30:51]CreateOFDProtocolMessage done [15:30:51]OFDSenderStorePacket 49481 [15:30:51]StoreOFDPacket docnum=49481 [15:30:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 F3 00 20 01 45 CD 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 AF 70 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 49 C1 00 00 35 04 06 00 5A 9A 70 9E 62 DE 42 A8 A7 26 53 D0 89 41 [15:30:51]CheckFolder [15:30:51]dirname=/storage/ofd_packets [15:30:51]CheckFolder done [15:30:51]ProducePacketName [15:30:51]name=ofd_packets/00049481 [15:30:51]NVStorageSaveData ofd_packets/00049481 [15:30:51]File name is /storage/ofd_packets/00049481 [15:30:51]Write 326 bytes [15:30:51]NVStorageSaveData done [15:30:51]OFDSenderStorePacket done [15:30:51]KKMCreateOFDPacket done [15:30:51]NVStorageSaveData kkm_last_timestamp [15:30:51]File name is /storage/kkm_last_timestamp [15:30:51]Write 4 bytes [15:30:51]NVStorageSaveData done [15:30:51]ExternCall_PrintAddStr [15:30:51]wPrintStart [15:30:51]Write to MH i2c: 01 00 00 A5 4F F4 [15:30:51]Write i2c OK [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: 01 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: 01 07 00 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: 01 07 00 A5 4F 00 00 00 00 00 FF 0F 09 [15:30:51]RasterBufferAndPrint [15:30:51]line Счет N : (3)189690 [15:30:51]line ИНН: 02508201610067 [15:30:51]line Контрольно-Кассовый Чек [15:30:51]line ПРОДАЖА [15:30:51]line Товар: 4700000310043 [15:30:51]line Вода Жалалабат 27 1л [15:30:51]line 1.000 * 60.00 [15:30:51]line = 60.00 [15:30:51]line НДС 12% НСП 1% [15:30:51]line > о реализуемом товаре [15:30:51]line ИТОГО: 60.00 [15:30:51]line НСП 1% : 0.53 [15:30:51]line НДС 12% : 6.37 [15:30:51]line Наличными: 60.00 [15:30:51]line Безнал.: 0.00 [15:30:51]line Место: АЗС № 95 "Партнер Нефть" [15:30:51]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:30:51]line СНО: Общий режим [15:30:51]line Чек 129 16.08.2024 15:30 [15:30:51]line Смена: 464 ФФД: 1.0 [15:30:51]line ЗНМ: 0300000078 [15:30:51]line РНМ: 0000000000092546 [15:30:51]line Версия ККМ: 001 [15:30:51]line ФМ: 0000000000871800 [15:30:51]line ФД: 49481 [15:30:51]line ФПД: 99619360891614 [15:30:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T153055&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49481&fm=99619360891614&tin=02508201610067®Number=0000000000092546&sum=6000 [15:30:51]line 0 [15:30:51]OFD Sender: Processing packet 49481 [packets to send 21, broken 20] [15:30:51]ProducePacketName [15:30:51]name=ofd_packets/00049481 [15:30:51]OFD Sender: To server: pG, [15:30:51]CommunicateWithHost lk.salyk.kg:30040 [15:30:51]ConnectInit lk.salyk.kg [15:30:51]written 0, free lines is 4095 [15:30:51]Connected sock=10 [15:30:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 F3 00 20 01 45 CD 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 AF 70 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 49 C1 00 00 35 04 06 00 5A 9A 70 9E 62 DE 42 A8 A7 26 53 D0 89 41 [15:30:51]Write to MH i2c: 01 00 00 CD 4F 1C [15:30:51]Write i2c OK [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: 01 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: 01 07 00 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: 01 07 00 CD 4F 00 00 00 00 00 FE 0C 2D [15:30:51]RasterBufferAndPrint [15:30:51]line [15:30:51]line [15:30:51]line [15:30:51]line [15:30:51]line [15:30:51]written 0, free lines is 3335 [15:30:51]MH_Cut [15:30:51]Write to MH i2c: D1 01 00 D4 4F 01 F5 [15:30:51]Write i2c OK [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: D1 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: D1 01 00 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: D1 01 00 D4 4F 00 F4 [15:30:51]Write to MH i2c: 01 00 00 D5 4F 24 [15:30:51]Write i2c OK [15:30:51]MH_I2C_Read... [15:30:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 23 3B 47 00 71 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 49 C1 00 00 F4 03 04 00 EE 1B BF 66 B6 04 01 00 00 77 59 8A E9 30 F5 E5 26 [15:30:51]CommunicateWithHost err = 0 [15:30:51]CheckOFDResponse [15:30:51]1017 (14) - 77093643461234 [15:30:51]1041 (16) - 0000000000871800 [15:30:51]1040 (4) - 49481 [15:30:51]1012 (4) - 16.08.2024 09:29 [15:30:51]1206 (1) - 0 [15:30:51]OFD Sender: Remove packet 49481 [15:30:51]ProducePacketName [15:30:51]name=ofd_packets/00049481 [15:30:51]NVStorageDeleteData [15:30:52]OFD Sender: No OFD packet to send [15:30:52]*** Cut start [15:30:52]*** Purtial cut [15:30:52]*** Stage 1: CUTSNS_PIN = 1 [15:30:52]Read from MH i2c: 01 [15:30:52]MH_I2C_Read... [15:30:52]*** Stop cut motor [15:30:52]*** Cut end [15:30:52]Read from MH i2c: 01 07 00 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: 01 07 00 D5 4F 00 00 00 00 00 FF 0F 39 [15:30:52]process_action close_receipt done [15:30:52]requested_data is exist [15:30:52]produce_requested_data [15:30:52]requested_item fm.sn is exist - process it [15:30:52]wFMCommunicate request_size=4 [15:30:52]MH_SAM_APDU [15:30:52]CAPDU: 80 11 00 00 [15:30:52]Write to MH i2c: E2 08 00 D6 4F 80 11 00 00 00 00 00 00 9F [15:30:52]Write i2c OK [15:30:52]MH_I2C_Read... [15:30:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:52]Read from MH i2c: E2 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: E2 17 00 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: E2 17 00 D6 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 EA [15:30:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:30:52]wFMCommunicate OK [15:30:52]requested_item fd.num is exist - process it [15:30:52]SAM_PROTO_GetFieldsCounters [15:30:52]wFMCommunicate request_size=4 [15:30:52]MH_SAM_APDU [15:30:52]CAPDU: 80 13 00 00 [15:30:52]Write to MH i2c: E2 08 00 D7 4F 80 13 00 00 00 00 00 00 A2 [15:30:52]Write i2c OK [15:30:52]MH_I2C_Read... [15:30:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:53]Read from MH i2c: E2 [15:30:53]MH_I2C_Read... [15:30:53]Read from MH i2c: E2 62 00 [15:30:53]MH_I2C_Read... [15:30:53]Read from MH i2c: E2 62 00 D7 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 49 C1 00 00 0E 04 04 00 D0 01 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 1A [15:30:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 49 C1 00 00 0E 04 04 00 D0 01 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 [15:30:53]wFMCommunicate OK [15:30:53]SAM_PROTO_GetFieldsCounters done [15:30:53]requested_item shift.num is exist - process it [15:30:53]requested_item shift.opened is exist - process it [15:30:53]req_shift_opened [15:30:53]FM_GetShiftState [15:30:53]SAM_PROTO_GetShiftState [15:30:53]wFMCommunicate request_size=4 [15:30:53]MH_SAM_APDU [15:30:53]CAPDU: 80 13 01 00 [15:30:53]Write to MH i2c: E2 08 00 D8 4F 80 13 01 00 00 00 00 00 A4 [15:30:53]Write i2c OK [15:30:53]MH_I2C_Read... [15:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:53]Read from MH i2c: E2 [15:30:53]MH_I2C_Read... [15:30:53]Read from MH i2c: E2 0E 00 [15:30:53]MH_I2C_Read... [15:30:53]Read from MH i2c: E2 0E 00 D8 4F 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 1A [15:30:53]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:30:53]wFMCommunicate OK [15:30:53]SAM_PROTO_GetShiftState done [15:30:53]FM_GetShiftState done [15:30:53]req_shift_opened done [15:30:53]requested_item shift.open_date is exist - process it [15:30:53]req_shift_open_date [15:30:53]req_shift_open_date done [15:30:53]produce_requested_data done [15:30:53]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49481,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [15:30:53]process_action_free close_receipt [15:30:53]json_value_free [15:30:53]json_value_free done [15:30:53]process_json_proto returns [15:30:53]Send response to host [15:30:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49481,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [15:30:53]free response buf [15:30:53]execute_script done [15:30:53]execute_script returns [15:30:53]free content buf [15:30:53]Sock 7.Close socket [15:30:53]Sock 7.Thread stoped [15:30:57]OFD Sender: No OFD packet to send [15:31:02]OFD Sender: No OFD packet to send [15:31:07]OFD Sender: No OFD packet to send [15:31:12]OFD Sender: No OFD packet to send [15:31:17]OFD Sender: No OFD packet to send [15:31:22]OFD Sender: No OFD packet to send [15:31:27]OFD Sender: No OFD packet to send [15:31:32]OFD Sender: No OFD packet to send [15:31:37]OFD Sender: No OFD packet to send [15:31:42]OFD Sender: No OFD packet to send [15:31:47]OFD Sender: No OFD packet to send [15:31:52]OFD Sender: No OFD packet to send [15:31:57]OFD Sender: No OFD packet to send [15:32:02]OFD Sender: No OFD packet to send [15:32:07]OFD Sender: No OFD packet to send [15:32:12]OFD Sender: No OFD packet to send [15:32:17]OFD Sender: No OFD packet to send [15:32:22]OFD Sender: No OFD packet to send [15:32:27]OFD Sender: No OFD packet to send [15:32:32]OFD Sender: No OFD packet to send [15:32:37]OFD Sender: No OFD packet to send [15:32:42]OFD Sender: No OFD packet to send [15:32:47]OFD Sender: No OFD packet to send [15:32:52]OFD Sender: No OFD packet to send [15:32:57]OFD Sender: No OFD packet to send [15:33:02]OFD Sender: No OFD packet to send [15:33:07]OFD Sender: No OFD packet to send [15:33:12]OFD Sender: No OFD packet to send [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:37]OFD Sender: No OFD packet to send [15:33:42]OFD Sender: No OFD packet to send [15:33:47]OFD Sender: No OFD packet to send [15:33:52]OFD Sender: No OFD packet to send [15:33:57]OFD Sender: No OFD packet to send [15:34:02]OFD Sender: No OFD packet to send [15:34:07]OFD Sender: No OFD packet to send [15:34:12]OFD Sender: No OFD packet to send [15:34:17]OFD Sender: No OFD packet to send [15:34:22]OFD Sender: No OFD packet to send [15:34:27]OFD Sender: No OFD packet to send [15:34:32]OFD Sender: No OFD packet to send [15:34:37]OFD Sender: No OFD packet to send [15:34:42]OFD Sender: No OFD packet to send [15:34:47]accept exits with 9 [15:34:47]New connection [15:34:47]New thread 3066830180 created [15:34:47]Thread 3066973540 joined [15:34:47]Waiting for new connection... [15:34:47] Sock 9.Parse request [15:34:47]Sock 9.Check first char [15:34:47]Sock 9.First char is OK [15:34:47]request: POST /json_proto HTTP/1.0 [15:34:47]Method: POST [15:34:47]URL: /json_proto [15:34:47]Method is POST - this is cgi request [15:34:47]url: /json_proto [15:34:47]query_string will be loaded in cgi processing [15:34:47]execute_cgi json_proto POST (null) [15:34:47]execute_cgi path=json_proto method=POST [15:34:47]POST find Content-Length [15:34:47]Host: 172.17.46.196:8080 [15:34:47]Content-Length: 917 [15:34:47]Content-Type: application/json [15:34:47] [15:34:47]POST finish read [15:34:47]Found Content-Length = 917 [15:34:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189691", "tax_sys" : 0, "items" : [ { "code": "4670003190037", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0437\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:47]execute_script... [15:34:47]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189691", "tax_sys" : 0, "items" : [ { "code": "4670003190037", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 SIBIRIA ANTIFREEZE \u041E\u0416-40 \u0437\u0435\u043B 1\u043B", "price" : 225.00, "quantity" : 1.000, "sum" : 225.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:47]POST & json_proto [15:34:47]process_json_proto [15:34:47]json parsed OK: [15:34:47]protocol is kg_v1.0 [15:34:47]action value=close_receipt [15:34:47]process_action close_receipt [15:34:47]cmd_close_receipt [15:34:47]MH_GetDate [15:34:47]Write to MH i2c: F0 00 00 D9 4F 17 [15:34:47]Write i2c OK [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: F0 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: F0 09 00 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: F0 09 00 D9 4F 00 9D 71 BF 66 07 E8 5D 66 05 [15:34:47]GetLastDocTimeStamp 1723822255 [15:34:47]current date 1723822493 [15:34:47]FM_GetShiftState [15:34:47]SAM_PROTO_GetShiftState [15:34:47]wFMCommunicate request_size=4 [15:34:47]MH_SAM_APDU [15:34:47]CAPDU: 80 13 01 00 [15:34:47]Write to MH i2c: E2 08 00 DA 4F 80 13 01 00 00 00 00 00 A6 [15:34:47]Write i2c OK [15:34:47]MH_I2C_Read... [15:34:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:47]Read from MH i2c: E2 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: E2 0E 00 [15:34:47]MH_I2C_Read... [15:34:47]Read from MH i2c: E2 0E 00 DA 4F 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 1C [15:34:47]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:34:47]wFMCommunicate OK [15:34:47]SAM_PROTO_GetShiftState done [15:34:47]FM_GetShiftState done [15:34:47]opened in 1723766958 [15:34:47]opened+sec_in_day 1723853358 [15:34:47]quantity*price = 22500 [15:34:47]sum+1 = 22501 [15:34:47]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 265.00 НСП 1% : 2.34 НДС 12% : 28.14 Наличными: 265.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 130 16.08.2024 15:34 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49482 ФПД: 212920133872699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T153453&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49482&fm=212920133872699&tin=02508201610067®Number=0000000000092546&sum=26500 0 [15:34:48]StoreToDocumentArchive [15:34:48]shift 464 fd 49482 [15:34:48]save to /storage/0464/doc_00049482 [15:34:48]save last doc name /storage/0464/doc_00049482 to /storage/kkm_last_doc_name [15:34:48]save OK [15:34:48]Clear old archive folders... [15:34:48]ProcessDocumentItem done err = 0, tmpTLVsize=397 [15:34:48]tlvbuf is B6F5A7A0 [15:34:48]SAM_PROTO_ClearQueue [15:34:48]wFMCommunicate request_size=4 [15:34:48]MH_SAM_APDU [15:34:48]CAPDU: 80 09 00 00 [15:34:48]Write to MH i2c: E2 08 00 E7 4F 80 09 00 00 00 00 00 00 A8 [15:34:48]Write i2c OK [15:34:48]MH_I2C_Read... [15:34:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:48]Read from MH i2c: E2 [15:34:48]MH_I2C_Read... [15:34:48]Read from MH i2c: E2 03 00 [15:34:48]MH_I2C_Read... [15:34:48]Read from MH i2c: E2 03 00 E7 4F 00 90 00 AA [15:34:48]RAPDU: 90 00 [15:34:48]wFMCommunicate OK [15:34:48]SAM_PROTO_ClearQueue done [15:34:48]KKMCreateOFDPacket [15:34:48]OFDProtocolAddRootSTLVToBuf [15:34:48]FM_MakeSignedData [15:34:48]FM_MakeSignedData [15:34:48]SAM_PROTO_SignData [15:34:48]wFMCommunicate request_size=4 [15:34:48]MH_SAM_APDU [15:34:48]CAPDU: 80 0D 01 02 [15:34:48]Write to MH i2c: E2 08 00 E8 4F 80 0D 01 02 00 00 00 00 B0 [15:34:48]Write i2c OK [15:34:48]MH_I2C_Read... [15:34:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:48]Read from MH i2c: E2 [15:34:48]MH_I2C_Read... [15:34:48]Read from MH i2c: E2 03 00 [15:34:48]MH_I2C_Read... [15:34:48]Read from MH i2c: E2 03 00 E8 4F 00 90 00 AB [15:34:48]RAPDU: 90 00 [15:34:48]wFMCommunicate OK [15:34:48]wFMCommunicate request_size=255 [15:34:48]MH_SAM_APDU [15:34:48]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 [15:34:48]Write to MH i2c: E2 02 01 E9 4F 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 37 30 30 30 33 31 39 30 30 33 37 06 04 36 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 53 49 42 49 52 49 41 20 41 4E 54 49 46 52 45 45 5A 45 20 D0 9E D0 96 2D 34 30 20 D0 B7 D0 B5 D0 BB 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E4 57 00 00 00 00 13 04 06 00 E4 57 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 00 00 CA [15:34:48]Write i2c OK [15:34:48]MH_I2C_Read... [15:34:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:49]Read from MH i2c: E2 [15:34:49]MH_I2C_Read... [15:34:49]Read from MH i2c: E2 03 00 [15:34:49]MH_I2C_Read... [15:34:49]Read from MH i2c: E2 03 00 E9 4F 00 90 00 AC [15:34:49]RAPDU: 90 00 [15:34:49]wFMCommunicate OK [15:34:49]wFMCommunicate request_size=156 [15:34:49]MH_SAM_APDU [15:34:49]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 84 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 9D 71 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 [15:38:49]ConnectInit Can't connect to host [15:38:50]OFD Sender: No OFD packet to send [15:38:55]OFD Sender: No OFD packet to send [15:39:00]OFD Sender: No OFD packet to send [15:39:05]OFD Sender: No OFD packet to send [15:39:10]OFD Sender: No OFD packet to send [15:39:13]accept exits with 7 [15:39:13]New connection [15:39:13]New thread 3066973540 created [15:39:13]Thread 3066830180 joined [15:39:13]Waiting for new connection... [15:39:13] Sock 7.Parse request [15:39:13]Sock 7.Check first char [15:39:13]Sock 7.First char is OK [15:39:13]request: POST /json_proto HTTP/1.0 [15:39:13]Method: POST [15:39:13]URL: /json_proto [15:39:13]Method is POST - this is cgi request [15:39:13]url: /json_proto [15:39:13]query_string will be loaded in cgi processing [15:39:13]execute_cgi json_proto POST (null) [15:39:13]execute_cgi path=json_proto method=POST [15:39:13]POST find Content-Length [15:39:13]Host: 172.17.46.196:8080 [15:39:13]Content-Length: 644 [15:39:13]Content-Type: application/json [15:39:13] [15:39:13]POST finish read [15:39:13]Found Content-Length = 644 [15:39:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189692", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:13]execute_script... [15:39: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 : (3)189692", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:39:13]POST & json_proto [15:39:13]process_json_proto [15:39:13]json parsed OK: [15:39:13]protocol is kg_v1.0 [15:39:13]action value=close_receipt [15:39:13]process_action close_receipt [15:39:13]cmd_close_receipt [15:39:13]MH_GetDate [15:39:13]Write to MH i2c: F0 00 00 28 50 67 [15:39:13]Write i2c OK [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: F0 [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: F0 09 00 [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: F0 09 00 28 50 00 A7 72 BF 66 07 E8 5D 66 60 [15:39:13]GetLastDocTimeStamp 1723822493 [15:39:13]current date 1723822759 [15:39:13]FM_GetShiftState [15:39:13]SAM_PROTO_GetShiftState [15:39:13]wFMCommunicate request_size=4 [15:39:13]MH_SAM_APDU [15:39:13]CAPDU: 80 13 01 00 [15:39:13]Write to MH i2c: E2 08 00 29 50 80 13 01 00 00 00 00 00 F6 [15:39:13]Write i2c OK [15:39:13]MH_I2C_Read... [15:39:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:13]Read from MH i2c: E2 [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: E2 0E 00 [15:39:13]MH_I2C_Read... [15:39:13]Read from MH i2c: E2 0E 00 29 50 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 6C [15:39:13]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:39:13]wFMCommunicate OK [15:39:13]SAM_PROTO_GetShiftState done [15:39:13]FM_GetShiftState done [15:39:13]opened in 1723766958 [15:39:13]opened+sec_in_day 1723853358 [15:39:13]quantity*price = 3500 [15:39:13]sum+1 = 3501 [15:39:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 131 16.08.2024 15:39 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49483 ФПД: 53158643154391 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T153919&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49483&fm=53158643154391&tin=02508201610067®Number=0000000000092546&sum=3500 0 [15:39:14]StoreToDocumentArchive [15:39:14]shift 464 fd 49483 [15:39:14]save to /storage/0464/doc_00049483 [15:39:14]save last doc name /storage/0464/doc_00049483 to /storage/kkm_last_doc_name [15:39:14]save OK [15:39:14]Clear old archive folders... [15:39:14]ProcessDocumentItem done err = 0, tmpTLVsize=275 [15:39:14]tlvbuf is 00EFB3D0 [15:39:14]SAM_PROTO_ClearQueue [15:39:14]wFMCommunicate request_size=4 [15:39:14]MH_SAM_APDU [15:39:14]CAPDU: 80 09 00 00 [15:39:14]Write to MH i2c: E2 08 00 36 50 80 09 00 00 00 00 00 00 F8 [15:39:14]Write i2c OK [15:39:14]MH_I2C_Read... [15:39:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:39:14]Read from MH i2c: E2 [15:39:14]MH_I2C_Read... [15:39:14]Read from MH i2c: E2 03 00 [15:39:14]MH_I2C_Read... [15:39:14]Read from MH i2c: E2 03 00 36 50 00 90 00 FA [15:39:14]RAPDU: 90 00 [15:39:14]wFMCommunicate OK [15:39:14]SAM_PROTO_ClearQueue done [15:39:14]KKMCreateOFDPacket [15:39:14]OFDProtocolAddRootSTLVToBuf [15:39:14]FM_MakeSignedData [15:39:14]FM_MakeSignedData [15:39:14]SAM_PROTO_SignData [15:39:14]wFMCommunicate request_size=4 [15:39:14]MH_SAM_APDU [15:39:14]CAPDU: 80 0D 01 02 [15:39:14]Write to MH i2c: E2 08 00 37 50 80 0D 01 02 00 00 00 00 00 [15:39:14]Write i2c OK [15:39:14]MH_I2C_Read... [15:39:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:39:14]Read from MH i2c: E2 [15:39:14]MH_I2C_Read... [15:39:14]Read from MH i2c: E2 03 00 [15:39:14]MH_I2C_Read... [15:39:14]Read from MH i2c: E2 03 00 37 50 00 90 00 FB [15:39:14]RAPDU: 90 00 [15:39:14]wFMCommunicate OK [15:39:14]wFMCommunicate request_size=255 [15:39:14]MH_SAM_APDU [15:39:14]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 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 A7 72 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [15:39:14]Write to MH i2c: E2 02 01 38 50 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 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 A7 72 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 7B [15:39:14]Write i2c OK [15:39:14]MH_I2C_Read... [15:39:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:14]Read from MH i2c: E2 [15:39:14]MH_I2C_Read... [15:39:14]Read from MH i2c: E2 03 00 [15:39:14]MH_I2C_Read... [15:39:14]Read from MH i2c: E2 03 00 38 50 00 90 00 FC [15:39:15]RAPDU: 90 00 [15:39:15]wFMCommunicate OK [15:39:15]wFMCommunicate request_size=34 [15:39:15]MH_SAM_APDU [15:39:15]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4B C1 00 00 35 04 06 00 30 58 F6 0A BD D7 [15:39:15]Write to MH i2c: E2 25 00 39 50 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4B C1 00 00 35 04 06 00 30 58 F6 0A BD D7 00 00 E4 [15:39:15]Write i2c OK [15:39:15]MH_I2C_Read... [15:39:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:39:15]Read from MH i2c: E2 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: E2 03 00 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: E2 03 00 39 50 00 90 00 FD [15:39:15]RAPDU: 90 00 [15:39:15]wFMCommunicate OK [15:39:15]wFMCommunicate request_size=4 [15:39:15]MH_SAM_APDU [15:39:15]CAPDU: 80 0D 03 02 [15:39:15]Write to MH i2c: E2 08 00 3A 50 80 0D 03 02 00 00 00 00 05 [15:39:15]Write i2c OK [15:39:15]MH_I2C_Read... [15:39:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:39:15]Read from MH i2c: E2 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: E2 0B 00 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: E2 0B 00 3A 50 00 3B FB 9C 4B 53 CC A7 C7 90 00 B0 [15:39:15]RAPDU: 3B FB 9C 4B 53 CC A7 C7 90 00 [15:39:15]wFMCommunicate OK [15:39:15]SAM_PROTO_SignData done [15:39:15]FM_MakeSignedData done [15:39:15]CreateOFDProtocolMessage [15:39:15]wFMCommunicate request_size=4 [15:39:15]MH_SAM_APDU [15:39:15]CAPDU: 80 11 00 00 [15:39:15]Write to MH i2c: E2 08 00 3B 50 80 11 00 00 00 00 00 00 05 [15:39:15]Write i2c OK [15:39:15]MH_I2C_Read... [15:39:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:15]Read from MH i2c: E2 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: E2 17 00 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: E2 17 00 3B 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 50 [15:39:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:39:15]wFMCommunicate OK [15:39:15]CreateOFDProtocolMessage done [15:39:15]OFDSenderStorePacket 49483 [15:39:15]StoreOFDPacket docnum=49483 [15:39:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 C3 C0 1F 01 F6 3F 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 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 A7 72 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4B C1 00 00 35 04 06 00 30 58 F6 0A BD D7 3B FB 9C 4B 53 CC A7 C7 [15:39:15]CheckFolder [15:39:15]dirname=/storage/ofd_packets [15:39:15]CheckFolder done [15:39:15]ProducePacketName [15:39:15]name=ofd_packets/00049483 [15:39:15]NVStorageSaveData ofd_packets/00049483 [15:39:15]File name is /storage/ofd_packets/00049483 [15:39:15]Write 325 bytes [15:39:15]NVStorageSaveData done [15:39:15]OFDSenderStorePacket done [15:39:15]KKMCreateOFDPacket done [15:39:15]NVStorageSaveData kkm_last_timestamp [15:39:15]File name is /storage/kkm_last_timestamp [15:39:15]Write 4 bytes [15:39:15]NVStorageSaveData done [15:39:15]ExternCall_PrintAddStr [15:39:15]wPrintStart [15:39:15]Write to MH i2c: 01 00 00 3C 50 8C [15:39:15]Write i2c OK [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: 01 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: 01 07 00 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: 01 07 00 3C 50 00 00 00 00 00 FF 0F A1 [15:39:15]RasterBufferAndPrint [15:39:15]line Счет N : (3)189692 [15:39:15]line ИНН: 02508201610067 [15:39:15]line Контрольно-Кассовый Чек [15:39:15]line ПРОДАЖА [15:39:15]line Товар: 4700000310326 [15:39:15]line Вода Адыгене 1л б/г [15:39:15]line 1.000 * 35.00 [15:39:15]line = 35.00 [15:39:15]line НДС 12% НСП 1% [15:39:15]line > о реализуемом товаре [15:39:15]line ИТОГО: 35.00 [15:39:15]line НСП 1% : 0.31 [15:39:15]line НДС 12% : 3.72 [15:39:15]line Наличными: 35.00 [15:39:15]line Безнал.: 0.00 [15:39:15]line Место: АЗС № 95 "Партнер Нефть" [15:39:15]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:39:15]line СНО: Общий режим [15:39:15]line Чек 131 16.08.2024 15:39 [15:39:15]line Смена: 464 ФФД: 1.0 [15:39:15]line ЗНМ: 0300000078 [15:39:15]line РНМ: 0000000000092546 [15:39:15]line Версия ККМ: 001 [15:39:15]line ФМ: 0000000000871800 [15:39:15]line ФД: 49483 [15:39:15]line ФПД: 53158643154391 [15:39:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T153919&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49483&fm=53158643154391&tin=02508201610067®Number=0000000000092546&sum=3500 [15:39:15]line 0 [15:39:15]written 0, free lines is 4095 [15:39:15]OFD Sender: Processing packet 49483 [packets to send 21, broken 20] [15:39:15]ProducePacketName [15:39:15]name=ofd_packets/00049483 [15:39:15]OFD Sender: To server: pG, [15:39:15]CommunicateWithHost lk.salyk.kg:30040 [15:39:15]ConnectInit lk.salyk.kg [15:39:15]Connected sock=10 [15:39:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 C3 C0 1F 01 F6 3F 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 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 A7 72 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4B C1 00 00 35 04 06 00 30 58 F6 0A BD D7 3B FB 9C 4B 53 CC A7 C7 [15:39:15]Write to MH i2c: 01 00 00 64 50 B4 [15:39:15]Write i2c OK [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: 01 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: 01 07 00 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: 01 07 00 64 50 00 00 00 00 00 EF 0C B6 [15:39:15]RasterBufferAndPrint [15:39:15]line [15:39:15]line [15:39:15]line [15:39:15]line [15:39:15]line [15:39:15]written 0, free lines is 3317 [15:39:15]MH_Cut [15:39:15]Write to MH i2c: D1 01 00 6B 50 01 8D [15:39:15]Write i2c OK [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: D1 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: D1 01 00 [15:39:15]MH_I2C_Read... [15:39:15]Read from MH i2c: D1 01 00 6B 50 00 8C [15:39:15]Write to MH i2c: 01 00 00 6C 50 BC [15:39:15]Write i2c OK [15:39:15]MH_I2C_Read... [15:39:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 6E F8 47 00 F0 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4B C1 00 00 F4 03 04 00 E5 1D BF 66 B6 04 01 00 00 66 FB D9 E0 15 50 2E C6 [15:39:15]CommunicateWithHost err = 0 [15:39:15]CheckOFDResponse [15:39:15]1017 (14) - 77093643461234 [15:39:15]1041 (16) - 0000000000871800 [15:39:15]1040 (4) - 49483 [15:39:15]1012 (4) - 16.08.2024 09:37 [15:39:15]1206 (1) - 0 [15:39:15]OFD Sender: Remove packet 49483 [15:39:15]ProducePacketName [15:39:15]name=ofd_packets/00049483 [15:39:15]NVStorageDeleteData [15:39:16]OFD Sender: No OFD packet to send [15:39:16]*** Cut start [15:39:16]*** Purtial cut [15:39:16]*** Stage 1: CUTSNS_PIN = 1 [15:39:16]Read from MH i2c: 01 [15:39:16]MH_I2C_Read... [15:39:16]*** Stop cut motor [15:39:16]*** Cut end [15:39:16]Read from MH i2c: 01 07 00 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: 01 07 00 6C 50 00 00 00 00 00 FF 0F D1 [15:39:16]process_action close_receipt done [15:39:16]requested_data is exist [15:39:16]produce_requested_data [15:39:16]requested_item fm.sn is exist - process it [15:39:16]wFMCommunicate request_size=4 [15:39:16]MH_SAM_APDU [15:39:16]CAPDU: 80 11 00 00 [15:39:16]Write to MH i2c: E2 08 00 6D 50 80 11 00 00 00 00 00 00 37 [15:39:16]Write i2c OK [15:39:16]MH_I2C_Read... [15:39:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:39:16]Read from MH i2c: E2 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 17 00 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 17 00 6D 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 82 [15:39:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:39:16]wFMCommunicate OK [15:39:16]requested_item fd.num is exist - process it [15:39:16]SAM_PROTO_GetFieldsCounters [15:39:16]wFMCommunicate request_size=4 [15:39:16]MH_SAM_APDU [15:39:16]CAPDU: 80 13 00 00 [15:39:16]Write to MH i2c: E2 08 00 6E 50 80 13 00 00 00 00 00 00 3A [15:39:16]Write i2c OK [15:39:16]MH_I2C_Read... [15:39:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:39:16]Read from MH i2c: E2 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 62 00 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 62 00 6E 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4B C1 00 00 0E 04 04 00 D0 01 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 BA [15:39:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4B C1 00 00 0E 04 04 00 D0 01 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 [15:39:16]wFMCommunicate OK [15:39:16]SAM_PROTO_GetFieldsCounters done [15:39:16]requested_item shift.num is exist - process it [15:39:16]requested_item shift.opened is exist - process it [15:39:16]req_shift_opened [15:39:16]FM_GetShiftState [15:39:16]SAM_PROTO_GetShiftState [15:39:16]wFMCommunicate request_size=4 [15:39:16]MH_SAM_APDU [15:39:16]CAPDU: 80 13 01 00 [15:39:16]Write to MH i2c: E2 08 00 6F 50 80 13 01 00 00 00 00 00 3C [15:39:16]Write i2c OK [15:39:16]MH_I2C_Read... [15:39:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:39:16]Read from MH i2c: E2 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 0E 00 [15:39:16]MH_I2C_Read... [15:39:16]Read from MH i2c: E2 0E 00 6F 50 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 B2 [15:39:16]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:39:16]wFMCommunicate OK [15:39:16]SAM_PROTO_GetShiftState done [15:39:16]FM_GetShiftState done [15:39:16]req_shift_opened done [15:39:16]requested_item shift.open_date is exist - process it [15:39:16]req_shift_open_date [15:39:16]req_shift_open_date done [15:39:16]produce_requested_data done [15:39:16]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49483,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [15:39:16]process_action_free close_receipt [15:39:16]json_value_free [15:39:16]json_value_free done [15:39:16]process_json_proto returns [15:39:16]Send response to host [15:39:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49483,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [15:39:16]free response buf [15:39:16]execute_script done [15:39:16]execute_script returns [15:39:16]free content buf [15:39:16]Sock 7.Close socket [15:39:16]Sock 7.Thread stoped [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: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:37]ConnectInit Can't connect to host [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:01]OFD Sender: No OFD packet to send [15:51:06]OFD Sender: No OFD packet to send [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:46]OFD Sender: No OFD packet to send [15:52:51]OFD Sender: No OFD packet to send [15:52:56]OFD Sender: No OFD packet to send [15:53:01]OFD Sender: No OFD packet to send [15:53:06]OFD Sender: No OFD packet to send [15:53: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:47]OFD Sender: No OFD packet to send [15:54:52]OFD Sender: No OFD packet to send [15:54:57]OFD Sender: No OFD packet to send [15:55:02]OFD Sender: No OFD packet to send [15:55:07]OFD Sender: No OFD packet to send [15:55:12]OFD Sender: No OFD packet to send [15:55:17]OFD Sender: No OFD packet to send [15:55:22]OFD Sender: No OFD packet to send [15:55:27]OFD Sender: No OFD packet to send [15:55:32]OFD Sender: No OFD packet to send [15:55:37]OFD Sender: No OFD packet to send [15:55:42]OFD Sender: No OFD packet to send [15:55:47]OFD Sender: No OFD packet to send [15:55:52]OFD Sender: No OFD packet to send [15:55:57]OFD Sender: No OFD packet to send [15:56:02]OFD Sender: No OFD packet to send [15:56:07]OFD Sender: No OFD packet to send [15:56:12]OFD Sender: No OFD packet to send [15:56:17]OFD Sender: No OFD packet to send [15:56:22]OFD Sender: No OFD packet to send [15:56:27]OFD Sender: No OFD packet to send [15:56:32]OFD Sender: No OFD packet to send [15:56:42]OFD Sender: No OFD packet to send [15:56:47]OFD Sender: No OFD packet to send [15:56:52]OFD Sender: No OFD packet to send [15:56:57]OFD Sender: No OFD packet to send [15:57:02]OFD Sender: No OFD packet to send [15:57:07]OFD Sender: No OFD packet to send [15:57:12]OFD Sender: No OFD packet to send [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:49]ConnectInit Can't connect to host [15:58:52]OFD Sender: No OFD packet to send [15:59:35]ConnectInit Can't connect to host [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:54]accept exits with 9 [15:59:54]New connection [15:59:54]New thread 3066830180 created [15:59:54]Thread 3066973540 joined [15:59:54]Waiting for new connection... [15:59:54] Sock 9.Parse request [15:59:54]Sock 9.Check first char [15:59:54]Sock 9.First char is OK [15:59:54]request: POST /json_proto HTTP/1.0 [15:59:54]Method: POST [15:59:54]URL: /json_proto [15:59:54]Method is POST - this is cgi request [15:59:54]url: /json_proto [15:59:54]query_string will be loaded in cgi processing [15:59:54]execute_cgi json_proto POST (null) [15:59:54]execute_cgi path=json_proto method=POST [15:59:54]POST find Content-Length [15:59:54]Host: 172.17.46.196:8080 [15:59:54]Content-Length: 1187 [15:59:54]Content-Type: application/json [15:59:54] [15:59:54]POST finish read [15:59:54]Found Content-Length = 1187 [15:59:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189693", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:54]execute_script... [15:59: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 : (3)189693", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700003010353", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u0433\u0440\u0443\u0448\u0430 \u041F\u042D\u0422 1\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 325.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:59:54]POST & json_proto [15:59:54]process_json_proto [15:59:54]json parsed OK: [15:59:54]protocol is kg_v1.0 [15:59:54]action value=close_receipt [15:59:54]process_action close_receipt [15:59:54]cmd_close_receipt [15:59:54]MH_GetDate [15:59:54]Write to MH i2c: F0 00 00 70 50 AF [15:59:54]Write i2c OK [15:59:54]MH_I2C_Read... [15:59:54]Read from MH i2c: F0 [15:59:54]MH_I2C_Read... [15:59:54]Read from MH i2c: F0 09 00 [15:59:54]MH_I2C_Read... [15:59:54]Read from MH i2c: F0 09 00 70 50 00 80 77 BF 66 07 E8 5D 66 86 [15:59:54]GetLastDocTimeStamp 1723822759 [15:59:54]current date 1723824000 [15:59:54]FM_GetShiftState [15:59:54]SAM_PROTO_GetShiftState [15:59:54]wFMCommunicate request_size=4 [15:59:54]MH_SAM_APDU [15:59:54]CAPDU: 80 13 01 00 [15:59:54]Write to MH i2c: E2 08 00 71 50 80 13 01 00 00 00 00 00 3E [15:59:54]Write i2c OK [15:59:54]MH_I2C_Read... [15:59:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:59:54]Read from MH i2c: E2 [15:59:54]MH_I2C_Read... [15:59:54]Read from MH i2c: E2 0E 00 [15:59:54]MH_I2C_Read... [15:59:54]Read from MH i2c: E2 0E 00 71 50 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 B4 [15:59:54]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [15:59:54]wFMCommunicate OK [15:59:54]SAM_PROTO_GetShiftState done [15:59:54]FM_GetShiftState done [15:59:54]opened in 1723766958 [15:59:54]opened+sec_in_day 1723853358 [15:59:54]quantity*price = 9500 [15:59:54]sum+1 = 9501 [15:59:54]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700003010353 Напиток Let`s Go! с/с груша ПЭТ 1л 1.000 * 80.00 = 80.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4640030091607 Сигареты ESSE Exchange 1.000 * 150.00 = 150.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 325.00 НСП 1% : 2.88 НДС 12% : 34.52 Наличными: 325.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 132 16.08.2024 16:00 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49484 ФПД: 215334905188278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T160001&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49484&fm=215334905188278&tin=02508201610067®Number=0000000000092546&sum=32500 0 [15:59:55]StoreToDocumentArchive [15:59:55]shift 464 fd 49484 [15:59:55]save to /storage/0464/doc_00049484 [15:59:55]save last doc name /storage/0464/doc_00049484 to /storage/kkm_last_doc_name [15:59:55]save OK [15:59:55]Clear old archive folders... [15:59:55]ProcessDocumentItem done err = 0, tmpTLVsize=519 [15:59:55]tlvbuf is 00E20880 [15:59:55]SAM_PROTO_ClearQueue [15:59:55]wFMCommunicate request_size=4 [15:59:55]MH_SAM_APDU [15:59:55]CAPDU: 80 09 00 00 [15:59:55]Write to MH i2c: E2 08 00 7E 50 80 09 00 00 00 00 00 00 40 [15:59:55]Write i2c OK [15:59:55]MH_I2C_Read... [15:59:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:59:55]Read from MH i2c: E2 [15:59:55]MH_I2C_Read... [15:59:55]Read from MH i2c: E2 03 00 [15:59:55]MH_I2C_Read... [15:59:55]Read from MH i2c: E2 03 00 7E 50 00 90 00 42 [15:59:55]RAPDU: 90 00 [15:59:55]wFMCommunicate OK [15:59:55]SAM_PROTO_ClearQueue done [15:59:55]KKMCreateOFDPacket [15:59:55]OFDProtocolAddRootSTLVToBuf [15:59:55]FM_MakeSignedData [15:59:55]FM_MakeSignedData [15:59:55]SAM_PROTO_SignData [15:59:55]wFMCommunicate request_size=4 [15:59:55]MH_SAM_APDU [15:59:55]CAPDU: 80 0D 01 02 [15:59:55]Write to MH i2c: E2 08 00 7F 50 80 0D 01 02 00 00 00 00 48 [15:59:55]Write i2c OK [15:59:55]MH_I2C_Read... [15:59:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:59:55]Read from MH i2c: E2 [15:59:55]MH_I2C_Read... [15:59:55]Read from MH i2c: E2 03 00 [15:59:55]MH_I2C_Read... [15:59:55]Read from MH i2c: E2 03 00 7F 50 00 90 00 43 [15:59:55]RAPDU: 90 00 [15:59:55]wFMCommunicate OK [15:59:55]wFMCommunicate request_size=255 [15:59:55]MH_SAM_APDU [15:59:55]CAPDU: 80 0D 02 02 FA 03 00 07 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 [15:59:56]Write to MH i2c: E2 02 01 80 50 80 0D 02 02 FA 00 03 00 07 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 00 17 [15:59:56]Write i2c OK [15:59:56]MH_I2C_Read... [15:59:56]Read from MH i2c: E2 [15:59:56]MH_I2C_Read... [15:59:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:56]Read from MH i2c: E2 03 00 [15:59:56]MH_I2C_Read... [15:59:56]Read from MH i2c: E2 03 00 80 50 00 90 00 44 [15:59:56]RAPDU: 90 00 [15:59:56]wFMCommunicate OK [15:59:56]wFMCommunicate request_size=255 [15:59:56]MH_SAM_APDU [15:59:56]CAPDU: 80 0D 02 02 FA 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 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 7C 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 84 00 00 00 F4 03 04 00 81 77 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [15:59:56]Write to MH i2c: E2 02 01 81 50 80 0D 02 02 FA 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 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 7C 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 84 00 00 00 F4 03 04 00 81 77 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 8D [15:59:56]Write i2c OK [15:59:56]MH_I2C_Read... [15:59:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:56]Read from MH i2c: E2 [15:59:56]MH_I2C_Read... [15:59:56]Read from MH i2c: E2 03 00 [15:59:56]MH_I2C_Read... [15:59:56]Read from MH i2c: E2 03 00 81 50 00 90 00 45 [15:59:56]RAPDU: 90 00 [15:59:56]wFMCommunicate OK [15:59:56]wFMCommunicate request_size=28 [15:59:56]MH_SAM_APDU [15:59:56]CAPDU: 80 0D 02 02 17 37 31 38 30 30 10 04 04 00 4C C1 00 00 35 04 06 00 C3 D8 90 88 0F B6 [15:59:56]Write to MH i2c: E2 1F 00 82 50 80 0D 02 02 17 00 37 31 38 30 30 10 04 04 00 4C C1 00 00 35 04 06 00 C3 D8 90 88 0F B6 00 00 56 [15:59:56]Write i2c OK [15:59:56]MH_I2C_Read... [15:59:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:59:56]Read from MH i2c: E2 [15:59:56]MH_I2C_Read... [15:59:56]Read from MH i2c: E2 03 00 [15:59:56]MH_I2C_Read... [15:59:56]Read from MH i2c: E2 03 00 82 50 00 90 00 46 [15:59:56]RAPDU: 90 00 [15:59:56]wFMCommunicate OK [15:59:56]wFMCommunicate request_size=4 [15:59:56]MH_SAM_APDU [15:59:56]CAPDU: 80 0D 03 02 [15:59:56]Write to MH i2c: E2 08 00 83 50 80 0D 03 02 00 00 00 00 4E [15:59:56]Write i2c OK [15:59:56]MH_I2C_Read... [15:59:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:59:57]Read from MH i2c: E2 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: E2 0B 00 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: E2 0B 00 83 50 00 4C 53 B5 2B 59 0A D0 23 90 00 24 [15:59:57]RAPDU: 4C 53 B5 2B 59 0A D0 23 90 00 [15:59:57]wFMCommunicate OK [15:59:57]SAM_PROTO_SignData done [15:59:57]FM_MakeSignedData done [15:59:57]CreateOFDProtocolMessage [15:59:57]wFMCommunicate request_size=4 [15:59:57]MH_SAM_APDU [15:59:57]CAPDU: 80 11 00 00 [15:59:57]Write to MH i2c: E2 08 00 84 50 80 11 00 00 00 00 00 00 4E [15:59:57]Write i2c OK [15:59:57]MH_I2C_Read... [15:59:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:59:57]Read from MH i2c: E2 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: E2 17 00 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: E2 17 00 84 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 99 [15:59:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [15:59:57]wFMCommunicate OK [15:59:57]CreateOFDProtocolMessage done [15:59:57]OFDSenderStorePacket 49484 [15:59:57]StoreOFDPacket docnum=49484 [15:59:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1B 02 00 00 86 2A 13 02 22 75 5A 03 01 00 03 00 07 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 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 7C 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 84 00 00 00 F4 03 04 00 81 77 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4C C1 00 00 35 04 06 00 C3 D8 90 88 0F B6 4C 53 B5 2B 59 0A D0 23 [15:59:57]CheckFolder [15:59:57]dirname=/storage/ofd_packets [15:59:57]CheckFolder done [15:59:57]ProducePacketName [15:59:57]name=ofd_packets/00049484 [15:59:57]NVStorageSaveData ofd_packets/00049484 [15:59:57]File name is /storage/ofd_packets/00049484 [15:59:57]Write 569 bytes [15:59:57]NVStorageSaveData done [15:59:57]OFDSenderStorePacket done [15:59:57]KKMCreateOFDPacket done [15:59:57]NVStorageSaveData kkm_last_timestamp [15:59:57]File name is /storage/kkm_last_timestamp [15:59:57]Write 4 bytes [15:59:57]NVStorageSaveData done [15:59:57]ExternCall_PrintAddStr [15:59:57]wPrintStart [15:59:57]Write to MH i2c: 01 00 00 85 50 D5 [15:59:57]Write i2c OK [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: 01 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: 01 07 00 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: 01 07 00 85 50 00 00 00 00 00 FF 0F EA [15:59:57]RasterBufferAndPrint [15:59:57]line Счет N : (3)189693 [15:59:57]line ИНН: 02508201610067 [15:59:57]line Контрольно-Кассовый Чек [15:59:57]line ПРОДАЖА [15:59:57]line Товар: 4700000480050 [15:59:57]line Напиток Nitro Energy эн green ж/б 0,45л [15:59:57]line 1.000 * 95.00 [15:59:57]line = 95.00 [15:59:57]line НДС 12% НСП 1% [15:59:57]line > о реализуемом товаре [15:59:57]line Товар: 4700003010353 [15:59:57]line Напиток Let`s Go! с/с груша ПЭТ 1л [15:59:57]line 1.000 * 80.00 [15:59:57]line = 80.00 [15:59:57]line НДС 12% НСП 1% [15:59:57]line > о реализуемом товаре [15:59:57]line Товар: 4640030091607 [15:59:57]line Сигареты ESSE Exchange [15:59:57]line 1.000 * 150.00 [15:59:57]line = 150.00 [15:59:57]line НДС 12% НСП 1% [15:59:57]line > о реализуемом товаре [15:59:57]line ИТОГО: 325.00 [15:59:57]line НСП 1% : 2.88 [15:59:57]line НДС 12% : 34.52 [15:59:57]line Наличными: 325.00 [15:59:57]line Безнал.: 0.00 [15:59:57]line Место: АЗС № 95 "Партнер Нефть" [15:59:57]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [15:59:57]line СНО: Общий режим [15:59:57]line Чек 132 16.08.2024 16:00 [15:59:57]line Смена: 464 ФФД: 1.0 [15:59:57]line ЗНМ: 0300000078 [15:59:57]line РНМ: 0000000000092546 [15:59:57]line Версия ККМ: 001 [15:59:57]line ФМ: 0000000000871800 [15:59:57]line ФД: 49484 [15:59:57]line ФПД: 215334905188278 [15:59:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T160001&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49484&fm=215334905188278&tin=02508201610067®Number=0000000000092546&sum=32500 [15:59:57]line 0 [15:59:57]written 0, free lines is 4095 [15:59:57]OFD Sender: Processing packet 49484 [packets to send 21, broken 20] [15:59:57]ProducePacketName [15:59:57]name=ofd_packets/00049484 [15:59:57]OFD Sender: To server: pG, [15:59:57]CommunicateWithHost lk.salyk.kg:30040 [15:59:57]ConnectInit lk.salyk.kg [15:59:57]Connected sock=10 [15:59:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1B 02 00 00 86 2A 13 02 22 75 5A 03 01 00 03 00 07 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 33 35 33 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D0 B3 D1 80 D1 83 D1 88 D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 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 7C 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 84 00 00 00 F4 03 04 00 81 77 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4C C1 00 00 35 04 06 00 C3 D8 90 88 0F B6 4C 53 B5 2B 59 0A D0 23 [15:59:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 34 02 47 00 A3 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4C C1 00 00 F4 03 04 00 BF 22 BF 66 B6 04 01 00 00 38 FF 96 5D C9 D6 35 61 [15:59:57]CommunicateWithHost err = 0 [15:59:57]CheckOFDResponse [15:59:57]1017 (14) - 77093643461234 [15:59:57]1041 (16) - 0000000000871800 [15:59:57]1040 (4) - 49484 [15:59:57]1012 (4) - 16.08.2024 09:58 [15:59:57]1206 (1) - 0 [15:59:57]OFD Sender: Remove packet 49484 [15:59:57]ProducePacketName [15:59:57]name=ofd_packets/00049484 [15:59:57]NVStorageDeleteData [15:59:57]Write to MH i2c: 01 00 00 BB 50 0B [15:59:57]Write i2c OK [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: 01 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: 01 07 00 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: 01 07 00 BB 50 00 00 00 00 00 3D 0C 5B [15:59:57]RasterBufferAndPrint [15:59:57]line [15:59:57]line [15:59:57]line [15:59:57]line [15:59:57]line [15:59:57]written 0, free lines is 3139 [15:59:57]MH_Cut [15:59:57]Write to MH i2c: D1 01 00 C2 50 01 E4 [15:59:57]Write i2c OK [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: D1 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: D1 01 00 [15:59:57]MH_I2C_Read... [15:59:57]Read from MH i2c: D1 01 00 C2 50 00 E3 [15:59:57]Write to MH i2c: 01 00 00 C3 50 13 [15:59:57]Write i2c OK [15:59:57]MH_I2C_Read... [15:59:58]OFD Sender: No OFD packet to send [15:59:58]*** Cut start [15:59:58]*** Purtial cut [15:59:58]*** CUTSNS_PIN = 0 [15:59:58]*** Stage 1: CUTSNS_PIN = 1 [16:00:00]Read from MH i2c: 01 [16:00:00]MH_I2C_Read... [16:00:00]*** Stop cut motor [16:00:00]*** Cut end [16:00:00]Read from MH i2c: 01 07 00 [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: 01 07 00 C3 50 00 00 00 00 00 FF 0F 28 [16:00:00]process_action close_receipt done [16:00:00]requested_data is exist [16:00:00]produce_requested_data [16:00:00]requested_item fm.sn is exist - process it [16:00:00]wFMCommunicate request_size=4 [16:00:00]MH_SAM_APDU [16:00:00]CAPDU: 80 11 00 00 [16:00:00]Write to MH i2c: E2 08 00 C4 50 80 11 00 00 00 00 00 00 8E [16:00:00]Write i2c OK [16:00:00]MH_I2C_Read... [16:00:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:00]Read from MH i2c: E2 [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: E2 17 00 [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: E2 17 00 C4 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D9 [16:00:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:00:00]wFMCommunicate OK [16:00:00]requested_item fd.num is exist - process it [16:00:00]SAM_PROTO_GetFieldsCounters [16:00:00]wFMCommunicate request_size=4 [16:00:00]MH_SAM_APDU [16:00:00]CAPDU: 80 13 00 00 [16:00:00]Write to MH i2c: E2 08 00 C5 50 80 13 00 00 00 00 00 00 91 [16:00:00]Write i2c OK [16:00:00]MH_I2C_Read... [16:00:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:00]Read from MH i2c: E2 [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: E2 62 00 [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: E2 62 00 C5 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4C C1 00 00 0E 04 04 00 D0 01 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 15 [16:00:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4C C1 00 00 0E 04 04 00 D0 01 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 [16:00:00]wFMCommunicate OK [16:00:00]SAM_PROTO_GetFieldsCounters done [16:00:00]requested_item shift.num is exist - process it [16:00:00]requested_item shift.opened is exist - process it [16:00:00]req_shift_opened [16:00:00]FM_GetShiftState [16:00:00]SAM_PROTO_GetShiftState [16:00:00]wFMCommunicate request_size=4 [16:00:00]MH_SAM_APDU [16:00:00]CAPDU: 80 13 01 00 [16:00:00]Write to MH i2c: E2 08 00 C6 50 80 13 01 00 00 00 00 00 93 [16:00:00]Write i2c OK [16:00:00]MH_I2C_Read... [16:00:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:00]Read from MH i2c: E2 [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: E2 0E 00 [16:00:00]MH_I2C_Read... [16:00:00]Read from MH i2c: E2 0E 00 C6 50 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 09 [16:00:00]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:00:00]wFMCommunicate OK [16:00:00]SAM_PROTO_GetShiftState done [16:00:00]FM_GetShiftState done [16:00:00]req_shift_opened done [16:00:00]requested_item shift.open_date is exist - process it [16:00:00]req_shift_open_date [16:00:00]req_shift_open_date done [16:00:00]produce_requested_data done [16:00:00]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49484,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [16:00:00]process_action_free close_receipt [16:00:00]json_value_free [16:00:00]json_value_free done [16:00:00]process_json_proto returns [16:00:00]Send response to host [16:00:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49484,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [16:00:00]free response buf [16:00:00]execute_script done [16:00:00]execute_script returns [16:00:00]free content buf [16:00:00]Sock 9.Close socket [16:00:00]Sock 9.Thread stoped [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:43]OFD Sender: No OFD packet to send [16:00:48]OFD Sender: No OFD packet to send [16:00:53]OFD Sender: No OFD packet to send [16:00:58]OFD Sender: No OFD packet to send [16:01:03]OFD Sender: No OFD packet to send [16:01:08]OFD Sender: No OFD packet to send [16:01:13]OFD Sender: No OFD packet to send [16:01:18]OFD Sender: No OFD packet to send [16:01:23]OFD Sender: No OFD packet to send [16:01:28]OFD Sender: No OFD packet to send [16:01:33]OFD Sender: No OFD packet to send [16:01:38]OFD Sender: No OFD packet to send [16:01:43]OFD Sender: No OFD packet to send [16:01:48]OFD Sender: No OFD packet to send [16:01:53]OFD Sender: No OFD packet to send [16:01:58]OFD Sender: No OFD packet to send [16:02:03]OFD Sender: No OFD packet to send [16:02:08]OFD Sender: No OFD packet to send [16:02:13]OFD Sender: No OFD packet to send [16:02:18]OFD Sender: No OFD packet to send [16:02:23]OFD Sender: No OFD packet to send [16:02:28]OFD Sender: No OFD packet to send [16:02:33]OFD Sender: No OFD packet to send [16:02:38]OFD Sender: No OFD packet to send [16:02:43]OFD Sender: No OFD packet to send [16:02:48]OFD Sender: No OFD packet to send [16:02:53]OFD Sender: No OFD packet to send [16:02:58]OFD Sender: No OFD packet to send [16:03:03]OFD Sender: No OFD packet to send [16:03:08]OFD Sender: No OFD packet to send [16:03:13]OFD Sender: No OFD packet to send [16:03:18]OFD Sender: No OFD packet to send [16:03:23]OFD Sender: No OFD packet to send [16:03:28]OFD Sender: No OFD packet to send [16:03:33]OFD Sender: No OFD packet to send [16:03:38]OFD Sender: No OFD packet to send [16:03:43]OFD Sender: No OFD packet to send [16:03:45]accept exits with 7 [16:03:45]New connection [16:03:45]New thread 3066973540 created [16:03:45]Thread 3066830180 joined [16:03:45]Waiting for new connection... [16:03:45] Sock 7.Parse request [16:03:45]Sock 7.Check first char [16:03:45]Sock 7.First char is OK [16:03:45]request: POST /json_proto HTTP/1.0 [16:03:45]Method: POST [16:03:45]URL: /json_proto [16:03:45]Method is POST - this is cgi request [16:03:45]url: /json_proto [16:03:45]query_string will be loaded in cgi processing [16:03:45]execute_cgi json_proto POST (null) [16:03:45]execute_cgi path=json_proto method=POST [16:03:45]POST find Content-Length [16:03:45]Host: 172.17.46.196:8080 [16:03:45]Content-Length: 621 [16:03:45]Content-Type: application/json [16:03:45] [16:03:45]POST finish read [16:03:45]Found Content-Length = 621 [16:03:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189695", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:45]execute_script... [16:03: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 : (3)189695", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:45]POST & json_proto [16:03:45]process_json_proto [16:03:45]json parsed OK: [16:03:45]protocol is kg_v1.0 [16:03:45]action value=close_receipt [16:03:45]process_action close_receipt [16:03:45]cmd_close_receipt [16:03:45]MH_GetDate [16:03:45]Write to MH i2c: F0 00 00 C7 50 06 [16:03:45]Write i2c OK [16:03:45]MH_I2C_Read... [16:03:45]Read from MH i2c: F0 [16:03:45]MH_I2C_Read... [16:03:45]Read from MH i2c: F0 09 00 [16:03:45]MH_I2C_Read... [16:03:45]Read from MH i2c: F0 09 00 C7 50 00 67 78 BF 66 07 E8 5D 66 C5 [16:03:45]GetLastDocTimeStamp 1723824001 [16:03:45]current date 1723824231 [16:03:45]FM_GetShiftState [16:03:45]SAM_PROTO_GetShiftState [16:03:45]wFMCommunicate request_size=4 [16:03:45]MH_SAM_APDU [16:03:45]CAPDU: 80 13 01 00 [16:03:45]Write to MH i2c: E2 08 00 C8 50 80 13 01 00 00 00 00 00 95 [16:03:45]Write i2c OK [16:03:45]MH_I2C_Read... [16:03:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:45]Read from MH i2c: E2 [16:03:45]MH_I2C_Read... [16:03:45]Read from MH i2c: E2 0E 00 [16:03:45]MH_I2C_Read... [16:03:45]Read from MH i2c: E2 0E 00 C8 50 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 0B [16:03:45]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:03:45]wFMCommunicate OK [16:03:45]SAM_PROTO_GetShiftState done [16:03:45]FM_GetShiftState done [16:03:45]opened in 1723766958 [16:03:45]opened+sec_in_day 1723853358 [16:03:45]quantity*price = 14000 [16:03:45]sum+1 = 14001 [16:03:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 133 16.08.2024 16:03 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49485 ФПД: 99337038937754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T160351&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49485&fm=99337038937754&tin=02508201610067®Number=0000000000092546&sum=14000 0 [16:03:46]StoreToDocumentArchive [16:03:46]shift 464 fd 49485 [16:03:46]save to /storage/0464/doc_00049485 [16:03:46]save last doc name /storage/0464/doc_00049485 to /storage/kkm_last_doc_name [16:03:46]save OK [16:03:46]Clear old archive folders... [16:03:46]ProcessDocumentItem done err = 0, tmpTLVsize=273 [16:03:46]tlvbuf is 00FB09B0 [16:03:46]SAM_PROTO_ClearQueue [16:03:46]wFMCommunicate request_size=4 [16:03:46]MH_SAM_APDU [16:03:46]CAPDU: 80 09 00 00 [16:03:46]Write to MH i2c: E2 08 00 D5 50 80 09 00 00 00 00 00 00 97 [16:03:46]Write i2c OK [16:03:46]MH_I2C_Read... [16:03:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:46]Read from MH i2c: E2 [16:03:46]MH_I2C_Read... [16:03:46]Read from MH i2c: E2 03 00 [16:03:46]MH_I2C_Read... [16:03:46]Read from MH i2c: E2 03 00 D5 50 00 90 00 99 [16:03:46]RAPDU: 90 00 [16:03:46]wFMCommunicate OK [16:03:46]SAM_PROTO_ClearQueue done [16:03:46]KKMCreateOFDPacket [16:03:46]OFDProtocolAddRootSTLVToBuf [16:03:46]FM_MakeSignedData [16:03:46]FM_MakeSignedData [16:03:46]SAM_PROTO_SignData [16:03:46]wFMCommunicate request_size=4 [16:03:46]MH_SAM_APDU [16:03:46]CAPDU: 80 0D 01 02 [16:03:46]Write to MH i2c: E2 08 00 D6 50 80 0D 01 02 00 00 00 00 9F [16:03:46]Write i2c OK [16:03:46]MH_I2C_Read... [16:03:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:46]Read from MH i2c: E2 [16:03:46]MH_I2C_Read... [16:03:46]Read from MH i2c: E2 03 00 [16:03:46]MH_I2C_Read... [16:03:46]Read from MH i2c: E2 03 00 D6 50 00 90 00 9A [16:03:46]RAPDU: 90 00 [16:03:46]wFMCommunicate OK [16:03:46]wFMCommunicate request_size=255 [16:03:46]MH_SAM_APDU [16:03:46]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 67 78 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 [16:03:46]Write to MH i2c: E2 02 01 D7 50 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 67 78 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 00 00 DB [16:03:46]Write i2c OK [16:03:46]MH_I2C_Read... [16:03:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:46]Read from MH i2c: E2 [16:03:46]MH_I2C_Read... [16:03:46]Read from MH i2c: E2 03 00 [16:03:46]MH_I2C_Read... [16:03:46]Read from MH i2c: E2 03 00 D7 50 00 90 00 9B [16:03:46]RAPDU: 90 00 [16:03:46]wFMCommunicate OK [16:03:46]wFMCommunicate request_size=32 [16:03:46]MH_SAM_APDU [16:03:46]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 31 38 30 30 10 04 04 00 4D C1 00 00 35 04 06 00 5A 58 B4 EB 3E 9A [16:03:46]Write to MH i2c: E2 23 00 D8 50 80 0D 02 02 1B 00 30 30 30 38 37 31 38 30 30 10 04 04 00 4D C1 00 00 35 04 06 00 5A 58 B4 EB 3E 9A 00 00 2E [16:03:46]Write i2c OK [16:03:46]MH_I2C_Read... [16:03:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:46]Read from MH i2c: E2 [16:03:46]MH_I2C_Read... [16:03:46]Read from MH i2c: E2 03 00 [16:03:46]MH_I2C_Read... [16:03:46]Read from MH i2c: E2 03 00 D8 50 00 90 00 9C [16:03:46]RAPDU: 90 00 [16:03:46]wFMCommunicate OK [16:03:46]wFMCommunicate request_size=4 [16:03:46]MH_SAM_APDU [16:03:46]CAPDU: 80 0D 03 02 [16:03:46]Write to MH i2c: E2 08 00 D9 50 80 0D 03 02 00 00 00 00 A4 [16:03:46]Write i2c OK [16:03:46]MH_I2C_Read... [16:03:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:46]Read from MH i2c: E2 [16:03:46]MH_I2C_Read... [16:03:46]Read from MH i2c: E2 0B 00 [16:03:46]MH_I2C_Read... [16:03:46]Read from MH i2c: E2 0B 00 D9 50 00 ED DA 01 0B D2 68 B1 67 90 00 CA [16:03:46]RAPDU: ED DA 01 0B D2 68 B1 67 90 00 [16:03:46]wFMCommunicate OK [16:03:46]SAM_PROTO_SignData done [16:03:46]FM_MakeSignedData done [16:03:46]CreateOFDProtocolMessage [16:03:46]wFMCommunicate request_size=4 [16:03:46]MH_SAM_APDU [16:03:46]CAPDU: 80 11 00 00 [16:03:46]Write to MH i2c: E2 08 00 DA 50 80 11 00 00 00 00 00 00 A4 [16:03:46]Write i2c OK [16:03:46]MH_I2C_Read... [16:03:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:46]Read from MH i2c: E2 [16:03:46]MH_I2C_Read... [16:03:46]Read from MH i2c: E2 17 00 [16:03:46]MH_I2C_Read... [16:03:46]Read from MH i2c: E2 17 00 DA 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 EF [16:03:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:03:46]wFMCommunicate OK [16:03:46]CreateOFDProtocolMessage done [16:03:46]OFDSenderStorePacket 49485 [16:03:46]StoreOFDPacket docnum=49485 [16:03:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 AA 9B 1D 01 3E F7 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 67 78 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4D C1 00 00 35 04 06 00 5A 58 B4 EB 3E 9A ED DA 01 0B D2 68 B1 67 [16:03:46]CheckFolder [16:03:46]dirname=/storage/ofd_packets [16:03:46]CheckFolder done [16:03:46]ProducePacketName [16:03:46]name=ofd_packets/00049485 [16:03:46]NVStorageSaveData ofd_packets/00049485 [16:03:46]File name is /storage/ofd_packets/00049485 [16:03:46]Write 323 bytes [16:03:46]NVStorageSaveData done [16:03:46]OFDSenderStorePacket done [16:03:46]KKMCreateOFDPacket done [16:03:46]NVStorageSaveData kkm_last_timestamp [16:03:46]File name is /storage/kkm_last_timestamp [16:03:46]Write 4 bytes [16:03:46]NVStorageSaveData done [16:03:46]ExternCall_PrintAddStr [16:03:46]wPrintStart [16:03:46]Write to MH i2c: 01 00 00 DB 50 2B [16:03:46]Write i2c OK [16:03:46]MH_I2C_Read... [16:03:46]Read from MH i2c: 01 [16:03:46]MH_I2C_Read... [16:03:46]Read from MH i2c: 01 07 00 [16:03:46]MH_I2C_Read... [16:03:46]Read from MH i2c: 01 07 00 DB 50 00 00 00 00 00 FF 0F 40 [16:03:46]RasterBufferAndPrint [16:03:46]line Счет N : (3)189695 [16:03:46]line ИНН: 02508201610067 [16:03:46]line Контрольно-Кассовый Чек [16:03:46]line ПРОДАЖА [16:03:46]line Товар: 48747059 [16:03:46]line Сигареты Winston Legend Blue [16:03:46]line 1.000 * 140.00 [16:03:46]line = 140.00 [16:03:46]line НДС 12% НСП 1% [16:03:46]line > о реализуемом товаре [16:03:46]line ИТОГО: 140.00 [16:03:46]line НСП 1% : 1.24 [16:03:46]line НДС 12% : 14.87 [16:03:46]line Наличными: 140.00 [16:03:46]line Безнал.: 0.00 [16:03:46]line Место: АЗС № 95 "Партнер Нефть" [16:03:46]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:03:46]line СНО: Общий режим [16:03:46]line Чек 133 16.08.2024 16:03 [16:03:46]line Смена: 464 ФФД: 1.0 [16:03:46]line ЗНМ: 0300000078 [16:03:46]line РНМ: 0000000000092546 [16:03:46]line Версия ККМ: 001 [16:03:46]line ФМ: 0000000000871800 [16:03:46]line ФД: 49485 [16:03:46]line ФПД: 99337038937754 [16:03:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T160351&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49485&fm=99337038937754&tin=02508201610067®Number=0000000000092546&sum=14000 [16:03:47]OFD Sender: Processing packet 49485 [packets to send 21, broken 20] [16:03:47]ProducePacketName [16:03:47]name=ofd_packets/00049485 [16:03:47]OFD Sender: To server: pG, [16:03:47]CommunicateWithHost lk.salyk.kg:30040 [16:03:47]ConnectInit lk.salyk.kg [16:03:47]line 0 [16:03:47]written 0, free lines is 4095 [16:03:47]Connected sock=10 [16:03:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 25 01 00 00 AA 9B 1D 01 3E F7 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 67 78 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4D C1 00 00 35 04 06 00 5A 58 B4 EB 3E 9A ED DA 01 0B D2 68 B1 67 [16:03:47]Write to MH i2c: 01 00 00 04 51 55 [16:03:47]Write i2c OK [16:03:47]MH_I2C_Read... [16:03:47]Read from MH i2c: 01 [16:03:47]MH_I2C_Read... [16:03:47]Read from MH i2c: 01 07 00 [16:03:47]MH_I2C_Read... [16:03:47]Read from MH i2c: 01 07 00 04 51 00 00 00 00 00 D7 0C 3F [16:03:47]RasterBufferAndPrint [16:03:47]line [16:03:47]line [16:03:47]line [16:03:47]line [16:03:47]line [16:03:47]written 0, free lines is 3295 [16:03:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 27 60 47 00 C9 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 38 37 31 38 30 30 10 04 04 00 4D C1 00 00 F4 03 04 00 A5 23 BF 66 B6 04 01 00 00 B3 48 8B 60 91 D8 58 28 [16:03:47]CommunicateWithHost err = 0 [16:03:47]CheckOFDResponse [16:03:47]1017 (14) - 77093643461234 [16:03:47]1041 (16) - 0000000000871800 [16:03:47]1040 (4) - 49485 [16:03:47]1012 (4) - 16.08.2024 10:02 [16:03:47]1206 (1) - 0 [16:03:47]OFD Sender: Remove packet 49485 [16:03:47]ProducePacketName [16:03:47]name=ofd_packets/00049485 [16:03:47]NVStorageDeleteData [16:03:47]MH_Cut [16:03:47]Write to MH i2c: D1 01 00 0B 51 01 2E [16:03:47]Write i2c OK [16:03:47]MH_I2C_Read... [16:03:47]Read from MH i2c: D1 [16:03:47]MH_I2C_Read... [16:03:47]Read from MH i2c: D1 01 00 [16:03:47]MH_I2C_Read... [16:03:47]Read from MH i2c: D1 01 00 0B 51 00 2D [16:03:47]Write to MH i2c: 01 00 00 0C 51 5D [16:03:47]Write i2c OK [16:03:47]MH_I2C_Read... [16:03:48]OFD Sender: No OFD packet to send [16:03:48]*** Cut start [16:03:48]*** Purtial cut [16:03:48]*** Stage 1: CUTSNS_PIN = 1 [16:03:48]Read from MH i2c: 01 [16:03:48]MH_I2C_Read... [16:03:48]*** Stop cut motor [16:03:48]*** Cut end [16:03:48]Read from MH i2c: 01 07 00 [16:03:48]MH_I2C_Read... [16:03:48]Read from MH i2c: 01 07 00 0C 51 00 00 00 00 00 FF 0F 72 [16:03:48]process_action close_receipt done [16:03:48]requested_data is exist [16:03:48]produce_requested_data [16:03:48]requested_item fm.sn is exist - process it [16:03:48]wFMCommunicate request_size=4 [16:03:48]MH_SAM_APDU [16:03:48]CAPDU: 80 11 00 00 [16:03:48]Write to MH i2c: E2 08 00 0D 51 80 11 00 00 00 00 00 00 D8 [16:03:48]Write i2c OK [16:03:48]MH_I2C_Read... [16:03:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:48]Read from MH i2c: E2 [16:03:48]MH_I2C_Read... [16:03:48]Read from MH i2c: E2 17 00 [16:03:48]MH_I2C_Read... [16:03:48]Read from MH i2c: E2 17 00 0D 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 23 [16:03:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:03:48]wFMCommunicate OK [16:03:48]requested_item fd.num is exist - process it [16:03:48]SAM_PROTO_GetFieldsCounters [16:03:48]wFMCommunicate request_size=4 [16:03:48]MH_SAM_APDU [16:03:48]CAPDU: 80 13 00 00 [16:03:48]Write to MH i2c: E2 08 00 0E 51 80 13 00 00 00 00 00 00 DB [16:03:48]Write i2c OK [16:03:48]MH_I2C_Read... [16:03:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:48]Read from MH i2c: E2 [16:03:48]MH_I2C_Read... [16:03:48]Read from MH i2c: E2 62 00 [16:03:48]MH_I2C_Read... [16:03:48]Read from MH i2c: E2 62 00 0E 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4D C1 00 00 0E 04 04 00 D0 01 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 63 [16:03:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4D C1 00 00 0E 04 04 00 D0 01 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 [16:03:48]wFMCommunicate OK [16:03:48]SAM_PROTO_GetFieldsCounters done [16:03:48]requested_item shift.num is exist - process it [16:03:48]requested_item shift.opened is exist - process it [16:03:48]req_shift_opened [16:03:48]FM_GetShiftState [16:03:48]SAM_PROTO_GetShiftState [16:03:48]wFMCommunicate request_size=4 [16:03:48]MH_SAM_APDU [16:03:48]CAPDU: 80 13 01 00 [16:03:48]Write to MH i2c: E2 08 00 0F 51 80 13 01 00 00 00 00 00 DD [16:03:48]Write i2c OK [16:03:48]MH_I2C_Read... [16:03:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:48]Read from MH i2c: E2 [16:03:48]MH_I2C_Read... [16:03:48]Read from MH i2c: E2 0E 00 [16:03:48]MH_I2C_Read... [16:03:48]Read from MH i2c: E2 0E 00 0F 51 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 53 [16:03:48]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:03:48]wFMCommunicate OK [16:03:48]SAM_PROTO_GetShiftState done [16:03:48]FM_GetShiftState done [16:03:48]req_shift_opened done [16:03:48]requested_item shift.open_date is exist - process it [16:03:48]req_shift_open_date [16:03:48]req_shift_open_date done [16:03:48]produce_requested_data done [16:03:48]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49485,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [16:03:48]process_action_free close_receipt [16:03:48]json_value_free [16:03:48]json_value_free done [16:03:48]process_json_proto returns [16:03:48]Send response to host [16:03:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49485,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [16:03:48]free response buf [16:03:48]execute_script done [16:03:48]execute_script returns [16:03:48]free content buf [16:03:48]Sock 7.Close socket [16:03:48]Sock 7.Thread stoped [16:03:50]accept exits with 9 [16:03:50]New connection [16:03:50]New thread 3066830180 created [16:03:50]Thread 3066973540 joined [16:03:50]Waiting for new connection... [16:03:50] Sock 9.Parse request [16:03:50]Sock 9.Check first char [16:03:50]Sock 9.First char is OK [16:03:50]request: POST /json_proto HTTP/1.0 [16:03:50]Method: POST [16:03:50]URL: /json_proto [16:03:50]Method is POST - this is cgi request [16:03:50]url: /json_proto [16:03:50]query_string will be loaded in cgi processing [16:03:50]execute_cgi json_proto POST (null) [16:03:50]execute_cgi path=json_proto method=POST [16:03:50]POST find Content-Length [16:03:50]Host: 172.17.46.196:8080 [16:03:50]Content-Length: 649 [16:03:50]Content-Type: application/json [16:03:50] [16:03:50]POST finish read [16:03:50]Found Content-Length = 649 [16:03:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189696", "tax_sys" : 0, "items" : [ { "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:50]execute_script... [16:03: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 : (3)189696", "tax_sys" : 0, "items" : [ { "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:03:50]POST & json_proto [16:03:50]process_json_proto [16:03:50]json parsed OK: [16:03:50]protocol is kg_v1.0 [16:03:50]action value=close_receipt [16:03:50]process_action close_receipt [16:03:50]cmd_close_receipt [16:03:50]MH_GetDate [16:03:50]Write to MH i2c: F0 00 00 10 51 50 [16:03:50]Write i2c OK [16:03:50]MH_I2C_Read... [16:03:50]Read from MH i2c: F0 [16:03:50]MH_I2C_Read... [16:03:50]Read from MH i2c: F0 09 00 [16:03:50]MH_I2C_Read... [16:03:50]Read from MH i2c: F0 09 00 10 51 00 6C 78 BF 66 07 E8 5D 66 14 [16:03:50]GetLastDocTimeStamp 1723824231 [16:03:50]current date 1723824236 [16:03:50]FM_GetShiftState [16:03:50]SAM_PROTO_GetShiftState [16:03:50]wFMCommunicate request_size=4 [16:03:50]MH_SAM_APDU [16:03:50]CAPDU: 80 13 01 00 [16:03:50]Write to MH i2c: E2 08 00 11 51 80 13 01 00 00 00 00 00 DF [16:03:50]Write i2c OK [16:03:50]MH_I2C_Read... [16:03:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:50]Read from MH i2c: E2 [16:03:50]MH_I2C_Read... [16:03:50]Read from MH i2c: E2 0E 00 [16:03:50]MH_I2C_Read... [16:03:50]Read from MH i2c: E2 0E 00 11 51 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 55 [16:03:50]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:03:50]wFMCommunicate OK [16:03:50]SAM_PROTO_GetShiftState done [16:03:50]FM_GetShiftState done [16:03:50]opened in 1723766958 [16:03:50]opened+sec_in_day 1723853358 [16:03:50]quantity*price = 8500 [16:03:50]sum+1 = 8501 [16:03:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 134 16.08.2024 16:03 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49486 ФПД: 114426129233183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T160356&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49486&fm=114426129233183&tin=02508201610067®Number=0000000000092546&sum=8500 0 [16:03:51]StoreToDocumentArchive [16:03:51]shift 464 fd 49486 [16:03:51]save to /storage/0464/doc_00049486 [16:03:51]save last doc name /storage/0464/doc_00049486 to /storage/kkm_last_doc_name [16:03:51]save OK [16:03:51]Clear old archive folders... [16:03:51]ProcessDocumentItem done err = 0, tmpTLVsize=280 [16:03:51]tlvbuf is 00F8A440 [16:03:51]SAM_PROTO_ClearQueue [16:03:51]wFMCommunicate request_size=4 [16:03:51]MH_SAM_APDU [16:03:51]CAPDU: 80 09 00 00 [16:03:51]Write to MH i2c: E2 08 00 1E 51 80 09 00 00 00 00 00 00 E1 [16:03:51]Write i2c OK [16:03:51]MH_I2C_Read... [16:03:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:03:51]Read from MH i2c: E2 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: E2 03 00 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: E2 03 00 1E 51 00 90 00 E3 [16:03:51]RAPDU: 90 00 [16:03:51]wFMCommunicate OK [16:03:51]SAM_PROTO_ClearQueue done [16:03:51]KKMCreateOFDPacket [16:03:51]OFDProtocolAddRootSTLVToBuf [16:03:51]FM_MakeSignedData [16:03:51]FM_MakeSignedData [16:03:51]SAM_PROTO_SignData [16:03:51]wFMCommunicate request_size=4 [16:03:51]MH_SAM_APDU [16:03:51]CAPDU: 80 0D 01 02 [16:03:51]Write to MH i2c: E2 08 00 1F 51 80 0D 01 02 00 00 00 00 E9 [16:03:51]Write i2c OK [16:03:51]MH_I2C_Read... [16:03:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:03:51]Read from MH i2c: E2 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: E2 03 00 [16:03:51]MH_I2C_Read... [16:03:51]Read from MH i2c: E2 03 00 1F 51 00 90 00 E4 [16:03:51]RAPDU: 90 00 [16:03:51]wFMCommunicate OK [16:03:51]wFMCommunicate request_size=255 [16:03:51]MH_SAM_APDU [16:03:51]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 6C 78 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 [16:03:51]Write to MH i2c: E2 02 01 20 51 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 6C 78 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 00 5D [16:03:52]Write i2c OK [16:03:52]MH_I2C_Read... [16:03:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:52]Read from MH i2c: E2 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: E2 03 00 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: E2 03 00 20 51 00 90 00 E5 [16:03:52]RAPDU: 90 00 [16:03:52]wFMCommunicate OK [16:03:52]wFMCommunicate request_size=39 [16:03:52]MH_SAM_APDU [16:03:52]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4E C1 00 00 35 04 06 00 68 11 E8 C9 35 1F [16:03:52]Write to MH i2c: E2 2A 00 21 51 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4E C1 00 00 35 04 06 00 68 11 E8 C9 35 1F 00 00 2C [16:03:52]Write i2c OK [16:03:52]MH_I2C_Read... [16:03:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:03:52]Read from MH i2c: E2 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: E2 03 00 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: E2 03 00 21 51 00 90 00 E6 [16:03:52]RAPDU: 90 00 [16:03:52]wFMCommunicate OK [16:03:52]wFMCommunicate request_size=4 [16:03:52]MH_SAM_APDU [16:03:52]CAPDU: 80 0D 03 02 [16:03:52]Write to MH i2c: E2 08 00 22 51 80 0D 03 02 00 00 00 00 EE [16:03:52]Write i2c OK [16:03:52]MH_I2C_Read... [16:03:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:03:52]Read from MH i2c: E2 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: E2 0B 00 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: E2 0B 00 22 51 00 CF BC B6 55 FC F3 21 27 90 00 BC [16:03:52]RAPDU: CF BC B6 55 FC F3 21 27 90 00 [16:03:52]wFMCommunicate OK [16:03:52]SAM_PROTO_SignData done [16:03:52]FM_MakeSignedData done [16:03:52]CreateOFDProtocolMessage [16:03:52]wFMCommunicate request_size=4 [16:03:52]MH_SAM_APDU [16:03:52]CAPDU: 80 11 00 00 [16:03:52]Write to MH i2c: E2 08 00 23 51 80 11 00 00 00 00 00 00 EE [16:03:52]Write i2c OK [16:03:52]MH_I2C_Read... [16:03:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:52]Read from MH i2c: E2 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: E2 17 00 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: E2 17 00 23 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 39 [16:03:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:03:52]wFMCommunicate OK [16:03:52]CreateOFDProtocolMessage done [16:03:52]OFDSenderStorePacket 49486 [16:03:52]StoreOFDPacket docnum=49486 [16:03:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 5B 84 24 01 AC 50 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 6C 78 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4E C1 00 00 35 04 06 00 68 11 E8 C9 35 1F CF BC B6 55 FC F3 21 27 [16:03:52]CheckFolder [16:03:52]dirname=/storage/ofd_packets [16:03:52]CheckFolder done [16:03:52]ProducePacketName [16:03:52]name=ofd_packets/00049486 [16:03:52]NVStorageSaveData ofd_packets/00049486 [16:03:52]File name is /storage/ofd_packets/00049486 [16:03:52]Write 330 bytes [16:03:52]NVStorageSaveData done [16:03:52]OFDSenderStorePacket done [16:03:52]KKMCreateOFDPacket done [16:03:52]NVStorageSaveData kkm_last_timestamp [16:03:52]File name is /storage/kkm_last_timestamp [16:03:52]Write 4 bytes [16:03:52]NVStorageSaveData done [16:03:52]ExternCall_PrintAddStr [16:03:52]wPrintStart [16:03:52]Write to MH i2c: 01 00 00 24 51 75 [16:03:52]Write i2c OK [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: 01 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: 01 07 00 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: 01 07 00 24 51 00 00 00 00 00 FF 0F 8A [16:03:52]RasterBufferAndPrint [16:03:52]line Счет N : (3)189696 [16:03:52]line ИНН: 02508201610067 [16:03:52]line Контрольно-Кассовый Чек [16:03:52]line ПРОДАЖА [16:03:52]line Товар: 4870227273831 [16:03:52]line Лимонад Sunbel Мохито 1л [16:03:52]line 1.000 * 85.00 [16:03:52]line = 85.00 [16:03:52]line НДС 12% НСП 1% [16:03:52]line > о реализуемом товаре [16:03:52]line ИТОГО: 85.00 [16:03:52]line НСП 1% : 0.75 [16:03:52]line НДС 12% : 9.03 [16:03:52]line Наличными: 85.00 [16:03:52]line Безнал.: 0.00 [16:03:52]line Место: АЗС № 95 "Партнер Нефть" [16:03:52]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:03:52]line СНО: Общий режим [16:03:52]line Чек 134 16.08.2024 16:03 [16:03:52]line Смена: 464 ФФД: 1.0 [16:03:52]line ЗНМ: 0300000078 [16:03:52]line РНМ: 0000000000092546 [16:03:52]line Версия ККМ: 001 [16:03:52]line ФМ: 0000000000871800 [16:03:52]line ФД: 49486 [16:03:52]line ФПД: 114426129233183 [16:03:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T160356&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49486&fm=114426129233183&tin=02508201610067®Number=0000000000092546&sum=8500 [16:03:52]line 0 [16:03:52]written 0, free lines is 4095 [16:03:52]OFD Sender: Processing packet 49486 [packets to send 21, broken 20] [16:03:52]ProducePacketName [16:03:52]name=ofd_packets/00049486 [16:03:52]OFD Sender: To server: pG, [16:03:52]CommunicateWithHost lk.salyk.kg:30040 [16:03:52]ConnectInit lk.salyk.kg [16:03:52]Connected sock=10 [16:03:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 5B 84 24 01 AC 50 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 6C 78 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4E C1 00 00 35 04 06 00 68 11 E8 C9 35 1F CF BC B6 55 FC F3 21 27 [16:03:52]Write to MH i2c: 01 00 00 4C 51 9D [16:03:52]Write i2c OK [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: 01 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: 01 07 00 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: 01 07 00 4C 51 00 00 00 00 00 FA 0C AA [16:03:52]RasterBufferAndPrint [16:03:52]line [16:03:52]line [16:03:52]line [16:03:52]line [16:03:52]line [16:03:52]written 0, free lines is 3339 [16:03:52]MH_Cut [16:03:52]Write to MH i2c: D1 01 00 53 51 01 76 [16:03:52]Write i2c OK [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: D1 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: D1 01 00 [16:03:52]MH_I2C_Read... [16:03:52]Read from MH i2c: D1 01 00 53 51 00 75 [16:03:52]Write to MH i2c: 01 00 00 54 51 A5 [16:03:52]Write i2c OK [16:03:52]MH_I2C_Read... [16:03:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 56 84 47 00 32 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 38 37 31 38 30 30 10 04 04 00 4E C1 00 00 F4 03 04 00 AB 23 BF 66 B6 04 01 00 00 9B 9E 3A 04 43 E2 49 12 [16:03:53]CommunicateWithHost err = 0 [16:03:53]CheckOFDResponse [16:03:53]1017 (14) - 77093643461234 [16:03:53]1041 (16) - 0000000000871800 [16:03:53]1040 (4) - 49486 [16:03:53]1012 (4) - 16.08.2024 10:02 [16:03:53]1206 (1) - 0 [16:03:53]OFD Sender: Remove packet 49486 [16:03:53]ProducePacketName [16:03:53]name=ofd_packets/00049486 [16:03:53]NVStorageDeleteData [16:03:53]OFD Sender: No OFD packet to send [16:03:53]*** Cut start [16:03:53]*** Purtial cut [16:03:53]*** CUTSNS_PIN = 0 [16:03:53]*** Stage 1: CUTSNS_PIN = 1 [16:03:55]Read from MH i2c: 01 [16:03:55]MH_I2C_Read... [16:03:55]*** Stop cut motor [16:03:55]*** Cut end [16:03:55]Read from MH i2c: 01 07 00 [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: 01 07 00 54 51 00 00 00 00 00 FF 0F BA [16:03:55]process_action close_receipt done [16:03:55]requested_data is exist [16:03:55]produce_requested_data [16:03:55]requested_item fm.sn is exist - process it [16:03:55]wFMCommunicate request_size=4 [16:03:55]MH_SAM_APDU [16:03:55]CAPDU: 80 11 00 00 [16:03:55]Write to MH i2c: E2 08 00 55 51 80 11 00 00 00 00 00 00 20 [16:03:55]Write i2c OK [16:03:55]MH_I2C_Read... [16:03:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:03:55]Read from MH i2c: E2 [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: E2 17 00 [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: E2 17 00 55 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6B [16:03:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:03:55]wFMCommunicate OK [16:03:55]requested_item fd.num is exist - process it [16:03:55]SAM_PROTO_GetFieldsCounters [16:03:55]wFMCommunicate request_size=4 [16:03:55]MH_SAM_APDU [16:03:55]CAPDU: 80 13 00 00 [16:03:55]Write to MH i2c: E2 08 00 56 51 80 13 00 00 00 00 00 00 23 [16:03:55]Write i2c OK [16:03:55]MH_I2C_Read... [16:03:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:03:55]Read from MH i2c: E2 [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: E2 62 00 [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: E2 62 00 56 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4E C1 00 00 0E 04 04 00 D0 01 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 AF [16:03:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4E C1 00 00 0E 04 04 00 D0 01 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 [16:03:55]wFMCommunicate OK [16:03:55]SAM_PROTO_GetFieldsCounters done [16:03:55]requested_item shift.num is exist - process it [16:03:55]requested_item shift.opened is exist - process it [16:03:55]req_shift_opened [16:03:55]FM_GetShiftState [16:03:55]SAM_PROTO_GetShiftState [16:03:55]wFMCommunicate request_size=4 [16:03:55]MH_SAM_APDU [16:03:55]CAPDU: 80 13 01 00 [16:03:55]Write to MH i2c: E2 08 00 57 51 80 13 01 00 00 00 00 00 25 [16:03:55]Write i2c OK [16:03:55]MH_I2C_Read... [16:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:03:55]Read from MH i2c: E2 [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: E2 0E 00 [16:03:55]MH_I2C_Read... [16:03:55]Read from MH i2c: E2 0E 00 57 51 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 9B [16:03:55]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:03:55]wFMCommunicate OK [16:03:55]SAM_PROTO_GetShiftState done [16:03:55]FM_GetShiftState done [16:03:55]req_shift_opened done [16:03:55]requested_item shift.open_date is exist - process it [16:03:55]req_shift_open_date [16:03:55]req_shift_open_date done [16:03:55]produce_requested_data done [16:03:55]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49486,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [16:03:55]process_action_free close_receipt [16:03:55]json_value_free [16:03:55]json_value_free done [16:03:55]process_json_proto returns [16:03:55]Send response to host [16:03:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49486,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [16:03:55]free response buf [16:03:55]execute_script done [16:03:55]execute_script returns [16:03:55]free content buf [16:03:55]Sock 9.Close socket [16:03:55]Sock 9.Thread stoped [16:03:58]OFD Sender: No OFD packet to send [16:04:03]OFD Sender: No OFD packet to send [16:04:08]OFD Sender: No OFD packet to send [16:04:13]OFD Sender: No OFD packet to send [16:04:18]OFD Sender: No OFD packet to send [16:04:23]OFD Sender: No OFD packet to send [16:04:28]OFD Sender: No OFD packet to send [16:04:33]OFD Sender: No OFD packet to send [16:04:38]OFD Sender: No OFD packet to send [16:04:43]OFD Sender: No OFD packet to send [16:04:48]OFD Sender: No OFD packet to send [16:04:53]OFD Sender: No OFD packet to send [16:04:58]OFD Sender: No OFD packet to send [16:05:03]OFD Sender: No OFD packet to send [16:05:08]OFD Sender: No OFD packet to send [16:05:13]OFD Sender: No OFD packet to send [16:05:18]OFD Sender: No OFD packet to send [16:05:20]accept exits with 7 [16:05:20]New connection [16:05:20]New thread 3066973540 created [16:05:20]Thread 3066830180 joined [16:05:20]Waiting for new connection... [16:05:20] Sock 7.Parse request [16:05:20]Sock 7.Check first char [16:05:20]Sock 7.First char is OK [16:05:20]request: POST /json_proto HTTP/1.0 [16:05:20]Method: POST [16:05:20]URL: /json_proto [16:05:20]Method is POST - this is cgi request [16:05:20]url: /json_proto [16:05:20]query_string will be loaded in cgi processing [16:05:20]execute_cgi json_proto POST (null) [16:05:20]execute_cgi path=json_proto method=POST [16:05:20]POST find Content-Length [16:05:20]Host: 172.17.46.196:8080 [16:05:20]Content-Length: 646 [16:05:20]Content-Type: application/json [16:05:20] [16:05:20]POST finish read [16:05:20]Found Content-Length = 646 [16:05:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189697", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:20]execute_script... [16:05: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 : (3)189697", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:20]POST & json_proto [16:05:20]process_json_proto [16:05:20]json parsed OK: [16:05:20]protocol is kg_v1.0 [16:05:20]action value=close_receipt [16:05:20]process_action close_receipt [16:05:20]cmd_close_receipt [16:05:20]MH_GetDate [16:05:20]Write to MH i2c: F0 00 00 58 51 98 [16:05:20]Write i2c OK [16:05:20]MH_I2C_Read... [16:05:20]Read from MH i2c: F0 [16:05:20]MH_I2C_Read... [16:05:20]Read from MH i2c: F0 09 00 [16:05:20]MH_I2C_Read... [16:05:20]Read from MH i2c: F0 09 00 58 51 00 C6 78 BF 66 07 E8 5D 66 B6 [16:05:20]GetLastDocTimeStamp 1723824236 [16:05:20]current date 1723824326 [16:05:20]FM_GetShiftState [16:05:20]SAM_PROTO_GetShiftState [16:05:20]wFMCommunicate request_size=4 [16:05:20]MH_SAM_APDU [16:05:20]CAPDU: 80 13 01 00 [16:05:20]Write to MH i2c: E2 08 00 59 51 80 13 01 00 00 00 00 00 27 [16:05:20]Write i2c OK [16:05:20]MH_I2C_Read... [16:05:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:20]Read from MH i2c: E2 [16:05:20]MH_I2C_Read... [16:05:20]Read from MH i2c: E2 0E 00 [16:05:20]MH_I2C_Read... [16:05:20]Read from MH i2c: E2 0E 00 59 51 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 9D [16:05:20]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:05:20]wFMCommunicate OK [16:05:20]SAM_PROTO_GetShiftState done [16:05:20]FM_GetShiftState done [16:05:20]opened in 1723766958 [16:05:20]opened+sec_in_day 1723853358 [16:05:20]quantity*price = 13000 [16:05:20]sum+1 = 13001 [16:05:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 135 16.08.2024 16:05 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49487 ФПД: 135603722664895 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T160526&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49487&fm=135603722664895&tin=02508201610067®Number=0000000000092546&sum=13000 0 [16:05:21]StoreToDocumentArchive [16:05:21]shift 464 fd 49487 [16:05:21]save to /storage/0464/doc_00049487 [16:05:21]save last doc name /storage/0464/doc_00049487 to /storage/kkm_last_doc_name [16:05:21]save OK [16:05:21]Clear old archive folders... [16:05:21]ProcessDocumentItem done err = 0, tmpTLVsize=282 [16:05:21]tlvbuf is 00FA7EB0 [16:05:21]SAM_PROTO_ClearQueue [16:05:21]wFMCommunicate request_size=4 [16:05:21]MH_SAM_APDU [16:05:21]CAPDU: 80 09 00 00 [16:05:21]Write to MH i2c: E2 08 00 66 51 80 09 00 00 00 00 00 00 29 [16:05:21]Write i2c OK [16:05:21]MH_I2C_Read... [16:05:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:21]Read from MH i2c: E2 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: E2 03 00 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: E2 03 00 66 51 00 90 00 2B [16:05:21]RAPDU: 90 00 [16:05:21]wFMCommunicate OK [16:05:21]SAM_PROTO_ClearQueue done [16:05:21]KKMCreateOFDPacket [16:05:21]OFDProtocolAddRootSTLVToBuf [16:05:21]FM_MakeSignedData [16:05:21]FM_MakeSignedData [16:05:21]SAM_PROTO_SignData [16:05:21]wFMCommunicate request_size=4 [16:05:21]MH_SAM_APDU [16:05:21]CAPDU: 80 0D 01 02 [16:05:21]Write to MH i2c: E2 08 00 67 51 80 0D 01 02 00 00 00 00 31 [16:05:21]Write i2c OK [16:05:21]MH_I2C_Read... [16:05:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:21]Read from MH i2c: E2 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: E2 03 00 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: E2 03 00 67 51 00 90 00 2C [16:05:21]RAPDU: 90 00 [16:05:21]wFMCommunicate OK [16:05:21]wFMCommunicate request_size=255 [16:05:21]MH_SAM_APDU [16:05:21]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 C6 78 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 [16:05:21]Write to MH i2c: E2 02 01 68 51 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 C6 78 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 00 00 FC [16:05:21]Write i2c OK [16:05:21]MH_I2C_Read... [16:05:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:21]Read from MH i2c: E2 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: E2 03 00 [16:05:21]MH_I2C_Read... [16:05:21]Read from MH i2c: E2 03 00 68 51 00 90 00 2D [16:05:21]RAPDU: 90 00 [16:05:21]wFMCommunicate OK [16:05:21]wFMCommunicate request_size=41 [16:05:21]MH_SAM_APDU [16:05:21]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4F C1 00 00 35 04 06 00 7B 54 B3 B8 3B BF [16:05:21]Write to MH i2c: E2 2C 00 69 51 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4F C1 00 00 35 04 06 00 7B 54 B3 B8 3B BF 00 00 3F [16:05:21]Write i2c OK [16:05:21]MH_I2C_Read... [16:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:22]Read from MH i2c: E2 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: E2 03 00 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: E2 03 00 69 51 00 90 00 2E [16:05:22]RAPDU: 90 00 [16:05:22]wFMCommunicate OK [16:05:22]wFMCommunicate request_size=4 [16:05:22]MH_SAM_APDU [16:05:22]CAPDU: 80 0D 03 02 [16:05:22]Write to MH i2c: E2 08 00 6A 51 80 0D 03 02 00 00 00 00 36 [16:05:22]Write i2c OK [16:05:22]MH_I2C_Read... [16:05:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:22]Read from MH i2c: E2 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: E2 0B 00 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: E2 0B 00 6A 51 00 F7 2A BD 77 69 4D 75 73 90 00 2A [16:05:22]RAPDU: F7 2A BD 77 69 4D 75 73 90 00 [16:05:22]wFMCommunicate OK [16:05:22]SAM_PROTO_SignData done [16:05:22]FM_MakeSignedData done [16:05:22]CreateOFDProtocolMessage [16:05:22]wFMCommunicate request_size=4 [16:05:22]MH_SAM_APDU [16:05:22]CAPDU: 80 11 00 00 [16:05:22]Write to MH i2c: E2 08 00 6B 51 80 11 00 00 00 00 00 00 36 [16:05:22]Write i2c OK [16:05:22]MH_I2C_Read... [16:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:22]Read from MH i2c: E2 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: E2 17 00 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: E2 17 00 6B 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 81 [16:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:05:22]wFMCommunicate OK [16:05:22]CreateOFDProtocolMessage done [16:05:22]OFDSenderStorePacket 49487 [16:05:22]StoreOFDPacket docnum=49487 [16:05:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 48 BD 26 01 02 77 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 C6 78 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4F C1 00 00 35 04 06 00 7B 54 B3 B8 3B BF F7 2A BD 77 69 4D 75 73 [16:05:22]CheckFolder [16:05:22]dirname=/storage/ofd_packets [16:05:22]CheckFolder done [16:05:22]ProducePacketName [16:05:22]name=ofd_packets/00049487 [16:05:22]NVStorageSaveData ofd_packets/00049487 [16:05:22]File name is /storage/ofd_packets/00049487 [16:05:22]Write 332 bytes [16:05:22]NVStorageSaveData done [16:05:22]OFDSenderStorePacket done [16:05:22]KKMCreateOFDPacket done [16:05:22]NVStorageSaveData kkm_last_timestamp [16:05:22]File name is /storage/kkm_last_timestamp [16:05:22]Write 4 bytes [16:05:22]NVStorageSaveData done [16:05:22]ExternCall_PrintAddStr [16:05:22]wPrintStart [16:05:22]Write to MH i2c: 01 00 00 6C 51 BD [16:05:22]Write i2c OK [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: 01 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: 01 07 00 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: 01 07 00 6C 51 00 00 00 00 00 FF 0F D2 [16:05:22]RasterBufferAndPrint [16:05:22]line Счет N : (3)189697 [16:05:22]line ИНН: 02508201610067 [16:05:22]line Контрольно-Кассовый Чек [16:05:22]line ПРОДАЖА [16:05:22]line Товар: 2000036220012 [16:05:22]line Кофе Капучино XL(GABB TRADE) [16:05:22]line 1.000 * 130.00 [16:05:22]line = 130.00 [16:05:22]line НДС 12% НСП 1% [16:05:22]line > о реализуемом товаре [16:05:22]line ИТОГО: 130.00 [16:05:22]line НСП 1% : 1.15 [16:05:22]line НДС 12% : 13.80 [16:05:22]line Наличными: 130.00 [16:05:22]line Безнал.: 0.00 [16:05:22]line Место: АЗС № 95 "Партнер Нефть" [16:05:22]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:05:22]line СНО: Общий режим [16:05:22]line Чек 135 16.08.2024 16:05 [16:05:22]line Смена: 464 ФФД: 1.0 [16:05:22]line ЗНМ: 0300000078 [16:05:22]line РНМ: 0000000000092546 [16:05:22]line Версия ККМ: 001 [16:05:22]line ФМ: 0000000000871800 [16:05:22]line ФД: 49487 [16:05:22]line ФПД: 135603722664895 [16:05:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T160526&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49487&fm=135603722664895&tin=02508201610067®Number=0000000000092546&sum=13000 [16:05:22]line 0 [16:05:22]OFD Sender: Processing packet 49487 [packets to send 21, broken 20] [16:05:22]ProducePacketName [16:05:22]name=ofd_packets/00049487 [16:05:22]OFD Sender: To server: pG, [16:05:22]CommunicateWithHost lk.salyk.kg:30040 [16:05:22]ConnectInit lk.salyk.kg [16:05:22]written 0, free lines is 4095 [16:05:22]Connected sock=10 [16:05:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 48 BD 26 01 02 77 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 C6 78 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 4F C1 00 00 35 04 06 00 7B 54 B3 B8 3B BF F7 2A BD 77 69 4D 75 73 [16:05:22]Write to MH i2c: 01 00 00 95 51 E6 [16:05:22]Write i2c OK [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: 01 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: 01 07 00 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: 01 07 00 95 51 00 00 00 00 00 E6 0C DF [16:05:22]RasterBufferAndPrint [16:05:22]line [16:05:22]line [16:05:22]line [16:05:22]line [16:05:22]line [16:05:22]written 0, free lines is 3308 [16:05:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 41 AA 47 00 7F 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 38 37 31 38 30 30 10 04 04 00 4F C1 00 00 F4 03 04 00 05 24 BF 66 B6 04 01 00 00 7E 43 F5 76 A1 28 E0 40 [16:05:22]CommunicateWithHost err = 0 [16:05:22]CheckOFDResponse [16:05:22]1017 (14) - 77093643461234 [16:05:22]1041 (16) - 0000000000871800 [16:05:22]1040 (4) - 49487 [16:05:22]1012 (4) - 16.08.2024 10:03 [16:05:22]1206 (1) - 0 [16:05:22]OFD Sender: Remove packet 49487 [16:05:22]ProducePacketName [16:05:22]name=ofd_packets/00049487 [16:05:22]NVStorageDeleteData [16:05:22]MH_Cut [16:05:22]Write to MH i2c: D1 01 00 9C 51 01 BF [16:05:22]Write i2c OK [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: D1 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: D1 01 00 [16:05:22]MH_I2C_Read... [16:05:22]Read from MH i2c: D1 01 00 9C 51 00 BE [16:05:22]Write to MH i2c: 01 00 00 9D 51 EE [16:05:22]Write i2c OK [16:05:22]MH_I2C_Read... [16:05:23]OFD Sender: No OFD packet to send [16:05:23]*** Cut start [16:05:23]*** Purtial cut [16:05:23]*** Stage 1: CUTSNS_PIN = 1 [16:05:23]Read from MH i2c: 01 [16:05:23]MH_I2C_Read... [16:05:23]*** Stop cut motor [16:05:23]*** Cut end [16:05:23]Read from MH i2c: 01 07 00 [16:05:23]MH_I2C_Read... [16:05:23]Read from MH i2c: 01 07 00 9D 51 00 00 00 00 00 FF 0F 03 [16:05:23]process_action close_receipt done [16:05:23]requested_data is exist [16:05:23]produce_requested_data [16:05:23]requested_item fm.sn is exist - process it [16:05:23]wFMCommunicate request_size=4 [16:05:23]MH_SAM_APDU [16:05:23]CAPDU: 80 11 00 00 [16:05:23]Write to MH i2c: E2 08 00 9E 51 80 11 00 00 00 00 00 00 69 [16:05:23]Write i2c OK [16:05:23]MH_I2C_Read... [16:05:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:24]Read from MH i2c: E2 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 17 00 [16:05:24]MH_I2C_Read... [16:05: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 38 37 31 38 30 30 90 00 B4 [16:05:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:05:24]wFMCommunicate OK [16:05:24]requested_item fd.num is exist - process it [16:05:24]SAM_PROTO_GetFieldsCounters [16:05:24]wFMCommunicate request_size=4 [16:05:24]MH_SAM_APDU [16:05:24]CAPDU: 80 13 00 00 [16:05:24]Write to MH i2c: E2 08 00 9F 51 80 13 00 00 00 00 00 00 6C [16:05:24]Write i2c OK [16:05:24]MH_I2C_Read... [16:05:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:24]Read from MH i2c: E2 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 62 00 [16:05:24]MH_I2C_Read... [16:05: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 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4F C1 00 00 0E 04 04 00 D0 01 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 FC [16:05:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 4F C1 00 00 0E 04 04 00 D0 01 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 [16:05:24]wFMCommunicate OK [16:05:24]SAM_PROTO_GetFieldsCounters done [16:05:24]requested_item shift.num is exist - process it [16:05:24]requested_item shift.opened is exist - process it [16:05:24]req_shift_opened [16:05:24]FM_GetShiftState [16:05:24]SAM_PROTO_GetShiftState [16:05:24]wFMCommunicate request_size=4 [16:05:24]MH_SAM_APDU [16:05:24]CAPDU: 80 13 01 00 [16:05:24]Write to MH i2c: E2 08 00 A0 51 80 13 01 00 00 00 00 00 6E [16:05:24]Write i2c OK [16:05:24]MH_I2C_Read... [16:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:24]Read from MH i2c: E2 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 0E 00 [16:05:24]MH_I2C_Read... [16:05:24]Read from MH i2c: E2 0E 00 A0 51 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 E4 [16:05:24]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:05:24]wFMCommunicate OK [16:05:24]SAM_PROTO_GetShiftState done [16:05:24]FM_GetShiftState done [16:05:24]req_shift_opened done [16:05:24]requested_item shift.open_date is exist - process it [16:05:24]req_shift_open_date [16:05:24]req_shift_open_date done [16:05:24]produce_requested_data done [16:05:24]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49487,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [16:05:24]process_action_free close_receipt [16:05:24]json_value_free [16:05:24]json_value_free done [16:05:24]process_json_proto returns [16:05:24]Send response to host [16:05:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49487,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [16:05:24]free response buf [16:05:24]execute_script done [16:05:24]execute_script returns [16:05:24]free content buf [16:05:24]Sock 7.Close socket [16:05:24]Sock 7.Thread stoped [16:05:28]OFD Sender: No OFD packet to send [16:05:33]OFD Sender: No OFD packet to send [16:05:38]OFD Sender: No OFD packet to send [16:05:43]OFD Sender: No OFD packet to send [16:05:48]OFD Sender: No OFD packet to send [16:05:53]OFD Sender: No OFD packet to send [16:05:58]OFD Sender: No OFD packet to send [16:06:03]OFD Sender: No OFD packet to send [16:06:08]OFD Sender: No OFD packet to send [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:13]OFD Sender: No OFD packet to send [16:08:18]OFD Sender: No OFD packet to send [16:08:23]OFD Sender: No OFD packet to send [16:08:28]OFD Sender: No OFD packet to send [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:58]OFD Sender: No OFD packet to send [16:09:03]OFD Sender: No OFD packet to send [16:09:08]OFD Sender: No OFD packet to send [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:58]OFD Sender: No OFD packet to send [16:11:03]OFD Sender: No OFD packet to send [16:11:08]OFD Sender: No OFD packet to send [16:11:13]OFD Sender: No OFD packet to send [16:11:18]OFD Sender: No OFD packet to send [16:11:23]OFD Sender: No OFD packet to send [16:11:28]OFD Sender: No OFD packet to send [16:11:33]OFD Sender: No OFD packet to send [16:11:38]OFD Sender: No OFD packet to send [16:11:43]OFD Sender: No OFD packet to send [16:11:48]OFD Sender: No OFD packet to send [16:11:53]OFD Sender: No OFD packet to send [16:11:58]OFD Sender: No OFD packet to send [16:12:03]OFD Sender: No OFD packet to send [16:12:08]OFD Sender: No OFD packet to send [16:12:13]OFD Sender: No OFD packet to send [16:12:18]OFD Sender: No OFD packet to send [16:12:23]OFD Sender: No OFD packet to send [16:12:28]OFD Sender: No OFD packet to send [16:12:33]OFD Sender: No OFD packet to send [16:12:38]OFD Sender: No OFD packet to send [16:12:43]OFD Sender: No OFD packet to send [16:12:48]OFD Sender: No OFD packet to send [16:15:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 99 02 00 00 E1 93 91 02 E1 12 5A 03 01 00 03 00 85 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 31 34 36 36 33 32 06 04 32 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 2C D0 B1 D0 B0 D0 BD D0 B0 D0 BD 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 0D 00 00 00 00 07 04 06 00 C8 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 88 00 00 00 F4 03 04 00 21 7B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 50 C1 00 00 35 04 06 00 E9 E5 ED CF F8 1A 9A 33 73 32 FE 77 68 75 [16:15:25]CheckFolder [16:15:25]dirname=/storage/ofd_packets [16:15:25]CheckFolder done [16:15:25]ProducePacketName [16:15:25]name=ofd_packets/00049488 [16:15:25]NVStorageSaveData ofd_packets/00049488 [16:15:25]File name is /storage/ofd_packets/00049488 [16:15:25]Write 695 bytes [16:15:25]NVStorageSaveData done [16:15:25]OFDSenderStorePacket done [16:15:25]KKMCreateOFDPacket done [16:15:25]NVStorageSaveData kkm_last_timestamp [16:15:25]File name is /storage/kkm_last_timestamp [16:15:25]Write 4 bytes [16:15:25]NVStorageSaveData done [16:15:25]ExternCall_PrintAddStr [16:15:25]wPrintStart [16:15:25]Write to MH i2c: 01 00 00 B6 51 07 [16:15:25]Write i2c OK [16:15:25]MH_I2C_Read... [16:15:25]Read from MH i2c: 01 [16:15:25]MH_I2C_Read... [16:15:25]Read from MH i2c: 01 07 00 [16:15:25]MH_I2C_Read... [16:15:25]Read from MH i2c: 01 07 00 B6 51 00 00 00 00 00 FF 0F 1C [16:15:25]RasterBufferAndPrint [16:15:25]line Счет N : (3)189698 [16:15:25]line ИНН: 02508201610067 [16:15:25]line Контрольно-Кассовый Чек [16:15:25]line ПРОДАЖА [16:15:25]line Товар: 5449000027450 [16:15:25]line Напиток FuzeTea чай манго,ром 0,5л [16:15:25]line 3.000 * 65.00 [16:15:25]line = 195.00 [16:15:25]line НДС 12% НСП 1% [16:15:25]line > о реализуемом товаре [16:15:25]line Товар: 46146632 [16:15:25]line Р/ж Orbit XXL клубника,банан 20,4г [16:15:25]line 1.000 * 55.00 [16:15:25]line = 55.00 [16:15:25]line НДС 12% НСП 1% [16:15:25]line > о реализуемом товаре [16:15:25]line Товар: 4700040114120 [16:15:25]line Султан чай 1л. чер персик [16:15:25]line 1.000 * 65.00 [16:15:25]line = 65.00 [16:15:25]line НДС 12% НСП 1% [16:15:25]line > о реализуемом товаре [16:15:25]line Товар: 2000053020015 [16:15:25]line Бумажные стаканы 250мл 1шт [16:15:25]line 1.000 * 7.00 [16:15:25]line = 7.00 [16:15:25]line НДС 12% НСП 1% [16:15:25]line > о реализуемом товаре [16:15:25]line ИТОГО: 322.00 [16:15:25]line НСП 1% : 2.85 [16:15:25]line НДС 12% : 34.19 [16:15:25]line Наличными: 322.00 [16:15:25]line Безнал.: 0.00 [16:15:25]line Место: АЗС № 95 "Партнер Нефть" [16:15:25]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:15:25]line СНО: Общий режим [16:15:25]line Чек 136 16.08.2024 16:15 [16:15:25]line Смена: 464 ФФД: 1.0 [16:15:25]line ЗНМ: 0300000078 [16:15:25]line РНМ: 0000000000092546 [16:15:25]line Версия ККМ: 001 [16:15:25]line ФМ: 0000000000871800 [16:15:25]line ФД: 49488 [16:15:25]line ФПД: 257173746612250 [16:15:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T161529&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49488&fm=257173746612250&tin=02508201610067®Number=0000000000092546&sum=32200 [16:15:25]line 0 [16:15:25]OFD Sender: Processing packet 49488 [packets to send 21, broken 20] [16:15:25]ProducePacketName [16:15:25]name=ofd_packets/00049488 [16:15:25]OFD Sender: To server: pG, [16:15:25]CommunicateWithHost lk.salyk.kg:30040 [16:15:25]ConnectInit lk.salyk.kg [16:15:25]written 0, free lines is 4095 [16:15:26]Write to MH i2c: 01 00 00 F3 51 44 [16:15:26]Write i2c OK [16:15:26]MH_I2C_Read... [16:15:26]Read from MH i2c: 01 [16:15:26]MH_I2C_Read... [16:15:26]Read from MH i2c: 01 07 00 [16:15:26]MH_I2C_Read... [16:15:26]Read from MH i2c: 01 07 00 F3 51 00 00 00 00 00 99 0B EF [16:15:26]RasterBufferAndPrint [16:15:26]line [16:15:26]line [16:15:26]line [16:15:26]line [16:15:26]line [16:15:26]written 0, free lines is 2978 [16:15:26]MH_Cut [16:15:26]Write to MH i2c: D1 01 00 FA 51 01 1D [16:15:26]Write i2c OK [16:15:26]MH_I2C_Read... [16:15:26]Read from MH i2c: D1 [16:15:26]MH_I2C_Read... [16:15:26]Read from MH i2c: D1 01 00 [16:15:26]MH_I2C_Read... [16:15:26]Read from MH i2c: D1 01 00 FA 51 00 1C [16:15:26]Write to MH i2c: 01 00 00 FB 51 4C [16:15:26]Write i2c OK [16:15:26]MH_I2C_Read... [16:15:27]*** Cut start [16:15:27]*** Purtial cut [16:15:27]*** CUTSNS_PIN = 0 [16:15:27]*** Stage 1: CUTSNS_PIN = 1 [16:15:27]ConnectInit Can't connect to host [16:15:29]Read from MH i2c: 01 [16:15:29]MH_I2C_Read... [16:15:29]*** Stop cut motor [16:15:29]*** Cut end [16:15:29]Read from MH i2c: 01 07 00 [16:15:29]MH_I2C_Read... [16:15:29]Read from MH i2c: 01 07 00 FB 51 00 00 00 00 00 FF 0F 61 [16:15:29]process_action close_receipt done [16:15:29]requested_data is exist [16:15:29]produce_requested_data [16:15:29]requested_item fm.sn is exist - process it [16:15:29]wFMCommunicate request_size=4 [16:15:29]MH_SAM_APDU [16:15:29]CAPDU: 80 11 00 00 [16:15:29]Write to MH i2c: E2 08 00 FC 51 80 11 00 00 00 00 00 00 C7 [16:15:29]Write i2c OK [16:15:29]MH_I2C_Read... [16:15:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:15:29]Read from MH i2c: E2 [16:15:29]MH_I2C_Read... [16:15:29]Read from MH i2c: E2 17 00 [16:15:29]MH_I2C_Read... [16:15:29]Read from MH i2c: E2 17 00 FC 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 12 [16:15:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:15:29]wFMCommunicate OK [16:15:29]requested_item fd.num is exist - process it [16:15:29]SAM_PROTO_GetFieldsCounters [16:15:29]wFMCommunicate request_size=4 [16:15:29]MH_SAM_APDU [16:15:29]CAPDU: 80 13 00 00 [16:15:29]Write to MH i2c: E2 08 00 FD 51 80 13 00 00 00 00 00 00 CA [16:15:29]Write i2c OK [16:15:29]MH_I2C_Read... [16:15:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:15:29]Read from MH i2c: E2 [16:15:29]MH_I2C_Read... [16:15:29]Read from MH i2c: E2 62 00 [16:15:29]MH_I2C_Read... [16:15:29]Read from MH i2c: E2 62 00 FD 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 50 C1 00 00 0E 04 04 00 D0 01 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 5E [16:15:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 50 C1 00 00 0E 04 04 00 D0 01 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 [16:15:29]wFMCommunicate OK [16:15:29]SAM_PROTO_GetFieldsCounters done [16:15:29]requested_item shift.num is exist - process it [16:15:29]requested_item shift.opened is exist - process it [16:15:29]req_shift_opened [16:15:29]FM_GetShiftState [16:15:29]SAM_PROTO_GetShiftState [16:15:29]wFMCommunicate request_size=4 [16:15:29]MH_SAM_APDU [16:15:29]CAPDU: 80 13 01 00 [16:15:29]Write to MH i2c: E2 08 00 FE 51 80 13 01 00 00 00 00 00 CC [16:15:29]Write i2c OK [16:15:29]MH_I2C_Read... [16:15:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:15:29]Read from MH i2c: E2 [16:15:29]MH_I2C_Read... [16:15:29]Read from MH i2c: E2 0E 00 [16:15:29]MH_I2C_Read... [16:15:29]Read from MH i2c: E2 0E 00 FE 51 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 42 [16:15:29]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:15:29]wFMCommunicate OK [16:15:29]SAM_PROTO_GetShiftState done [16:15:29]FM_GetShiftState done [16:15:29]req_shift_opened done [16:15:29]requested_item shift.open_date is exist - process it [16:15:29]req_shift_open_date [16:15:29]req_shift_open_date done [16:15:29]produce_requested_data done [16:15:29]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49488,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [16:15:29]process_action_free close_receipt [16:15:29]json_value_free [16:15:29]json_value_free done [16:15:29]process_json_proto returns [16:15:29]Send response to host [16:15:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49488,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [16:15:29]free response buf [16:15:29]execute_script done [16:15:29]execute_script returns [16:15:29]free content buf [16:15:29]Sock 9.Close socket [16:15:29]Sock 9.Thread stoped [16:15:30]ConnectInit Can't take IP for lk.salyk.kg [16:15:30]CommunicateWithHost connect error [16:15:30]CommunicateWithHost err = -1 [16:15:30]OFD Sender: Server communicate error [16:15:32]ConnectInit Can't connect to host [16:15:35]OFD Sender: Processing packet 49488 [packets to send 21, broken 20] [16:15:35]ProducePacketName [16:15:35]name=ofd_packets/00049488 [16:15:35]OFD Sender: To server: pG, [16:15:35]CommunicateWithHost lk.salyk.kg:30040 [16:15:35]ConnectInit lk.salyk.kg [16:15:37]ConnectInit Can't connect to host [16:15:40]ConnectInit Can't take IP for lk.salyk.kg [16:15:40]CommunicateWithHost connect error [16:15:40]CommunicateWithHost err = -1 [16:15:40]OFD Sender: Server communicate error [16:15:45]OFD Sender: Processing packet 49488 [packets to send 21, broken 20] [16:15:45]ProducePacketName [16:15:45]name=ofd_packets/00049488 [16:15:45]OFD Sender: To server: pG, [16:15:45]CommunicateWithHost lk.salyk.kg:30040 [16:15:45]ConnectInit lk.salyk.kg [16:15:46]Connected sock=9 [16:15:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 99 02 00 00 E1 93 91 02 E1 12 5A 03 01 00 03 00 85 02 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 2C 4C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 08 00 34 36 31 34 36 36 33 32 06 04 32 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 2C D0 B1 D0 B0 D0 BD D0 B0 D0 BD 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 0D 00 00 00 00 07 04 06 00 C8 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 88 00 00 00 F4 03 04 00 21 7B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 50 C1 00 00 35 04 06 00 E9 E5 ED CF F8 1A 9A 33 73 32 FE 77 68 75 [16:15:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 69 9F 47 00 9B 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 38 37 31 38 30 30 10 04 04 00 50 C1 00 00 F4 03 04 00 74 26 BF 66 B6 04 01 00 00 A6 0C 1A 70 1C 6E E9 CD [16:15:46]CommunicateWithHost err = 0 [16:15:46]CheckOFDResponse [16:15:46]1017 (14) - 77093643461234 [16:15:46]1041 (16) - 0000000000871800 [16:15:46]1040 (4) - 49488 [16:15:46]1012 (4) - 16.08.2024 10:14 [16:15:46]1206 (1) - 0 [16:15:46]OFD Sender: Remove packet 49488 [16:15:46]ProducePacketName [16:15:46]name=ofd_packets/00049488 [16:15:46]NVStorageDeleteData [16:15:46]OFD Sender: No OFD packet to send [16:15:51]OFD Sender: No OFD packet to send [16:15:56]OFD Sender: No OFD packet to send [16:16:01]OFD Sender: No OFD packet to send [16:16:06]OFD Sender: No OFD packet to send [16:16:11]OFD Sender: No OFD packet to send [16:16:16]OFD Sender: No OFD packet to send [16:16:21]OFD Sender: No OFD packet to send [16:16:26]OFD Sender: No OFD packet to send [16:16:31]OFD Sender: No OFD packet to send [16:16:36]OFD Sender: No OFD packet to send [16:16:41]OFD Sender: No OFD packet to send [16:16:46]OFD Sender: No OFD packet to send [16:16:51]OFD Sender: No OFD packet to send [16:16:56]OFD Sender: No OFD packet to send [16:17:01]OFD Sender: No OFD packet to send [16:17:06]OFD Sender: No OFD packet to send [16:17:11]OFD Sender: No OFD packet to send [16:17:16]OFD Sender: No OFD packet to send [16:17:21]OFD Sender: No OFD packet to send [16:17:26]OFD Sender: No OFD packet to send [16:17:31]OFD Sender: No OFD packet to send [16:17:36]OFD Sender: No OFD packet to send [16:17:41]OFD Sender: No OFD packet to send [16:17:46]OFD Sender: No OFD packet to send [16:17:51]OFD Sender: No OFD packet to send [16:17:56]OFD Sender: No OFD packet to send [16:18:01]OFD Sender: No OFD packet to send [16:18:06]OFD Sender: No OFD packet to send [16:18:11]OFD Sender: No OFD packet to send [16:18:16]OFD Sender: No OFD packet to send [16:18:21]OFD Sender: No OFD packet to send [16:18:26]OFD Sender: No OFD packet to send [16:18:31]OFD Sender: No OFD packet to send [16:18:36]OFD Sender: No OFD packet to send [16:18:41]OFD Sender: No OFD packet to send [16:18:46]OFD Sender: No OFD packet to send [16:18:51]OFD Sender: No OFD packet to send [16:18:56]OFD Sender: No OFD packet to send [16:19:01]OFD Sender: No OFD packet to send [16:19:06]OFD Sender: No OFD packet to send [16:19:11]OFD Sender: No OFD packet to send [16:19:16]OFD Sender: No OFD packet to send [16:19:21]OFD Sender: No OFD packet to send [16:19:26]OFD Sender: No OFD packet to send [16:19:31]OFD Sender: No OFD packet to send [16:19:36]OFD Sender: No OFD packet to send [16:19:41]OFD Sender: No OFD packet to send [16:19:46]OFD Sender: No OFD packet to send [16:19:51]OFD Sender: No OFD packet to send [16:19:57]OFD Sender: No OFD packet to send [16:20:02]OFD Sender: No OFD packet to send [16:20:07]OFD Sender: No OFD packet to send [16:20:12]OFD Sender: No OFD packet to send [16:20:17]OFD Sender: No OFD packet to send [16:20:22]OFD Sender: No OFD packet to send [16:20:27]OFD Sender: No OFD packet to send [16:20:32]OFD Sender: No OFD packet to send [16:20:37]OFD Sender: No OFD packet to send [16:20:42]OFD Sender: No OFD packet to send [16:20:47]OFD Sender: No OFD packet to send [16:20:52]OFD Sender: No OFD packet to send [16:20:57]OFD Sender: No OFD packet to send [16:21:02]OFD Sender: No OFD packet to send [16:21:07]OFD Sender: No OFD packet to send [16:21:12]OFD Sender: No OFD packet to send [16:21:17]OFD Sender: No OFD packet to send [16:21:22]OFD Sender: No OFD packet to send [16:21:27]OFD Sender: No OFD packet to send [16:21:32]OFD Sender: No OFD packet to send [16:21:37]OFD Sender: No OFD packet to send [16:21:42]OFD Sender: No OFD packet to send [16:21:47]OFD Sender: No OFD packet to send [16:21:52]OFD Sender: No OFD packet to send [16:21:57]OFD Sender: No OFD packet to send [16:22:02]OFD Sender: No OFD packet to send [16:22:07]OFD Sender: No OFD packet to send [16:22:12]OFD Sender: No OFD packet to send [16:22:17]OFD Sender: No OFD packet to send [16:22:22]OFD Sender: No OFD packet to send [16:22:27]OFD Sender: No OFD packet to send [16:22:32]OFD Sender: No OFD packet to send [16:22:37]OFD Sender: No OFD packet to send [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:52]OFD Sender: No OFD packet to send [16:22:57]OFD Sender: No OFD packet to send [16:23:02]OFD Sender: No OFD packet to send [16:23:07]OFD Sender: No OFD packet to send [16:23:12]OFD Sender: No OFD packet to send [16:23:17]OFD Sender: No OFD packet to send [16:23:22]OFD Sender: No OFD packet to send [16:23:27]OFD Sender: No OFD packet to send [16:23:32]OFD Sender: No OFD packet to send [16:23:37]OFD Sender: No OFD packet to send [16:23:42]OFD Sender: No OFD packet to send [16:23:47]OFD Sender: No OFD packet to send [16:23:52]OFD Sender: No OFD packet to send [16:23:57]OFD Sender: No OFD packet to send [16:24:02]OFD Sender: No OFD packet to send [16:24:07]OFD Sender: No OFD packet to send [16:24:12]OFD Sender: No OFD packet to send [16:24:17]OFD Sender: No OFD packet to send [16:24:22]OFD Sender: No OFD packet to send [16:24:27]OFD Sender: No OFD packet to send [16:24:32]OFD Sender: No OFD packet to send [16:24:37]OFD Sender: No OFD packet to send [16:24:42]OFD Sender: No OFD packet to send [16:24:47]OFD Sender: No OFD packet to send [16:24:52]OFD Sender: No OFD packet to send [16:24:57]OFD Sender: No OFD packet to send [16:25:02]OFD Sender: No OFD packet to send [16:25:07]OFD Sender: No OFD packet to send [16:25:12]OFD Sender: No OFD packet to send [16:25:17]OFD Sender: No OFD packet to send [16:25:22]OFD Sender: No OFD packet to send [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:26]accept exits with 7 [16:26:26]New connection [16:26:26]New thread 3066973540 created [16:26:26]Thread 3066830180 joined [16:26:26]Waiting for new connection... [16:26:26] Sock 7.Parse request [16:26:26]Sock 7.Check first char [16:26:26]Sock 7.First char is OK [16:26:26]request: POST /json_proto HTTP/1.0 [16:26:26]Method: POST [16:26:26]URL: /json_proto [16:26:26]Method is POST - this is cgi request [16:26:26]url: /json_proto [16:26:26]query_string will be loaded in cgi processing [16:26:26]execute_cgi json_proto POST (null) [16:26:26]execute_cgi path=json_proto method=POST [16:26:26]POST find Content-Length [16:26:26]Host: 172.17.46.196:8080 [16:26:26]Content-Length: 676 [16:26:26]Content-Type: application/json [16:26:26] [16:26:26]POST finish read [16:26:26]Found Content-Length = 676 [16:26:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189699", "tax_sys" : 0, "items" : [ { "code": "4602441000081", "name": "\u041D\u0430\u043F\u0438\u0442\u043A \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:26]execute_script... [16:26: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 : (3)189699", "tax_sys" : 0, "items" : [ { "code": "4602441000081", "name": "\u041D\u0430\u043F\u0438\u0442\u043A \u0422\u0430\u0440\u0445\u0443\u043D 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:26:26]POST & json_proto [16:26:26]process_json_proto [16:26:26]json parsed OK: [16:26:26]protocol is kg_v1.0 [16:26:26]action value=close_receipt [16:26:26]process_action close_receipt [16:26:26]cmd_close_receipt [16:26:26]MH_GetDate [16:26:26]Write to MH i2c: F0 00 00 FF 51 3F [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: F0 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: F0 09 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: F0 09 00 FF 51 00 B8 7D BF 66 07 E8 5D 66 54 [16:26:26]GetLastDocTimeStamp 1723824929 [16:26:26]current date 1723825592 [16:26:26]FM_GetShiftState [16:26:26]SAM_PROTO_GetShiftState [16:26:26]wFMCommunicate request_size=4 [16:26:26]MH_SAM_APDU [16:26:26]CAPDU: 80 13 01 00 [16:26:26]Write to MH i2c: E2 08 00 00 52 80 13 01 00 00 00 00 00 CF [16:26:26]Write i2c OK [16:26:26]MH_I2C_Read... [16:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:26]Read from MH i2c: E2 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 0E 00 [16:26:26]MH_I2C_Read... [16:26:26]Read from MH i2c: E2 0E 00 00 52 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 45 [16:26:26]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:26:26]wFMCommunicate OK [16:26:26]SAM_PROTO_GetShiftState done [16:26:26]FM_GetShiftState done [16:26:26]opened in 1723766958 [16:26:26]opened+sec_in_day 1723853358 [16:26:26]quantity*price = 20500 [16:26:26]sum+1 = 20501 [16:26:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 137 16.08.2024 16:26 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49489 ФПД: 266759601896876 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T162632&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49489&fm=266759601896876&tin=02508201610067®Number=0000000000092546&sum=20500 0 [16:26:27]StoreToDocumentArchive [16:26:27]shift 464 fd 49489 [16:26:27]save to /storage/0464/doc_00049489 [16:26:27]save last doc name /storage/0464/doc_00049489 to /storage/kkm_last_doc_name [16:26:27]save OK [16:26:27]Clear old archive folders... [16:26:27]ProcessDocumentItem done err = 0, tmpTLVsize=284 [16:26:27]tlvbuf is 00FA81D0 [16:26:27]SAM_PROTO_ClearQueue [16:26:27]wFMCommunicate request_size=4 [16:26:27]MH_SAM_APDU [16:26:27]CAPDU: 80 09 00 00 [16:26:27]Write to MH i2c: E2 08 00 0D 52 80 09 00 00 00 00 00 00 D1 [16:26:27]Write i2c OK [16:26:27]MH_I2C_Read... [16:26:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:26:27]Read from MH i2c: E2 [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: E2 03 00 [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: E2 03 00 0D 52 00 90 00 D3 [16:26:27]RAPDU: 90 00 [16:26:27]wFMCommunicate OK [16:26:27]SAM_PROTO_ClearQueue done [16:26:27]KKMCreateOFDPacket [16:26:27]OFDProtocolAddRootSTLVToBuf [16:26:27]FM_MakeSignedData [16:26:27]FM_MakeSignedData [16:26:27]SAM_PROTO_SignData [16:26:27]wFMCommunicate request_size=4 [16:26:27]MH_SAM_APDU [16:26:27]CAPDU: 80 0D 01 02 [16:26:27]Write to MH i2c: E2 08 00 0E 52 80 0D 01 02 00 00 00 00 D9 [16:26:27]Write i2c OK [16:26:27]MH_I2C_Read... [16:26:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:26:27]Read from MH i2c: E2 [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: E2 03 00 [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: E2 03 00 0E 52 00 90 00 D4 [16:26:27]RAPDU: 90 00 [16:26:27]wFMCommunicate OK [16:26:27]wFMCommunicate request_size=255 [16:26:27]MH_SAM_APDU [16:26:27]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 30 38 31 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BA 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 B8 7D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 [16:26:27]Write to MH i2c: E2 02 01 0F 52 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 30 38 31 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BA 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 B8 7D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 00 00 7D [16:26:27]Write i2c OK [16:26:27]MH_I2C_Read... [16:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:27]Read from MH i2c: E2 [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: E2 03 00 [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: E2 03 00 0F 52 00 90 00 D5 [16:26:27]RAPDU: 90 00 [16:26:27]wFMCommunicate OK [16:26:27]wFMCommunicate request_size=43 [16:26:27]MH_SAM_APDU [16:26:27]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 51 C1 00 00 35 04 06 00 F2 9D CF 4F BD AC [16:26:27]Write to MH i2c: E2 2E 00 10 52 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 51 C1 00 00 35 04 06 00 F2 9D CF 4F BD AC 00 00 E4 [16:26:27]Write i2c OK [16:26:27]MH_I2C_Read... [16:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:26:27]Read from MH i2c: E2 [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: E2 03 00 [16:26:27]MH_I2C_Read... [16:26:27]Read from MH i2c: E2 03 00 10 52 00 90 00 D6 [16:26:27]RAPDU: 90 00 [16:26:27]wFMCommunicate OK [16:26:27]wFMCommunicate request_size=4 [16:26:27]MH_SAM_APDU [16:26:27]CAPDU: 80 0D 03 02 [16:26:27]Write to MH i2c: E2 08 00 11 52 80 0D 03 02 00 00 00 00 DE [16:26:27]Write i2c OK [16:26:27]MH_I2C_Read... [16:26:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:26:28]Read from MH i2c: E2 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 0B 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 0B 00 11 52 00 44 D7 B4 1C E3 56 DB B6 90 00 94 [16:26:28]RAPDU: 44 D7 B4 1C E3 56 DB B6 90 00 [16:26:28]wFMCommunicate OK [16:26:28]SAM_PROTO_SignData done [16:26:28]FM_MakeSignedData done [16:26:28]CreateOFDProtocolMessage [16:26:28]wFMCommunicate request_size=4 [16:26:28]MH_SAM_APDU [16:26:28]CAPDU: 80 11 00 00 [16:26:28]Write to MH i2c: E2 08 00 12 52 80 11 00 00 00 00 00 00 DE [16:26:28]Write i2c OK [16:26:28]MH_I2C_Read... [16:26:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:28]Read from MH i2c: E2 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 17 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: E2 17 00 12 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 29 [16:26:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:26:28]wFMCommunicate OK [16:26:28]CreateOFDProtocolMessage done [16:26:28]OFDSenderStorePacket 49489 [16:26:28]StoreOFDPacket docnum=49489 [16:26:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 30 01 00 00 47 99 28 01 3E 7E 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 30 38 31 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BA 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 B8 7D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 51 C1 00 00 35 04 06 00 F2 9D CF 4F BD AC 44 D7 B4 1C E3 56 DB B6 [16:26:28]CheckFolder [16:26:28]dirname=/storage/ofd_packets [16:26:28]CheckFolder done [16:26:28]ProducePacketName [16:26:28]name=ofd_packets/00049489 [16:26:28]NVStorageSaveData ofd_packets/00049489 [16:26:28]File name is /storage/ofd_packets/00049489 [16:26:28]Write 334 bytes [16:26:28]NVStorageSaveData done [16:26:28]OFDSenderStorePacket done [16:26:28]KKMCreateOFDPacket done [16:26:28]NVStorageSaveData kkm_last_timestamp [16:26:28]File name is /storage/kkm_last_timestamp [16:26:28]Write 4 bytes [16:26:28]NVStorageSaveData done [16:26:28]ExternCall_PrintAddStr [16:26:28]wPrintStart [16:26:28]Write to MH i2c: 01 00 00 13 52 65 [16:26:28]Write i2c OK [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: 01 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: 01 07 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: 01 07 00 13 52 00 00 00 00 00 FF 0F 7A [16:26:28]RasterBufferAndPrint [16:26:28]line Счет N : (3)189699 [16:26:28]line ИНН: 02508201610067 [16:26:28]line Контрольно-Кассовый Чек [16:26:28]line ПРОДАЖА [16:26:28]line Товар: 4602441000081 [16:26:28]line Напитк Тархун 1л стекло [16:26:28]line 1.000 * 205.00 [16:26:28]line = 205.00 [16:26:28]line НДС 12% НСП 1% [16:26:28]line > о реализуемом товаре [16:26:28]line ИТОГО: 205.00 [16:26:28]line НСП 1% : 1.81 [16:26:28]line НДС 12% : 21.77 [16:26:28]line Наличными: 205.00 [16:26:28]line Безнал.: 0.00 [16:26:28]line Место: АЗС № 95 "Партнер Нефть" [16:26:28]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:26:28]line СНО: Общий режим [16:26:28]line Чек 137 16.08.2024 16:26 [16:26:28]line Смена: 464 ФФД: 1.0 [16:26:28]line ЗНМ: 0300000078 [16:26:28]line РНМ: 0000000000092546 [16:26:28]line Версия ККМ: 001 [16:26:28]line ФМ: 0000000000871800 [16:26:28]line ФД: 49489 [16:26:28]line ФПД: 266759601896876 [16:26:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T162632&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49489&fm=266759601896876&tin=02508201610067®Number=0000000000092546&sum=20500 [16:26:28]line 0 [16:26:28]OFD Sender: Processing packet 49489 [packets to send 21, broken 20] [16:26:28]ProducePacketName [16:26:28]name=ofd_packets/00049489 [16:26:28]OFD Sender: To server: pG, [16:26:28]CommunicateWithHost lk.salyk.kg:30040 [16:26:28]ConnectInit lk.salyk.kg [16:26:28]written 0, free lines is 4095 [16:26:28]Connected sock=10 [16:26:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 30 01 00 00 47 99 28 01 3E 7E 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 30 38 31 06 04 2A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BA 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 B8 7D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 51 C1 00 00 35 04 06 00 F2 9D CF 4F BD AC 44 D7 B4 1C E3 56 DB B6 [16:26:28]Write to MH i2c: 01 00 00 3B 52 8D [16:26:28]Write i2c OK [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: 01 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: 01 07 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: 01 07 00 3B 52 00 00 00 00 00 FE 0C 9E [16:26:28]RasterBufferAndPrint [16:26:28]line [16:26:28]line [16:26:28]line [16:26:28]line [16:26:28]line [16:26:28]written 0, free lines is 3332 [16:26:28]MH_Cut [16:26:28]Write to MH i2c: D1 01 00 42 52 01 66 [16:26:28]Write i2c OK [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: D1 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: D1 01 00 [16:26:28]MH_I2C_Read... [16:26:28]Read from MH i2c: D1 01 00 42 52 00 65 [16:26:28]Write to MH i2c: 01 00 00 43 52 95 [16:26:28]Write i2c OK [16:26:28]MH_I2C_Read... [16:26:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 44 B7 47 00 DC 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 38 37 31 38 30 30 10 04 04 00 51 C1 00 00 F4 03 04 00 F7 28 BF 66 B6 04 01 00 00 3F 4C 20 A1 97 90 AB 9C [16:26:28]CommunicateWithHost err = 0 [16:26:28]CheckOFDResponse [16:26:28]1017 (14) - 77093643461234 [16:26:28]1041 (16) - 0000000000871800 [16:26:28]1040 (4) - 49489 [16:26:28]1012 (4) - 16.08.2024 10:24 [16:26:28]1206 (1) - 0 [16:26:28]OFD Sender: Remove packet 49489 [16:26:28]ProducePacketName [16:26:28]name=ofd_packets/00049489 [16:26:28]NVStorageDeleteData [16:26:29]OFD Sender: No OFD packet to send [16:26:29]*** Cut start [16:26:29]*** Purtial cut [16:26:29]*** Stage 1: CUTSNS_PIN = 1 [16:26:29]Read from MH i2c: 01 [16:26:29]MH_I2C_Read... [16:26:29]*** Stop cut motor [16:26:29]*** Cut end [16:26:29]Read from MH i2c: 01 07 00 [16:26:29]MH_I2C_Read... [16:26:29]Read from MH i2c: 01 07 00 43 52 00 00 00 00 00 FF 0F AA [16:26:29]process_action close_receipt done [16:26:29]requested_data is exist [16:26:29]produce_requested_data [16:26:29]requested_item fm.sn is exist - process it [16:26:29]wFMCommunicate request_size=4 [16:26:29]MH_SAM_APDU [16:26:29]CAPDU: 80 11 00 00 [16:26:29]Write to MH i2c: E2 08 00 44 52 80 11 00 00 00 00 00 00 10 [16:26:29]Write i2c OK [16:26:29]MH_I2C_Read... [16:26:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:26:29]Read from MH i2c: E2 [16:26:29]MH_I2C_Read... [16:26:29]Read from MH i2c: E2 17 00 [16:26:29]MH_I2C_Read... [16:26:29]Read from MH i2c: E2 17 00 44 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5B [16:26:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:26:29]wFMCommunicate OK [16:26:29]requested_item fd.num is exist - process it [16:26:29]SAM_PROTO_GetFieldsCounters [16:26:29]wFMCommunicate request_size=4 [16:26:29]MH_SAM_APDU [16:26:29]CAPDU: 80 13 00 00 [16:26:29]Write to MH i2c: E2 08 00 45 52 80 13 00 00 00 00 00 00 13 [16:26:29]Write i2c OK [16:26:29]MH_I2C_Read... [16:26:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:26:30]Read from MH i2c: E2 [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: E2 62 00 [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: E2 62 00 45 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 51 C1 00 00 0E 04 04 00 D0 01 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 AB [16:26:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 51 C1 00 00 0E 04 04 00 D0 01 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 [16:26:30]wFMCommunicate OK [16:26:30]SAM_PROTO_GetFieldsCounters done [16:26:30]requested_item shift.num is exist - process it [16:26:30]requested_item shift.opened is exist - process it [16:26:30]req_shift_opened [16:26:30]FM_GetShiftState [16:26:30]SAM_PROTO_GetShiftState [16:26:30]wFMCommunicate request_size=4 [16:26:30]MH_SAM_APDU [16:26:30]CAPDU: 80 13 01 00 [16:26:30]Write to MH i2c: E2 08 00 46 52 80 13 01 00 00 00 00 00 15 [16:26:30]Write i2c OK [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: E2 [16:26:30]MH_I2C_Read... [16:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:26:30]Read from MH i2c: E2 0E 00 [16:26:30]MH_I2C_Read... [16:26:30]Read from MH i2c: E2 0E 00 46 52 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 8B [16:26:30]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:26:30]wFMCommunicate OK [16:26:30]SAM_PROTO_GetShiftState done [16:26:30]FM_GetShiftState done [16:26:30]req_shift_opened done [16:26:30]requested_item shift.open_date is exist - process it [16:26:30]req_shift_open_date [16:26:30]req_shift_open_date done [16:26:30]produce_requested_data done [16:26:30]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49489,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [16:26:30]process_action_free close_receipt [16:26:30]json_value_free [16:26:30]json_value_free done [16:26:30]process_json_proto returns [16:26:30]Send response to host [16:26:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49489,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [16:26:30]free response buf [16:26:30]execute_script done [16:26:30]execute_script returns [16:26:30]free content buf [16:26:30]Sock 7.Close socket [16:26:30]Sock 7.Thread stoped [16:26:34]OFD Sender: No OFD packet to send [16:26:39]OFD Sender: No OFD packet to send [16:26:44]OFD Sender: No OFD packet to send [16:26:49]OFD Sender: No OFD packet to send [16:26:54]OFD Sender: No OFD packet to send [16:26:59]OFD Sender: No OFD packet to send [16:27:04]OFD Sender: No OFD packet to send [16:27:09]OFD Sender: No OFD packet to send [16:27:14]OFD Sender: No OFD packet to send [16:27:19]OFD Sender: No OFD packet to send [16:27:19]accept exits with 9 [16:27:19]New connection [16:27:19]New thread 3066830180 created [16:27:19]Thread 3066973540 joined [16:27:19]Waiting for new connection... [16:27:19] Sock 9.Parse request [16:27:19]Sock 9.Check first char [16:27:19]Sock 9.First char is OK [16:27:19]request: POST /json_proto HTTP/1.0 [16:27:19]Method: POST [16:27:19]URL: /json_proto [16:27:19]Method is POST - this is cgi request [16:27:19]url: /json_proto [16:27:19]query_string will be loaded in cgi processing [16:27:19]execute_cgi json_proto POST (null) [16:27:19]execute_cgi path=json_proto method=POST [16:27:19]POST find Content-Length [16:27:19]Host: 172.17.46.196:8080 [16:27:19]Content-Length: 915 [16:27:19]Content-Type: application/json [16:27:19] [16:27:19]POST finish read [16:27:19]Found Content-Length = 915 [16:27:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189700", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:19]execute_script... [16:27: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 : (3)189700", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:19]POST & json_proto [16:27:19]process_json_proto [16:27:19]json parsed OK: [16:27:19]protocol is kg_v1.0 [16:27:19]action value=close_receipt [16:27:19]process_action close_receipt [16:27:19]cmd_close_receipt [16:27:19]MH_GetDate [16:27:19]Write to MH i2c: F0 00 00 47 52 88 [16:27:19]Write i2c OK [16:27:19]MH_I2C_Read... [16:27:19]Read from MH i2c: F0 [16:27:19]MH_I2C_Read... [16:27:19]Read from MH i2c: F0 09 00 [16:27:19]MH_I2C_Read... [16:27:19]Read from MH i2c: F0 09 00 47 52 00 ED 7D BF 66 07 E8 5D 66 D2 [16:27:19]GetLastDocTimeStamp 1723825592 [16:27:19]current date 1723825645 [16:27:19]FM_GetShiftState [16:27:19]SAM_PROTO_GetShiftState [16:27:19]wFMCommunicate request_size=4 [16:27:19]MH_SAM_APDU [16:27:19]CAPDU: 80 13 01 00 [16:27:19]Write to MH i2c: E2 08 00 48 52 80 13 01 00 00 00 00 00 17 [16:27:19]Write i2c OK [16:27:19]MH_I2C_Read... [16:27:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:19]Read from MH i2c: E2 [16:27:19]MH_I2C_Read... [16:27:19]Read from MH i2c: E2 0E 00 [16:27:19]MH_I2C_Read... [16:27:19]Read from MH i2c: E2 0E 00 48 52 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 8D [16:27:19]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:27:19]wFMCommunicate OK [16:27:19]SAM_PROTO_GetShiftState done [16:27:19]FM_GetShiftState done [16:27:19]opened in 1723766958 [16:27:19]opened+sec_in_day 1723853358 [16:27:19]quantity*price = 8000 [16:27:19]sum+1 = 8001 [16:27:19]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000027450 Напиток FuzeTea чай манго,ром 0,5л 1.000 * 65.00 = 65.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 145.00 НСП 1% : 1.28 НДС 12% : 15.40 Наличными: 145.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 138 16.08.2024 16:27 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49490 ФПД: 245498885416291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T162725&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49490&fm=245498885416291&tin=02508201610067®Number=0000000000092546&sum=14500 0 [16:27:20]StoreToDocumentArchive [16:27:20]shift 464 fd 49490 [16:27:20]save to /storage/0464/doc_00049490 [16:27:20]save last doc name /storage/0464/doc_00049490 to /storage/kkm_last_doc_name [16:27:20]save OK [16:27:20]Clear old archive folders... [16:27:20]ProcessDocumentItem done err = 0, tmpTLVsize=393 [16:27:20]tlvbuf is 00F86680 [16:27:20]SAM_PROTO_ClearQueue [16:27:20]wFMCommunicate request_size=4 [16:27:20]MH_SAM_APDU [16:27:20]CAPDU: 80 09 00 00 [16:27:20]Write to MH i2c: E2 08 00 55 52 80 09 00 00 00 00 00 00 19 [16:27:20]Write i2c OK [16:27:20]MH_I2C_Read... [16:27:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:20]Read from MH i2c: E2 [16:27:20]MH_I2C_Read... [16:27:20]Read from MH i2c: E2 03 00 [16:27:20]MH_I2C_Read... [16:27:20]Read from MH i2c: E2 03 00 55 52 00 90 00 1B [16:27:20]RAPDU: 90 00 [16:27:20]wFMCommunicate OK [16:27:20]SAM_PROTO_ClearQueue done [16:27:20]KKMCreateOFDPacket [16:27:20]OFDProtocolAddRootSTLVToBuf [16:27:20]FM_MakeSignedData [16:27:20]FM_MakeSignedData [16:27:20]SAM_PROTO_SignData [16:27:20]wFMCommunicate request_size=4 [16:27:20]MH_SAM_APDU [16:27:20]CAPDU: 80 0D 01 02 [16:27:20]Write to MH i2c: E2 08 00 56 52 80 0D 01 02 00 00 00 00 21 [16:27:20]Write i2c OK [16:27:20]MH_I2C_Read... [16:27:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:20]Read from MH i2c: E2 [16:27:20]MH_I2C_Read... [16:27:20]Read from MH i2c: E2 03 00 [16:27:20]MH_I2C_Read... [16:27:20]Read from MH i2c: E2 03 00 56 52 00 90 00 1C [16:27:20]RAPDU: 90 00 [16:27:20]wFMCommunicate OK [16:27:20]wFMCommunicate request_size=255 [16:27:20]MH_SAM_APDU [16:27:20]CAPDU: 80 0D 02 02 FA 03 00 89 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 [16:27:20]Write to MH i2c: E2 02 01 57 52 80 0D 02 02 FA 00 03 00 89 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 AA [16:27:20]Write i2c OK [16:27:20]MH_I2C_Read... [16:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:21]Read from MH i2c: E2 [16:27:21]MH_I2C_Read... [16:27:21]Read from MH i2c: E2 03 00 [16:27:21]MH_I2C_Read... [16:27:21]Read from MH i2c: E2 03 00 57 52 00 90 00 1D [16:27:21]RAPDU: 90 00 [16:27:21]wFMCommunicate OK [16:27:21]wFMCommunicate request_size=152 [16:27:21]MH_SAM_APDU [16:27:21]CAPDU: 80 0D 02 02 93 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 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 ED 7D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 52 C1 00 00 35 04 06 00 DF 47 A9 DB A5 63 [16:27:21]Write to MH i2c: E2 9B 00 58 52 80 0D 02 02 93 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 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 ED 7D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 52 C1 00 00 35 04 06 00 DF 47 A9 DB A5 63 00 00 80 [16:27:21]Write i2c OK [16:27:21]MH_I2C_Read... [16:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:21]Read from MH i2c: E2 [16:27:21]MH_I2C_Read... [16:27:21]Read from MH i2c: E2 03 00 [16:27:21]MH_I2C_Read... [16:27:21]Read from MH i2c: E2 03 00 58 52 00 90 00 1E [16:27:21]RAPDU: 90 00 [16:27:21]wFMCommunicate OK [16:27:21]wFMCommunicate request_size=4 [16:27:21]MH_SAM_APDU [16:27:21]CAPDU: 80 0D 03 02 [16:27:21]Write to MH i2c: E2 08 00 59 52 80 0D 03 02 00 00 00 00 26 [16:27:21]Write i2c OK [16:27:21]MH_I2C_Read... [16:27:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:21]Read from MH i2c: E2 [16:27:21]MH_I2C_Read... [16:27:21]Read from MH i2c: E2 0B 00 [16:27:21]MH_I2C_Read... [16:27:21]Read from MH i2c: E2 0B 00 59 52 00 6E B7 A4 BD B9 F6 58 9F 90 00 53 [16:27:21]RAPDU: 6E B7 A4 BD B9 F6 58 9F 90 00 [16:27:21]wFMCommunicate OK [16:27:21]SAM_PROTO_SignData done [16:27:21]FM_MakeSignedData done [16:27:21]CreateOFDProtocolMessage [16:27:21]wFMCommunicate request_size=4 [16:27:21]MH_SAM_APDU [16:27:21]CAPDU: 80 11 00 00 [16:27:21]Write to MH i2c: E2 08 00 5A 52 80 11 00 00 00 00 00 00 26 [16:27:21]Write i2c OK [16:27:21]MH_I2C_Read... [16:27:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:21]Read from MH i2c: E2 [16:27:21]MH_I2C_Read... [16:27:21]Read from MH i2c: E2 17 00 [16:27:21]MH_I2C_Read... [16:27:21]Read from MH i2c: E2 17 00 5A 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 71 [16:27:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:27:21]wFMCommunicate OK [16:27:21]CreateOFDProtocolMessage done [16:27:21]OFDSenderStorePacket 49490 [16:27:21]StoreOFDPacket docnum=49490 [16:27:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9D 01 00 00 FC 91 95 01 01 27 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 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 ED 7D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 52 C1 00 00 35 04 06 00 DF 47 A9 DB A5 63 6E B7 A4 BD B9 F6 58 9F [16:27:21]CheckFolder [16:27:21]dirname=/storage/ofd_packets [16:27:21]CheckFolder done [16:27:21]ProducePacketName [16:27:21]name=ofd_packets/00049490 [16:27:21]NVStorageSaveData ofd_packets/00049490 [16:27:21]File name is /storage/ofd_packets/00049490 [16:27:21]Write 443 bytes [16:27:21]NVStorageSaveData done [16:27:21]OFDSenderStorePacket done [16:27:21]KKMCreateOFDPacket done [16:27:21]NVStorageSaveData kkm_last_timestamp [16:27:21]File name is /storage/kkm_last_timestamp [16:27:21]Write 4 bytes [16:27:21]NVStorageSaveData done [16:27:21]ExternCall_PrintAddStr [16:27:21]wPrintStart [16:27:21]Write to MH i2c: 01 00 00 5B 52 AD [16:27:21]Write i2c OK [16:27:21]MH_I2C_Read... [16:27:21]Read from MH i2c: 01 [16:27:21]MH_I2C_Read... [16:27:21]Read from MH i2c: 01 07 00 [16:27:21]MH_I2C_Read... [16:27:21]Read from MH i2c: 01 07 00 5B 52 00 00 00 00 00 FF 0F C2 [16:27:21]RasterBufferAndPrint [16:27:21]line Счет N : (3)189700 [16:27:21]line ИНН: 02508201610067 [16:27:21]line Контрольно-Кассовый Чек [16:27:21]line ПРОДАЖА [16:27:21]line Товар: 4870001570057 [16:27:21]line Напиток Pepsi 0,5л [16:27:21]line 1.000 * 80.00 [16:27:21]line = 80.00 [16:27:21]line НДС 12% НСП 1% [16:27:21]line > о реализуемом товаре [16:27:21]line Товар: 5449000027450 [16:27:21]line Напиток FuzeTea чай манго,ром 0,5л [16:27:21]line 1.000 * 65.00 [16:27:21]line = 65.00 [16:27:21]line НДС 12% НСП 1% [16:27:21]line > о реализуемом товаре [16:27:21]line ИТОГО: 145.00 [16:27:21]line НСП 1% : 1.28 [16:27:21]line НДС 12% : 15.40 [16:27:21]line Наличными: 145.00 [16:27:21]line Безнал.: 0.00 [16:27:21]line Место: АЗС № 95 "Партнер Нефть" [16:27:21]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:27:21]line СНО: Общий режим [16:27:21]line Чек 138 16.08.2024 16:27 [16:27:21]line Смена: 464 ФФД: 1.0 [16:27:21]line ЗНМ: 0300000078 [16:27:21]line РНМ: 0000000000092546 [16:27:21]line Версия ККМ: 001 [16:27:21]line ФМ: 0000000000871800 [16:27:21]line ФД: 49490 [16:27:21]line ФПД: 245498885416291 [16:27:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T162725&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49490&fm=245498885416291&tin=02508201610067®Number=0000000000092546&sum=14500 [16:27:21]line 0 [16:27:21]OFD Sender: Processing packet 49490 [packets to send 21, broken 20] [16:27:21]ProducePacketName [16:27:21]name=ofd_packets/00049490 [16:27:21]OFD Sender: To server: pG, [16:27:21]CommunicateWithHost lk.salyk.kg:30040 [16:27:21]ConnectInit lk.salyk.kg [16:27:21]written 0, free lines is 4095 [16:27:21]Connected sock=10 [16:27:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9D 01 00 00 FC 91 95 01 01 27 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 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 ED 7D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 52 C1 00 00 35 04 06 00 DF 47 A9 DB A5 63 6E B7 A4 BD B9 F6 58 9F [16:27:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 75 8C 47 00 48 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 52 C1 00 00 F4 03 04 00 2C 29 BF 66 B6 04 01 00 00 63 0F 80 5A 0D 46 66 9F [16:27:22]CommunicateWithHost err = 0 [16:27:22]CheckOFDResponse [16:27:22]1017 (14) - 77093643461234 [16:27:22]1041 (16) - 0000000000871800 [16:27:22]1040 (4) - 49490 [16:27:22]1012 (4) - 16.08.2024 10:25 [16:27:22]1206 (1) - 0 [16:27:22]OFD Sender: Remove packet 49490 [16:27:22]ProducePacketName [16:27:22]name=ofd_packets/00049490 [16:27:22]NVStorageDeleteData [16:27:22]Write to MH i2c: 01 00 00 8A 52 DC [16:27:22]Write i2c OK [16:27:22]MH_I2C_Read... [16:27:22]Read from MH i2c: 01 [16:27:22]MH_I2C_Read... [16:27:22]Read from MH i2c: 01 07 00 [16:27:22]MH_I2C_Read... [16:27:22]Read from MH i2c: 01 07 00 8A 52 00 00 00 00 00 80 0C 6F [16:27:22]RasterBufferAndPrint [16:27:22]line [16:27:22]line [16:27:22]line [16:27:22]line [16:27:22]line [16:27:22]written 0, free lines is 3209 [16:27:22]MH_Cut [16:27:22]Write to MH i2c: D1 01 00 91 52 01 B5 [16:27:22]Write i2c OK [16:27:22]MH_I2C_Read... [16:27:22]Read from MH i2c: D1 [16:27:22]MH_I2C_Read... [16:27:22]Read from MH i2c: D1 01 00 [16:27:22]MH_I2C_Read... [16:27:22]Read from MH i2c: D1 01 00 91 52 00 B4 [16:27:22]Write to MH i2c: 01 00 00 92 52 E4 [16:27:22]Write i2c OK [16:27:22]MH_I2C_Read... [16:27:22]OFD Sender: No OFD packet to send [16:27:22]*** Cut start [16:27:22]*** Purtial cut [16:27:22]*** CUTSNS_PIN = 0 [16:27:23]*** Stage 1: CUTSNS_PIN = 1 [16:27:24]Read from MH i2c: 01 [16:27:24]MH_I2C_Read... [16:27:24]*** Stop cut motor [16:27:24]*** Cut end [16:27:24]Read from MH i2c: 01 07 00 [16:27:24]MH_I2C_Read... [16:27:24]Read from MH i2c: 01 07 00 92 52 00 00 00 00 00 FF 0F F9 [16:27:24]process_action close_receipt done [16:27:24]requested_data is exist [16:27:24]produce_requested_data [16:27:24]requested_item fm.sn is exist - process it [16:27:24]wFMCommunicate request_size=4 [16:27:24]MH_SAM_APDU [16:27:24]CAPDU: 80 11 00 00 [16:27:24]Write to MH i2c: E2 08 00 93 52 80 11 00 00 00 00 00 00 5F [16:27:24]Write i2c OK [16:27:24]MH_I2C_Read... [16:27:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:25]Read from MH i2c: E2 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 17 00 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 17 00 93 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AA [16:27:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:27:25]wFMCommunicate OK [16:27:25]requested_item fd.num is exist - process it [16:27:25]SAM_PROTO_GetFieldsCounters [16:27:25]wFMCommunicate request_size=4 [16:27:25]MH_SAM_APDU [16:27:25]CAPDU: 80 13 00 00 [16:27:25]Write to MH i2c: E2 08 00 94 52 80 13 00 00 00 00 00 00 62 [16:27:25]Write i2c OK [16:27:25]MH_I2C_Read... [16:27:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:25]Read from MH i2c: E2 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 62 00 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 62 00 94 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 52 C1 00 00 0E 04 04 00 D0 01 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 FE [16:27:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 52 C1 00 00 0E 04 04 00 D0 01 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:27:25]wFMCommunicate OK [16:27:25]SAM_PROTO_GetFieldsCounters done [16:27:25]requested_item shift.num is exist - process it [16:27:25]requested_item shift.opened is exist - process it [16:27:25]req_shift_opened [16:27:25]FM_GetShiftState [16:27:25]SAM_PROTO_GetShiftState [16:27:25]wFMCommunicate request_size=4 [16:27:25]MH_SAM_APDU [16:27:25]CAPDU: 80 13 01 00 [16:27:25]Write to MH i2c: E2 08 00 95 52 80 13 01 00 00 00 00 00 64 [16:27:25]Write i2c OK [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 [16:27:25]MH_I2C_Read... [16:27:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:25]Read from MH i2c: E2 0E 00 [16:27:25]MH_I2C_Read... [16:27:25]Read from MH i2c: E2 0E 00 95 52 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 DA [16:27:25]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:27:25]wFMCommunicate OK [16:27:25]SAM_PROTO_GetShiftState done [16:27:25]FM_GetShiftState done [16:27:25]req_shift_opened done [16:27:25]requested_item shift.open_date is exist - process it [16:27:25]req_shift_open_date [16:27:25]req_shift_open_date done [16:27:25]produce_requested_data done [16:27:25]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49490,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [16:27:25]process_action_free close_receipt [16:27:25]json_value_free [16:27:25]json_value_free done [16:27:25]process_json_proto returns [16:27:25]Send response to host [16:27:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49490,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [16:27:25]free response buf [16:27:25]execute_script done [16:27:25]execute_script returns [16:27:25]free content buf [16:27:25]Sock 9.Close socket [16:27:25]Sock 9.Thread stoped [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:33]accept exits with 7 [16:27:33]New connection [16:27:33]New thread 3066973540 created [16:27:33]Thread 3066830180 joined [16:27:33]Waiting for new connection... [16:27:33] Sock 7.Parse request [16:27:33]Sock 7.Check first char [16:27:33]Sock 7.First char is OK [16:27:33]request: POST /json_proto HTTP/1.0 [16:27:33]Method: POST [16:27:33]URL: /json_proto [16:27:33]Method is POST - this is cgi request [16:27:33]url: /json_proto [16:27:33]query_string will be loaded in cgi processing [16:27:33]execute_cgi json_proto POST (null) [16:27:33]execute_cgi path=json_proto method=POST [16:27:33]POST find Content-Length [16:27:33]Host: 172.17.46.196:8080 [16:27:33]Content-Length: 669 [16:27:33]Content-Type: application/json [16:27:33] [16:27:33]POST finish read [16:27:33]Found Content-Length = 669 [16:27:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189701", "tax_sys" : 0, "items" : [ { "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:33]execute_script... [16:27:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189701", "tax_sys" : 0, "items" : [ { "code": "4700003010018", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 0,5\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:27:33]POST & json_proto [16:27:33]process_json_proto [16:27:33]json parsed OK: [16:27:33]protocol is kg_v1.0 [16:27:33]action value=close_receipt [16:27:33]process_action close_receipt [16:27:33]cmd_close_receipt [16:27:33]MH_GetDate [16:27:33]Write to MH i2c: F0 00 00 96 52 D7 [16:27:33]Write i2c OK [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: F0 [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: F0 09 00 [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: F0 09 00 96 52 00 FB 7D BF 66 07 E8 5D 66 2F [16:27:33]GetLastDocTimeStamp 1723825645 [16:27:33]current date 1723825659 [16:27:33]FM_GetShiftState [16:27:33]SAM_PROTO_GetShiftState [16:27:33]wFMCommunicate request_size=4 [16:27:33]MH_SAM_APDU [16:27:33]CAPDU: 80 13 01 00 [16:27:33]Write to MH i2c: E2 08 00 97 52 80 13 01 00 00 00 00 00 66 [16:27:33]Write i2c OK [16:27:33]MH_I2C_Read... [16:27:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:33]Read from MH i2c: E2 [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: E2 0E 00 [16:27:33]MH_I2C_Read... [16:27:33]Read from MH i2c: E2 0E 00 97 52 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 DC [16:27:33]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:27:33]wFMCommunicate OK [16:27:33]SAM_PROTO_GetShiftState done [16:27:33]FM_GetShiftState done [16:27:33]opened in 1723766958 [16:27:33]opened+sec_in_day 1723853358 [16:27:33]quantity*price = 5000 [16:27:33]sum+1 = 5001 [16:27:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 139 16.08.2024 16:27 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49491 ФПД: 138760441115205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T162739&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49491&fm=138760441115205&tin=02508201610067®Number=0000000000092546&sum=5000 0 [16:27:34]StoreToDocumentArchive [16:27:34]shift 464 fd 49491 [16:27:34]save to /storage/0464/doc_00049491 [16:27:34]save last doc name /storage/0464/doc_00049491 to /storage/kkm_last_doc_name [16:27:34]save OK [16:27:34]Clear old archive folders... [16:27:34]ProcessDocumentItem done err = 0, tmpTLVsize=292 [16:27:34]tlvbuf is 00E28720 [16:27:34]SAM_PROTO_ClearQueue [16:27:34]wFMCommunicate request_size=4 [16:27:34]MH_SAM_APDU [16:27:34]CAPDU: 80 09 00 00 [16:27:34]Write to MH i2c: E2 08 00 A4 52 80 09 00 00 00 00 00 00 68 [16:27:34]Write i2c OK [16:27:34]MH_I2C_Read... [16:27:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:27:34]Read from MH i2c: E2 [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: E2 03 00 [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: E2 03 00 A4 52 00 90 00 6A [16:27:34]RAPDU: 90 00 [16:27:34]wFMCommunicate OK [16:27:34]SAM_PROTO_ClearQueue done [16:27:34]KKMCreateOFDPacket [16:27:34]OFDProtocolAddRootSTLVToBuf [16:27:34]FM_MakeSignedData [16:27:34]FM_MakeSignedData [16:27:34]SAM_PROTO_SignData [16:27:34]wFMCommunicate request_size=4 [16:27:34]MH_SAM_APDU [16:27:34]CAPDU: 80 0D 01 02 [16:27:34]Write to MH i2c: E2 08 00 A5 52 80 0D 01 02 00 00 00 00 70 [16:27:34]Write i2c OK [16:27:34]MH_I2C_Read... [16:27:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:27:34]Read from MH i2c: E2 [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: E2 03 00 [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: E2 03 00 A5 52 00 90 00 6B [16:27:34]RAPDU: 90 00 [16:27:34]wFMCommunicate OK [16:27:34]wFMCommunicate request_size=255 [16:27:34]MH_SAM_APDU [16:27:34]CAPDU: 80 0D 02 02 FA 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 FB 7D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 [16:27:34]Write to MH i2c: E2 02 01 A6 52 80 0D 02 02 FA 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 FB 7D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 00 00 BA [16:27:34]Write i2c OK [16:27:34]MH_I2C_Read... [16:27:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:34]Read from MH i2c: E2 [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: E2 03 00 [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: E2 03 00 A6 52 00 90 00 6C [16:27:34]RAPDU: 90 00 [16:27:34]wFMCommunicate OK [16:27:34]wFMCommunicate request_size=51 [16:27:34]MH_SAM_APDU [16:27:34]CAPDU: 80 0D 02 02 2E 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 53 C1 00 00 35 04 06 00 7E 33 AE CD 32 45 [16:27:34]Write to MH i2c: E2 36 00 A7 52 80 0D 02 02 2E 00 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 53 C1 00 00 35 04 06 00 7E 33 AE CD 32 45 00 00 B4 [16:27:34]Write i2c OK [16:27:34]MH_I2C_Read... [16:27:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:27:34]Read from MH i2c: E2 [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: E2 03 00 [16:27:34]MH_I2C_Read... [16:27:34]Read from MH i2c: E2 03 00 A7 52 00 90 00 6D [16:27:34]RAPDU: 90 00 [16:27:34]wFMCommunicate OK [16:27:34]wFMCommunicate request_size=4 [16:27:34]MH_SAM_APDU [16:27:34]CAPDU: 80 0D 03 02 [16:27:34]Write to MH i2c: E2 08 00 A8 52 80 0D 03 02 00 00 00 00 75 [16:27:34]Write i2c OK [16:27:34]MH_I2C_Read... [16:27:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:27:35]Read from MH i2c: E2 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: E2 0B 00 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: E2 0B 00 A8 52 00 C4 EA 32 28 18 7F 8C 46 90 00 E7 [16:27:35]RAPDU: C4 EA 32 28 18 7F 8C 46 90 00 [16:27:35]wFMCommunicate OK [16:27:35]SAM_PROTO_SignData done [16:27:35]FM_MakeSignedData done [16:27:35]CreateOFDProtocolMessage [16:27:35]wFMCommunicate request_size=4 [16:27:35]MH_SAM_APDU [16:27:35]CAPDU: 80 11 00 00 [16:27:35]Write to MH i2c: E2 08 00 A9 52 80 11 00 00 00 00 00 00 75 [16:27:35]Write i2c OK [16:27:35]MH_I2C_Read... [16:27:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:35]Read from MH i2c: E2 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: E2 17 00 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: E2 17 00 A9 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C0 [16:27:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:27:35]wFMCommunicate OK [16:27:35]CreateOFDProtocolMessage done [16:27:35]OFDSenderStorePacket 49491 [16:27:35]StoreOFDPacket docnum=49491 [16:27:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 38 01 00 00 10 48 30 01 83 06 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 FB 7D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 53 C1 00 00 35 04 06 00 7E 33 AE CD 32 45 C4 EA 32 28 18 7F 8C 46 [16:27:35]CheckFolder [16:27:35]dirname=/storage/ofd_packets [16:27:35]CheckFolder done [16:27:35]ProducePacketName [16:27:35]name=ofd_packets/00049491 [16:27:35]NVStorageSaveData ofd_packets/00049491 [16:27:35]File name is /storage/ofd_packets/00049491 [16:27:35]Write 342 bytes [16:27:35]NVStorageSaveData done [16:27:35]OFDSenderStorePacket done [16:27:35]KKMCreateOFDPacket done [16:27:35]NVStorageSaveData kkm_last_timestamp [16:27:35]File name is /storage/kkm_last_timestamp [16:27:35]Write 4 bytes [16:27:35]NVStorageSaveData done [16:27:35]ExternCall_PrintAddStr [16:27:35]wPrintStart [16:27:35]Write to MH i2c: 01 00 00 AA 52 FC [16:27:35]Write i2c OK [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: 01 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: 01 07 00 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: 01 07 00 AA 52 00 00 00 00 00 FF 0F 11 [16:27:35]RasterBufferAndPrint [16:27:35]line Счет N : (3)189701 [16:27:35]line ИНН: 02508201610067 [16:27:35]line Контрольно-Кассовый Чек [16:27:35]line ПРОДАЖА [16:27:35]line Товар: 4700003010018 [16:27:35]line Чай хол Let`s Go! зел лим ПЭТ 0,5л [16:27:35]line 1.000 * 50.00 [16:27:35]line = 50.00 [16:27:35]line НДС 12% НСП 1% [16:27:35]line > о реализуемом товаре [16:27:35]line ИТОГО: 50.00 [16:27:35]line НСП 1% : 0.44 [16:27:35]line НДС 12% : 5.31 [16:27:35]line Наличными: 50.00 [16:27:35]line Безнал.: 0.00 [16:27:35]line Место: АЗС № 95 "Партнер Нефть" [16:27:35]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:27:35]line СНО: Общий режим [16:27:35]line Чек 139 16.08.2024 16:27 [16:27:35]line Смена: 464 ФФД: 1.0 [16:27:35]line ЗНМ: 0300000078 [16:27:35]line РНМ: 0000000000092546 [16:27:35]line Версия ККМ: 001 [16:27:35]line ФМ: 0000000000871800 [16:27:35]line ФД: 49491 [16:27:35]line ФПД: 138760441115205 [16:27:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T162739&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49491&fm=138760441115205&tin=02508201610067®Number=0000000000092546&sum=5000 [16:27:35]OFD Sender: Processing packet 49491 [packets to send 21, broken 20] [16:27:35]ProducePacketName [16:27:35]name=ofd_packets/00049491 [16:27:35]OFD Sender: To server: pG, [16:27:35]CommunicateWithHost lk.salyk.kg:30040 [16:27:35]ConnectInit lk.salyk.kg [16:27:35]line 0 [16:27:35]written 0, free lines is 4095 [16:27:35]Connected sock=10 [16:27:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 38 01 00 00 10 48 30 01 83 06 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 31 38 06 04 32 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 FB 7D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 53 C1 00 00 35 04 06 00 7E 33 AE CD 32 45 C4 EA 32 28 18 7F 8C 46 [16:27:35]Write to MH i2c: 01 00 00 D3 52 25 [16:27:35]Write i2c OK [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: 01 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: 01 07 00 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: 01 07 00 D3 52 00 00 00 00 00 D7 0C 0F [16:27:35]RasterBufferAndPrint [16:27:35]line [16:27:35]line [16:27:35]line [16:27:35]line [16:27:35]line [16:27:35]written 0, free lines is 3295 [16:27:35]MH_Cut [16:27:35]Write to MH i2c: D1 01 00 DA 52 01 FE [16:27:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A7 DC 47 00 D2 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 38 37 31 38 30 30 10 04 04 00 53 C1 00 00 F4 03 04 00 3A 29 BF 66 B6 04 01 00 00 AD 52 2E E8 1F 81 12 83 [16:27:35]CommunicateWithHost err = 0 [16:27:35]CheckOFDResponse [16:27:35]1017 (14) - 77093643461234 [16:27:35]1041 (16) - 0000000000871800 [16:27:35]1040 (4) - 49491 [16:27:35]1012 (4) - 16.08.2024 10:26 [16:27:35]1206 (1) - 0 [16:27:35]OFD Sender: Remove packet 49491 [16:27:35]ProducePacketName [16:27:35]name=ofd_packets/00049491 [16:27:35]NVStorageDeleteData [16:27:35]Write i2c OK [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: D1 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: D1 01 00 [16:27:35]MH_I2C_Read... [16:27:35]Read from MH i2c: D1 01 00 DA 52 00 FD [16:27:35]Write to MH i2c: 01 00 00 DB 52 2D [16:27:35]Write i2c OK [16:27:35]MH_I2C_Read... [16:27:36]OFD Sender: No OFD packet to send [16:27:36]*** Cut start [16:27:36]*** Purtial cut [16:27:36]*** Stage 1: CUTSNS_PIN = 1 [16:27:36]Read from MH i2c: 01 [16:27:36]MH_I2C_Read... [16:27:36]*** Stop cut motor [16:27:36]*** Cut end [16:27:36]Read from MH i2c: 01 07 00 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: 01 07 00 DB 52 00 00 00 00 00 FF 0F 42 [16:27:36]process_action close_receipt done [16:27:36]requested_data is exist [16:27:36]produce_requested_data [16:27:36]requested_item fm.sn is exist - process it [16:27:36]wFMCommunicate request_size=4 [16:27:36]MH_SAM_APDU [16:27:36]CAPDU: 80 11 00 00 [16:27:36]Write to MH i2c: E2 08 00 DC 52 80 11 00 00 00 00 00 00 A8 [16:27:36]Write i2c OK [16:27:36]MH_I2C_Read... [16:27:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:27:36]Read from MH i2c: E2 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 17 00 [16:27:36]MH_I2C_Read... [16:27:36]Read from MH i2c: E2 17 00 DC 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F3 [16:27:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:27:36]wFMCommunicate OK [16:27:36]requested_item fd.num is exist - process it [16:27:36]SAM_PROTO_GetFieldsCounters [16:27:36]wFMCommunicate request_size=4 [16:27:36]MH_SAM_APDU [16:27:36]CAPDU: 80 13 00 00 [16:27:36]Write to MH i2c: E2 08 00 DD 52 80 13 00 00 00 00 00 00 AB [16:27:36]Write i2c OK [16:27:36]MH_I2C_Read... [16:27:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:27:37]Read from MH i2c: E2 [16:27:37]MH_I2C_Read... [16:27:37]Read from MH i2c: E2 62 00 [16:27:37]MH_I2C_Read... [16:27:37]Read from MH i2c: E2 62 00 DD 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 53 C1 00 00 0E 04 04 00 D0 01 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 4B [16:27:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 53 C1 00 00 0E 04 04 00 D0 01 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 [16:27:37]wFMCommunicate OK [16:27:37]SAM_PROTO_GetFieldsCounters done [16:27:37]requested_item shift.num is exist - process it [16:27:37]requested_item shift.opened is exist - process it [16:27:37]req_shift_opened [16:27:37]FM_GetShiftState [16:27:37]SAM_PROTO_GetShiftState [16:27:37]wFMCommunicate request_size=4 [16:27:37]MH_SAM_APDU [16:27:37]CAPDU: 80 13 01 00 [16:27:37]Write to MH i2c: E2 08 00 DE 52 80 13 01 00 00 00 00 00 AD [16:27:37]Write i2c OK [16:27:37]MH_I2C_Read... [16:27:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:27:37]Read from MH i2c: E2 [16:27:37]MH_I2C_Read... [16:27:37]Read from MH i2c: E2 0E 00 [16:27:37]MH_I2C_Read... [16:27:37]Read from MH i2c: E2 0E 00 DE 52 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 23 [16:27:37]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:27:37]wFMCommunicate OK [16:27:37]SAM_PROTO_GetShiftState done [16:27:37]FM_GetShiftState done [16:27:37]req_shift_opened done [16:27:37]requested_item shift.open_date is exist - process it [16:27:37]req_shift_open_date [16:27:37]req_shift_open_date done [16:27:37]produce_requested_data done [16:27:37]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49491,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [16:27:37]process_action_free close_receipt [16:27:37]json_value_free [16:27:37]json_value_free done [16:27:37]process_json_proto returns [16:27:37]Send response to host [16:27:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49491,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [16:27:37]free response buf [16:27:37]execute_script done [16:27:37]execute_script returns [16:27:37]free content buf [16:27:37]Sock 7.Close socket [16:27:37]Sock 7.Thread stoped [16:27:41]OFD Sender: No OFD packet to send [16:27:46]OFD Sender: No OFD packet to send [16:27:51]OFD Sender: No OFD packet to send [16:27:56]OFD Sender: No OFD packet to send [16:28:01]OFD Sender: No OFD packet to send [16:28:06]OFD Sender: No OFD packet to send [16:28:11]OFD Sender: No OFD packet to send [16:28:16]OFD Sender: No OFD packet to send [16:28:21]OFD Sender: No OFD packet to send [16:28:26]OFD Sender: No OFD packet to send [16:28:31]OFD Sender: No OFD packet to send [16:28:36]OFD Sender: No OFD packet to send [16:28:41]OFD Sender: No OFD packet to send [16:28:46]OFD Sender: No OFD packet to send [16:28:51]OFD Sender: No OFD packet to send [16:28:56]OFD Sender: No OFD packet to send [16:29:01]OFD Sender: No OFD packet to send [16:29:06]OFD Sender: No OFD packet to send [16:29:11]OFD Sender: No OFD packet to send [16:29:16]OFD Sender: No OFD packet to send [16:29:21]OFD Sender: No OFD packet to send [16:29:26]OFD Sender: No OFD packet to send [16:29:31]OFD Sender: No OFD packet to send [16:29:36]OFD Sender: No OFD packet to send [16:29:41]OFD Sender: No OFD packet to send [16:29:46]OFD Sender: No OFD packet to send [16:29:51]OFD Sender: No OFD packet to send [16:29:56]OFD Sender: No OFD packet to send [16:30:01]OFD Sender: No OFD packet to send [16:30:06]OFD Sender: No OFD packet to send [16:30:11]OFD Sender: No OFD packet to send [16:30:16]OFD Sender: No OFD packet to send [16:30:21]OFD Sender: No OFD packet to send [16:30:26]OFD Sender: No OFD packet to send [16:30:31]OFD Sender: No OFD packet to send [16:30:36]OFD Sender: No OFD packet to send [16:30:41]OFD Sender: No OFD packet to send [16:30:46]OFD Sender: No OFD packet to send [16:30:51]OFD Sender: No OFD packet to send [16:30:56]OFD Sender: No OFD packet to send [16:31:01]OFD Sender: No OFD packet to send [16:31:06]OFD Sender: No OFD packet to send [16:31:11]OFD Sender: No OFD packet to send [16:31:16]OFD Sender: No OFD packet to send [16:31:21]OFD Sender: No OFD packet to send [16:31:26]OFD Sender: No OFD packet to send [16:31:31]OFD Sender: No OFD packet to send [16:31:36]OFD Sender: No OFD packet to send [16:31:41]OFD Sender: No OFD packet to send [16:31:46]OFD Sender: No OFD packet to send [16:31:51]OFD Sender: No OFD packet to send [16:31:56]OFD Sender: No OFD packet to send [16:32:01]OFD Sender: No OFD packet to send [16:32:06]OFD Sender: No OFD packet to send [16:32:11]OFD Sender: No OFD packet to send [16:32:16]OFD Sender: No OFD packet to send [16:32:21]OFD Sender: No OFD packet to send [16:32:26]OFD Sender: No OFD packet to send [16:32:31]OFD Sender: No OFD packet to send [16:32:36]OFD Sender: No OFD packet to send [16:32:41]OFD Sender: No OFD packet to send [16:32:46]OFD Sender: No OFD packet to send [16:32:51]OFD Sender: No OFD packet to send [16:32:56]OFD Sender: No OFD packet to send [16:33:01]OFD Sender: No OFD packet to send [16:33:06]OFD Sender: No OFD packet to send [16:33:11]OFD Sender: No OFD packet to send [16:33:16]OFD Sender: No OFD packet to send [16:33:21]OFD Sender: No OFD packet to send [16:33:26]OFD Sender: No OFD packet to send [16:33:31]OFD Sender: No OFD packet to send [16:33:36]OFD Sender: No OFD packet to send [16:33:41]OFD Sender: No OFD packet to send [16:33:46]OFD Sender: No OFD packet to send [16:33:51]OFD Sender: No OFD packet to send [16:33:56]OFD Sender: No OFD packet to send [16:34:01]OFD Sender: No OFD packet to send [16:34:06]OFD Sender: No OFD packet to send [16:34:11]OFD Sender: No OFD packet to send [16:34:16]OFD Sender: No OFD packet to send [16:34:21]OFD Sender: No OFD packet to send [16:34:26]OFD Sender: No OFD packet to send [16:34:31]OFD Sender: No OFD packet to send [16:34:36]OFD Sender: No OFD packet to send [16:34:41]OFD Sender: No OFD packet to send [16:34:46]OFD Sender: No OFD packet to send [16:34:51]OFD Sender: No OFD packet to send [16:34:56]OFD Sender: No OFD packet to send [16:35:01]OFD Sender: No OFD packet to send [16:35:06]OFD Sender: No OFD packet to send [16:35:11]OFD Sender: No OFD packet to send [16:35:16]OFD Sender: No OFD packet to send [16:35:21]OFD Sender: No OFD packet to send [16:35:26]OFD Sender: No OFD packet to send [16:35:31]OFD Sender: No OFD packet to send [16:35:36]OFD Sender: No OFD packet to send [16:35:41]OFD Sender: No OFD packet to send [16:35:46]OFD Sender: No OFD packet to send [16:35:51]OFD Sender: No OFD packet to send [16:35:56]OFD Sender: No OFD packet to send [16:36:01]OFD Sender: No OFD packet to send [16:36:06]OFD Sender: No OFD packet to send [16:36:11]OFD Sender: No OFD packet to send [16:36:16]OFD Sender: No OFD packet to send [16:36:21]OFD Sender: No OFD packet to send [16:36:26]OFD Sender: No OFD packet to send [16:36:31]OFD Sender: No OFD packet to send [16:36:36]OFD Sender: No OFD packet to send [16:36:41]OFD Sender: No OFD packet to send [16:36:46]OFD Sender: No OFD packet to send [16:36:51]OFD Sender: No OFD packet to send [16:36:56]OFD Sender: No OFD packet to send [16:37:01]OFD Sender: No OFD packet to send [16:37:06]OFD Sender: No OFD packet to send [16:37:11]OFD Sender: No OFD packet to send [16:37:16]OFD Sender: No OFD packet to send [16:37:21]OFD Sender: No OFD packet to send [16:37:26]OFD Sender: No OFD packet to send [16:37:31]OFD Sender: No OFD packet to send [16:37:36]OFD Sender: No OFD packet to send [16:37:41]OFD Sender: No OFD packet to send [16:37:46]OFD Sender: No OFD packet to send [16:37:51]OFD Sender: No OFD packet to send [16:37:56]OFD Sender: No OFD packet to send [16:38:01]OFD Sender: No OFD packet to send [16:38:02]accept exits with 9 [16:38:02]New connection [16:38:02]New thread 3066830180 created [16:38:02]Thread 3066973540 joined [16:38:02]Waiting for new connection... [16:38:02] Sock 9.Parse request [16:38:02]Sock 9.Check first char [16:38:02]Sock 9.First char is OK [16:38:02]request: POST /json_proto HTTP/1.0 [16:38:02]Method: POST [16:38:02]URL: /json_proto [16:38:02]Method is POST - this is cgi request [16:38:02]url: /json_proto [16:38:02]query_string will be loaded in cgi processing [16:38:02]execute_cgi json_proto POST (null) [16:38:02]execute_cgi path=json_proto method=POST [16:38:02]POST find Content-Length [16:38:02]Host: 172.17.46.196:8080 [16:38:02]Content-Length: 660 [16:38:02]Content-Type: application/json [16:38:02] [16:38:02]POST finish read [16:38:02]Found Content-Length = 660 [16:38:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189702", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:02]execute_script... [16:38: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 : (3)189702", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 2.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:02]POST & json_proto [16:38:02]process_json_proto [16:38:02]json parsed OK: [16:38:02]protocol is kg_v1.0 [16:38:02]action value=close_receipt [16:38:02]process_action close_receipt [16:38:02]cmd_close_receipt [16:38:02]MH_GetDate [16:38:02]Write to MH i2c: F0 00 00 DF 52 20 [16:38:02]Write i2c OK [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: F0 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: F0 09 00 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: F0 09 00 DF 52 00 70 80 BF 66 07 E8 5D 66 F0 [16:38:02]GetLastDocTimeStamp 1723825659 [16:38:02]current date 1723826288 [16:38:02]FM_GetShiftState [16:38:02]SAM_PROTO_GetShiftState [16:38:02]wFMCommunicate request_size=4 [16:38:02]MH_SAM_APDU [16:38:02]CAPDU: 80 13 01 00 [16:38:02]Write to MH i2c: E2 08 00 E0 52 80 13 01 00 00 00 00 00 AF [16:38:02]Write i2c OK [16:38:02]MH_I2C_Read... [16:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:02]Read from MH i2c: E2 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 0E 00 [16:38:02]MH_I2C_Read... [16:38:02]Read from MH i2c: E2 0E 00 E0 52 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 25 [16:38:02]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:38:02]wFMCommunicate OK [16:38:02]SAM_PROTO_GetShiftState done [16:38:02]FM_GetShiftState done [16:38:02]opened in 1723766958 [16:38:02]opened+sec_in_day 1723853358 [16:38:02]quantity*price = 17000 [16:38:02]sum+1 = 17001 [16:38:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 140 16.08.2024 16:38 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49492 ФПД: 75840650026405 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T163808&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49492&fm=75840650026405&tin=02508201610067®Number=0000000000092546&sum=17000 0 [16:38:03]StoreToDocumentArchive [16:38:03]shift 464 fd 49492 [16:38:03]save to /storage/0464/doc_00049492 [16:38:03]save last doc name /storage/0464/doc_00049492 to /storage/kkm_last_doc_name [16:38:03]save OK [16:38:03]Clear old archive folders... [16:38:03]ProcessDocumentItem done err = 0, tmpTLVsize=281 [16:38:03]tlvbuf is 00E28210 [16:38:03]SAM_PROTO_ClearQueue [16:38:03]wFMCommunicate request_size=4 [16:38:03]MH_SAM_APDU [16:38:03]CAPDU: 80 09 00 00 [16:38:03]Write to MH i2c: E2 08 00 ED 52 80 09 00 00 00 00 00 00 B1 [16:38:03]Write i2c OK [16:38:03]MH_I2C_Read... [16:38:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:03]Read from MH i2c: E2 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 03 00 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 03 00 ED 52 00 90 00 B3 [16:38:03]RAPDU: 90 00 [16:38:03]wFMCommunicate OK [16:38:03]SAM_PROTO_ClearQueue done [16:38:03]KKMCreateOFDPacket [16:38:03]OFDProtocolAddRootSTLVToBuf [16:38:03]FM_MakeSignedData [16:38:03]FM_MakeSignedData [16:38:03]SAM_PROTO_SignData [16:38:03]wFMCommunicate request_size=4 [16:38:03]MH_SAM_APDU [16:38:03]CAPDU: 80 0D 01 02 [16:38:03]Write to MH i2c: E2 08 00 EE 52 80 0D 01 02 00 00 00 00 B9 [16:38:03]Write i2c OK [16:38:03]MH_I2C_Read... [16:38:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:03]Read from MH i2c: E2 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 03 00 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 03 00 EE 52 00 90 00 B4 [16:38:03]RAPDU: 90 00 [16:38:03]wFMCommunicate OK [16:38:03]wFMCommunicate request_size=255 [16:38:03]MH_SAM_APDU [16:38:03]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 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 70 80 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 [16:38:03]Write to MH i2c: E2 02 01 EF 52 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 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 70 80 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 4C [16:38:03]Write i2c OK [16:38:03]MH_I2C_Read... [16:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:03]Read from MH i2c: E2 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 03 00 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 03 00 EF 52 00 90 00 B5 [16:38:03]RAPDU: 90 00 [16:38:03]wFMCommunicate OK [16:38:03]wFMCommunicate request_size=40 [16:38:03]MH_SAM_APDU [16:38:03]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 54 C1 00 00 35 04 06 00 44 FA 07 01 1D A5 [16:38:03]Write to MH i2c: E2 2B 00 F0 52 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 54 C1 00 00 35 04 06 00 44 FA 07 01 1D A5 00 00 8E [16:38:03]Write i2c OK [16:38:03]MH_I2C_Read... [16:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:03]Read from MH i2c: E2 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 03 00 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 03 00 F0 52 00 90 00 B6 [16:38:03]RAPDU: 90 00 [16:38:03]wFMCommunicate OK [16:38:03]wFMCommunicate request_size=4 [16:38:03]MH_SAM_APDU [16:38:03]CAPDU: 80 0D 03 02 [16:38:03]Write to MH i2c: E2 08 00 F1 52 80 0D 03 02 00 00 00 00 BE [16:38:03]Write i2c OK [16:38:03]MH_I2C_Read... [16:38:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:03]Read from MH i2c: E2 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 0B 00 [16:38:03]MH_I2C_Read... [16:38:03]Read from MH i2c: E2 0B 00 F1 52 00 54 A7 94 C1 E6 3F 62 77 90 00 0D [16:38:03]RAPDU: 54 A7 94 C1 E6 3F 62 77 90 00 [16:38:03]wFMCommunicate OK [16:38:03]SAM_PROTO_SignData done [16:38:03]FM_MakeSignedData done [16:38:03]CreateOFDProtocolMessage [16:38:03]wFMCommunicate request_size=4 [16:38:03]MH_SAM_APDU [16:38:03]CAPDU: 80 11 00 00 [16:38:03]Write to MH i2c: E2 08 00 F2 52 80 11 00 00 00 00 00 00 BE [16:38:03]Write i2c OK [16:38:03]MH_I2C_Read... [16:38:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:04]Read from MH i2c: E2 [16:38:04]MH_I2C_Read... [16:38:04]Read from MH i2c: E2 17 00 [16:38:04]MH_I2C_Read... [16:38:04]Read from MH i2c: E2 17 00 F2 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 09 [16:38:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:38:04]wFMCommunicate OK [16:38:04]CreateOFDProtocolMessage done [16:38:04]OFDSenderStorePacket 49492 [16:38:04]StoreOFDPacket docnum=49492 [16:38:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2D 01 00 00 F0 EE 25 01 53 02 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 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 70 80 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 54 C1 00 00 35 04 06 00 44 FA 07 01 1D A5 54 A7 94 C1 E6 3F 62 77 [16:38:04]CheckFolder [16:38:04]dirname=/storage/ofd_packets [16:38:04]CheckFolder done [16:38:04]ProducePacketName [16:38:04]name=ofd_packets/00049492 [16:38:04]NVStorageSaveData ofd_packets/00049492 [16:38:04]File name is /storage/ofd_packets/00049492 [16:38:04]Write 331 bytes [16:38:04]NVStorageSaveData done [16:38:04]OFDSenderStorePacket done [16:38:04]KKMCreateOFDPacket done [16:38:04]NVStorageSaveData kkm_last_timestamp [16:38:04]File name is /storage/kkm_last_timestamp [16:38:04]Write 4 bytes [16:38:04]NVStorageSaveData done [16:38:04]ExternCall_PrintAddStr [16:38:04]wPrintStart [16:38:04]Write to MH i2c: 01 00 00 F3 52 45 [16:38:04]Write i2c OK [16:38:04]MH_I2C_Read... [16:38:04]Read from MH i2c: 01 [16:38:04]MH_I2C_Read... [16:38:04]Read from MH i2c: 01 07 00 [16:38:04]MH_I2C_Read... [16:38:04]Read from MH i2c: 01 07 00 F3 52 00 00 00 00 00 FF 0F 5A [16:38:04]RasterBufferAndPrint [16:38:04]line Счет N : (3)189702 [16:38:04]line ИНН: 02508201610067 [16:38:04]line Контрольно-Кассовый Чек [16:38:04]line ПРОДАЖА [16:38:04]line Товар: 5449000000996 [16:38:04]line Напиток Кока-Кола 0,33л [16:38:04]line 2.000 * 85.00 [16:38:04]line = 170.00 [16:38:04]line НДС 12% НСП 1% [16:38:04]line > о реализуемом товаре [16:38:04]line ИТОГО: 170.00 [16:38:04]line НСП 1% : 1.50 [16:38:04]line НДС 12% : 18.05 [16:38:04]line Наличными: 170.00 [16:38:04]line Безнал.: 0.00 [16:38:04]line Место: АЗС № 95 "Партнер Нефть" [16:38:04]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:38:04]line СНО: Общий режим [16:38:04]line Чек 140 16.08.2024 16:38 [16:38:04]line Смена: 464 ФФД: 1.0 [16:38:04]line ЗНМ: 0300000078 [16:38:04]line РНМ: 0000000000092546 [16:38:04]line Версия ККМ: 001 [16:38:04]line ФМ: 0000000000871800 [16:38:04]line ФД: 49492 [16:38:04]line ФПД: 75840650026405 [16:38:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T163808&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49492&fm=75840650026405&tin=02508201610067®Number=0000000000092546&sum=17000 [16:38:04]OFD Sender: Processing packet 49492 [packets to send 21, broken 20] [16:38:04]ProducePacketName [16:38:04]name=ofd_packets/00049492 [16:38:04]OFD Sender: To server: pG, [16:38:04]CommunicateWithHost lk.salyk.kg:30040 [16:38:04]ConnectInit lk.salyk.kg [16:38:04]line 0 [16:38:04]written 0, free lines is 4095 [16:38:04]Connected sock=10 [16:38:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2D 01 00 00 F0 EE 25 01 53 02 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 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 70 80 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 54 C1 00 00 35 04 06 00 44 FA 07 01 1D A5 54 A7 94 C1 E6 3F 62 77 [16:38:04]Write to MH i2c: 01 00 00 1B 53 6E [16:38:04]Write i2c OK [16:38:04]MH_I2C_Read... [16:38:04]Read from MH i2c: 01 [16:38:04]MH_I2C_Read... [16:38:04]Read from MH i2c: 01 07 00 [16:38:04]MH_I2C_Read... [16:38:04]Read from MH i2c: 01 07 00 1B 53 00 00 00 00 00 F7 0C 78 [16:38:04]RasterBufferAndPrint [16:38:04]line [16:38:04]line [16:38:04]line [16:38:04]line [16:38:04]line [16:38:04]written 0, free lines is 3326 [16:38:04]MH_Cut [16:38:04]Write to MH i2c: D1 01 00 22 53 01 47 [16:38:04]Write i2c OK [16:38:04]MH_I2C_Read... [16:38:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 9D 85 47 00 C5 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 54 C1 00 00 F4 03 04 00 AF 2B BF 66 B6 04 01 00 00 80 0B BE BB 6F AF 74 35 [16:38:04]CommunicateWithHost err = 0 [16:38:04]CheckOFDResponse [16:38:04]1017 (14) - 77093643461234 [16:38:04]1041 (16) - 0000000000871800 [16:38:04]1040 (4) - 49492 [16:38:04]1012 (4) - 16.08.2024 10:36 [16:38:04]1206 (1) - 0 [16:38:04]OFD Sender: Remove packet 49492 [16:38:04]ProducePacketName [16:38:04]name=ofd_packets/00049492 [16:38:04]NVStorageDeleteData [16:38:04]Read from MH i2c: D1 [16:38:04]MH_I2C_Read... [16:38:04]Read from MH i2c: D1 01 00 [16:38:04]MH_I2C_Read... [16:38:04]Read from MH i2c: D1 01 00 22 53 00 46 [16:38:04]Write to MH i2c: 01 00 00 23 53 76 [16:38:04]Write i2c OK [16:38:04]MH_I2C_Read... [16:38:05]OFD Sender: No OFD packet to send [16:38:05]*** Cut start [16:38:05]*** Purtial cut [16:38:05]*** CUTSNS_PIN = 0 [16:38:05]*** Stage 1: CUTSNS_PIN = 1 [16:38:07]Read from MH i2c: 01 [16:38:07]MH_I2C_Read... [16:38:07]*** Stop cut motor [16:38:07]*** Cut end [16:38:07]Read from MH i2c: 01 07 00 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: 01 07 00 23 53 00 00 00 00 00 FF 0F 8B [16:38:07]process_action close_receipt done [16:38:07]requested_data is exist [16:38:07]produce_requested_data [16:38:07]requested_item fm.sn is exist - process it [16:38:07]wFMCommunicate request_size=4 [16:38:07]MH_SAM_APDU [16:38:07]CAPDU: 80 11 00 00 [16:38:07]Write to MH i2c: E2 08 00 24 53 80 11 00 00 00 00 00 00 F1 [16:38:07]Write i2c OK [16:38:07]MH_I2C_Read... [16:38:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:07]Read from MH i2c: E2 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: E2 17 00 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: E2 17 00 24 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3C [16:38:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:38:07]wFMCommunicate OK [16:38:07]requested_item fd.num is exist - process it [16:38:07]SAM_PROTO_GetFieldsCounters [16:38:07]wFMCommunicate request_size=4 [16:38:07]MH_SAM_APDU [16:38:07]CAPDU: 80 13 00 00 [16:38:07]Write to MH i2c: E2 08 00 25 53 80 13 00 00 00 00 00 00 F4 [16:38:07]Write i2c OK [16:38:07]MH_I2C_Read... [16:38:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:07]Read from MH i2c: E2 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: E2 62 00 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: E2 62 00 25 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 54 C1 00 00 0E 04 04 00 D0 01 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 98 [16:38:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 54 C1 00 00 0E 04 04 00 D0 01 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 [16:38:07]wFMCommunicate OK [16:38:07]SAM_PROTO_GetFieldsCounters done [16:38:07]requested_item shift.num is exist - process it [16:38:07]requested_item shift.opened is exist - process it [16:38:07]req_shift_opened [16:38:07]FM_GetShiftState [16:38:07]SAM_PROTO_GetShiftState [16:38:07]wFMCommunicate request_size=4 [16:38:07]MH_SAM_APDU [16:38:07]CAPDU: 80 13 01 00 [16:38:07]Write to MH i2c: E2 08 00 26 53 80 13 01 00 00 00 00 00 F6 [16:38:07]Write i2c OK [16:38:07]MH_I2C_Read... [16:38:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:07]Read from MH i2c: E2 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: E2 0E 00 [16:38:07]MH_I2C_Read... [16:38:07]Read from MH i2c: E2 0E 00 26 53 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 6C [16:38:07]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:38:07]wFMCommunicate OK [16:38:07]SAM_PROTO_GetShiftState done [16:38:07]FM_GetShiftState done [16:38:07]req_shift_opened done [16:38:07]requested_item shift.open_date is exist - process it [16:38:07]req_shift_open_date [16:38:07]req_shift_open_date done [16:38:07]produce_requested_data done [16:38:07]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49492,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [16:38:07]process_action_free close_receipt [16:38:07]json_value_free [16:38:07]json_value_free done [16:38:07]process_json_proto returns [16:38:07]Send response to host [16:38:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49492,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [16:38:07]free response buf [16:38:07]execute_script done [16:38:07]execute_script returns [16:38:07]free content buf [16:38:07]Sock 9.Close socket [16:38:07]Sock 9.Thread stoped [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:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:20]OFD Sender: No OFD packet to send [16:40:25]OFD Sender: No OFD packet to send [16:40:30]OFD Sender: No OFD packet to send [16:40:35]OFD Sender: No OFD packet to send [16:40:40]OFD Sender: No OFD packet to send [16:40:45]OFD Sender: No OFD packet to send [16:40:50]OFD Sender: No OFD packet to send [16:40:55]OFD Sender: No OFD packet to send [16:41:00]OFD Sender: No OFD packet to send [16:41:05]OFD Sender: No OFD packet to send [16:41:10]OFD Sender: No OFD packet to send [16:41:15]OFD Sender: No OFD packet to send [16:41:20]OFD Sender: No OFD packet to send [16:41:25]OFD Sender: No OFD packet to send [16:41:30]OFD Sender: No OFD packet to send [16:41:35]OFD Sender: No OFD packet to send [16:41:40]OFD Sender: No OFD packet to send [16:41:45]OFD Sender: No OFD packet to send [16:41:50]OFD Sender: No OFD packet to send [16:41:55]OFD Sender: No OFD packet to send [16:42:00]OFD Sender: No OFD packet to send [16:42:05]OFD Sender: No OFD packet to send [16:42:10]OFD Sender: No OFD packet to send [16:42:15]OFD Sender: No OFD packet to send [16:42:20]OFD Sender: No OFD packet to send [16:42:25]OFD Sender: No OFD packet to send [16:42:30]OFD Sender: No OFD packet to send [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:50]OFD Sender: No OFD packet to send [16:42:55]OFD Sender: No OFD packet to send [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:45]OFD Sender: No OFD packet to send [16:44:50]OFD Sender: No OFD packet to send [16:44:55]OFD Sender: No OFD packet to send [16:45:00]OFD Sender: No OFD packet to send [16:45:05]OFD Sender: No OFD packet to send [16:45:10]OFD Sender: No OFD packet to send [16:45:15]OFD Sender: No OFD packet to send [16:45:20]OFD Sender: No OFD packet to send [16:45:25]OFD Sender: No OFD packet to send [16:45:30]OFD Sender: No OFD packet to send [16:45:35]OFD Sender: No OFD packet to send [16:45:40]OFD Sender: No OFD packet to send [16:45:45]OFD Sender: No OFD packet to send [16:45:50]OFD Sender: No OFD packet to send [16:45:55]OFD Sender: No OFD packet to send [16:46:00]OFD Sender: No OFD packet to send [16:46:05]OFD Sender: No OFD packet to send [16:46:10]OFD Sender: No OFD packet to send [16:46:15]OFD Sender: No OFD packet to send [16:46:20]OFD Sender: No OFD packet to send [16:46:25]OFD Sender: No OFD packet to send [16:46:30]OFD Sender: No OFD packet to send [16:46:35]OFD Sender: No OFD packet to send [16:46:40]OFD Sender: No OFD packet to send [16:46:45]OFD Sender: No OFD packet to send [16:46:50]OFD Sender: No OFD packet to send [16:46:55]OFD Sender: No OFD packet to send [16:47:00]OFD Sender: No OFD packet to send [16:47:05]OFD Sender: No OFD packet to send [16:47:06]accept exits with 7 [16:47:06]New connection [16:47:06]New thread 3066973540 created [16:47:06]Thread 3066830180 joined [16:47:06]Waiting for new connection... [16:47:06] Sock 7.Parse request [16:47:06]Sock 7.Check first char [16:47:06]Sock 7.First char is OK [16:47:06]request: POST /json_proto HTTP/1.0 [16:47:06]Method: POST [16:47:06]URL: /json_proto [16:47:06]Method is POST - this is cgi request [16:47:06]url: /json_proto [16:47:06]query_string will be loaded in cgi processing [16:47:06]execute_cgi json_proto POST (null) [16:47:06]execute_cgi path=json_proto method=POST [16:47:06]POST find Content-Length [16:47:06]Host: 172.17.46.196:8080 [16:47:06]Content-Length: 632 [16:47:06]Content-Type: application/json [16:47:06] [16:47:06]POST finish read [16:47:06]Found Content-Length = 632 [16:47:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189703", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:06]execute_script... [16:47: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 : (3)189703", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:47:06]POST & json_proto [16:47:06]process_json_proto [16:47:06]json parsed OK: [16:47:06]protocol is kg_v1.0 [16:47:06]action value=close_receipt [16:47:06]process_action close_receipt [16:47:06]cmd_close_receipt [16:47:06]MH_GetDate [16:47:06]Write to MH i2c: F0 00 00 27 53 69 [16:47:06]Write i2c OK [16:47:06]MH_I2C_Read... [16:47:06]Read from MH i2c: F0 [16:47:06]MH_I2C_Read... [16:47:06]Read from MH i2c: F0 09 00 [16:47:06]MH_I2C_Read... [16:47:06]Read from MH i2c: F0 09 00 27 53 00 90 82 BF 66 07 E8 5D 66 5B [16:47:06]GetLastDocTimeStamp 1723826288 [16:47:06]current date 1723826832 [16:47:06]FM_GetShiftState [16:47:06]SAM_PROTO_GetShiftState [16:47:06]wFMCommunicate request_size=4 [16:47:06]MH_SAM_APDU [16:47:06]CAPDU: 80 13 01 00 [16:47:06]Write to MH i2c: E2 08 00 28 53 80 13 01 00 00 00 00 00 F8 [16:47:06]Write i2c OK [16:47:06]MH_I2C_Read... [16:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:06]Read from MH i2c: E2 [16:47:06]MH_I2C_Read... [16:47:06]Read from MH i2c: E2 0E 00 [16:47:06]MH_I2C_Read... [16:47:06]Read from MH i2c: E2 0E 00 28 53 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 6E [16:47:06]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:47:06]wFMCommunicate OK [16:47:06]SAM_PROTO_GetShiftState done [16:47:06]FM_GetShiftState done [16:47:06]opened in 1723766958 [16:47:06]opened+sec_in_day 1723853358 [16:47:06]quantity*price = 6000 [16:47:06]sum+1 = 6001 [16:47:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 141 16.08.2024 16:47 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49493 ФПД: 56420861763717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T164712&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49493&fm=56420861763717&tin=02508201610067®Number=0000000000092546&sum=6000 0 [16:47:07]StoreToDocumentArchive [16:47:07]shift 464 fd 49493 [16:47:07]save to /storage/0464/doc_00049493 [16:47:07]save last doc name /storage/0464/doc_00049493 to /storage/kkm_last_doc_name [16:47:07]save OK [16:47:07]Clear old archive folders... [16:47:07]ProcessDocumentItem done err = 0, tmpTLVsize=271 [16:47:07]tlvbuf is 00EC5EE0 [16:47:07]SAM_PROTO_ClearQueue [16:47:07]wFMCommunicate request_size=4 [16:47:07]MH_SAM_APDU [16:47:07]CAPDU: 80 09 00 00 [16:47:07]Write to MH i2c: E2 08 00 35 53 80 09 00 00 00 00 00 00 FA [16:47:07]Write i2c OK [16:47:07]MH_I2C_Read... [16:47:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:47:07]Read from MH i2c: E2 [16:47:07]MH_I2C_Read... [16:47:07]Read from MH i2c: E2 03 00 [16:47:07]MH_I2C_Read... [16:47:07]Read from MH i2c: E2 03 00 35 53 00 90 00 FC [16:47:07]RAPDU: 90 00 [16:47:07]wFMCommunicate OK [16:47:07]SAM_PROTO_ClearQueue done [16:47:07]KKMCreateOFDPacket [16:47:07]OFDProtocolAddRootSTLVToBuf [16:47:07]FM_MakeSignedData [16:47:07]FM_MakeSignedData [16:47:07]SAM_PROTO_SignData [16:47:07]wFMCommunicate request_size=4 [16:47:07]MH_SAM_APDU [16:47:07]CAPDU: 80 0D 01 02 [16:47:07]Write to MH i2c: E2 08 00 36 53 80 0D 01 02 00 00 00 00 02 [16:47:07]Write i2c OK [16:47:07]MH_I2C_Read... [16:47:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:47:07]Read from MH i2c: E2 [16:47:07]MH_I2C_Read... [16:47:07]Read from MH i2c: E2 03 00 [16:47:07]MH_I2C_Read... [16:47:07]Read from MH i2c: E2 03 00 36 53 00 90 00 FD [16:47:07]RAPDU: 90 00 [16:47:07]wFMCommunicate OK [16:47:07]wFMCommunicate request_size=255 [16:47:07]MH_SAM_APDU [16:47:07]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 70 17 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 90 82 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 [16:47:07]Write to MH i2c: E2 02 01 37 53 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 70 17 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 90 82 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 C7 [16:47:07]Write i2c OK [16:47:07]MH_I2C_Read... [16:47:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:07]Read from MH i2c: E2 [16:47:07]MH_I2C_Read... [16:47:07]Read from MH i2c: E2 03 00 [16:47:07]MH_I2C_Read... [16:47:07]Read from MH i2c: E2 03 00 37 53 00 90 00 FE [16:47:07]RAPDU: 90 00 [16:47:07]wFMCommunicate OK [16:47:07]wFMCommunicate request_size=30 [16:47:07]MH_SAM_APDU [16:47:07]CAPDU: 80 0D 02 02 19 30 38 37 31 38 30 30 10 04 04 00 55 C1 00 00 35 04 06 00 33 50 81 6C 60 85 [16:47:07]Write to MH i2c: E2 21 00 38 53 80 0D 02 02 19 00 30 38 37 31 38 30 30 10 04 04 00 55 C1 00 00 35 04 06 00 33 50 81 6C 60 85 00 00 61 [16:47:07]Write i2c OK [16:47:07]MH_I2C_Read... [16:47:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:47:07]Read from MH i2c: E2 [16:47:07]MH_I2C_Read... [16:47:07]Read from MH i2c: E2 03 00 [16:47:07]MH_I2C_Read... [16:47:07]Read from MH i2c: E2 03 00 38 53 00 90 00 FF [16:47:07]RAPDU: 90 00 [16:47:07]wFMCommunicate OK [16:47:07]wFMCommunicate request_size=4 [16:47:07]MH_SAM_APDU [16:47:07]CAPDU: 80 0D 03 02 [16:47:07]Write to MH i2c: E2 08 00 39 53 80 0D 03 02 00 00 00 00 07 [16:47:07]Write i2c OK [16:47:07]MH_I2C_Read... [16:47:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:47:07]Read from MH i2c: E2 [16:47:07]MH_I2C_Read... [16:47:07]Read from MH i2c: E2 0B 00 [16:47:07]MH_I2C_Read... [16:47:07]Read from MH i2c: E2 0B 00 39 53 00 31 59 4C 34 1B 3D 8A BF 90 00 B3 [16:47:07]RAPDU: 31 59 4C 34 1B 3D 8A BF 90 00 [16:47:07]wFMCommunicate OK [16:47:07]SAM_PROTO_SignData done [16:47:07]FM_MakeSignedData done [16:47:07]CreateOFDProtocolMessage [16:47:07]wFMCommunicate request_size=4 [16:47:07]MH_SAM_APDU [16:47:07]CAPDU: 80 11 00 00 [16:47:07]Write to MH i2c: E2 08 00 3A 53 80 11 00 00 00 00 00 00 07 [16:47:07]Write i2c OK [16:47:07]MH_I2C_Read... [16:47:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:07]Read from MH i2c: E2 [16:47:07]MH_I2C_Read... [16:47:07]Read from MH i2c: E2 17 00 [16:47:07]MH_I2C_Read... [16:47:07]Read from MH i2c: E2 17 00 3A 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 52 [16:47:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:47:07]wFMCommunicate OK [16:47:07]CreateOFDProtocolMessage done [16:47:07]OFDSenderStorePacket 49493 [16:47:07]StoreOFDPacket docnum=49493 [16:47:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 31 A3 1B 01 9D F2 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 70 17 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 90 82 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 55 C1 00 00 35 04 06 00 33 50 81 6C 60 85 31 59 4C 34 1B 3D 8A BF [16:47:07]CheckFolder [16:47:07]dirname=/storage/ofd_packets [16:47:07]CheckFolder done [16:47:07]ProducePacketName [16:47:07]name=ofd_packets/00049493 [16:47:07]NVStorageSaveData ofd_packets/00049493 [16:47:07]File name is /storage/ofd_packets/00049493 [16:47:07]Write 321 bytes [16:47:07]NVStorageSaveData done [16:47:07]OFDSenderStorePacket done [16:47:07]KKMCreateOFDPacket done [16:47:07]NVStorageSaveData kkm_last_timestamp [16:47:07]File name is /storage/kkm_last_timestamp [16:47:07]Write 4 bytes [16:47:07]NVStorageSaveData done [16:47:07]ExternCall_PrintAddStr [16:47:07]wPrintStart [16:47:07]Write to MH i2c: 01 00 00 3B 53 8E [16:47:07]Write i2c OK [16:47:07]MH_I2C_Read... [16:47:07]Read from MH i2c: 01 [16:47:07]MH_I2C_Read... [16:47:07]Read from MH i2c: 01 07 00 [16:47:07]MH_I2C_Read... [16:47:07]Read from MH i2c: 01 07 00 3B 53 00 00 00 00 00 FF 0F A3 [16:47:07]RasterBufferAndPrint [16:47:07]line Счет N : (3)189703 [16:47:07]line ИНН: 02508201610067 [16:47:07]line Контрольно-Кассовый Чек [16:47:07]line ПРОДАЖА [16:47:07]line Товар: 4700000160204 [16:47:07]line Вода Легенда 1,5л [16:47:07]line 1.000 * 60.00 [16:47:07]line = 60.00 [16:47:07]line НДС 12% НСП 1% [16:47:07]line > о реализуемом товаре [16:47:07]line ИТОГО: 60.00 [16:47:07]line НСП 1% : 0.53 [16:47:07]line НДС 12% : 6.37 [16:47:07]line Наличными: 60.00 [16:47:07]line Безнал.: 0.00 [16:47:07]line Место: АЗС № 95 "Партнер Нефть" [16:47:07]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:47:07]line СНО: Общий режим [16:47:07]line Чек 141 16.08.2024 16:47 [16:47:07]line Смена: 464 ФФД: 1.0 [16:47:07]line ЗНМ: 0300000078 [16:47:07]line РНМ: 0000000000092546 [16:47:07]line Версия ККМ: 001 [16:47:07]line ФМ: 0000000000871800 [16:47:07]line ФД: 49493 [16:47:07]line ФПД: 56420861763717 [16:47:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T164712&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49493&fm=56420861763717&tin=02508201610067®Number=0000000000092546&sum=6000 [16:47:08]OFD Sender: Processing packet 49493 [packets to send 21, broken 20] [16:47:08]ProducePacketName [16:47:08]name=ofd_packets/00049493 [16:47:08]OFD Sender: To server: pG, [16:47:08]CommunicateWithHost lk.salyk.kg:30040 [16:47:08]ConnectInit lk.salyk.kg [16:47:08]line 0 [16:47:08]written 0, free lines is 4095 [16:47:08]Connected sock=10 [16:47:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 31 A3 1B 01 9D F2 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 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 7D 02 00 00 00 00 07 04 06 00 70 17 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 90 82 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 55 C1 00 00 35 04 06 00 33 50 81 6C 60 85 31 59 4C 34 1B 3D 8A BF [16:47:08]Write to MH i2c: 01 00 00 63 53 B6 [16:47:08]Write i2c OK [16:47:08]MH_I2C_Read... [16:47:08]Read from MH i2c: 01 [16:47:08]MH_I2C_Read... [16:47:08]Read from MH i2c: 01 07 00 [16:47:08]MH_I2C_Read... [16:47:08]Read from MH i2c: 01 07 00 63 53 00 00 00 00 00 F5 0C BE [16:47:08]RasterBufferAndPrint [16:47:08]line [16:47:08]line [16:47:08]line [16:47:08]line [16:47:08]line [16:47:08]written 0, free lines is 3323 [16:47:08]MH_Cut [16:47:08]Write to MH i2c: D1 01 00 6A 53 01 8F [16:47:08]Write i2c OK [16:47:08]MH_I2C_Read... [16:47:08]Read from MH i2c: D1 [16:47:08]MH_I2C_Read... [16:47:08]Read from MH i2c: D1 01 00 [16:47:08]MH_I2C_Read... [16:47:08]Read from MH i2c: D1 01 00 6A 53 00 8E [16:47:08]Write to MH i2c: 01 00 00 6B 53 BE [16:47:08]Write i2c OK [16:47:08]MH_I2C_Read... [16:47:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E8 41 47 00 DA 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 38 37 31 38 30 30 10 04 04 00 55 C1 00 00 F4 03 04 00 CE 2D BF 66 B6 04 01 00 00 7F E4 19 7B 30 B3 88 49 [16:47:08]CommunicateWithHost err = 0 [16:47:08]CheckOFDResponse [16:47:08]1017 (14) - 77093643461234 [16:47:08]1041 (16) - 0000000000871800 [16:47:08]1040 (4) - 49493 [16:47:08]1012 (4) - 16.08.2024 10:45 [16:47:08]1206 (1) - 0 [16:47:08]OFD Sender: Remove packet 49493 [16:47:08]ProducePacketName [16:47:08]name=ofd_packets/00049493 [16:47:08]NVStorageDeleteData [16:47:09]OFD Sender: No OFD packet to send [16:47:09]*** Cut start [16:47:09]*** Purtial cut [16:47:09]*** Stage 1: CUTSNS_PIN = 1 [16:47:09]Read from MH i2c: 01 [16:47:09]MH_I2C_Read... [16:47:09]*** Stop cut motor [16:47:09]*** Cut end [16:47:09]Read from MH i2c: 01 07 00 [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: 01 07 00 6B 53 00 00 00 00 00 FF 0F D3 [16:47:09]process_action close_receipt done [16:47:09]requested_data is exist [16:47:09]produce_requested_data [16:47:09]requested_item fm.sn is exist - process it [16:47:09]wFMCommunicate request_size=4 [16:47:09]MH_SAM_APDU [16:47:09]CAPDU: 80 11 00 00 [16:47:09]Write to MH i2c: E2 08 00 6C 53 80 11 00 00 00 00 00 00 39 [16:47:09]Write i2c OK [16:47:09]MH_I2C_Read... [16:47:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:47:09]Read from MH i2c: E2 [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: E2 17 00 [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: E2 17 00 6C 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 84 [16:47:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:47:09]wFMCommunicate OK [16:47:09]requested_item fd.num is exist - process it [16:47:09]SAM_PROTO_GetFieldsCounters [16:47:09]wFMCommunicate request_size=4 [16:47:09]MH_SAM_APDU [16:47:09]CAPDU: 80 13 00 00 [16:47:09]Write to MH i2c: E2 08 00 6D 53 80 13 00 00 00 00 00 00 3C [16:47:09]Write i2c OK [16:47:09]MH_I2C_Read... [16:47:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:47:09]Read from MH i2c: E2 [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: E2 62 00 [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: E2 62 00 6D 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 55 C1 00 00 0E 04 04 00 D0 01 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 E4 [16:47:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 55 C1 00 00 0E 04 04 00 D0 01 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 [16:47:09]wFMCommunicate OK [16:47:09]SAM_PROTO_GetFieldsCounters done [16:47:09]requested_item shift.num is exist - process it [16:47:09]requested_item shift.opened is exist - process it [16:47:09]req_shift_opened [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 6E 53 80 13 01 00 00 00 00 00 3E [16:47:09]Write i2c OK [16:47:09]MH_I2C_Read... [16:47:09]Read from MH i2c: E2 [16:47:09]MH_I2C_Read... [16:47:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:47:10]Read from MH i2c: E2 0E 00 [16:47:10]MH_I2C_Read... [16:47:10]Read from MH i2c: E2 0E 00 6E 53 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 B4 [16:47:10]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:47:10]wFMCommunicate OK [16:47:10]SAM_PROTO_GetShiftState done [16:47:10]FM_GetShiftState done [16:47:10]req_shift_opened done [16:47:10]requested_item shift.open_date is exist - process it [16:47:10]req_shift_open_date [16:47:10]req_shift_open_date done [16:47:10]produce_requested_data done [16:47:10]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49493,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [16:47:10]process_action_free close_receipt [16:47:10]json_value_free [16:47:10]json_value_free done [16:47:10]process_json_proto returns [16:47:10]Send response to host [16:47:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49493,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [16:47:10]free response buf [16:47:10]execute_script done [16:47:10]execute_script returns [16:47:10]free content buf [16:47:10]Sock 7.Close socket [16:47:10]Sock 7.Thread stoped [16:47:14]OFD Sender: No OFD packet to send [16:47:19]OFD Sender: No OFD packet to send [16:47:24]OFD Sender: No OFD packet to send [16:47:29]OFD Sender: No OFD packet to send [16:47:34]OFD Sender: No OFD packet to send [16:47:39]OFD Sender: No OFD packet to send [16:47:44]OFD Sender: No OFD packet to send [16:47:49]OFD Sender: No OFD packet to send [16:47:54]OFD Sender: No OFD packet to send [16:47:59]OFD Sender: No OFD packet to send [16:48:04]OFD Sender: No OFD packet to send [16:48:09]OFD Sender: No OFD packet to send [16:48:14]OFD Sender: No OFD packet to send [16:48:19]OFD Sender: No OFD packet to send [16:48:24]OFD Sender: No OFD packet to send [16:48:29]OFD Sender: No OFD packet to send [16:48:34]OFD Sender: No OFD packet to send [16:48:39]OFD Sender: No OFD packet to send [16:48:44]OFD Sender: No OFD packet to send [16:48:49]OFD Sender: No OFD packet to send [16:48:54]OFD Sender: No OFD packet to send [16:48:59]OFD Sender: No OFD packet to send [16:49:04]OFD Sender: No OFD packet to send [16:49:09]OFD Sender: No OFD packet to send [16:49:14]OFD Sender: No OFD packet to send [16:49:19]OFD Sender: No OFD packet to send [16:49:24]OFD Sender: No OFD packet to send [16:49:29]OFD Sender: No OFD packet to send [16:49:34]OFD Sender: No OFD packet to send [16:49:39]OFD Sender: No OFD packet to send [16:49:44]OFD Sender: No OFD packet to send [16:49:49]OFD Sender: No OFD packet to send [16:49:54]OFD Sender: No OFD packet to send [16:49:59]OFD Sender: No OFD packet to send [16:50:04]OFD Sender: No OFD packet to send [16:50:09]OFD Sender: No OFD packet to send [16:50:14]OFD Sender: No OFD packet to send [16:50:19]OFD Sender: No OFD packet to send [16:50:24]OFD Sender: No OFD packet to send [16:50:29]OFD Sender: No OFD packet to send [16:50:34]OFD Sender: No OFD packet to send [16:50:39]OFD Sender: No OFD packet to send [16:50:44]OFD Sender: No OFD packet to send [16:50:49]OFD Sender: No OFD packet to send [16:50:54]accept exits with 9 [16:50:54]New connection [16:50:54]New thread 3066830180 created [16:50:54]Thread 3066973540 joined [16:50:54]Waiting for new connection... [16:50:54] Sock 9.Parse request [16:50:54]Sock 9.Check first char [16:50:54]Sock 9.First char is OK [16:50:54]request: POST /json_proto HTTP/1.0 [16:50:54]Method: POST [16:50:54]URL: /json_proto [16:50:54]Method is POST - this is cgi request [16:50:54]url: /json_proto [16:50:54]query_string will be loaded in cgi processing [16:50:54]execute_cgi json_proto POST (null) [16:50:54]execute_cgi path=json_proto method=POST [16:50:54]POST find Content-Length [16:50:54]Host: 172.17.46.196:8080 [16:50:54]Content-Length: 628 [16:50:54]Content-Type: application/json [16:50:54] [16:50:54]POST finish read [16:50:54]Found Content-Length = 628 [16:50:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189704", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:54]execute_script... [16:50: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 : (3)189704", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:54]POST & json_proto [16:50:54]process_json_proto [16:50:54]json parsed OK: [16:50:54]protocol is kg_v1.0 [16:50:54]action value=close_receipt [16:50:54]process_action close_receipt [16:50:54]cmd_close_receipt [16:50:54]MH_GetDate [16:50:54]Write to MH i2c: F0 00 00 6F 53 B1 [16:50:54]Write i2c OK [16:50:54]MH_I2C_Read... [16:50:54]Read from MH i2c: F0 [16:50:54]MH_I2C_Read... [16:50:54]Read from MH i2c: F0 09 00 [16:50:54]MH_I2C_Read... [16:50:54]Read from MH i2c: F0 09 00 6F 53 00 74 83 BF 66 07 E8 5D 66 88 [16:50:54]GetLastDocTimeStamp 1723826832 [16:50:54]current date 1723827060 [16:50:54]FM_GetShiftState [16:50:54]SAM_PROTO_GetShiftState [16:50:54]wFMCommunicate request_size=4 [16:50:54]MH_SAM_APDU [16:50:54]CAPDU: 80 13 01 00 [16:50:54]Write to MH i2c: E2 08 00 70 53 80 13 01 00 00 00 00 00 40 [16:50:54]Write i2c OK [16:50:54]MH_I2C_Read... [16:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:54]Read from MH i2c: E2 [16:50:54]MH_I2C_Read... [16:50:54]Read from MH i2c: E2 0E 00 [16:50:54]MH_I2C_Read... [16:50:54]Read from MH i2c: E2 0E 00 70 53 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 B6 [16:50:54]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:50:54]wFMCommunicate OK [16:50:54]SAM_PROTO_GetShiftState done [16:50:54]FM_GetShiftState done [16:50:54]opened in 1723766958 [16:50:54]opened+sec_in_day 1723853358 [16:50:54]quantity*price = 13000 [16:50:54]sum+1 = 13001 [16:50:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 142 16.08.2024 16:51 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49494 ФПД: 48576252965250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T165100&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49494&fm=48576252965250&tin=02508201610067®Number=0000000000092546&sum=13000 0 [16:50:55]StoreToDocumentArchive [16:50:55]shift 464 fd 49494 [16:50:55]save to /storage/0464/doc_00049494 [16:50:55]save last doc name /storage/0464/doc_00049494 to /storage/kkm_last_doc_name [16:50:55]save OK [16:50:55]Clear old archive folders... [16:50:55]ProcessDocumentItem done err = 0, tmpTLVsize=276 [16:50:55]tlvbuf is 00E43510 [16:50:55]SAM_PROTO_ClearQueue [16:50:55]wFMCommunicate request_size=4 [16:50:55]MH_SAM_APDU [16:50:55]CAPDU: 80 09 00 00 [16:50:55]Write to MH i2c: E2 08 00 7D 53 80 09 00 00 00 00 00 00 42 [16:50:55]Write i2c OK [16:50:55]MH_I2C_Read... [16:50:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:55]Read from MH i2c: E2 [16:50:55]MH_I2C_Read... [16:50:55]Read from MH i2c: E2 03 00 [16:50:55]MH_I2C_Read... [16:50:55]Read from MH i2c: E2 03 00 7D 53 00 90 00 44 [16:50:55]RAPDU: 90 00 [16:50:55]wFMCommunicate OK [16:50:55]SAM_PROTO_ClearQueue done [16:50:55]KKMCreateOFDPacket [16:50:55]OFDProtocolAddRootSTLVToBuf [16:50:55]FM_MakeSignedData [16:50:55]FM_MakeSignedData [16:50:55]SAM_PROTO_SignData [16:50:55]wFMCommunicate request_size=4 [16:50:55]MH_SAM_APDU [16:50:55]CAPDU: 80 0D 01 02 [16:50:55]Write to MH i2c: E2 08 00 7E 53 80 0D 01 02 00 00 00 00 4A [16:50:55]Write i2c OK [16:50:55]MH_I2C_Read... [16:50:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:55]Read from MH i2c: E2 [16:50:55]MH_I2C_Read... [16:50:55]Read from MH i2c: E2 03 00 [16:50:55]MH_I2C_Read... [16:50:55]Read from MH i2c: E2 03 00 7E 53 00 90 00 45 [16:50:55]RAPDU: 90 00 [16:50:55]wFMCommunicate OK [16:50:55]wFMCommunicate request_size=255 [16:50:55]MH_SAM_APDU [16:50:55]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 74 83 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 [16:50:55]Write to MH i2c: E2 02 01 7F 53 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 74 83 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 00 00 E1 [16:50:55]Write i2c OK [16:50:55]MH_I2C_Read... [16:50:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:55]Read from MH i2c: E2 [16:50:55]MH_I2C_Read... [16:50:55]Read from MH i2c: E2 03 00 [16:50:55]MH_I2C_Read... [16:50:55]Read from MH i2c: E2 03 00 7F 53 00 90 00 46 [16:50:55]RAPDU: 90 00 [16:50:55]wFMCommunicate OK [16:50:55]wFMCommunicate request_size=35 [16:50:55]MH_SAM_APDU [16:50:55]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 56 C1 00 00 35 04 06 00 2C 2E 0A 4D 71 82 [16:50:55]Write to MH i2c: E2 26 00 80 53 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 56 C1 00 00 35 04 06 00 2C 2E 0A 4D 71 82 00 00 F3 [16:50:55]Write i2c OK [16:50:55]MH_I2C_Read... [16:50:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:55]Read from MH i2c: E2 [16:50:55]MH_I2C_Read... [16:50:55]Read from MH i2c: E2 03 00 [16:50:55]MH_I2C_Read... [16:50:55]Read from MH i2c: E2 03 00 80 53 00 90 00 47 [16:50:55]RAPDU: 90 00 [16:50:55]wFMCommunicate OK [16:50:55]wFMCommunicate request_size=4 [16:50:55]MH_SAM_APDU [16:50:55]CAPDU: 80 0D 03 02 [16:50:55]Write to MH i2c: E2 08 00 81 53 80 0D 03 02 00 00 00 00 4F [16:50:55]Write i2c OK [16:50:55]MH_I2C_Read... [16:50:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:55]Read from MH i2c: E2 [16:50:55]MH_I2C_Read... [16:50:55]Read from MH i2c: E2 0B 00 [16:50:55]MH_I2C_Read... [16:50:55]Read from MH i2c: E2 0B 00 81 53 00 E1 94 6F EB 46 91 C6 CF 90 00 8B [16:50:55]RAPDU: E1 94 6F EB 46 91 C6 CF 90 00 [16:50:55]wFMCommunicate OK [16:50:55]SAM_PROTO_SignData done [16:50:55]FM_MakeSignedData done [16:50:55]CreateOFDProtocolMessage [16:50:55]wFMCommunicate request_size=4 [16:50:55]MH_SAM_APDU [16:50:55]CAPDU: 80 11 00 00 [16:50:55]Write to MH i2c: E2 08 00 82 53 80 11 00 00 00 00 00 00 4F [16:50:55]Write i2c OK [16:50:55]MH_I2C_Read... [16:50:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:55]Read from MH i2c: E2 [16:50:55]MH_I2C_Read... [16:50:55]Read from MH i2c: E2 17 00 [16:50:55]MH_I2C_Read... [16:50:55]Read from MH i2c: E2 17 00 82 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9A [16:50:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:50:55]wFMCommunicate OK [16:50:55]CreateOFDProtocolMessage done [16:50:55]OFDSenderStorePacket 49494 [16:50:55]StoreOFDPacket docnum=49494 [16:50:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 14 FF 20 01 CC ED 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 74 83 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 56 C1 00 00 35 04 06 00 2C 2E 0A 4D 71 82 E1 94 6F EB 46 91 C6 CF [16:50:55]CheckFolder [16:50:55]dirname=/storage/ofd_packets [16:50:55]CheckFolder done [16:50:55]ProducePacketName [16:50:55]name=ofd_packets/00049494 [16:50:55]NVStorageSaveData ofd_packets/00049494 [16:50:55]File name is /storage/ofd_packets/00049494 [16:50:55]Write 326 bytes [16:50:55]NVStorageSaveData done [16:50:55]OFDSenderStorePacket done [16:50:55]KKMCreateOFDPacket done [16:50:55]NVStorageSaveData kkm_last_timestamp [16:50:55]File name is /storage/kkm_last_timestamp [16:50:55]Write 4 bytes [16:50:55]NVStorageSaveData done [16:50:55]ExternCall_PrintAddStr [16:50:55]wPrintStart [16:50:55]Write to MH i2c: 01 00 00 83 53 D6 [16:50:55]Write i2c OK [16:50:55]MH_I2C_Read... [16:50:55]Read from MH i2c: 01 [16:50:55]MH_I2C_Read... [16:50:55]Read from MH i2c: 01 07 00 [16:50:55]MH_I2C_Read... [16:50:55]Read from MH i2c: 01 07 00 83 53 00 00 00 00 00 FF 0F EB [16:50:55]RasterBufferAndPrint [16:50:55]line Счет N : (3)189704 [16:50:55]line ИНН: 02508201610067 [16:50:55]line Контрольно-Кассовый Чек [16:50:55]line ПРОДАЖА [16:50:55]line Товар: 2000036230011 [16:50:55]line Кофе Латте XL(GABB TRADE) [16:50:55]line 1.000 * 130.00 [16:50:55]line = 130.00 [16:50:55]line НДС 12% НСП 1% [16:50:55]line > о реализуемом товаре [16:50:55]line ИТОГО: 130.00 [16:50:55]line НСП 1% : 1.15 [16:50:55]line НДС 12% : 13.80 [16:50:55]line Наличными: 130.00 [16:50:55]line Безнал.: 0.00 [16:50:55]line Место: АЗС № 95 "Партнер Нефть" [16:50:55]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:50:55]line СНО: Общий режим [16:50:55]line Чек 142 16.08.2024 16:51 [16:50:55]line Смена: 464 ФФД: 1.0 [16:50:55]line ЗНМ: 0300000078 [16:50:55]line РНМ: 0000000000092546 [16:50:55]line Версия ККМ: 001 [16:50:55]line ФМ: 0000000000871800 [16:50:55]line ФД: 49494 [16:50:55]line ФПД: 48576252965250 [16:50:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T165100&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49494&fm=48576252965250&tin=02508201610067®Number=0000000000092546&sum=13000 [16:50:56]line 0 [16:50:56]OFD Sender: Processing packet 49494 [packets to send 21, broken 20] [16:50:56]ProducePacketName [16:50:56]name=ofd_packets/00049494 [16:50:56]OFD Sender: To server: pG, [16:50:56]CommunicateWithHost lk.salyk.kg:30040 [16:50:56]ConnectInit lk.salyk.kg [16:50:56]written 0, free lines is 4095 [16:50:56]Connected sock=10 [16:50:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 14 FF 20 01 CC ED 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 74 83 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 56 C1 00 00 35 04 06 00 2C 2E 0A 4D 71 82 E1 94 6F EB 46 91 C6 CF [16:50:56]Write to MH i2c: 01 00 00 AB 53 FE [16:50:56]Write i2c OK [16:50:56]MH_I2C_Read... [16:50:56]Read from MH i2c: 01 [16:50:56]MH_I2C_Read... [16:50:56]Read from MH i2c: 01 07 00 [16:50:56]MH_I2C_Read... [16:50:56]Read from MH i2c: 01 07 00 AB 53 00 00 00 00 00 FB 0C 0C [16:50:56]RasterBufferAndPrint [16:50:56]line [16:50:56]line [16:50:56]line [16:50:56]line [16:50:56]line [16:50:56]written 0, free lines is 3329 [16:50:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 8F 07 47 00 51 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 56 C1 00 00 F4 03 04 00 B3 2E BF 66 B6 04 01 00 00 69 22 C4 CB 35 D4 DA 87 [16:50:56]CommunicateWithHost err = 0 [16:50:56]CheckOFDResponse [16:50:56]1017 (14) - 77093643461234 [16:50:56]1041 (16) - 0000000000871800 [16:50:56]1040 (4) - 49494 [16:50:56]1012 (4) - 16.08.2024 10:49 [16:50:56]1206 (1) - 0 [16:50:56]OFD Sender: Remove packet 49494 [16:50:56]ProducePacketName [16:50:56]name=ofd_packets/00049494 [16:50:56]NVStorageDeleteData [16:50:56]MH_Cut [16:50:56]Write to MH i2c: D1 01 00 B2 53 01 D7 [16:50:56]Write i2c OK [16:50:56]MH_I2C_Read... [16:50:56]Read from MH i2c: D1 [16:50:56]MH_I2C_Read... [16:50:56]Read from MH i2c: D1 01 00 [16:50:56]MH_I2C_Read... [16:50:56]Read from MH i2c: D1 01 00 B2 53 00 D6 [16:50:56]Write to MH i2c: 01 00 00 B3 53 06 [16:50:56]Write i2c OK [16:50:56]MH_I2C_Read... [16:50:57]OFD Sender: No OFD packet to send [16:50:57]*** Cut start [16:50:57]*** Purtial cut [16:50:57]*** CUTSNS_PIN = 0 [16:50:57]*** Stage 1: CUTSNS_PIN = 1 [16:50:59]Read from MH i2c: 01 [16:50:59]MH_I2C_Read... [16:50:59]*** Stop cut motor [16:50:59]*** Cut end [16:50:59]Read from MH i2c: 01 07 00 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: 01 07 00 B3 53 00 00 00 00 00 FF 0F 1B [16:50:59]process_action close_receipt done [16:50:59]requested_data is exist [16:50:59]produce_requested_data [16:50:59]requested_item fm.sn is exist - process it [16:50:59]wFMCommunicate request_size=4 [16:50:59]MH_SAM_APDU [16:50:59]CAPDU: 80 11 00 00 [16:50:59]Write to MH i2c: E2 08 00 B4 53 80 11 00 00 00 00 00 00 81 [16:50:59]Write i2c OK [16:50:59]MH_I2C_Read... [16:50:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:59]Read from MH i2c: E2 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: E2 17 00 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: E2 17 00 B4 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 CC [16:50:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:50:59]wFMCommunicate OK [16:50:59]requested_item fd.num is exist - process it [16:50:59]SAM_PROTO_GetFieldsCounters [16:50:59]wFMCommunicate request_size=4 [16:50:59]MH_SAM_APDU [16:50:59]CAPDU: 80 13 00 00 [16:50:59]Write to MH i2c: E2 08 00 B5 53 80 13 00 00 00 00 00 00 84 [16:50:59]Write i2c OK [16:50:59]MH_I2C_Read... [16:50:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:59]Read from MH i2c: E2 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: E2 62 00 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: E2 62 00 B5 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 56 C1 00 00 0E 04 04 00 D0 01 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 30 [16:50:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 56 C1 00 00 0E 04 04 00 D0 01 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 [16:50:59]wFMCommunicate OK [16:50:59]SAM_PROTO_GetFieldsCounters done [16:50:59]requested_item shift.num is exist - process it [16:50:59]requested_item shift.opened is exist - process it [16:50:59]req_shift_opened [16:50:59]FM_GetShiftState [16:50:59]SAM_PROTO_GetShiftState [16:50:59]wFMCommunicate request_size=4 [16:50:59]MH_SAM_APDU [16:50:59]CAPDU: 80 13 01 00 [16:50:59]Write to MH i2c: E2 08 00 B6 53 80 13 01 00 00 00 00 00 86 [16:50:59]Write i2c OK [16:50:59]MH_I2C_Read... [16:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:59]Read from MH i2c: E2 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: E2 0E 00 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: E2 0E 00 B6 53 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 FC [16:50:59]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:50:59]wFMCommunicate OK [16:50:59]SAM_PROTO_GetShiftState done [16:50:59]FM_GetShiftState done [16:50:59]req_shift_opened done [16:50:59]requested_item shift.open_date is exist - process it [16:50:59]req_shift_open_date [16:50:59]req_shift_open_date done [16:50:59]produce_requested_data done [16:50:59]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49494,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [16:50:59]process_action_free close_receipt [16:50:59]json_value_free [16:50:59]json_value_free done [16:50:59]process_json_proto returns [16:50:59]Send response to host [16:50:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49494,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [16:50:59]free response buf [16:50:59]execute_script done [16:50:59]execute_script returns [16:50:59]free content buf [16:50:59]Sock 9.Close socket [16:50:59]Sock 9.Thread stoped [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:42]accept exits with 7 [16:51:42]New connection [16:51:42]New thread 3066973540 created [16:51:42]Thread 3066830180 joined [16:51:42]Waiting for new connection... [16:51:42] Sock 7.Parse request [16:51:42]Sock 7.Check first char [16:51:42]Sock 7.First char is OK [16:51:42]request: POST /json_proto HTTP/1.0 [16:51:42]Method: POST [16:51:42]URL: /json_proto [16:51:42]Method is POST - this is cgi request [16:51:42]url: /json_proto [16:51:42]query_string will be loaded in cgi processing [16:51:42]execute_cgi json_proto POST (null) [16:51:42]execute_cgi path=json_proto method=POST [16:51:42]POST find Content-Length [16:51:42]Host: 172.17.46.196:8080 [16:51:42]Content-Length: 695 [16:51:42]Content-Type: application/json [16:51:42] [16:51:42]POST finish read [16:51:42]Found Content-Length = 695 [16:51:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189705", "tax_sys" : 0, "items" : [ { "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:42]execute_script... [16:51: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 : (3)189705", "tax_sys" : 0, "items" : [ { "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:51:42]POST & json_proto [16:51:42]process_json_proto [16:51:42]json parsed OK: [16:51:42]protocol is kg_v1.0 [16:51:42]action value=close_receipt [16:51:42]process_action close_receipt [16:51:42]cmd_close_receipt [16:51:42]MH_GetDate [16:51:42]Write to MH i2c: F0 00 00 B7 53 F9 [16:51:42]Write i2c OK [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: F0 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: F0 09 00 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: F0 09 00 B7 53 00 A4 83 BF 66 07 E8 5D 66 00 [16:51:42]GetLastDocTimeStamp 1723827060 [16:51:42]current date 1723827108 [16:51:42]FM_GetShiftState [16:51:42]SAM_PROTO_GetShiftState [16:51:42]wFMCommunicate request_size=4 [16:51:42]MH_SAM_APDU [16:51:42]CAPDU: 80 13 01 00 [16:51:42]Write to MH i2c: E2 08 00 B8 53 80 13 01 00 00 00 00 00 88 [16:51:42]Write i2c OK [16:51:42]MH_I2C_Read... [16:51:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:42]Read from MH i2c: E2 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: E2 0E 00 [16:51:42]MH_I2C_Read... [16:51:42]Read from MH i2c: E2 0E 00 B8 53 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 FE [16:51:42]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:51:42]wFMCommunicate OK [16:51:42]SAM_PROTO_GetShiftState done [16:51:42]FM_GetShiftState done [16:51:42]opened in 1723766958 [16:51:42]opened+sec_in_day 1723853358 [16:51:42]quantity*price = 8900 [16:51:42]sum+1 = 8901 [16:51:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 89.00 НСП 1% : 0.79 НДС 12% : 9.45 Наличными: 89.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 143 16.08.2024 16:51 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49495 ФПД: 255215857660000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T165148&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49495&fm=255215857660000&tin=02508201610067®Number=0000000000092546&sum=8900 0 [16:51:43]StoreToDocumentArchive [16:51:43]shift 464 fd 49495 [16:51:43]save to /storage/0464/doc_00049495 [16:51:43]save last doc name /storage/0464/doc_00049495 to /storage/kkm_last_doc_name [16:51:43]save OK [16:51:43]Clear old archive folders... [16:51:43]ProcessDocumentItem done err = 0, tmpTLVsize=294 [16:51:43]tlvbuf is 00E45A60 [16:51:43]SAM_PROTO_ClearQueue [16:51:43]wFMCommunicate request_size=4 [16:51:43]MH_SAM_APDU [16:51:43]CAPDU: 80 09 00 00 [16:51:43]Write to MH i2c: E2 08 00 C5 53 80 09 00 00 00 00 00 00 8A [16:51:43]Write i2c OK [16:51:43]MH_I2C_Read... [16:51:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:43]Read from MH i2c: E2 [16:51:43]MH_I2C_Read... [16:51:43]Read from MH i2c: E2 03 00 [16:51:43]MH_I2C_Read... [16:51:43]Read from MH i2c: E2 03 00 C5 53 00 90 00 8C [16:51:43]RAPDU: 90 00 [16:51:43]wFMCommunicate OK [16:51:43]SAM_PROTO_ClearQueue done [16:51:43]KKMCreateOFDPacket [16:51:43]OFDProtocolAddRootSTLVToBuf [16:51:43]FM_MakeSignedData [16:51:43]FM_MakeSignedData [16:51:43]SAM_PROTO_SignData [16:51:43]wFMCommunicate request_size=4 [16:51:43]MH_SAM_APDU [16:51:43]CAPDU: 80 0D 01 02 [16:51:43]Write to MH i2c: E2 08 00 C6 53 80 0D 01 02 00 00 00 00 92 [16:51:43]Write i2c OK [16:51:43]MH_I2C_Read... [16:51:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:43]Read from MH i2c: E2 [16:51:43]MH_I2C_Read... [16:51:43]Read from MH i2c: E2 03 00 [16:51:43]MH_I2C_Read... [16:51:43]Read from MH i2c: E2 03 00 C6 53 00 90 00 8D [16:51:43]RAPDU: 90 00 [16:51:43]wFMCommunicate OK [16:51:43]wFMCommunicate request_size=255 [16:51:43]MH_SAM_APDU [16:51:43]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A4 83 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [16:51:43]Write to MH i2c: E2 02 01 C7 53 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A4 83 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 7A [16:51:43]Write i2c OK [16:51:43]MH_I2C_Read... [16:51:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:44]Read from MH i2c: E2 [16:51:44]MH_I2C_Read... [16:51:44]Read from MH i2c: E2 03 00 [16:51:44]MH_I2C_Read... [16:51:44]Read from MH i2c: E2 03 00 C7 53 00 90 00 8E [16:51:44]RAPDU: 90 00 [16:51:44]wFMCommunicate OK [16:51:44]wFMCommunicate request_size=53 [16:51:44]MH_SAM_APDU [16:51:44]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 57 C1 00 00 35 04 06 00 E8 1E 12 89 70 60 [16:51:44]Write to MH i2c: E2 38 00 C8 53 80 0D 02 02 30 00 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 57 C1 00 00 35 04 06 00 E8 1E 12 89 70 60 00 00 0C [16:51:44]Write i2c OK [16:51:44]MH_I2C_Read... [16:51:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:44]Read from MH i2c: E2 [16:51:44]MH_I2C_Read... [16:51:44]Read from MH i2c: E2 03 00 [16:51:44]MH_I2C_Read... [16:51:44]Read from MH i2c: E2 03 00 C8 53 00 90 00 8F [16:51:44]RAPDU: 90 00 [16:51:44]wFMCommunicate OK [16:51:44]wFMCommunicate request_size=4 [16:51:44]MH_SAM_APDU [16:51:44]CAPDU: 80 0D 03 02 [16:51:44]Write to MH i2c: E2 08 00 C9 53 80 0D 03 02 00 00 00 00 97 [16:51:44]Write i2c OK [16:51:44]MH_I2C_Read... [16:51:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:44]Read from MH i2c: E2 [16:51:44]MH_I2C_Read... [16:51:44]Read from MH i2c: E2 0B 00 [16:51:44]MH_I2C_Read... [16:51:44]Read from MH i2c: E2 0B 00 C9 53 00 6B 24 CA 68 56 39 BA D7 90 00 79 [16:51:44]RAPDU: 6B 24 CA 68 56 39 BA D7 90 00 [16:51:44]wFMCommunicate OK [16:51:44]SAM_PROTO_SignData done [16:51:44]FM_MakeSignedData done [16:51:44]CreateOFDProtocolMessage [16:51:44]wFMCommunicate request_size=4 [16:51:44]MH_SAM_APDU [16:51:44]CAPDU: 80 11 00 00 [16:51:44]Write to MH i2c: E2 08 00 CA 53 80 11 00 00 00 00 00 00 97 [16:51:44]Write i2c OK [16:51:44]MH_I2C_Read... [16:51:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:44]Read from MH i2c: E2 [16:51:44]MH_I2C_Read... [16:51:44]Read from MH i2c: E2 17 00 [16:51:44]MH_I2C_Read... [16:51:44]Read from MH i2c: E2 17 00 CA 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E2 [16:51:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:51:44]wFMCommunicate OK [16:51:44]CreateOFDProtocolMessage done [16:51:44]OFDSenderStorePacket 49495 [16:51:44]StoreOFDPacket docnum=49495 [16:51:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 FD 2C 32 01 BF EE 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A4 83 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 57 C1 00 00 35 04 06 00 E8 1E 12 89 70 60 6B 24 CA 68 56 39 BA D7 [16:51:44]CheckFolder [16:51:44]dirname=/storage/ofd_packets [16:51:44]CheckFolder done [16:51:44]ProducePacketName [16:51:44]name=ofd_packets/00049495 [16:51:44]NVStorageSaveData ofd_packets/00049495 [16:51:44]File name is /storage/ofd_packets/00049495 [16:51:44]Write 344 bytes [16:51:44]NVStorageSaveData done [16:51:44]OFDSenderStorePacket done [16:51:44]KKMCreateOFDPacket done [16:51:44]NVStorageSaveData kkm_last_timestamp [16:51:44]File name is /storage/kkm_last_timestamp [16:51:44]Write 4 bytes [16:51:44]NVStorageSaveData done [16:51:44]ExternCall_PrintAddStr [16:51:44]wPrintStart [16:51:44]Write to MH i2c: 01 00 00 CB 53 1E [16:51:44]Write i2c OK [16:51:44]MH_I2C_Read... [16:51:44]Read from MH i2c: 01 [16:51:44]MH_I2C_Read... [16:51:44]Read from MH i2c: 01 07 00 [16:51:44]MH_I2C_Read... [16:51:44]Read from MH i2c: 01 07 00 CB 53 00 00 00 00 00 FF 0F 33 [16:51:44]RasterBufferAndPrint [16:51:44]line Счет N : (3)189705 [16:51:44]line ИНН: 02508201610067 [16:51:44]line Контрольно-Кассовый Чек [16:51:44]line ПРОДАЖА [16:51:44]line Товар: 5000159381178 [16:51:44]line Шок Батончик Баунти Трио 82,5г [16:51:44]line 1.000 * 89.00 [16:51:44]line = 89.00 [16:51:44]line НДС 12% НСП 1% [16:51:44]line > о реализуемом товаре [16:51:44]line ИТОГО: 89.00 [16:51:44]line НСП 1% : 0.79 [16:51:44]line НДС 12% : 9.45 [16:51:44]line Наличными: 89.00 [16:51:44]line Безнал.: 0.00 [16:51:44]line Место: АЗС № 95 "Партнер Нефть" [16:51:44]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:51:44]line СНО: Общий режим [16:51:44]line Чек 143 16.08.2024 16:51 [16:51:44]line Смена: 464 ФФД: 1.0 [16:51:44]line ЗНМ: 0300000078 [16:51:44]line РНМ: 0000000000092546 [16:51:44]line Версия ККМ: 001 [16:51:44]line ФМ: 0000000000871800 [16:51:44]line ФД: 49495 [16:51:44]line ФПД: 255215857660000 [16:51:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T165148&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49495&fm=255215857660000&tin=02508201610067®Number=0000000000092546&sum=8900 [16:51:44]OFD Sender: Processing packet 49495 [packets to send 21, broken 20] [16:51:44]ProducePacketName [16:51:44]name=ofd_packets/00049495 [16:51:44]OFD Sender: To server: pG, [16:51:44]CommunicateWithHost lk.salyk.kg:30040 [16:51:44]ConnectInit lk.salyk.kg [16:51:44]line 0 [16:51:44]written 0, free lines is 4095 [16:51:44]Connected sock=10 [16:51:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 FD 2C 32 01 BF EE 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 A4 83 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 57 C1 00 00 35 04 06 00 E8 1E 12 89 70 60 6B 24 CA 68 56 39 BA D7 [16:51:45]Write to MH i2c: 01 00 00 F4 53 47 [16:51:45]Write i2c OK [16:51:45]MH_I2C_Read... [16:51:45]Read from MH i2c: 01 [16:51:45]MH_I2C_Read... [16:51:45]Read from MH i2c: 01 07 00 [16:51:45]MH_I2C_Read... [16:51:45]Read from MH i2c: 01 07 00 F4 53 00 00 00 00 00 DE 0C 38 [16:51:45]RasterBufferAndPrint [16:51:45]line [16:51:45]line [16:51:45]line [16:51:45]line [16:51:45]line [16:51:45]written 0, free lines is 3302 [16:51:45]MH_Cut [16:51:45]Write to MH i2c: D1 01 00 FB 53 01 20 [16:51:45]Write i2c OK [16:51:45]MH_I2C_Read... [16:51:45]Read from MH i2c: D1 [16:51:45]MH_I2C_Read... [16:51:45]Read from MH i2c: D1 01 00 [16:51:45]MH_I2C_Read... [16:51:45]Read from MH i2c: D1 01 00 FB 53 00 1F [16:51:45]Write to MH i2c: 01 00 00 FC 53 4F [16:51:45]Write i2c OK [16:51:45]MH_I2C_Read... [16:51:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 4E AF 47 00 33 D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 57 C1 00 00 F4 03 04 00 E3 2E BF 66 B6 04 01 00 00 E1 8C EE FD 15 7D 35 0E [16:51:45]CommunicateWithHost err = 0 [16:51:45]CheckOFDResponse [16:51:45]1017 (14) - 77093643461234 [16:51:45]1041 (16) - 0000000000871800 [16:51:45]1040 (4) - 49495 [16:51:45]1012 (4) - 16.08.2024 10:50 [16:51:45]1206 (1) - 0 [16:51:45]OFD Sender: Remove packet 49495 [16:51:45]ProducePacketName [16:51:45]name=ofd_packets/00049495 [16:51:45]NVStorageDeleteData [16:51:45]OFD Sender: No OFD packet to send [16:51:45]*** Cut start [16:51:45]*** Purtial cut [16:51:45]*** Stage 1: CUTSNS_PIN = 1 [16:51:46]Read from MH i2c: 01 [16:51:46]MH_I2C_Read... [16:51:46]*** Stop cut motor [16:51:46]*** Cut end [16:51:46]Read from MH i2c: 01 07 00 [16:51:46]MH_I2C_Read... [16:51:46]Read from MH i2c: 01 07 00 FC 53 00 00 00 00 00 FF 0F 64 [16:51:46]process_action close_receipt done [16:51:46]requested_data is exist [16:51:46]produce_requested_data [16:51:46]requested_item fm.sn is exist - process it [16:51:46]wFMCommunicate request_size=4 [16:51:46]MH_SAM_APDU [16:51:46]CAPDU: 80 11 00 00 [16:51:46]Write to MH i2c: E2 08 00 FD 53 80 11 00 00 00 00 00 00 CA [16:51:46]Write i2c OK [16:51:46]MH_I2C_Read... [16:51:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:46]Read from MH i2c: E2 [16:51:46]MH_I2C_Read... [16:51:46]Read from MH i2c: E2 17 00 [16:51:46]MH_I2C_Read... [16:51:46]Read from MH i2c: E2 17 00 FD 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 15 [16:51:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:51:46]wFMCommunicate OK [16:51:46]requested_item fd.num is exist - process it [16:51:46]SAM_PROTO_GetFieldsCounters [16:51:46]wFMCommunicate request_size=4 [16:51:46]MH_SAM_APDU [16:51:46]CAPDU: 80 13 00 00 [16:51:46]Write to MH i2c: E2 08 00 FE 53 80 13 00 00 00 00 00 00 CD [16:51:46]Write i2c OK [16:51:46]MH_I2C_Read... [16:51:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:46]Read from MH i2c: E2 [16:51:46]MH_I2C_Read... [16:51:46]Read from MH i2c: E2 62 00 [16:51:46]MH_I2C_Read... [16:51:46]Read from MH i2c: E2 62 00 FE 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 57 C1 00 00 0E 04 04 00 D0 01 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 7D [16:51:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 57 C1 00 00 0E 04 04 00 D0 01 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 [16:51:46]wFMCommunicate OK [16:51:46]SAM_PROTO_GetFieldsCounters done [16:51:46]requested_item shift.num is exist - process it [16:51:46]requested_item shift.opened is exist - process it [16:51:46]req_shift_opened [16:51:46]FM_GetShiftState [16:51:46]SAM_PROTO_GetShiftState [16:51:46]wFMCommunicate request_size=4 [16:51:46]MH_SAM_APDU [16:51:46]CAPDU: 80 13 01 00 [16:51:46]Write to MH i2c: E2 08 00 FF 53 80 13 01 00 00 00 00 00 CF [16:51:46]Write i2c OK [16:51:46]MH_I2C_Read... [16:51:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:46]Read from MH i2c: E2 [16:51:46]MH_I2C_Read... [16:51:46]Read from MH i2c: E2 0E 00 [16:51:46]MH_I2C_Read... [16:51:46]Read from MH i2c: E2 0E 00 FF 53 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 45 [16:51:46]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:51:46]wFMCommunicate OK [16:51:46]SAM_PROTO_GetShiftState done [16:51:46]FM_GetShiftState done [16:51:46]req_shift_opened done [16:51:46]requested_item shift.open_date is exist - process it [16:51:46]req_shift_open_date [16:51:46]req_shift_open_date done [16:51:46]produce_requested_data done [16:51:46]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49495,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [16:51:46]process_action_free close_receipt [16:51:46]json_value_free [16:51:46]json_value_free done [16:51:46]process_json_proto returns [16:51:46]Send response to host [16:51:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49495,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [16:51:46]free response buf [16:51:46]execute_script done [16:51:46]execute_script returns [16:51:46]free content buf [16:51:46]Sock 7.Close socket [16:51:46]Sock 7.Thread stoped [16:51:50]OFD Sender: No OFD packet to send [16:51:55]OFD Sender: No OFD packet to send [16:52:00]OFD Sender: No OFD packet to send [16:52:05]OFD Sender: No OFD packet to send [16:52:10]OFD Sender: No OFD packet to send [16:52:15]OFD Sender: No OFD packet to send [16:52:20]OFD Sender: No OFD packet to send [16:52:25]OFD Sender: No OFD packet to send [16:52:30]OFD Sender: No OFD packet to send [16:52:35]OFD Sender: No OFD packet to send [16:52:40]OFD Sender: No OFD packet to send [16:52:45]OFD Sender: No OFD packet to send [16:52:50]OFD Sender: No OFD packet to send [16:52:55]OFD Sender: No OFD packet to send [16:53:00]OFD Sender: No OFD packet to send [16:53:05]OFD Sender: No OFD packet to send [16:53:10]OFD Sender: No OFD packet to send [16:53:15]OFD Sender: No OFD packet to send [16:53:20]OFD Sender: No OFD packet to send [16:53:25]OFD Sender: No OFD packet to send [16:53:30]OFD Sender: No OFD packet to send [16:53:35]OFD Sender: No OFD packet to send [16:53:40]OFD Sender: No OFD packet to send [16:53:45]OFD Sender: No OFD packet to send [16:53:50]OFD Sender: No OFD packet to send [16:53:55]OFD Sender: No OFD packet to send [16:54:00]OFD Sender: No OFD packet to send [16:54:05]OFD Sender: No OFD packet to send [16:54:10]OFD Sender: No OFD packet to send [16:54:15]OFD Sender: No OFD packet to send [16:54:20]OFD Sender: No OFD packet to send [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:02]accept exits with 9 [16:57:02]New connection [16:57:02]New thread 3066830180 created [16:57:02]Thread 3066973540 joined [16:57:02]Waiting for new connection... [16:57:02] Sock 9.Parse request [16:57:02]Sock 9.Check first char [16:57:02]Sock 9.First char is OK [16:57:02]request: POST /json_proto HTTP/1.0 [16:57:02]Method: POST [16:57:02]URL: /json_proto [16:57:02]Method is POST - this is cgi request [16:57:02]url: /json_proto [16:57:02]query_string will be loaded in cgi processing [16:57:02]execute_cgi json_proto POST (null) [16:57:02]execute_cgi path=json_proto method=POST [16:57:02]POST find Content-Length [16:57:02]Host: 172.17.46.196:8080 [16:57:02]Content-Length: 688 [16:57:02]Content-Type: application/json [16:57:02] [16:57:02]POST finish read [16:57:02]Found Content-Length = 688 [16:57:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189706", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:02]execute_script... [16:57: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 : (3)189706", "tax_sys" : 0, "items" : [ { "code": "4870002325441", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 65.00, "quantity" : 1.000, "sum" : 65.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 65.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:02]POST & json_proto [16:57:02]process_json_proto [16:57:02]json parsed OK: [16:57:02]protocol is kg_v1.0 [16:57:02]action value=close_receipt [16:57:02]process_action close_receipt [16:57:02]cmd_close_receipt [16:57:02]MH_GetDate [16:57:02]Write to MH i2c: F0 00 00 00 54 43 [16:57:02]Write i2c OK [16:57:02]MH_I2C_Read... [16:57:02]Read from MH i2c: F0 [16:57:02]MH_I2C_Read... [16:57:02]Read from MH i2c: F0 09 00 [16:57:02]MH_I2C_Read... [16:57:02]Read from MH i2c: F0 09 00 00 54 00 E4 84 BF 66 07 E8 5D 66 8B [16:57:02]GetLastDocTimeStamp 1723827108 [16:57:02]current date 1723827428 [16:57:02]FM_GetShiftState [16:57:02]SAM_PROTO_GetShiftState [16:57:02]wFMCommunicate request_size=4 [16:57:02]MH_SAM_APDU [16:57:02]CAPDU: 80 13 01 00 [16:57:02]Write to MH i2c: E2 08 00 01 54 80 13 01 00 00 00 00 00 D2 [16:57:02]Write i2c OK [16:57:02]MH_I2C_Read... [16:57:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:02]Read from MH i2c: E2 [16:57:02]MH_I2C_Read... [16:57:02]Read from MH i2c: E2 0E 00 [16:57:02]MH_I2C_Read... [16:57:02]Read from MH i2c: E2 0E 00 01 54 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 48 [16:57:02]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:57:02]wFMCommunicate OK [16:57:02]SAM_PROTO_GetShiftState done [16:57:02]FM_GetShiftState done [16:57:02]opened in 1723766958 [16:57:02]opened+sec_in_day 1723853358 [16:57:02]quantity*price = 6500 [16:57:02]sum+1 = 6501 [16:57:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 65.00 НСП 1% : 0.57 НДС 12% : 6.90 Наличными: 65.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 144 16.08.2024 16:57 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49496 ФПД: 227690453573600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T165708&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49496&fm=227690453573600&tin=02508201610067®Number=0000000000092546&sum=6500 0 [16:57:03]StoreToDocumentArchive [16:57:03]shift 464 fd 49496 [16:57:03]save to /storage/0464/doc_00049496 [16:57:03]save last doc name /storage/0464/doc_00049496 to /storage/kkm_last_doc_name [16:57:03]save OK [16:57:03]Clear old archive folders... [16:57:03]ProcessDocumentItem done err = 0, tmpTLVsize=295 [16:57:03]tlvbuf is 00E145D0 [16:57:03]SAM_PROTO_ClearQueue [16:57:03]wFMCommunicate request_size=4 [16:57:03]MH_SAM_APDU [16:57:03]CAPDU: 80 09 00 00 [16:57:03]Write to MH i2c: E2 08 00 0E 54 80 09 00 00 00 00 00 00 D4 [16:57:03]Write i2c OK [16:57:03]MH_I2C_Read... [16:57:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:03]Read from MH i2c: E2 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: E2 03 00 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: E2 03 00 0E 54 00 90 00 D6 [16:57:03]RAPDU: 90 00 [16:57:03]wFMCommunicate OK [16:57:03]SAM_PROTO_ClearQueue done [16:57:03]KKMCreateOFDPacket [16:57:03]OFDProtocolAddRootSTLVToBuf [16:57:03]FM_MakeSignedData [16:57:03]FM_MakeSignedData [16:57:03]SAM_PROTO_SignData [16:57:03]wFMCommunicate request_size=4 [16:57:03]MH_SAM_APDU [16:57:03]CAPDU: 80 0D 01 02 [16:57:03]Write to MH i2c: E2 08 00 0F 54 80 0D 01 02 00 00 00 00 DC [16:57:03]Write i2c OK [16:57:03]MH_I2C_Read... [16:57:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:03]Read from MH i2c: E2 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: E2 03 00 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: E2 03 00 0F 54 00 90 00 D7 [16:57:03]RAPDU: 90 00 [16:57:03]wFMCommunicate OK [16:57:03]wFMCommunicate request_size=255 [16:57:03]MH_SAM_APDU [16:57:03]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 E4 84 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [16:57:03]Write to MH i2c: E2 02 01 10 54 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 E4 84 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 0A [16:57:03]Write i2c OK [16:57:03]MH_I2C_Read... [16:57:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:03]Read from MH i2c: E2 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: E2 03 00 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: E2 03 00 10 54 00 90 00 D8 [16:57:03]RAPDU: 90 00 [16:57:03]wFMCommunicate OK [16:57:03]wFMCommunicate request_size=54 [16:57:03]MH_SAM_APDU [16:57:03]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 58 C1 00 00 35 04 06 00 CF 15 50 9A 9F E0 [16:57:03]Write to MH i2c: E2 39 00 11 54 80 0D 02 02 31 00 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 58 C1 00 00 35 04 06 00 CF 15 50 9A 9F E0 00 00 65 [16:57:03]Write i2c OK [16:57:03]MH_I2C_Read... [16:57:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:03]Read from MH i2c: E2 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: E2 03 00 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: E2 03 00 11 54 00 90 00 D9 [16:57:03]RAPDU: 90 00 [16:57:03]wFMCommunicate OK [16:57:03]wFMCommunicate request_size=4 [16:57:03]MH_SAM_APDU [16:57:03]CAPDU: 80 0D 03 02 [16:57:03]Write to MH i2c: E2 08 00 12 54 80 0D 03 02 00 00 00 00 E1 [16:57:03]Write i2c OK [16:57:03]MH_I2C_Read... [16:57:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:03]Read from MH i2c: E2 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: E2 0B 00 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: E2 0B 00 12 54 00 9B 84 6D 64 16 79 24 4B 90 00 D0 [16:57:03]RAPDU: 9B 84 6D 64 16 79 24 4B 90 00 [16:57:03]wFMCommunicate OK [16:57:03]SAM_PROTO_SignData done [16:57:03]FM_MakeSignedData done [16:57:03]CreateOFDProtocolMessage [16:57:03]wFMCommunicate request_size=4 [16:57:03]MH_SAM_APDU [16:57:03]CAPDU: 80 11 00 00 [16:57:03]Write to MH i2c: E2 08 00 13 54 80 11 00 00 00 00 00 00 E1 [16:57:03]Write i2c OK [16:57:03]MH_I2C_Read... [16:57:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:03]Read from MH i2c: E2 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: E2 17 00 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: E2 17 00 13 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2C [16:57:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:57:03]wFMCommunicate OK [16:57:03]CreateOFDProtocolMessage done [16:57:03]OFDSenderStorePacket 49496 [16:57:03]StoreOFDPacket docnum=49496 [16:57:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3B 01 00 00 F4 2B 33 01 77 26 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 E4 84 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 58 C1 00 00 35 04 06 00 CF 15 50 9A 9F E0 9B 84 6D 64 16 79 24 4B [16:57:03]CheckFolder [16:57:03]dirname=/storage/ofd_packets [16:57:03]CheckFolder done [16:57:03]ProducePacketName [16:57:03]name=ofd_packets/00049496 [16:57:03]NVStorageSaveData ofd_packets/00049496 [16:57:03]File name is /storage/ofd_packets/00049496 [16:57:03]Write 345 bytes [16:57:03]NVStorageSaveData done [16:57:03]OFDSenderStorePacket done [16:57:03]KKMCreateOFDPacket done [16:57:03]NVStorageSaveData kkm_last_timestamp [16:57:03]File name is /storage/kkm_last_timestamp [16:57:03]Write 4 bytes [16:57:03]NVStorageSaveData done [16:57:03]ExternCall_PrintAddStr [16:57:03]wPrintStart [16:57:03]Write to MH i2c: 01 00 00 14 54 68 [16:57:03]Write i2c OK [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: 01 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: 01 07 00 [16:57:03]MH_I2C_Read... [16:57:03]Read from MH i2c: 01 07 00 14 54 00 00 00 00 00 FF 0F 7D [16:57:03]RasterBufferAndPrint [16:57:03]line Счет N : (3)189706 [16:57:03]line ИНН: 02508201610067 [16:57:03]line Контрольно-Кассовый Чек [16:57:03]line ПРОДАЖА [16:57:03]line Товар: 4870002325441 [16:57:03]line Вода ASU пит н.газ лимон ПЭТ 0,5л [16:57:03]line 1.000 * 65.00 [16:57:03]line = 65.00 [16:57:03]line НДС 12% НСП 1% [16:57:03]line > о реализуемом товаре [16:57:03]line ИТОГО: 65.00 [16:57:03]line НСП 1% : 0.57 [16:57:03]line НДС 12% : 6.90 [16:57:03]line Наличными: 65.00 [16:57:03]line Безнал.: 0.00 [16:57:03]line Место: АЗС № 95 "Партнер Нефть" [16:57:03]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:57:03]line СНО: Общий режим [16:57:03]line Чек 144 16.08.2024 16:57 [16:57:03]line Смена: 464 ФФД: 1.0 [16:57:03]line ЗНМ: 0300000078 [16:57:03]line РНМ: 0000000000092546 [16:57:03]line Версия ККМ: 001 [16:57:03]line ФМ: 0000000000871800 [16:57:03]line ФД: 49496 [16:57:03]line ФПД: 227690453573600 [16:57:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T165708&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49496&fm=227690453573600&tin=02508201610067®Number=0000000000092546&sum=6500 [16:57:04]OFD Sender: Processing packet 49496 [packets to send 21, broken 20] [16:57:04]ProducePacketName [16:57:04]name=ofd_packets/00049496 [16:57:04]OFD Sender: To server: pG, [16:57:04]CommunicateWithHost lk.salyk.kg:30040 [16:57:04]ConnectInit lk.salyk.kg [16:57:04]line 0 [16:57:04]written 0, free lines is 4095 [16:57:04]Connected sock=10 [16:57:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3B 01 00 00 F4 2B 33 01 77 26 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 35 34 34 31 06 04 35 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 E4 84 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 58 C1 00 00 35 04 06 00 CF 15 50 9A 9F E0 9B 84 6D 64 16 79 24 4B [16:57:04]Write to MH i2c: 01 00 00 3D 54 91 [16:57:04]Write i2c OK [16:57:04]MH_I2C_Read... [16:57:04]Read from MH i2c: 01 [16:57:04]MH_I2C_Read... [16:57:04]Read from MH i2c: 01 07 00 [16:57:04]MH_I2C_Read... [16:57:04]Read from MH i2c: 01 07 00 3D 54 00 00 00 00 00 DD 0C 81 [16:57:04]RasterBufferAndPrint [16:57:04]line [16:57:04]line [16:57:04]line [16:57:04]line [16:57:04]line [16:57:04]written 0, free lines is 3299 [16:57:04]MH_Cut [16:57:04]Write to MH i2c: D1 01 00 44 54 01 6A [16:57:04]Write i2c OK [16:57:04]MH_I2C_Read... [16:57:04]Read from MH i2c: D1 [16:57:04]MH_I2C_Read... [16:57:04]Read from MH i2c: D1 01 00 [16:57:04]MH_I2C_Read... [16:57:04]Read from MH i2c: D1 01 00 44 54 00 69 [16:57:04]Write to MH i2c: 01 00 00 45 54 99 [16:57:04]Write i2c OK [16:57:04]MH_I2C_Read... [16:57:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 38 FD 47 00 22 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 58 C1 00 00 F4 03 04 00 23 30 BF 66 B6 04 01 00 00 A2 D9 09 DF 17 B5 25 79 [16:57:04]CommunicateWithHost err = 0 [16:57:04]CheckOFDResponse [16:57:04]1017 (14) - 77093643461234 [16:57:04]1041 (16) - 0000000000871800 [16:57:04]1040 (4) - 49496 [16:57:04]1012 (4) - 16.08.2024 10:55 [16:57:04]1206 (1) - 0 [16:57:04]OFD Sender: Remove packet 49496 [16:57:04]ProducePacketName [16:57:04]name=ofd_packets/00049496 [16:57:04]NVStorageDeleteData [16:57:05]OFD Sender: No OFD packet to send [16:57:05]*** Cut start [16:57:05]*** Purtial cut [16:57:05]*** CUTSNS_PIN = 0 [16:57:05]*** Stage 1: CUTSNS_PIN = 1 [16:57:07]Read from MH i2c: 01 [16:57:07]MH_I2C_Read... [16:57:07]*** Stop cut motor [16:57:07]*** Cut end [16:57:07]Read from MH i2c: 01 07 00 [16:57:07]MH_I2C_Read... [16:57:07]Read from MH i2c: 01 07 00 45 54 00 00 00 00 00 FF 0F AE [16:57:07]process_action close_receipt done [16:57:07]requested_data is exist [16:57:07]produce_requested_data [16:57:07]requested_item fm.sn is exist - process it [16:57:07]wFMCommunicate request_size=4 [16:57:07]MH_SAM_APDU [16:57:07]CAPDU: 80 11 00 00 [16:57:07]Write to MH i2c: E2 08 00 46 54 80 11 00 00 00 00 00 00 14 [16:57:07]Write i2c OK [16:57:07]MH_I2C_Read... [16:57:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:07]Read from MH i2c: E2 [16:57:07]MH_I2C_Read... [16:57:07]Read from MH i2c: E2 17 00 [16:57:07]MH_I2C_Read... [16:57:07]Read from MH i2c: E2 17 00 46 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5F [16:57:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:57:07]wFMCommunicate OK [16:57:07]requested_item fd.num is exist - process it [16:57:07]SAM_PROTO_GetFieldsCounters [16:57:07]wFMCommunicate request_size=4 [16:57:07]MH_SAM_APDU [16:57:07]CAPDU: 80 13 00 00 [16:57:07]Write to MH i2c: E2 08 00 47 54 80 13 00 00 00 00 00 00 17 [16:57:07]Write i2c OK [16:57:07]MH_I2C_Read... [16:57:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:07]Read from MH i2c: E2 [16:57:07]MH_I2C_Read... [16:57:07]Read from MH i2c: E2 62 00 [16:57:07]MH_I2C_Read... [16:57:07]Read from MH i2c: E2 62 00 47 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 58 C1 00 00 0E 04 04 00 D0 01 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 CB [16:57:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 58 C1 00 00 0E 04 04 00 D0 01 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 [16:57:07]wFMCommunicate OK [16:57:07]SAM_PROTO_GetFieldsCounters done [16:57:07]requested_item shift.num is exist - process it [16:57:07]requested_item shift.opened is exist - process it [16:57:07]req_shift_opened [16:57:07]FM_GetShiftState [16:57:07]SAM_PROTO_GetShiftState [16:57:07]wFMCommunicate request_size=4 [16:57:07]MH_SAM_APDU [16:57:07]CAPDU: 80 13 01 00 [16:57:07]Write to MH i2c: E2 08 00 48 54 80 13 01 00 00 00 00 00 19 [16:57:07]Write i2c OK [16:57:07]MH_I2C_Read... [16:57:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:07]Read from MH i2c: E2 [16:57:07]MH_I2C_Read... [16:57:07]Read from MH i2c: E2 0E 00 [16:57:07]MH_I2C_Read... [16:57:07]Read from MH i2c: E2 0E 00 48 54 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 8F [16:57:07]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:57:07]wFMCommunicate OK [16:57:07]SAM_PROTO_GetShiftState done [16:57:07]FM_GetShiftState done [16:57:07]req_shift_opened done [16:57:07]requested_item shift.open_date is exist - process it [16:57:07]req_shift_open_date [16:57:07]req_shift_open_date done [16:57:07]produce_requested_data done [16:57:07]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49496,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [16:57:07]process_action_free close_receipt [16:57:07]json_value_free [16:57:07]json_value_free done [16:57:07]process_json_proto returns [16:57:07]Send response to host [16:57:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49496,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [16:57:07]free response buf [16:57:07]execute_script done [16:57:07]execute_script returns [16:57:07]free content buf [16:57:07]Sock 9.Close socket [16:57:07]Sock 9.Thread stoped [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:44]accept exits with 7 [16:57:44]New connection [16:57:44]New thread 3066973540 created [16:57:44]Thread 3066830180 joined [16:57:44]Waiting for new connection... [16:57:44] Sock 7.Parse request [16:57:44]Sock 7.Check first char [16:57:44]Sock 7.First char is OK [16:57:44]request: POST /json_proto HTTP/1.0 [16:57:44]Method: POST [16:57:44]URL: /json_proto [16:57:44]Method is POST - this is cgi request [16:57:44]url: /json_proto [16:57:44]query_string will be loaded in cgi processing [16:57:44]execute_cgi json_proto POST (null) [16:57:44]execute_cgi path=json_proto method=POST [16:57:44]POST find Content-Length [16:57:44]Host: 172.17.46.196:8080 [16:57:44]Content-Length: 649 [16:57:44]Content-Type: application/json [16:57:44] [16:57:44]POST finish read [16:57:44]Found Content-Length = 649 [16:57:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189707", "tax_sys" : 0, "items" : [ { "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:44]execute_script... [16:57: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 : (3)189707", "tax_sys" : 0, "items" : [ { "code": "4870227273831", "name": "\u041B\u0438\u043C\u043E\u043D\u0430\u0434 Sunbel \u041C\u043E\u0445\u0438\u0442\u043E 1\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:57:44]POST & json_proto [16:57:44]process_json_proto [16:57:44]json parsed OK: [16:57:44]protocol is kg_v1.0 [16:57:44]action value=close_receipt [16:57:44]process_action close_receipt [16:57:44]cmd_close_receipt [16:57:44]MH_GetDate [16:57:44]Write to MH i2c: F0 00 00 49 54 8C [16:57:44]Write i2c OK [16:57:44]MH_I2C_Read... [16:57:44]Read from MH i2c: F0 [16:57:44]MH_I2C_Read... [16:57:44]Read from MH i2c: F0 09 00 [16:57:44]MH_I2C_Read... [16:57:44]Read from MH i2c: F0 09 00 49 54 00 0E 85 BF 66 07 E8 5D 66 FF [16:57:44]GetLastDocTimeStamp 1723827428 [16:57:44]current date 1723827470 [16:57:44]FM_GetShiftState [16:57:44]SAM_PROTO_GetShiftState [16:57:44]wFMCommunicate request_size=4 [16:57:44]MH_SAM_APDU [16:57:44]CAPDU: 80 13 01 00 [16:57:44]Write to MH i2c: E2 08 00 4A 54 80 13 01 00 00 00 00 00 1B [16:57:44]Write i2c OK [16:57:44]MH_I2C_Read... [16:57:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:44]Read from MH i2c: E2 [16:57:44]MH_I2C_Read... [16:57:44]Read from MH i2c: E2 0E 00 [16:57:44]MH_I2C_Read... [16:57:44]Read from MH i2c: E2 0E 00 4A 54 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 91 [16:57:44]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:57:44]wFMCommunicate OK [16:57:44]SAM_PROTO_GetShiftState done [16:57:44]FM_GetShiftState done [16:57:44]opened in 1723766958 [16:57:44]opened+sec_in_day 1723853358 [16:57:44]quantity*price = 8500 [16:57:44]sum+1 = 8501 [16:57:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 145 16.08.2024 16:57 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49497 ФПД: 82697046429517 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T165750&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49497&fm=82697046429517&tin=02508201610067®Number=0000000000092546&sum=8500 0 [16:57:45]StoreToDocumentArchive [16:57:45]shift 464 fd 49497 [16:57:45]save to /storage/0464/doc_00049497 [16:57:45]save last doc name /storage/0464/doc_00049497 to /storage/kkm_last_doc_name [16:57:45]save OK [16:57:45]Clear old archive folders... [16:57:45]ProcessDocumentItem done err = 0, tmpTLVsize=280 [16:57:45]tlvbuf is 00DEA270 [16:57:45]SAM_PROTO_ClearQueue [16:57:45]wFMCommunicate request_size=4 [16:57:45]MH_SAM_APDU [16:57:45]CAPDU: 80 09 00 00 [16:57:45]Write to MH i2c: E2 08 00 57 54 80 09 00 00 00 00 00 00 1D [16:57:45]Write i2c OK [16:57:45]MH_I2C_Read... [16:57:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:57:45]Read from MH i2c: E2 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 03 00 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 03 00 57 54 00 90 00 1F [16:57:45]RAPDU: 90 00 [16:57:45]wFMCommunicate OK [16:57:45]SAM_PROTO_ClearQueue done [16:57:45]KKMCreateOFDPacket [16:57:45]OFDProtocolAddRootSTLVToBuf [16:57:45]FM_MakeSignedData [16:57:45]FM_MakeSignedData [16:57:45]SAM_PROTO_SignData [16:57:45]wFMCommunicate request_size=4 [16:57:45]MH_SAM_APDU [16:57:45]CAPDU: 80 0D 01 02 [16:57:45]Write to MH i2c: E2 08 00 58 54 80 0D 01 02 00 00 00 00 25 [16:57:45]Write i2c OK [16:57:45]MH_I2C_Read... [16:57:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:57:45]Read from MH i2c: E2 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 03 00 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 03 00 58 54 00 90 00 20 [16:57:45]RAPDU: 90 00 [16:57:45]wFMCommunicate OK [16:57:45]wFMCommunicate request_size=255 [16:57:45]MH_SAM_APDU [16:57:45]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 0E 85 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 [16:57:45]Write to MH i2c: E2 02 01 59 54 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 0E 85 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 00 00 53 [16:57:45]Write i2c OK [16:57:45]MH_I2C_Read... [16:57:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:45]Read from MH i2c: E2 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 03 00 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 03 00 59 54 00 90 00 21 [16:57:45]RAPDU: 90 00 [16:57:45]wFMCommunicate OK [16:57:45]wFMCommunicate request_size=39 [16:57:45]MH_SAM_APDU [16:57:45]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 59 C1 00 00 35 04 06 00 4B 36 68 13 8F 4D [16:57:45]Write to MH i2c: E2 2A 00 5A 54 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 59 C1 00 00 35 04 06 00 4B 36 68 13 8F 4D 00 00 CD [16:57:45]Write i2c OK [16:57:45]MH_I2C_Read... [16:57:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:57:45]Read from MH i2c: E2 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 03 00 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 03 00 5A 54 00 90 00 22 [16:57:45]RAPDU: 90 00 [16:57:45]wFMCommunicate OK [16:57:45]wFMCommunicate request_size=4 [16:57:45]MH_SAM_APDU [16:57:45]CAPDU: 80 0D 03 02 [16:57:45]Write to MH i2c: E2 08 00 5B 54 80 0D 03 02 00 00 00 00 2A [16:57:45]Write i2c OK [16:57:45]MH_I2C_Read... [16:57:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:57:45]Read from MH i2c: E2 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 0B 00 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 0B 00 5B 54 00 25 D7 09 06 6A 05 A5 B1 90 00 FB [16:57:45]RAPDU: 25 D7 09 06 6A 05 A5 B1 90 00 [16:57:45]wFMCommunicate OK [16:57:45]SAM_PROTO_SignData done [16:57:45]FM_MakeSignedData done [16:57:45]CreateOFDProtocolMessage [16:57:45]wFMCommunicate request_size=4 [16:57:45]MH_SAM_APDU [16:57:45]CAPDU: 80 11 00 00 [16:57:45]Write to MH i2c: E2 08 00 5C 54 80 11 00 00 00 00 00 00 2A [16:57:45]Write i2c OK [16:57:45]MH_I2C_Read... [16:57:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:45]Read from MH i2c: E2 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 17 00 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: E2 17 00 5C 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 75 [16:57:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:57:45]wFMCommunicate OK [16:57:45]CreateOFDProtocolMessage done [16:57:45]OFDSenderStorePacket 49497 [16:57:45]StoreOFDPacket docnum=49497 [16:57:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 60 A4 24 01 41 F9 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 0E 85 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 59 C1 00 00 35 04 06 00 4B 36 68 13 8F 4D 25 D7 09 06 6A 05 A5 B1 [16:57:45]CheckFolder [16:57:45]dirname=/storage/ofd_packets [16:57:45]CheckFolder done [16:57:45]ProducePacketName [16:57:45]name=ofd_packets/00049497 [16:57:45]NVStorageSaveData ofd_packets/00049497 [16:57:45]File name is /storage/ofd_packets/00049497 [16:57:45]Write 330 bytes [16:57:45]NVStorageSaveData done [16:57:45]OFDSenderStorePacket done [16:57:45]KKMCreateOFDPacket done [16:57:45]NVStorageSaveData kkm_last_timestamp [16:57:45]File name is /storage/kkm_last_timestamp [16:57:45]Write 4 bytes [16:57:45]NVStorageSaveData done [16:57:45]ExternCall_PrintAddStr [16:57:45]wPrintStart [16:57:45]Write to MH i2c: 01 00 00 5D 54 B1 [16:57:45]Write i2c OK [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: 01 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: 01 07 00 [16:57:45]MH_I2C_Read... [16:57:45]Read from MH i2c: 01 07 00 5D 54 00 00 00 00 00 FF 0F C6 [16:57:45]RasterBufferAndPrint [16:57:45]line Счет N : (3)189707 [16:57:45]line ИНН: 02508201610067 [16:57:45]line Контрольно-Кассовый Чек [16:57:45]line ПРОДАЖА [16:57:45]line Товар: 4870227273831 [16:57:45]line Лимонад Sunbel Мохито 1л [16:57:45]line 1.000 * 85.00 [16:57:45]line = 85.00 [16:57:45]line НДС 12% НСП 1% [16:57:45]line > о реализуемом товаре [16:57:45]line ИТОГО: 85.00 [16:57:45]line НСП 1% : 0.75 [16:57:45]line НДС 12% : 9.03 [16:57:45]line Наличными: 85.00 [16:57:45]line Безнал.: 0.00 [16:57:45]line Место: АЗС № 95 "Партнер Нефть" [16:57:45]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [16:57:45]line СНО: Общий режим [16:57:45]line Чек 145 16.08.2024 16:57 [16:57:45]line Смена: 464 ФФД: 1.0 [16:57:45]line ЗНМ: 0300000078 [16:57:45]line РНМ: 0000000000092546 [16:57:45]line Версия ККМ: 001 [16:57:45]line ФМ: 0000000000871800 [16:57:45]line ФД: 49497 [16:57:45]line ФПД: 82697046429517 [16:57:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T165750&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49497&fm=82697046429517&tin=02508201610067®Number=0000000000092546&sum=8500 [16:57:46]OFD Sender: Processing packet 49497 [packets to send 21, broken 20] [16:57:46]ProducePacketName [16:57:46]name=ofd_packets/00049497 [16:57:46]OFD Sender: To server: pG, [16:57:46]CommunicateWithHost lk.salyk.kg:30040 [16:57:46]ConnectInit lk.salyk.kg [16:57:46]line 0 [16:57:46]written 0, free lines is 4095 [16:57:46]Connected sock=9 [16:57:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 60 A4 24 01 41 F9 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 33 31 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 0E 85 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 59 C1 00 00 35 04 06 00 4B 36 68 13 8F 4D 25 D7 09 06 6A 05 A5 B1 [16:57:46]Write to MH i2c: 01 00 00 85 54 D9 [16:57:46]Write i2c OK [16:57:46]MH_I2C_Read... [16:57:46]Read from MH i2c: 01 [16:57:46]MH_I2C_Read... [16:57:46]Read from MH i2c: 01 07 00 [16:57:46]MH_I2C_Read... [16:57:46]Read from MH i2c: 01 07 00 85 54 00 00 00 00 00 FC 0C E8 [16:57:46]RasterBufferAndPrint [16:57:46]line [16:57:46]line [16:57:46]line [16:57:46]line [16:57:46]line [16:57:46]written 0, free lines is 3333 [16:57:46]MH_Cut [16:57:46]Write to MH i2c: D1 01 00 8C 54 01 B2 [16:57:46]Write i2c OK [16:57:46]MH_I2C_Read... [16:57:46]Read from MH i2c: D1 [16:57:46]MH_I2C_Read... [16:57:46]Read from MH i2c: D1 01 00 [16:57:46]MH_I2C_Read... [16:57:46]Read from MH i2c: D1 01 00 8C 54 00 B1 [16:57:46]Write to MH i2c: 01 00 00 8D 54 E1 [16:57:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 9F 12 47 00 D8 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 38 37 31 38 30 30 10 04 04 00 59 C1 00 00 F4 03 04 00 4C 30 BF 66 B6 04 01 00 00 01 AB 7D EF 33 F6 8D 11 [16:57:46]CommunicateWithHost err = 0 [16:57:46]CheckOFDResponse [16:57:46]1017 (14) - 77093643461234 [16:57:46]1041 (16) - 0000000000871800 [16:57:46]1040 (4) - 49497 [16:57:46]1012 (4) - 16.08.2024 10:56 [16:57:46]1206 (1) - 0 [16:57:46]OFD Sender: Remove packet 49497 [16:57:46]ProducePacketName [16:57:46]name=ofd_packets/00049497 [16:57:46]NVStorageDeleteData [16:57:46]Write i2c OK [16:57:46]MH_I2C_Read... [16:57:47]OFD Sender: No OFD packet to send [16:57:47]*** Cut start [16:57:47]*** Purtial cut [16:57:47]*** Stage 1: CUTSNS_PIN = 1 [16:57:47]Read from MH i2c: 01 [16:57:47]MH_I2C_Read... [16:57:47]*** Stop cut motor [16:57:47]*** Cut end [16:57:47]Read from MH i2c: 01 07 00 [16:57:47]MH_I2C_Read... [16:57:47]Read from MH i2c: 01 07 00 8D 54 00 00 00 00 00 FF 0F F6 [16:57:47]process_action close_receipt done [16:57:47]requested_data is exist [16:57:47]produce_requested_data [16:57:47]requested_item fm.sn is exist - process it [16:57:47]wFMCommunicate request_size=4 [16:57:47]MH_SAM_APDU [16:57:47]CAPDU: 80 11 00 00 [16:57:47]Write to MH i2c: E2 08 00 8E 54 80 11 00 00 00 00 00 00 5C [16:57:47]Write i2c OK [16:57:47]MH_I2C_Read... [16:57:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:57:47]Read from MH i2c: E2 [16:57:47]MH_I2C_Read... [16:57:47]Read from MH i2c: E2 17 00 [16:57:47]MH_I2C_Read... [16:57:47]Read from MH i2c: E2 17 00 8E 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 A7 [16:57:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [16:57:47]wFMCommunicate OK [16:57:47]requested_item fd.num is exist - process it [16:57:47]SAM_PROTO_GetFieldsCounters [16:57:47]wFMCommunicate request_size=4 [16:57:47]MH_SAM_APDU [16:57:47]CAPDU: 80 13 00 00 [16:57:47]Write to MH i2c: E2 08 00 8F 54 80 13 00 00 00 00 00 00 5F [16:57:47]Write i2c OK [16:57:47]MH_I2C_Read... [16:57:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:57:47]Read from MH i2c: E2 [16:57:47]MH_I2C_Read... [16:57:47]Read from MH i2c: E2 62 00 [16:57:47]MH_I2C_Read... [16:57:47]Read from MH i2c: E2 62 00 8F 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 59 C1 00 00 0E 04 04 00 D0 01 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 17 [16:57:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 59 C1 00 00 0E 04 04 00 D0 01 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 [16:57:47]wFMCommunicate OK [16:57:47]SAM_PROTO_GetFieldsCounters done [16:57:47]requested_item shift.num is exist - process it [16:57:47]requested_item shift.opened is exist - process it [16:57:47]req_shift_opened [16:57:47]FM_GetShiftState [16:57:47]SAM_PROTO_GetShiftState [16:57:47]wFMCommunicate request_size=4 [16:57:47]MH_SAM_APDU [16:57:47]CAPDU: 80 13 01 00 [16:57:47]Write to MH i2c: E2 08 00 90 54 80 13 01 00 00 00 00 00 61 [16:57:47]Write i2c OK [16:57:47]MH_I2C_Read... [16:57:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:57:48]Read from MH i2c: E2 [16:57:48]MH_I2C_Read... [16:57:48]Read from MH i2c: E2 0E 00 [16:57:48]MH_I2C_Read... [16:57:48]Read from MH i2c: E2 0E 00 90 54 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 D7 [16:57:48]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [16:57:48]wFMCommunicate OK [16:57:48]SAM_PROTO_GetShiftState done [16:57:48]FM_GetShiftState done [16:57:48]req_shift_opened done [16:57:48]requested_item shift.open_date is exist - process it [16:57:48]req_shift_open_date [16:57:48]req_shift_open_date done [16:57:48]produce_requested_data done [16:57:48]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49497,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [16:57:48]process_action_free close_receipt [16:57:48]json_value_free [16:57:48]json_value_free done [16:57:48]process_json_proto returns [16:57:48]Send response to host [16:57:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49497,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [16:57:48]free response buf [16:57:48]execute_script done [16:57:48]execute_script returns [16:57:48]free content buf [16:57:48]Sock 7.Close socket [16:57:48]Sock 7.Thread stoped [16:57:52]OFD Sender: No OFD packet to send [16:57:57]OFD Sender: No OFD packet to send [16:58:02]OFD Sender: No OFD packet to send [16:58:07]OFD Sender: No OFD packet to send [16:58:12]OFD Sender: No OFD packet to send [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:27]OFD Sender: No OFD packet to send [16:58:32]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:38]accept exits with 10 [17:00:38]New connection [17:00:38]New thread 3066830180 created [17:00:38]Thread 3066973540 joined [17:00:38]Waiting for new connection... [17:00:38] Sock 10.Parse request [17:00:38]Sock 10.Check first char [17:00:38]Sock 10.First char is OK [17:00:38]request: POST /json_proto HTTP/1.0 [17:00:38]Method: POST [17:00:38]URL: /json_proto [17:00:38]Method is POST - this is cgi request [17:00:38]url: /json_proto [17:00:38]query_string will be loaded in cgi processing [17:00:38]execute_cgi json_proto POST (null) [17:00:38]execute_cgi path=json_proto method=POST [17:00:38]POST find Content-Length [17:00:38]Host: 172.17.46.196:8080 [17:00:38]Content-Length: 902 [17:00:38]Content-Type: application/json [17:00:38] [17:00:38]POST finish read [17:00:38]Found Content-Length = 902 [17:00:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189708", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:38]execute_script... [17:00:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189708", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 145.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:00:38]POST & json_proto [17:00:38]process_json_proto [17:00:38]json parsed OK: [17:00:38]protocol is kg_v1.0 [17:00:38]action value=close_receipt [17:00:38]process_action close_receipt [17:00:38]cmd_close_receipt [17:00:38]MH_GetDate [17:00:38]Write to MH i2c: F0 00 00 91 54 D4 [17:00:38]Write i2c OK [17:00:38]MH_I2C_Read... [17:00:38]Read from MH i2c: F0 [17:00:38]MH_I2C_Read... [17:00:38]Read from MH i2c: F0 09 00 [17:00:38]MH_I2C_Read... [17:00:38]Read from MH i2c: F0 09 00 91 54 00 BC 85 BF 66 07 E8 5D 66 F5 [17:00:38]GetLastDocTimeStamp 1723827470 [17:00:38]current date 1723827644 [17:00:38]FM_GetShiftState [17:00:38]SAM_PROTO_GetShiftState [17:00:38]wFMCommunicate request_size=4 [17:00:38]MH_SAM_APDU [17:00:38]CAPDU: 80 13 01 00 [17:00:38]Write to MH i2c: E2 08 00 92 54 80 13 01 00 00 00 00 00 63 [17:00:38]Write i2c OK [17:00:38]MH_I2C_Read... [17:00:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:38]Read from MH i2c: E2 [17:00:38]MH_I2C_Read... [17:00:38]Read from MH i2c: E2 0E 00 [17:00:38]MH_I2C_Read... [17:00:38]Read from MH i2c: E2 0E 00 92 54 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 D9 [17:00:38]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [17:00:38]wFMCommunicate OK [17:00:38]SAM_PROTO_GetShiftState done [17:00:38]FM_GetShiftState done [17:00:38]opened in 1723766958 [17:00:38]opened+sec_in_day 1723853358 [17:00:38]quantity*price = 9500 [17:00:38]sum+1 = 9501 [17:00:38]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 145.00 НСП 1% : 1.28 НДС 12% : 15.40 Наличными: 145.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 146 16.08.2024 17:00 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49498 ФПД: 263207385073153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T170044&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49498&fm=263207385073153&tin=02508201610067®Number=0000000000092546&sum=14500 0 [17:00:39]StoreToDocumentArchive [17:00:39]shift 464 fd 49498 [17:00:39]save to /storage/0464/doc_00049498 [17:00:39]save last doc name /storage/0464/doc_00049498 to /storage/kkm_last_doc_name [17:00:39]save OK [17:00:39]Clear old archive folders... [17:00:39]ProcessDocumentItem done err = 0, tmpTLVsize=392 [17:00:39]tlvbuf is 00E20FC0 [17:00:39]SAM_PROTO_ClearQueue [17:00:39]wFMCommunicate request_size=4 [17:00:39]MH_SAM_APDU [17:00:39]CAPDU: 80 09 00 00 [17:00:39]Write to MH i2c: E2 08 00 9F 54 80 09 00 00 00 00 00 00 65 [17:00:39]Write i2c OK [17:00:39]MH_I2C_Read... [17:00:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:00:39]Read from MH i2c: E2 [17:00:39]MH_I2C_Read... [17:00:39]Read from MH i2c: E2 03 00 [17:00:39]MH_I2C_Read... [17:00:39]Read from MH i2c: E2 03 00 9F 54 00 90 00 67 [17:00:39]RAPDU: 90 00 [17:00:39]wFMCommunicate OK [17:00:39]SAM_PROTO_ClearQueue done [17:00:39]KKMCreateOFDPacket [17:00:39]OFDProtocolAddRootSTLVToBuf [17:00:39]FM_MakeSignedData [17:00:39]FM_MakeSignedData [17:00:39]SAM_PROTO_SignData [17:00:39]wFMCommunicate request_size=4 [17:00:39]MH_SAM_APDU [17:00:39]CAPDU: 80 0D 01 02 [17:00:39]Write to MH i2c: E2 08 00 A0 54 80 0D 01 02 00 00 00 00 6D [17:00:39]Write i2c OK [17:00:39]MH_I2C_Read... [17:00:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:00:39]Read from MH i2c: E2 [17:00:39]MH_I2C_Read... [17:00:39]Read from MH i2c: E2 03 00 [17:00:39]MH_I2C_Read... [17:00:39]Read from MH i2c: E2 03 00 A0 54 00 90 00 68 [17:00:39]RAPDU: 90 00 [17:00:39]wFMCommunicate OK [17:00:39]wFMCommunicate request_size=255 [17:00:39]MH_SAM_APDU [17:00:39]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [17:00:39]Write to MH i2c: E2 02 01 A1 54 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 46 [17:00:39]Write i2c OK [17:00:39]MH_I2C_Read... [17:00:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:40]Read from MH i2c: E2 [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: E2 03 00 [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: E2 03 00 A1 54 00 90 00 69 [17:00:40]RAPDU: 90 00 [17:00:40]wFMCommunicate OK [17:00:40]wFMCommunicate request_size=151 [17:00:40]MH_SAM_APDU [17:00:40]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 BC 85 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5A C1 00 00 35 04 06 00 EF 62 BE B0 86 01 [17:00:40]Write to MH i2c: E2 9A 00 A2 54 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 BC 85 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5A C1 00 00 35 04 06 00 EF 62 BE B0 86 01 00 00 4F [17:00:40]Write i2c OK [17:00:40]MH_I2C_Read... [17:00:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:00:40]Read from MH i2c: E2 [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: E2 03 00 [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: E2 03 00 A2 54 00 90 00 6A [17:00:40]RAPDU: 90 00 [17:00:40]wFMCommunicate OK [17:00:40]wFMCommunicate request_size=4 [17:00:40]MH_SAM_APDU [17:00:40]CAPDU: 80 0D 03 02 [17:00:40]Write to MH i2c: E2 08 00 A3 54 80 0D 03 02 00 00 00 00 72 [17:00:40]Write i2c OK [17:00:40]MH_I2C_Read... [17:00:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:00:40]Read from MH i2c: E2 [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: E2 0B 00 [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: E2 0B 00 A3 54 00 0A 68 48 A3 53 44 0E 65 90 00 DA [17:00:40]RAPDU: 0A 68 48 A3 53 44 0E 65 90 00 [17:00:40]wFMCommunicate OK [17:00:40]SAM_PROTO_SignData done [17:00:40]FM_MakeSignedData done [17:00:40]CreateOFDProtocolMessage [17:00:40]wFMCommunicate request_size=4 [17:00:40]MH_SAM_APDU [17:00:40]CAPDU: 80 11 00 00 [17:00:40]Write to MH i2c: E2 08 00 A4 54 80 11 00 00 00 00 00 00 72 [17:00:40]Write i2c OK [17:00:40]MH_I2C_Read... [17:00:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:40]Read from MH i2c: E2 [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: E2 17 00 [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: E2 17 00 A4 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BD [17:00:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:00:40]wFMCommunicate OK [17:00:40]CreateOFDProtocolMessage done [17:00:40]OFDSenderStorePacket 49498 [17:00:40]StoreOFDPacket docnum=49498 [17:00:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9C 01 00 00 C9 63 94 01 A9 D8 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 BC 85 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5A C1 00 00 35 04 06 00 EF 62 BE B0 86 01 0A 68 48 A3 53 44 0E 65 [17:00:40]CheckFolder [17:00:40]dirname=/storage/ofd_packets [17:00:40]CheckFolder done [17:00:40]ProducePacketName [17:00:40]name=ofd_packets/00049498 [17:00:40]NVStorageSaveData ofd_packets/00049498 [17:00:40]File name is /storage/ofd_packets/00049498 [17:00:40]Write 442 bytes [17:00:40]NVStorageSaveData done [17:00:40]OFDSenderStorePacket done [17:00:40]KKMCreateOFDPacket done [17:00:40]NVStorageSaveData kkm_last_timestamp [17:00:40]File name is /storage/kkm_last_timestamp [17:00:40]Write 4 bytes [17:00:40]NVStorageSaveData done [17:00:40]ExternCall_PrintAddStr [17:00:40]wPrintStart [17:00:40]Write to MH i2c: 01 00 00 A5 54 F9 [17:00:40]OFD Sender: Processing packet 49498 [packets to send 21, broken 20] [17:00:40]ProducePacketName [17:00:40]name=ofd_packets/00049498 [17:00:40]Write i2c OK [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: 01 [17:00:40]MH_I2C_Read... [17:00:40]OFD Sender: To server: pG, [17:00:40]CommunicateWithHost lk.salyk.kg:30040 [17:00:40]ConnectInit lk.salyk.kg [17:00:40]Read from MH i2c: 01 07 00 [17:00:40]MH_I2C_Read... [17:00:40]Read from MH i2c: 01 07 00 A5 54 00 00 00 00 00 FF 0F 0E [17:00:40]RasterBufferAndPrint [17:00:40]line Счет N : (3)189708 [17:00:40]line ИНН: 02508201610067 [17:00:40]line Контрольно-Кассовый Чек [17:00:40]line ПРОДАЖА [17:00:40]line Товар: 4700000480050 [17:00:40]line Напиток Nitro Energy эн green ж/б 0,45л [17:00:40]line 1.000 * 95.00 [17:00:40]line = 95.00 [17:00:40]line НДС 12% НСП 1% [17:00:40]line > о реализуемом товаре [17:00:40]line Товар: 4700000160358 [17:00:40]line Вода Легенда 1л [17:00:40]line 1.000 * 50.00 [17:00:40]line = 50.00 [17:00:40]line НДС 12% НСП 1% [17:00:40]line > о реализуемом товаре [17:00:40]line ИТОГО: 145.00 [17:00:40]line НСП 1% : 1.28 [17:00:40]line НДС 12% : 15.40 [17:00:40]line Наличными: 145.00 [17:00:40]line Безнал.: 0.00 [17:00:40]line Место: АЗС № 95 "Партнер Нефть" [17:00:40]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:00:40]line СНО: Общий режим [17:00:40]line Чек 146 16.08.2024 17:00 [17:00:40]line Смена: 464 ФФД: 1.0 [17:00:40]line ЗНМ: 0300000078 [17:00:40]line РНМ: 0000000000092546 [17:00:40]line Версия ККМ: 001 [17:00:40]line ФМ: 0000000000871800 [17:00:40]line ФД: 49498 [17:00:40]line ФПД: 263207385073153 [17:00:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T170044&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49498&fm=263207385073153&tin=02508201610067®Number=0000000000092546&sum=14500 [17:00:40]line 0 [17:00:40]written 0, free lines is 4095 [17:00:40]Connected sock=9 [17:00:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9C 01 00 00 C9 63 94 01 A9 D8 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 06 00 00 00 00 07 04 06 00 A4 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 BC 85 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5A C1 00 00 35 04 06 00 EF 62 BE B0 86 01 0A 68 48 A3 53 44 0E 65 [17:00:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 22 B4 47 00 B8 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 38 37 31 38 30 30 10 04 04 00 5A C1 00 00 F4 03 04 00 FB 30 BF 66 B6 04 01 00 00 A8 DA 36 08 EC 50 B5 A4 [17:00:41]CommunicateWithHost err = 0 [17:00:41]CheckOFDResponse [17:00:41]1017 (14) - 77093643461234 [17:00:41]1041 (16) - 0000000000871800 [17:00:41]1040 (4) - 49498 [17:00:41]1012 (4) - 16.08.2024 10:59 [17:00:41]1206 (1) - 0 [17:00:41]OFD Sender: Remove packet 49498 [17:00:41]ProducePacketName [17:00:41]name=ofd_packets/00049498 [17:00:41]NVStorageDeleteData [17:00:41]Write to MH i2c: 01 00 00 D4 54 28 [17:00:41]Write i2c OK [17:00:41]MH_I2C_Read... [17:00:41]Read from MH i2c: 01 [17:00:41]MH_I2C_Read... [17:00:41]Read from MH i2c: 01 07 00 [17:00:41]MH_I2C_Read... [17:00:41]Read from MH i2c: 01 07 00 D4 54 00 00 00 00 00 88 0C C3 [17:00:41]RasterBufferAndPrint [17:00:41]line [17:00:41]line [17:00:41]line [17:00:41]line [17:00:41]line [17:00:41]written 0, free lines is 3216 [17:00:41]MH_Cut [17:00:41]Write to MH i2c: D1 01 00 DB 54 01 01 [17:00:41]Write i2c OK [17:00:41]MH_I2C_Read... [17:00:41]Read from MH i2c: D1 [17:00:41]MH_I2C_Read... [17:00:41]Read from MH i2c: D1 01 00 [17:00:41]MH_I2C_Read... [17:00:41]Read from MH i2c: D1 01 00 DB 54 00 00 [17:00:41]Write to MH i2c: 01 00 00 DC 54 30 [17:00:41]Write i2c OK [17:00:41]MH_I2C_Read... [17:00:41]OFD Sender: No OFD packet to send [17:00:41]*** Cut start [17:00:41]*** Purtial cut [17:00:41]*** CUTSNS_PIN = 0 [17:00:42]*** Stage 1: CUTSNS_PIN = 1 [17:00:44]Read from MH i2c: 01 [17:00:44]MH_I2C_Read... [17:00:44]*** Stop cut motor [17:00:44]*** Cut end [17:00:44]Read from MH i2c: 01 07 00 [17:00:44]MH_I2C_Read... [17:00:44]Read from MH i2c: 01 07 00 DC 54 00 00 00 00 00 FF 0F 45 [17:00:44]process_action close_receipt done [17:00:44]requested_data is exist [17:00:44]produce_requested_data [17:00:44]requested_item fm.sn is exist - process it [17:00:44]wFMCommunicate request_size=4 [17:00:44]MH_SAM_APDU [17:00:44]CAPDU: 80 11 00 00 [17:00:44]Write to MH i2c: E2 08 00 DD 54 80 11 00 00 00 00 00 00 AB [17:00:44]Write i2c OK [17:00:44]MH_I2C_Read... [17:00:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:00:44]Read from MH i2c: E2 [17:00:44]MH_I2C_Read... [17:00:44]Read from MH i2c: E2 17 00 [17:00:44]MH_I2C_Read... [17:00:44]Read from MH i2c: E2 17 00 DD 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F6 [17:00:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:00:44]wFMCommunicate OK [17:00:44]requested_item fd.num is exist - process it [17:00:44]SAM_PROTO_GetFieldsCounters [17:00:44]wFMCommunicate request_size=4 [17:00:44]MH_SAM_APDU [17:00:44]CAPDU: 80 13 00 00 [17:00:44]Write to MH i2c: E2 08 00 DE 54 80 13 00 00 00 00 00 00 AE [17:00:44]Write i2c OK [17:00:44]MH_I2C_Read... [17:00:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:00:44]Read from MH i2c: E2 [17:00:44]MH_I2C_Read... [17:00:44]Read from MH i2c: E2 62 00 [17:00:44]MH_I2C_Read... [17:00:44]Read from MH i2c: E2 62 00 DE 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5A C1 00 00 0E 04 04 00 D0 01 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 6A [17:00:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5A C1 00 00 0E 04 04 00 D0 01 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 [17:00:44]wFMCommunicate OK [17:00:44]SAM_PROTO_GetFieldsCounters done [17:00:44]requested_item shift.num is exist - process it [17:00:44]requested_item shift.opened is exist - process it [17:00:44]req_shift_opened [17:00:44]FM_GetShiftState [17:00:44]SAM_PROTO_GetShiftState [17:00:44]wFMCommunicate request_size=4 [17:00:44]MH_SAM_APDU [17:00:44]CAPDU: 80 13 01 00 [17:00:44]Write to MH i2c: E2 08 00 DF 54 80 13 01 00 00 00 00 00 B0 [17:00:44]Write i2c OK [17:00:44]MH_I2C_Read... [17:00:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:00:44]Read from MH i2c: E2 [17:00:44]MH_I2C_Read... [17:00:44]Read from MH i2c: E2 0E 00 [17:00:44]MH_I2C_Read... [17:00:44]Read from MH i2c: E2 0E 00 DF 54 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 26 [17:00:44]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [17:00:44]wFMCommunicate OK [17:00:44]SAM_PROTO_GetShiftState done [17:00:44]FM_GetShiftState done [17:00:44]req_shift_opened done [17:00:44]requested_item shift.open_date is exist - process it [17:00:44]req_shift_open_date [17:00:44]req_shift_open_date done [17:00:44]produce_requested_data done [17:00:44]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49498,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [17:00:44]process_action_free close_receipt [17:00:44]json_value_free [17:00:44]json_value_free done [17:00:44]process_json_proto returns [17:00:44]Send response to host [17:00:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49498,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [17:00:44]free response buf [17:00:44]execute_script done [17:00:44]execute_script returns [17:00:44]free content buf [17:00:44]Sock 10.Close socket [17:00:44]Sock 10.Thread stoped [17:00:46]OFD Sender: No OFD packet to send [17:00:51]OFD Sender: No OFD packet to send [17:00:56]OFD Sender: No OFD packet to send [17:01:01]OFD Sender: No OFD packet to send [17:01:06]OFD Sender: No OFD packet to send [17:01:11]OFD Sender: No OFD packet to send [17:01:16]OFD Sender: No OFD packet to send [17:01:21]OFD Sender: No OFD packet to send [17:01:26]OFD Sender: No OFD packet to send [17:01:31]OFD Sender: No OFD packet to send [17:01:32]accept exits with 7 [17:01:32]New connection [17:01:32]New thread 3066973540 created [17:01:32]Thread 3066830180 joined [17:01:32]Waiting for new connection... [17:01:32] Sock 7.Parse request [17:01:32]Sock 7.Check first char [17:01:32]Sock 7.First char is OK [17:01:32]request: POST /json_proto HTTP/1.0 [17:01:32]Method: POST [17:01:32]URL: /json_proto [17:01:32]Method is POST - this is cgi request [17:01:32]url: /json_proto [17:01:32]query_string will be loaded in cgi processing [17:01:32]execute_cgi json_proto POST (null) [17:01:32]execute_cgi path=json_proto method=POST [17:01:32]POST find Content-Length [17:01:32]Host: 172.17.46.196:8080 [17:01:32]Content-Length: 1127 [17:01:32]Content-Type: application/json [17:01:32] [17:01:32]POST finish read [17:01:32]Found Content-Length = 1127 [17:01:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189709", "tax_sys" : 0, "items" : [ { "code": "4607035653582", "name": "\u0412\u0430\u0444\u043B\u0438 \u0413\u043E\u043B\u043B\u0430\u043D\u0434\u0441\u043A\u0438\u0435 \u0432\u0430\u0440.\u0441\u0433\u0443\u0449 290", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 415.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:32]execute_script... [17:01:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189709", "tax_sys" : 0, "items" : [ { "code": "4607035653582", "name": "\u0412\u0430\u0444\u043B\u0438 \u0413\u043E\u043B\u043B\u0430\u043D\u0434\u0441\u043A\u0438\u0435 \u0432\u0430\u0440.\u0441\u0433\u0443\u0449 290", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 415.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:01:32]POST & json_proto [17:01:32]process_json_proto [17:01:32]json parsed OK: [17:01:32]protocol is kg_v1.0 [17:01:32]action value=close_receipt [17:01:32]process_action close_receipt [17:01:32]cmd_close_receipt [17:01:32]MH_GetDate [17:01:32]Write to MH i2c: F0 00 00 E0 54 23 [17:01:32]Write i2c OK [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: F0 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: F0 09 00 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: F0 09 00 E0 54 00 F2 85 BF 66 07 E8 5D 66 7A [17:01:32]GetLastDocTimeStamp 1723827644 [17:01:32]current date 1723827698 [17:01:32]FM_GetShiftState [17:01:32]SAM_PROTO_GetShiftState [17:01:32]wFMCommunicate request_size=4 [17:01:32]MH_SAM_APDU [17:01:32]CAPDU: 80 13 01 00 [17:01:32]Write to MH i2c: E2 08 00 E1 54 80 13 01 00 00 00 00 00 B2 [17:01:32]Write i2c OK [17:01:32]MH_I2C_Read... [17:01:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:32]Read from MH i2c: E2 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 0E 00 [17:01:32]MH_I2C_Read... [17:01:32]Read from MH i2c: E2 0E 00 E1 54 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 28 [17:01:32]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [17:01:32]wFMCommunicate OK [17:01:32]SAM_PROTO_GetShiftState done [17:01:32]FM_GetShiftState done [17:01:32]opened in 1723766958 [17:01:32]opened+sec_in_day 1723853358 [17:01:32]quantity*price = 15000 [17:01:32]sum+1 = 15001 [17:01:32]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 90448300 Энерг напиток Red Bull 0,355л 1.000 * 265.00 = 265.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 415.00 НСП 1% : 3.67 НДС 12% : 44.07 Наличными: 0.00 Безнал.: 415.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 147 16.08.2024 17:01 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49499 ФПД: 237097275184913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T170138&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49499&fm=237097275184913&tin=02508201610067®Number=0000000000092546&sum=41500 0 [17:01:33]StoreToDocumentArchive [17:01:33]shift 464 fd 49499 [17:01:33]save to /storage/0464/doc_00049499 [17:01:33]save last doc name /storage/0464/doc_00049499 to /storage/kkm_last_doc_name [17:01:33]save OK [17:01:33]Clear old archive folders... [17:01:33]ProcessDocumentItem done err = 0, tmpTLVsize=404 [17:01:33]tlvbuf is 00E45E20 [17:01:33]SAM_PROTO_ClearQueue [17:01:33]wFMCommunicate request_size=4 [17:01:33]MH_SAM_APDU [17:01:33]CAPDU: 80 09 00 00 [17:01:33]Write to MH i2c: E2 08 00 EE 54 80 09 00 00 00 00 00 00 B4 [17:01:33]Write i2c OK [17:01:33]MH_I2C_Read... [17:01:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:01:33]Read from MH i2c: E2 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 03 00 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 03 00 EE 54 00 90 00 B6 [17:01:33]RAPDU: 90 00 [17:01:33]wFMCommunicate OK [17:01:33]SAM_PROTO_ClearQueue done [17:01:33]KKMCreateOFDPacket [17:01:33]OFDProtocolAddRootSTLVToBuf [17:01:33]FM_MakeSignedData [17:01:33]FM_MakeSignedData [17:01:33]SAM_PROTO_SignData [17:01:33]wFMCommunicate request_size=4 [17:01:33]MH_SAM_APDU [17:01:33]CAPDU: 80 0D 01 02 [17:01:33]Write to MH i2c: E2 08 00 EF 54 80 0D 01 02 00 00 00 00 BC [17:01:33]Write i2c OK [17:01:33]MH_I2C_Read... [17:01:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:01:33]Read from MH i2c: E2 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 03 00 [17:01:33]MH_I2C_Read... [17:01:33]Read from MH i2c: E2 03 00 EF 54 00 90 00 B7 [17:01:33]RAPDU: 90 00 [17:01:33]wFMCommunicate OK [17:01:33]wFMCommunicate request_size=255 [17:01:33]MH_SAM_APDU [17:01:33]CAPDU: 80 0D 02 02 FA 03 00 94 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 38 32 06 04 35 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 B2 D0 B0 D1 80 2E D1 81 D0 B3 D1 83 D1 89 20 32 39 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C A2 00 [17:01:33]Write to MH i2c: E2 02 01 F0 54 80 0D 02 02 FA 00 03 00 94 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 38 32 06 04 35 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 B2 D0 B0 D1 80 2E D1 81 D0 B3 D1 83 D1 89 20 32 39 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C A2 00 00 00 40 [17:01:33]Write i2c OK [17:01:33]MH_I2C_Read... [17:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:34]Read from MH i2c: E2 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: E2 03 00 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: E2 03 00 F0 54 00 90 00 B8 [17:01:34]RAPDU: 90 00 [17:01:34]wFMCommunicate OK [17:01:34]wFMCommunicate request_size=163 [17:01:34]MH_SAM_APDU [17:01:34]CAPDU: 80 0D 02 02 9E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 F2 85 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5B C1 00 00 35 04 06 00 D7 A3 82 DD 57 11 [17:01:34]Write to MH i2c: E2 A6 00 F1 54 80 0D 02 02 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 F2 85 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5B C1 00 00 35 04 06 00 D7 A3 82 DD 57 11 00 00 04 [17:01:34]Write i2c OK [17:01:34]MH_I2C_Read... [17:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:01:34]Read from MH i2c: E2 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: E2 03 00 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: E2 03 00 F1 54 00 90 00 B9 [17:01:34]RAPDU: 90 00 [17:01:34]wFMCommunicate OK [17:01:34]wFMCommunicate request_size=4 [17:01:34]MH_SAM_APDU [17:01:34]CAPDU: 80 0D 03 02 [17:01:34]Write to MH i2c: E2 08 00 F2 54 80 0D 03 02 00 00 00 00 C1 [17:01:34]Write i2c OK [17:01:34]MH_I2C_Read... [17:01:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:01:34]Read from MH i2c: E2 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: E2 0B 00 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: E2 0B 00 F2 54 00 2E DA 78 9A BD 2A 07 C3 90 00 8D [17:01:34]RAPDU: 2E DA 78 9A BD 2A 07 C3 90 00 [17:01:34]wFMCommunicate OK [17:01:34]SAM_PROTO_SignData done [17:01:34]FM_MakeSignedData done [17:01:34]CreateOFDProtocolMessage [17:01:34]wFMCommunicate request_size=4 [17:01:34]MH_SAM_APDU [17:01:34]CAPDU: 80 11 00 00 [17:01:34]Write to MH i2c: E2 08 00 F3 54 80 11 00 00 00 00 00 00 C1 [17:01:34]Write i2c OK [17:01:34]MH_I2C_Read... [17:01:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:34]Read from MH i2c: E2 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: E2 17 00 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: E2 17 00 F3 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 0C [17:01:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:01:34]wFMCommunicate OK [17:01:34]CreateOFDProtocolMessage done [17:01:34]OFDSenderStorePacket 49499 [17:01:34]StoreOFDPacket docnum=49499 [17:01:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A8 01 00 00 CC D3 A0 01 87 AB 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 38 32 06 04 35 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 B2 D0 B0 D1 80 2E D1 81 D0 B3 D1 83 D1 89 20 32 39 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 F2 85 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5B C1 00 00 35 04 06 00 D7 A3 82 DD 57 11 2E DA 78 9A BD 2A 07 C3 [17:01:34]CheckFolder [17:01:34]dirname=/storage/ofd_packets [17:01:34]CheckFolder done [17:01:34]ProducePacketName [17:01:34]name=ofd_packets/00049499 [17:01:34]NVStorageSaveData ofd_packets/00049499 [17:01:34]File name is /storage/ofd_packets/00049499 [17:01:34]Write 454 bytes [17:01:34]NVStorageSaveData done [17:01:34]OFDSenderStorePacket done [17:01:34]KKMCreateOFDPacket done [17:01:34]NVStorageSaveData kkm_last_timestamp [17:01:34]File name is /storage/kkm_last_timestamp [17:01:34]Write 4 bytes [17:01:34]NVStorageSaveData done [17:01:34]ExternCall_PrintAddStr [17:01:34]wPrintStart [17:01:34]Write to MH i2c: 01 00 00 F4 54 48 [17:01:34]OFD Sender: Processing packet 49499 [packets to send 21, broken 20] [17:01:34]ProducePacketName [17:01:34]name=ofd_packets/00049499 [17:01:34]Write i2c OK [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: 01 [17:01:34]MH_I2C_Read... [17:01:34]OFD Sender: To server: pG, [17:01:34]CommunicateWithHost lk.salyk.kg:30040 [17:01:34]ConnectInit lk.salyk.kg [17:01:34]Read from MH i2c: 01 07 00 [17:01:34]MH_I2C_Read... [17:01:34]Read from MH i2c: 01 07 00 F4 54 00 00 00 00 00 FF 0F 5D [17:01:34]RasterBufferAndPrint [17:01:34]line Счет N : (3)189709 [17:01:34]line ИНН: 02508201610067 [17:01:34]line Контрольно-Кассовый Чек [17:01:34]line ПРОДАЖА [17:01:34]line Товар: 4607035653582 [17:01:34]line Вафли Голландские вар.сгущ 290 [17:01:34]line 1.000 * 150.00 [17:01:34]line = 150.00 [17:01:34]line НДС 12% НСП 1% [17:01:34]line > о реализуемом товаре [17:01:34]line Товар: 90448300 [17:01:34]line Энерг напиток Red Bull 0,355л [17:01:34]line 1.000 * 265.00 [17:01:34]line = 265.00 [17:01:34]line НДС 12% НСП 1% [17:01:34]line > о реализуемом товаре [17:01:34]line ИТОГО: 415.00 [17:01:34]line НСП 1% : 3.67 [17:01:34]line НДС 12% : 44.07 [17:01:34]line Наличными: 0.00 [17:01:34]line Безнал.: 415.00 [17:01:34]line Место: АЗС № 95 "Партнер Нефть" [17:01:34]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:01:34]line СНО: Общий режим [17:01:34]line Чек 147 16.08.2024 17:01 [17:01:34]line Смена: 464 ФФД: 1.0 [17:01:34]line ЗНМ: 0300000078 [17:01:34]line РНМ: 0000000000092546 [17:01:34]line Версия ККМ: 001 [17:01:34]line Платежная система: O! деньги [17:01:34]line ФМ: 0000000000871800 [17:01:34]line ФД: 49499 [17:01:34]line ФПД: 237097275184913 [17:01:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T170138&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49499&fm=237097275184913&tin=02508201610067®Number=0000000000092546&sum=41500 [17:01:34]line 0 [17:01:34]written 0, free lines is 4095 [17:01:34]Connected sock=10 [17:01:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A8 01 00 00 CC D3 A0 01 87 AB 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 33 35 36 35 33 35 38 32 06 04 35 00 D0 92 D0 B0 D1 84 D0 BB D0 B8 20 D0 93 D0 BE D0 BB D0 BB D0 B0 D0 BD D0 B4 D1 81 D0 BA D0 B8 D0 B5 20 D0 B2 D0 B0 D1 80 2E D1 81 D0 B3 D1 83 D1 89 20 32 39 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C A2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 11 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C A2 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 F2 85 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5B C1 00 00 35 04 06 00 D7 A3 82 DD 57 11 2E DA 78 9A BD 2A 07 C3 [17:01:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 4A 6D 47 00 AB B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5B C1 00 00 F4 03 04 00 31 31 BF 66 B6 04 01 00 00 CE 50 44 70 90 3B E4 72 [17:01:35]CommunicateWithHost err = 0 [17:01:35]CheckOFDResponse [17:01:35]1017 (14) - 77093643461234 [17:01:35]1041 (16) - 0000000000871800 [17:01:35]1040 (4) - 49499 [17:01:35]1012 (4) - 16.08.2024 11:00 [17:01:35]1206 (1) - 0 [17:01:35]OFD Sender: Remove packet 49499 [17:01:35]ProducePacketName [17:01:35]name=ofd_packets/00049499 [17:01:35]NVStorageDeleteData [17:01:35]Write to MH i2c: 01 00 00 25 55 7A [17:01:35]Write i2c OK [17:01:35]MH_I2C_Read... [17:01:35]Read from MH i2c: 01 [17:01:35]MH_I2C_Read... [17:01:35]Read from MH i2c: 01 07 00 [17:01:35]MH_I2C_Read... [17:01:35]Read from MH i2c: 01 07 00 25 55 00 00 00 00 00 67 0C F4 [17:01:35]RasterBufferAndPrint [17:01:35]line [17:01:35]line [17:01:35]line [17:01:35]line [17:01:35]line [17:01:35]written 0, free lines is 3182 [17:01:35]MH_Cut [17:01:35]Write to MH i2c: D1 01 00 2C 55 01 53 [17:01:35]Write i2c OK [17:01:35]MH_I2C_Read... [17:01:35]Read from MH i2c: D1 [17:01:35]MH_I2C_Read... [17:01:35]Read from MH i2c: D1 01 00 [17:01:35]MH_I2C_Read... [17:01:35]Read from MH i2c: D1 01 00 2C 55 00 52 [17:01:35]Write to MH i2c: 01 00 00 2D 55 82 [17:01:35]Write i2c OK [17:01:35]MH_I2C_Read... [17:01:35]OFD Sender: No OFD packet to send [17:01:36]*** Cut start [17:01:36]*** Purtial cut [17:01:36]*** Stage 1: CUTSNS_PIN = 1 [17:01:36]Read from MH i2c: 01 [17:01:36]MH_I2C_Read... [17:01:36]*** Stop cut motor [17:01:36]*** Cut end [17:01:36]Read from MH i2c: 01 07 00 [17:01:36]MH_I2C_Read... [17:01:36]Read from MH i2c: 01 07 00 2D 55 00 00 00 00 00 FF 0F 97 [17:01:36]process_action close_receipt done [17:01:36]requested_data is exist [17:01:36]produce_requested_data [17:01:36]requested_item fm.sn is exist - process it [17:01:36]wFMCommunicate request_size=4 [17:01:36]MH_SAM_APDU [17:01:36]CAPDU: 80 11 00 00 [17:01:36]Write to MH i2c: E2 08 00 2E 55 80 11 00 00 00 00 00 00 FD [17:01:36]Write i2c OK [17:01:36]MH_I2C_Read... [17:01:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:01:36]Read from MH i2c: E2 [17:01:36]MH_I2C_Read... [17:01:36]Read from MH i2c: E2 17 00 [17:01:36]MH_I2C_Read... [17:01:36]Read from MH i2c: E2 17 00 2E 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 48 [17:01:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:01:36]wFMCommunicate OK [17:01:36]requested_item fd.num is exist - process it [17:01:36]SAM_PROTO_GetFieldsCounters [17:01:36]wFMCommunicate request_size=4 [17:01:36]MH_SAM_APDU [17:01:36]CAPDU: 80 13 00 00 [17:01:36]Write to MH i2c: E2 08 00 2F 55 80 13 00 00 00 00 00 00 00 [17:01:36]Write i2c OK [17:01:36]MH_I2C_Read... [17:01:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:01:36]Read from MH i2c: E2 [17:01:36]MH_I2C_Read... [17:01:36]Read from MH i2c: E2 62 00 [17:01:36]MH_I2C_Read... [17:01:36]Read from MH i2c: E2 62 00 2F 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5B C1 00 00 0E 04 04 00 D0 01 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 C0 [17:01:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5B C1 00 00 0E 04 04 00 D0 01 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 [17:01:36]wFMCommunicate OK [17:01:36]SAM_PROTO_GetFieldsCounters done [17:01:36]requested_item shift.num is exist - process it [17:01:36]requested_item shift.opened is exist - process it [17:01:36]req_shift_opened [17:01:36]FM_GetShiftState [17:01:36]SAM_PROTO_GetShiftState [17:01:36]wFMCommunicate request_size=4 [17:01:36]MH_SAM_APDU [17:01:36]CAPDU: 80 13 01 00 [17:01:36]Write to MH i2c: E2 08 00 30 55 80 13 01 00 00 00 00 00 02 [17:01:36]Write i2c OK [17:01:36]MH_I2C_Read... [17:01:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:01:36]Read from MH i2c: E2 [17:01:36]MH_I2C_Read... [17:01:36]Read from MH i2c: E2 0E 00 [17:01:36]MH_I2C_Read... [17:01:36]Read from MH i2c: E2 0E 00 30 55 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 78 [17:01:36]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [17:01:36]wFMCommunicate OK [17:01:36]SAM_PROTO_GetShiftState done [17:01:36]FM_GetShiftState done [17:01:36]req_shift_opened done [17:01:36]requested_item shift.open_date is exist - process it [17:01:36]req_shift_open_date [17:01:36]req_shift_open_date done [17:01:36]produce_requested_data done [17:01:36]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49499,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [17:01:36]process_action_free close_receipt [17:01:36]json_value_free [17:01:36]json_value_free done [17:01:36]process_json_proto returns [17:01:36]Send response to host [17:01:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49499,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [17:01:36]free response buf [17:01:36]execute_script done [17:01:36]execute_script returns [17:01:36]free content buf [17:01:36]Sock 7.Close socket [17:01:36]Sock 7.Thread stoped [17:01:40]OFD Sender: No OFD packet to send [17:01:45]OFD Sender: No OFD packet to send [17:01:50]OFD Sender: No OFD packet to send [17:01:55]OFD Sender: No OFD packet to send [17:02:00]OFD Sender: No OFD packet to send [17:02:05]OFD Sender: No OFD packet to send [17:02:10]OFD Sender: No OFD packet to send [17:02:15]OFD Sender: No OFD packet to send [17:02:20]OFD Sender: No OFD packet to send [17:02:25]OFD Sender: No OFD packet to send [17:02:30]OFD Sender: No OFD packet to send [17:02:35]OFD Sender: No OFD packet to send [17:02:40]OFD Sender: No OFD packet to send [17:02:45]OFD Sender: No OFD packet to send [17:02:50]OFD Sender: No OFD packet to send [17:02:55]OFD Sender: No OFD packet to send [17:03:00]OFD Sender: No OFD packet to send [17:03:05]OFD Sender: No OFD packet to send [17:03:10]OFD Sender: No OFD packet to send [17:03:15]OFD Sender: No OFD packet to send [17:03:20]OFD Sender: No OFD packet to send [17:03:25]OFD Sender: No OFD packet to send [17:03:30]OFD Sender: No OFD packet to send [17:03:35]OFD Sender: No OFD packet to send [17:03:40]OFD Sender: No OFD packet to send [17:03:45]OFD Sender: No OFD packet to send [17:03:50]OFD Sender: No OFD packet to send [17:03:55]OFD Sender: No OFD packet to send [17:04:00]OFD Sender: No OFD packet to send [17:04:05]OFD Sender: No OFD packet to send [17:04:10]OFD Sender: No OFD packet to send [17:04:15]OFD Sender: No OFD packet to send [17:04:20]OFD Sender: No OFD packet to send [17:04:25]OFD Sender: No OFD packet to send [17:04:30]OFD Sender: No OFD packet to send [17:04:35]OFD Sender: No OFD packet to send [17:04:40]OFD Sender: No OFD packet to send [17:04:45]OFD Sender: No OFD packet to send [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:10]OFD Sender: No OFD packet to send [17:06:15]OFD Sender: No OFD packet to send [17:06:20]OFD Sender: No OFD packet to send [17:06:25]OFD Sender: No OFD packet to send [17:06:30]OFD Sender: No OFD packet to send [17:06:35]OFD Sender: No OFD packet to send [17:06:40]OFD Sender: No OFD packet to send [17:06:45]OFD Sender: No OFD packet to send [17:06:50]OFD Sender: No OFD packet to send [17:06:55]OFD Sender: No OFD packet to send [17:06:57]accept exits with 9 [17:06:57]New connection [17:06:57]New thread 3066830180 created [17:06:57]Thread 3066973540 joined [17:06:57]Waiting for new connection... [17:06:57] Sock 9.Parse request [17:06:57]Sock 9.Check first char [17:06:57]Sock 9.First char is OK [17:06:57]request: POST /json_proto HTTP/1.0 [17:06:57]Method: POST [17:06:57]URL: /json_proto [17:06:57]Method is POST - this is cgi request [17:06:57]url: /json_proto [17:06:57]query_string will be loaded in cgi processing [17:06:57]execute_cgi json_proto POST (null) [17:06:57]execute_cgi path=json_proto method=POST [17:06:57]POST find Content-Length [17:06:57]Host: 172.17.46.196:8080 [17:06:57]Content-Length: 898 [17:06:57]Content-Type: application/json [17:06:57] [17:06:57]POST finish read [17:06:57]Found Content-Length = 898 [17:06:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189710", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 276.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:57]execute_script... [17:06:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189710", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 276.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:06:57]POST & json_proto [17:06:57]process_json_proto [17:06:57]json parsed OK: [17:06:57]protocol is kg_v1.0 [17:06:57]action value=close_receipt [17:06:57]process_action close_receipt [17:06:57]cmd_close_receipt [17:06:57]MH_GetDate [17:06:57]Write to MH i2c: F0 00 00 31 55 75 [17:06:57]Write i2c OK [17:06:57]MH_I2C_Read... [17:06:57]Read from MH i2c: F0 [17:06:57]MH_I2C_Read... [17:06:57]Read from MH i2c: F0 09 00 [17:06:57]MH_I2C_Read... [17:06:57]Read from MH i2c: F0 09 00 31 55 00 38 87 BF 66 07 E8 5D 66 14 [17:06:57]GetLastDocTimeStamp 1723827698 [17:06:57]current date 1723828024 [17:06:57]FM_GetShiftState [17:06:57]SAM_PROTO_GetShiftState [17:06:57]wFMCommunicate request_size=4 [17:06:57]MH_SAM_APDU [17:06:57]CAPDU: 80 13 01 00 [17:06:57]Write to MH i2c: E2 08 00 32 55 80 13 01 00 00 00 00 00 04 [17:06:57]Write i2c OK [17:06:57]MH_I2C_Read... [17:06:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:06:57]Read from MH i2c: E2 [17:06:57]MH_I2C_Read... [17:06:57]Read from MH i2c: E2 0E 00 [17:06:57]MH_I2C_Read... [17:06:57]Read from MH i2c: E2 0E 00 32 55 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 7A [17:06:57]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [17:06:57]wFMCommunicate OK [17:06:57]SAM_PROTO_GetShiftState done [17:06:57]FM_GetShiftState done [17:06:57]opened in 1723766958 [17:06:57]opened+sec_in_day 1723853358 [17:06:57]quantity*price = 15100 [17:06:57]sum+1 = 15101 [17:06:57]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Напиток Кока-Кола 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 276.00 НСП 1% : 2.45 НДС 12% : 29.30 Наличными: 276.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 148 16.08.2024 17:07 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49500 ФПД: 60735758275326 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T170704&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49500&fm=60735758275326&tin=02508201610067®Number=0000000000092546&sum=27600 0 [17:06:58]StoreToDocumentArchive [17:06:58]shift 464 fd 49500 [17:06:58]save to /storage/0464/doc_00049500 [17:06:58]save last doc name /storage/0464/doc_00049500 to /storage/kkm_last_doc_name [17:06:58]save OK [17:06:58]Clear old archive folders... [17:06:58]ProcessDocumentItem done err = 0, tmpTLVsize=384 [17:06:58]tlvbuf is 00F268B0 [17:06:58]SAM_PROTO_ClearQueue [17:06:58]wFMCommunicate request_size=4 [17:06:58]MH_SAM_APDU [17:06:58]CAPDU: 80 09 00 00 [17:06:58]Write to MH i2c: E2 08 00 3F 55 80 09 00 00 00 00 00 00 06 [17:06:58]Write i2c OK [17:06:58]MH_I2C_Read... [17:06:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:06:58]Read from MH i2c: E2 [17:06:58]MH_I2C_Read... [17:06:58]Read from MH i2c: E2 03 00 [17:06:58]MH_I2C_Read... [17:06:58]Read from MH i2c: E2 03 00 3F 55 00 90 00 08 [17:06:58]RAPDU: 90 00 [17:06:58]wFMCommunicate OK [17:06:58]SAM_PROTO_ClearQueue done [17:06:58]KKMCreateOFDPacket [17:06:58]OFDProtocolAddRootSTLVToBuf [17:06:58]FM_MakeSignedData [17:06:58]FM_MakeSignedData [17:06:58]SAM_PROTO_SignData [17:06:58]wFMCommunicate request_size=4 [17:06:58]MH_SAM_APDU [17:06:58]CAPDU: 80 0D 01 02 [17:06:58]Write to MH i2c: E2 08 00 40 55 80 0D 01 02 00 00 00 00 0E [17:06:58]Write i2c OK [17:06:58]MH_I2C_Read... [17:06:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:06:58]Read from MH i2c: E2 [17:06:58]MH_I2C_Read... [17:06:58]Read from MH i2c: E2 03 00 [17:06:58]MH_I2C_Read... [17:06:58]Read from MH i2c: E2 03 00 40 55 00 90 00 09 [17:06:58]RAPDU: 90 00 [17:06:58]wFMCommunicate OK [17:06:58]wFMCommunicate request_size=255 [17:06:58]MH_SAM_APDU [17:06:58]CAPDU: 80 0D 02 02 FA 03 00 80 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 [17:06:58]Write to MH i2c: E2 02 01 41 55 80 0D 02 02 FA 00 03 00 80 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 F7 [17:06:58]Write i2c OK [17:06:58]MH_I2C_Read... [17:06:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:59]Read from MH i2c: E2 [17:06:59]MH_I2C_Read... [17:06:59]Read from MH i2c: E2 03 00 [17:06:59]MH_I2C_Read... [17:06:59]Read from MH i2c: E2 03 00 41 55 00 90 00 0A [17:06:59]RAPDU: 90 00 [17:06:59]wFMCommunicate OK [17:06:59]wFMCommunicate request_size=143 [17:06:59]MH_SAM_APDU [17:06:59]CAPDU: 80 0D 02 02 8A F5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0B 00 00 00 00 07 04 06 00 D0 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 38 87 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5C C1 00 00 35 04 06 00 37 3D 25 4C 12 FE [17:06:59]Write to MH i2c: E2 92 00 42 55 80 0D 02 02 8A 00 F5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0B 00 00 00 00 07 04 06 00 D0 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 38 87 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5C C1 00 00 35 04 06 00 37 3D 25 4C 12 FE 00 00 53 [17:06:59]Write i2c OK [17:06:59]MH_I2C_Read... [17:06:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:06:59]Read from MH i2c: E2 [17:06:59]MH_I2C_Read... [17:06:59]Read from MH i2c: E2 03 00 [17:06:59]MH_I2C_Read... [17:06:59]Read from MH i2c: E2 03 00 42 55 00 90 00 0B [17:06:59]RAPDU: 90 00 [17:06:59]wFMCommunicate OK [17:06:59]wFMCommunicate request_size=4 [17:06:59]MH_SAM_APDU [17:06:59]CAPDU: 80 0D 03 02 [17:06:59]Write to MH i2c: E2 08 00 43 55 80 0D 03 02 00 00 00 00 13 [17:06:59]Write i2c OK [17:06:59]MH_I2C_Read... [17:06:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:06:59]Read from MH i2c: E2 [17:06:59]MH_I2C_Read... [17:06:59]Read from MH i2c: E2 0B 00 [17:06:59]MH_I2C_Read... [17:06:59]Read from MH i2c: E2 0B 00 43 55 00 0A 04 7D 0C C7 37 9A AD 90 00 F0 [17:06:59]RAPDU: 0A 04 7D 0C C7 37 9A AD 90 00 [17:06:59]wFMCommunicate OK [17:06:59]SAM_PROTO_SignData done [17:06:59]FM_MakeSignedData done [17:06:59]CreateOFDProtocolMessage [17:06:59]wFMCommunicate request_size=4 [17:06:59]MH_SAM_APDU [17:06:59]CAPDU: 80 11 00 00 [17:06:59]Write to MH i2c: E2 08 00 44 55 80 11 00 00 00 00 00 00 13 [17:06:59]Write i2c OK [17:06:59]MH_I2C_Read... [17:06:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:06:59]Read from MH i2c: E2 [17:06:59]MH_I2C_Read... [17:06:59]Read from MH i2c: E2 17 00 [17:06:59]MH_I2C_Read... [17:06:59]Read from MH i2c: E2 17 00 44 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 5E [17:06:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:06:59]wFMCommunicate OK [17:06:59]CreateOFDProtocolMessage done [17:06:59]OFDSenderStorePacket 49500 [17:06:59]StoreOFDPacket docnum=49500 [17:06:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 94 01 00 00 7E 8F 8C 01 AD 8D 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0B 00 00 00 00 07 04 06 00 D0 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 38 87 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5C C1 00 00 35 04 06 00 37 3D 25 4C 12 FE 0A 04 7D 0C C7 37 9A AD [17:06:59]CheckFolder [17:06:59]dirname=/storage/ofd_packets [17:06:59]CheckFolder done [17:06:59]ProducePacketName [17:06:59]name=ofd_packets/00049500 [17:06:59]NVStorageSaveData ofd_packets/00049500 [17:06:59]File name is /storage/ofd_packets/00049500 [17:06:59]Write 434 bytes [17:06:59]NVStorageSaveData done [17:06:59]OFDSenderStorePacket done [17:06:59]KKMCreateOFDPacket done [17:06:59]NVStorageSaveData kkm_last_timestamp [17:06:59]File name is /storage/kkm_last_timestamp [17:06:59]Write 4 bytes [17:06:59]NVStorageSaveData done [17:06:59]ExternCall_PrintAddStr [17:06:59]wPrintStart [17:06:59]Write to MH i2c: 01 00 00 45 55 9A [17:06:59]Write i2c OK [17:06:59]MH_I2C_Read... [17:06:59]Read from MH i2c: 01 [17:06:59]MH_I2C_Read... [17:06:59]Read from MH i2c: 01 07 00 [17:06:59]MH_I2C_Read... [17:06:59]Read from MH i2c: 01 07 00 45 55 00 00 00 00 00 FF 0F AF [17:06:59]RasterBufferAndPrint [17:06:59]line Счет N : (3)189710 [17:06:59]line ИНН: 02508201610067 [17:06:59]line Контрольно-Кассовый Чек [17:06:59]line ПРОДАЖА [17:06:59]line Товар: 48742245 [17:06:59]line Сигареты Parliament Silver Blue [17:06:59]line 1.000 * 151.00 [17:06:59]line = 151.00 [17:06:59]line НДС 12% НСП 1% [17:06:59]line > о реализуемом товаре [17:06:59]line Товар: 5449000054227 [17:06:59]line Напиток Кока-Кола 1л [17:06:59]line 1.000 * 125.00 [17:06:59]line = 125.00 [17:06:59]line НДС 12% НСП 1% [17:06:59]line > о реализуемом товаре [17:06:59]line ИТОГО: 276.00 [17:06:59]line НСП 1% : 2.45 [17:06:59]line НДС 12% : 29.30 [17:06:59]line Наличными: 276.00 [17:06:59]line Безнал.: 0.00 [17:06:59]line Место: АЗС № 95 "Партнер Нефть" [17:06:59]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:06:59]line СНО: Общий режим [17:06:59]line Чек 148 16.08.2024 17:07 [17:06:59]line Смена: 464 ФФД: 1.0 [17:06:59]line ЗНМ: 0300000078 [17:06:59]line РНМ: 0000000000092546 [17:06:59]line Версия ККМ: 001 [17:06:59]line ФМ: 0000000000871800 [17:06:59]line ФД: 49500 [17:06:59]line ФПД: 60735758275326 [17:06:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T170704&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49500&fm=60735758275326&tin=02508201610067®Number=0000000000092546&sum=27600 [17:06:59]line 0 [17:06:59]OFD Sender: Processing packet 49500 [packets to send 21, broken 20] [17:06:59]ProducePacketName [17:06:59]name=ofd_packets/00049500 [17:06:59]OFD Sender: To server: pG, [17:06:59]CommunicateWithHost lk.salyk.kg:30040 [17:06:59]ConnectInit lk.salyk.kg [17:06:59]written 0, free lines is 4095 [17:07:00]Connected sock=11 [17:07:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 94 01 00 00 7E 8F 8C 01 AD 8D 5A 03 01 00 03 00 80 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 6B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 0B 00 00 00 00 07 04 06 00 D0 6B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 38 87 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5C C1 00 00 35 04 06 00 37 3D 25 4C 12 FE 0A 04 7D 0C C7 37 9A AD [17:07:00]Write to MH i2c: 01 00 00 74 55 C9 [17:07:00]Write i2c OK [17:07:00]MH_I2C_Read... [17:07:00]Read from MH i2c: 01 [17:07:00]MH_I2C_Read... [17:07:00]Read from MH i2c: 01 07 00 [17:07:00]MH_I2C_Read... [17:07:00]Read from MH i2c: 01 07 00 74 55 00 00 00 00 00 69 0C 45 [17:07:00]RasterBufferAndPrint [17:07:00]line [17:07:00]line [17:07:00]line [17:07:00]line [17:07:00]line [17:07:00]written 0, free lines is 3183 [17:07:00]MH_Cut [17:07:00]Write to MH i2c: D1 01 00 7B 55 01 A2 [17:07:00]Write i2c OK [17:07:00]MH_I2C_Read... [17:07:00]Read from MH i2c: D1 [17:07:00]MH_I2C_Read... [17:07:00]Read from MH i2c: D1 01 00 [17:07:00]MH_I2C_Read... [17:07:00]Read from MH i2c: D1 01 00 7B 55 00 A1 [17:07:00]Write to MH i2c: 01 00 00 7C 55 D1 [17:07:00]Write i2c OK [17:07:00]MH_I2C_Read... [17:07:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 0E A2 47 00 4C C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5C C1 00 00 F4 03 04 00 76 32 BF 66 B6 04 01 00 00 0C 07 74 4F 50 16 52 3C [17:07:00]CommunicateWithHost err = 0 [17:07:00]CheckOFDResponse [17:07:00]1017 (14) - 77093643461234 [17:07:00]1041 (16) - 0000000000871800 [17:07:00]1040 (4) - 49500 [17:07:00]1012 (4) - 16.08.2024 11:05 [17:07:00]1206 (1) - 0 [17:07:00]OFD Sender: Remove packet 49500 [17:07:00]ProducePacketName [17:07:00]name=ofd_packets/00049500 [17:07:00]NVStorageDeleteData [17:07:00]OFD Sender: No OFD packet to send [17:07:01]*** Cut start [17:07:01]*** Purtial cut [17:07:01]*** CUTSNS_PIN = 0 [17:07:01]*** Stage 1: CUTSNS_PIN = 1 [17:07:03]Read from MH i2c: 01 [17:07:03]MH_I2C_Read... [17:07:03]*** Stop cut motor [17:07:03]*** Cut end [17:07:03]Read from MH i2c: 01 07 00 [17:07:03]MH_I2C_Read... [17:07:03]Read from MH i2c: 01 07 00 7C 55 00 00 00 00 00 FF 0F E6 [17:07:03]process_action close_receipt done [17:07:03]requested_data is exist [17:07:03]produce_requested_data [17:07:03]requested_item fm.sn is exist - process it [17:07:03]wFMCommunicate request_size=4 [17:07:03]MH_SAM_APDU [17:07:03]CAPDU: 80 11 00 00 [17:07:03]Write to MH i2c: E2 08 00 7D 55 80 11 00 00 00 00 00 00 4C [17:07:03]Write i2c OK [17:07:03]MH_I2C_Read... [17:07:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:07:03]Read from MH i2c: E2 [17:07:03]MH_I2C_Read... [17:07:03]Read from MH i2c: E2 17 00 [17:07:03]MH_I2C_Read... [17:07:03]Read from MH i2c: E2 17 00 7D 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 97 [17:07:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:07:03]wFMCommunicate OK [17:07:03]requested_item fd.num is exist - process it [17:07:03]SAM_PROTO_GetFieldsCounters [17:07:03]wFMCommunicate request_size=4 [17:07:03]MH_SAM_APDU [17:07:03]CAPDU: 80 13 00 00 [17:07:03]Write to MH i2c: E2 08 00 7E 55 80 13 00 00 00 00 00 00 4F [17:07:03]Write i2c OK [17:07:03]MH_I2C_Read... [17:07:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:07:03]Read from MH i2c: E2 [17:07:03]MH_I2C_Read... [17:07:03]Read from MH i2c: E2 62 00 [17:07:03]MH_I2C_Read... [17:07:03]Read from MH i2c: E2 62 00 7E 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5C C1 00 00 0E 04 04 00 D0 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [17:07:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5C C1 00 00 0E 04 04 00 D0 01 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 [17:07:03]wFMCommunicate OK [17:07:03]SAM_PROTO_GetFieldsCounters done [17:07:03]requested_item shift.num is exist - process it [17:07:03]requested_item shift.opened is exist - process it [17:07:03]req_shift_opened [17:07:03]FM_GetShiftState [17:07:03]SAM_PROTO_GetShiftState [17:07:03]wFMCommunicate request_size=4 [17:07:03]MH_SAM_APDU [17:07:03]CAPDU: 80 13 01 00 [17:07:03]Write to MH i2c: E2 08 00 7F 55 80 13 01 00 00 00 00 00 51 [17:07:03]Write i2c OK [17:07:03]MH_I2C_Read... [17:07:03]Read from MH i2c: E2 [17:07:03]MH_I2C_Read... [17:07:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:07:03]Read from MH i2c: E2 0E 00 [17:07:03]MH_I2C_Read... [17:07:03]Read from MH i2c: E2 0E 00 7F 55 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 C7 [17:07:03]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [17:07:03]wFMCommunicate OK [17:07:03]SAM_PROTO_GetShiftState done [17:07:03]FM_GetShiftState done [17:07:03]req_shift_opened done [17:07:03]requested_item shift.open_date is exist - process it [17:07:03]req_shift_open_date [17:07:03]req_shift_open_date done [17:07:03]produce_requested_data done [17:07:03]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49500,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [17:07:03]process_action_free close_receipt [17:07:03]json_value_free [17:07:03]json_value_free done [17:07:03]process_json_proto returns [17:07:03]Send response to host [17:07:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49500,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [17:07:03]free response buf [17:07:03]execute_script done [17:07:03]execute_script returns [17:07:03]free content buf [17:07:03]Sock 9.Close socket [17:07:03]Sock 9.Thread stoped [17:07:05]OFD Sender: No OFD packet to send [17:07:10]OFD Sender: No OFD packet to send [17:07:15]OFD Sender: No OFD packet to send [17:07:20]OFD Sender: No OFD packet to send [17:07:25]OFD Sender: No OFD packet to send [17:07:30]OFD Sender: No OFD packet to send [17:07:35]OFD Sender: No OFD packet to send [17:07:40]OFD Sender: No OFD packet to send [17:07:45]OFD Sender: No OFD packet to send [17:07:50]OFD Sender: No OFD packet to send [17:07:55]OFD Sender: No OFD packet to send [17:08:00]OFD Sender: No OFD packet to send [17:08:05]OFD Sender: No OFD packet to send [17:08:10]OFD Sender: No OFD packet to send [17:08:15]OFD Sender: No OFD packet to send [17:08:20]OFD Sender: No OFD packet to send [17:08:25]OFD Sender: No OFD packet to send [17:08:30]OFD Sender: No OFD packet to send [17:08:35]OFD Sender: No OFD packet to send [17:08:40]OFD Sender: No OFD packet to send [17:08:45]OFD Sender: No OFD packet to send [17:08:50]OFD Sender: No OFD packet to send [17:08:55]OFD Sender: No OFD packet to send [17:09:00]OFD Sender: No OFD packet to send [17:09:05]OFD Sender: No OFD packet to send [17:09:10]OFD Sender: No OFD packet to send [17:09:15]OFD Sender: No OFD packet to send [17:09:20]OFD Sender: No OFD packet to send [17:09:25]OFD Sender: No OFD packet to send [17:09:30]OFD Sender: No OFD packet to send [17:09:35]OFD Sender: No OFD packet to send [17:09:40]OFD Sender: No OFD packet to send [17:09:45]OFD Sender: No OFD packet to send [17:09:50]OFD Sender: No OFD packet to send [17:09:55]OFD Sender: No OFD packet to send [17:10:00]OFD Sender: No OFD packet to send [17:10:05]OFD Sender: No OFD packet to send [17:10:10]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:02]accept exits with 7 [17:11:02]New connection [17:11:02]New thread 3066973540 created [17:11:02]Thread 3066830180 joined [17:11:02]Waiting for new connection... [17:11:02] Sock 7.Parse request [17:11:02]Sock 7.Check first char [17:11:02]Sock 7.First char is OK [17:11:02]request: POST /json_proto HTTP/1.0 [17:11:02]Method: POST [17:11:02]URL: /json_proto [17:11:02]Method is POST - this is cgi request [17:11:02]url: /json_proto [17:11:02]query_string will be loaded in cgi processing [17:11:02]execute_cgi json_proto POST (null) [17:11:02]execute_cgi path=json_proto method=POST [17:11:02]POST find Content-Length [17:11:02]Host: 172.17.46.196:8080 [17:11:02]Content-Length: 756 [17:11:02]Content-Type: application/json [17:11:02] [17:11:02]POST finish read [17:11:02]Found Content-Length = 756 [17:11:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30120432", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:02]execute_script... [17:11: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)11325562", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30120432", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:02]POST & json_proto [17:11:02]process_json_proto [17:11:02]json parsed OK: [17:11:02]protocol is kg_v1.0 [17:11:02]action value=close_receipt [17:11:02]process_action close_receipt [17:11:02]cmd_close_receipt [17:11:02]MH_GetDate [17:11:02]Write to MH i2c: F0 00 00 80 55 C4 [17:11:02]Write i2c OK [17:11:02]MH_I2C_Read... [17:11:02]Read from MH i2c: F0 [17:11:02]MH_I2C_Read... [17:11:02]Read from MH i2c: F0 09 00 [17:11:02]MH_I2C_Read... [17:11:02]Read from MH i2c: F0 09 00 80 55 00 2C 88 BF 66 07 E8 5D 66 58 [17:11:02]GetLastDocTimeStamp 1723828024 [17:11:02]current date 1723828268 [17:11:02]FM_GetShiftState [17:11:02]SAM_PROTO_GetShiftState [17:11:02]wFMCommunicate request_size=4 [17:11:02]MH_SAM_APDU [17:11:02]CAPDU: 80 13 01 00 [17:11:02]Write to MH i2c: E2 08 00 81 55 80 13 01 00 00 00 00 00 53 [17:11:02]Write i2c OK [17:11:02]MH_I2C_Read... [17:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:02]Read from MH i2c: E2 [17:11:02]MH_I2C_Read... [17:11:02]Read from MH i2c: E2 0E 00 [17:11:02]MH_I2C_Read... [17:11:02]Read from MH i2c: E2 0E 00 81 55 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 C9 [17:11:02]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [17:11:02]wFMCommunicate OK [17:11:02]SAM_PROTO_GetShiftState done [17:11:02]FM_GetShiftState done [17:11:02]opened in 1723766958 [17:11:02]opened+sec_in_day 1723853358 [17:11:02]quantity*price = 0 [17:11:02]sum+1 = 1 [17:11:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 149 16.08.2024 17:11 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30120432 ФМ: 0000000000871800 ФД: 49501 ФПД: 134331450080634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T171108&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49501&fm=134331450080634&tin=02508201610067®Number=0000000000092546&sum=0 [17:11:03]StoreToDocumentArchive [17:11:03]shift 464 fd 49501 [17:11:03]save to /storage/0464/doc_00049501 [17:11:03]save last doc name /storage/0464/doc_00049501 to /storage/kkm_last_doc_name [17:11:03]save OK [17:11:03]Clear old archive folders... [17:11:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:11:03]tlvbuf is 00EC2580 [17:11:03]SAM_PROTO_ClearQueue [17:11:03]wFMCommunicate request_size=4 [17:11:03]MH_SAM_APDU [17:11:03]CAPDU: 80 09 00 00 [17:11:03]Write to MH i2c: E2 08 00 8E 55 80 09 00 00 00 00 00 00 55 [17:11:03]Write i2c OK [17:11:03]MH_I2C_Read... [17:11:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:03]Read from MH i2c: E2 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: E2 03 00 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: E2 03 00 8E 55 00 90 00 57 [17:11:03]RAPDU: 90 00 [17:11:03]wFMCommunicate OK [17:11:03]SAM_PROTO_ClearQueue done [17:11:03]KKMCreateOFDPacket [17:11:03]OFDProtocolAddRootSTLVToBuf [17:11:03]FM_MakeSignedData [17:11:03]FM_MakeSignedData [17:11:03]SAM_PROTO_SignData [17:11:03]wFMCommunicate request_size=4 [17:11:03]MH_SAM_APDU [17:11:03]CAPDU: 80 0D 01 02 [17:11:03]Write to MH i2c: E2 08 00 8F 55 80 0D 01 02 00 00 00 00 5D [17:11:03]Write i2c OK [17:11:03]MH_I2C_Read... [17:11:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:03]Read from MH i2c: E2 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: E2 03 00 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: E2 03 00 8F 55 00 90 00 58 [17:11:03]RAPDU: 90 00 [17:11:03]wFMCommunicate OK [17:11:03]wFMCommunicate request_size=255 [17:11:03]MH_SAM_APDU [17:11: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 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 2C 88 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5D C1 00 00 35 04 06 00 7A [17:11:03]Write to MH i2c: E2 02 01 90 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 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 2C 88 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5D C1 00 00 35 04 06 00 7A 00 00 12 [17:11:03]Write i2c OK [17:11:03]MH_I2C_Read... [17:11:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:03]Read from MH i2c: E2 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: E2 03 00 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: E2 03 00 90 55 00 90 00 59 [17:11:03]RAPDU: 90 00 [17:11:03]wFMCommunicate OK [17:11:03]wFMCommunicate request_size=10 [17:11:03]MH_SAM_APDU [17:11:03]CAPDU: 80 0D 02 02 05 2C 7A 5D 3D 7A [17:11:03]Write to MH i2c: E2 0D 00 91 55 80 0D 02 02 05 00 2C 7A 5D 3D 7A 00 00 24 [17:11:03]Write i2c OK [17:11:03]MH_I2C_Read... [17:11:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:03]Read from MH i2c: E2 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: E2 03 00 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: E2 03 00 91 55 00 90 00 5A [17:11:03]RAPDU: 90 00 [17:11:03]wFMCommunicate OK [17:11:03]wFMCommunicate request_size=4 [17:11:03]MH_SAM_APDU [17:11:03]CAPDU: 80 0D 03 02 [17:11:03]Write to MH i2c: E2 08 00 92 55 80 0D 03 02 00 00 00 00 62 [17:11:03]Write i2c OK [17:11:03]MH_I2C_Read... [17:11:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:03]Read from MH i2c: E2 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: E2 0B 00 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: E2 0B 00 92 55 00 34 29 35 30 15 D2 C7 8A 90 00 5D [17:11:03]RAPDU: 34 29 35 30 15 D2 C7 8A 90 00 [17:11:03]wFMCommunicate OK [17:11:03]SAM_PROTO_SignData done [17:11:03]FM_MakeSignedData done [17:11:03]CreateOFDProtocolMessage [17:11:03]wFMCommunicate request_size=4 [17:11:03]MH_SAM_APDU [17:11:03]CAPDU: 80 11 00 00 [17:11:03]Write to MH i2c: E2 08 00 93 55 80 11 00 00 00 00 00 00 62 [17:11:03]Write i2c OK [17:11:03]MH_I2C_Read... [17:11:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:03]Read from MH i2c: E2 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: E2 17 00 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: E2 17 00 93 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AD [17:11:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:11:03]wFMCommunicate OK [17:11:03]CreateOFDProtocolMessage done [17:11:03]OFDSenderStorePacket 49501 [17:11:03]StoreOFDPacket docnum=49501 [17:11:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 C6 C6 07 01 7F 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 2C 88 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5D C1 00 00 35 04 06 00 7A 2C 7A 5D 3D 7A 34 29 35 30 15 D2 C7 8A [17:11:03]CheckFolder [17:11:03]dirname=/storage/ofd_packets [17:11:03]CheckFolder done [17:11:03]ProducePacketName [17:11:03]name=ofd_packets/00049501 [17:11:03]NVStorageSaveData ofd_packets/00049501 [17:11:03]File name is /storage/ofd_packets/00049501 [17:11:03]Write 301 bytes [17:11:03]NVStorageSaveData done [17:11:03]OFDSenderStorePacket done [17:11:03]KKMCreateOFDPacket done [17:11:03]NVStorageSaveData kkm_last_timestamp [17:11:03]File name is /storage/kkm_last_timestamp [17:11:03]Write 4 bytes [17:11:03]NVStorageSaveData done [17:11:03]ExternCall_PrintAddStr [17:11:03]wPrintStart [17:11:03]Write to MH i2c: 01 00 00 94 55 E9 [17:11:03]Write i2c OK [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: 01 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: 01 07 00 [17:11:03]MH_I2C_Read... [17:11:03]Read from MH i2c: 01 07 00 94 55 00 00 00 00 00 FF 0F FE [17:11:03]RasterBufferAndPrint [17:11:03]line Счет N : (1)11325562 [17:11:03]line ИНН: 02508201610067 [17:11:03]line Контрольно-Кассовый Чек [17:11:03]line ПРОДАЖА [17:11:03]line ТРК (МРК, ГНК) : 32 [17:11:03]line Товар: 2710124130 [17:11:03]line Аи-92-К-4 [17:11:03]line 40.000 * 0.00 [17:11:03]line = 0.00 [17:11:03]line НДС 12% НСП 1% [17:11:03]line > о реализуемом товаре [17:11:03]line ИТОГО: 0.00 [17:11:03]line НСП 1% : 0.00 [17:11:03]line НДС 12% : 0.00 [17:11:03]line Наличными: 0.00 [17:11:03]line Безнал.: 0.00 [17:11:03]line Место: АЗС № 95 "Партнер Нефть" [17:11:03]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:11:03]line СНО: Общий режим [17:11:03]line Чек 149 16.08.2024 17:11 [17:11:03]line Смена: 464 ФФД: 1.0 [17:11:03]line ЗНМ: 0300000078 [17:11:03]line РНМ: 0000000000092546 [17:11:03]line Версия ККМ: 001 [17:11:03]line Талоны: ТК ГПНА Online [17:11:03]line 30120432 [17:11:03]line ФМ: 0000000000871800 [17:11:03]line ФД: 49501 [17:11:03]line ФПД: 134331450080634 [17:11:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T171108&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49501&fm=134331450080634&tin=02508201610067®Number=0000000000092546&sum=0 [17:11:04]OFD Sender: Processing packet 49501 [packets to send 21, broken 20] [17:11:04]ProducePacketName [17:11:04]name=ofd_packets/00049501 [17:11:04]OFD Sender: To server: pG, [17:11:04]CommunicateWithHost lk.salyk.kg:30040 [17:11:04]ConnectInit lk.salyk.kg [17:11:04]written 0, free lines is 4095 [17:11:04]Connected sock=10 [17:11:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 C6 C6 07 01 7F 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 2C 88 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5D C1 00 00 35 04 06 00 7A 2C 7A 5D 3D 7A 34 29 35 30 15 D2 C7 8A [17:11:04]Write to MH i2c: 01 00 00 BE 55 13 [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: 01 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: 01 07 00 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: 01 07 00 BE 55 00 00 00 00 00 E1 0C 07 [17:11:04]RasterBufferAndPrint [17:11:04]line [17:11:04]line [17:11:04]line [17:11:04]line [17:11:04]line [17:11:04]written 0, free lines is 3303 [17:11:04]MH_Cut [17:11:04]Write to MH i2c: D1 01 00 C5 55 01 EC [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: D1 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: D1 01 00 [17:11:04]MH_I2C_Read... [17:11:04]Read from MH i2c: D1 01 00 C5 55 00 EB [17:11:04]Write to MH i2c: 01 00 00 C6 55 1B [17:11:04]Write i2c OK [17:11:04]MH_I2C_Read... [17:11:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 51 BF 47 00 B0 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5D C1 00 00 F4 03 04 00 6A 33 BF 66 B6 04 01 00 00 40 2C 11 29 72 55 1C 48 [17:11:04]CommunicateWithHost err = 0 [17:11:04]CheckOFDResponse [17:11:04]1017 (14) - 77093643461234 [17:11:04]1041 (16) - 0000000000871800 [17:11:04]1040 (4) - 49501 [17:11:04]1012 (4) - 16.08.2024 11:09 [17:11:04]1206 (1) - 0 [17:11:04]OFD Sender: Remove packet 49501 [17:11:04]ProducePacketName [17:11:04]name=ofd_packets/00049501 [17:11:04]NVStorageDeleteData [17:11:05]OFD Sender: No OFD packet to send [17:11:05]*** Cut start [17:11:05]*** Purtial cut [17:11:05]*** Stage 1: CUTSNS_PIN = 1 [17:11:05]Read from MH i2c: 01 [17:11:05]MH_I2C_Read... [17:11:05]*** Stop cut motor [17:11:05]*** Cut end [17:11:05]Read from MH i2c: 01 07 00 [17:11:05]MH_I2C_Read... [17:11:05]Read from MH i2c: 01 07 00 C6 55 00 00 00 00 00 FF 0F 30 [17:11:05]process_action close_receipt done [17:11:05]requested_data is exist [17:11:05]produce_requested_data [17:11:05]requested_item fm.sn is exist - process it [17:11:05]wFMCommunicate request_size=4 [17:11:05]MH_SAM_APDU [17:11:05]CAPDU: 80 11 00 00 [17:11:05]Write to MH i2c: E2 08 00 C7 55 80 11 00 00 00 00 00 00 96 [17:11:05]Write i2c OK [17:11:05]MH_I2C_Read... [17:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:05]Read from MH i2c: E2 [17:11:05]MH_I2C_Read... [17:11:05]Read from MH i2c: E2 17 00 [17:11:05]MH_I2C_Read... [17:11:05]Read from MH i2c: E2 17 00 C7 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E1 [17:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:11:05]wFMCommunicate OK [17:11:05]requested_item fd.num is exist - process it [17:11:05]SAM_PROTO_GetFieldsCounters [17:11:05]wFMCommunicate request_size=4 [17:11:05]MH_SAM_APDU [17:11:05]CAPDU: 80 13 00 00 [17:11:05]Write to MH i2c: E2 08 00 C8 55 80 13 00 00 00 00 00 00 99 [17:11:05]Write i2c OK [17:11:05]MH_I2C_Read... [17:11:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:05]Read from MH i2c: E2 [17:11:05]MH_I2C_Read... [17:11:05]Read from MH i2c: E2 62 00 [17:11:05]MH_I2C_Read... [17:11:05]Read from MH i2c: E2 62 00 C8 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5D C1 00 00 0E 04 04 00 D0 01 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 61 [17:11:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5D C1 00 00 0E 04 04 00 D0 01 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 [17:11:05]wFMCommunicate OK [17:11:05]SAM_PROTO_GetFieldsCounters done [17:11:05]requested_item shift.num is exist - process it [17:11:05]requested_item shift.opened is exist - process it [17:11:05]req_shift_opened [17:11:05]FM_GetShiftState [17:11:05]SAM_PROTO_GetShiftState [17:11:05]wFMCommunicate request_size=4 [17:11:05]MH_SAM_APDU [17:11:05]CAPDU: 80 13 01 00 [17:11:05]Write to MH i2c: E2 08 00 C9 55 80 13 01 00 00 00 00 00 9B [17:11:05]Write i2c OK [17:11:05]MH_I2C_Read... [17:11:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:05]Read from MH i2c: E2 [17:11:05]MH_I2C_Read... [17:11:05]Read from MH i2c: E2 0E 00 [17:11:05]MH_I2C_Read... [17:11:05]Read from MH i2c: E2 0E 00 C9 55 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 11 [17:11:05]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [17:11:05]wFMCommunicate OK [17:11:05]SAM_PROTO_GetShiftState done [17:11:05]FM_GetShiftState done [17:11:05]req_shift_opened done [17:11:05]requested_item shift.open_date is exist - process it [17:11:05]req_shift_open_date [17:11:05]req_shift_open_date done [17:11:05]produce_requested_data done [17:11:05]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49501,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [17:11:05]process_action_free close_receipt [17:11:05]json_value_free [17:11:05]json_value_free done [17:11:05]process_json_proto returns [17:11:05]Send response to host [17:11:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49501,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [17:11:05]free response buf [17:11:05]execute_script done [17:11:05]execute_script returns [17:11:05]free content buf [17:11:05]Sock 7.Close socket [17:11:05]Sock 7.Thread stoped [17:11:10]OFD Sender: No OFD packet to send [17:11:15]OFD Sender: No OFD packet to send [17:11:20]OFD Sender: No OFD packet to send [17:11:25]OFD Sender: No OFD packet to send [17:11:30]OFD Sender: No OFD packet to send [17:11:35]OFD Sender: No OFD packet to send [17:11:40]OFD Sender: No OFD packet to send [17:11:45]OFD Sender: No OFD packet to send [17:11:50]OFD Sender: No OFD packet to send [17:11:55]OFD Sender: No OFD packet to send [17:12:00]OFD Sender: No OFD packet to send [17:12:05]OFD Sender: No OFD packet to send [17:12:10]OFD Sender: No OFD packet to send [17:12:15]OFD Sender: No OFD packet to send [17:12:20]OFD Sender: No OFD packet to send [17:12:25]OFD Sender: No OFD packet to send [17:12:30]OFD Sender: No OFD packet to send [17:12:35]OFD Sender: No OFD packet to send [17:12:40]OFD Sender: No OFD packet to send [17:12:45]OFD Sender: No OFD packet to send [17:12:50]OFD Sender: No OFD packet to send [17:12:55]OFD Sender: No OFD packet to send [17:13:00]OFD Sender: No OFD packet to send [17:13:05]OFD Sender: No OFD packet to send [17:13:10]OFD Sender: No OFD packet to send [17:13:15]OFD Sender: No OFD packet to send [17:13:20]OFD Sender: No OFD packet to send [17:13:25]OFD Sender: No OFD packet to send [17:13:30]OFD Sender: No OFD packet to send [17:13:35]OFD Sender: No OFD packet to send [17:13:40]OFD Sender: No OFD packet to send [17:13:45]OFD Sender: No OFD packet to send [17:13:50]OFD Sender: No OFD packet to send [17:13:55]OFD Sender: No OFD packet to send [17:14:00]OFD Sender: No OFD packet to send [17:14:05]OFD Sender: No OFD packet to send [17:14:10]OFD Sender: No OFD packet to send [17:14:15]OFD Sender: No OFD packet to send [17:14:20]OFD Sender: No OFD packet to send [17:14:25]OFD Sender: No OFD packet to send [17:14:30]OFD Sender: No OFD packet to send [17:14:35]OFD Sender: No OFD packet to send [17:14:40]OFD Sender: No OFD packet to send [17:14:45]OFD Sender: No OFD packet to send [17:14:50]OFD Sender: No OFD packet to send [17:14:55]OFD Sender: No OFD packet to send [17:15:00]OFD Sender: No OFD packet to send [17:15:05]OFD Sender: No OFD packet to send [17:15:10]OFD Sender: No OFD packet to send [17:15:15]OFD Sender: No OFD packet to send [17:15:20]OFD Sender: No OFD packet to send [17:15:25]OFD Sender: No OFD packet to send [17:15:30]OFD Sender: No OFD packet to send [17:15:35]OFD Sender: No OFD packet to send [17:15:38]accept exits with 9 [17:15:38]New connection [17:15:38]New thread 3066830180 created [17:15:38]Thread 3066973540 joined [17:15:38]Waiting for new connection... [17:15:38] Sock 9.Parse request [17:15:38]Sock 9.Check first char [17:15:38]Sock 9.First char is OK [17:15:38]request: POST /json_proto HTTP/1.0 [17:15:38]Method: POST [17:15:38]URL: /json_proto [17:15:38]Method is POST - this is cgi request [17:15:38]url: /json_proto [17:15:38]query_string will be loaded in cgi processing [17:15:38]execute_cgi json_proto POST (null) [17:15:38]execute_cgi path=json_proto method=POST [17:15:38]POST find Content-Length [17:15:38]Host: 172.17.46.196:8080 [17:15:38]Content-Length: 623 [17:15:38]Content-Type: application/json [17:15:38] [17:15:38]POST finish read [17:15:38]Found Content-Length = 623 [17:15:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189711", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:38]execute_script... [17:15: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 : (3)189711", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:38]POST & json_proto [17:15:38]process_json_proto [17:15:38]json parsed OK: [17:15:38]protocol is kg_v1.0 [17:15:38]action value=close_receipt [17:15:38]process_action close_receipt [17:15:38]cmd_close_receipt [17:15:38]MH_GetDate [17:15:38]Write to MH i2c: F0 00 00 CA 55 0E [17:15:38]Write i2c OK [17:15:38]MH_I2C_Read... [17:15:38]Read from MH i2c: F0 [17:15:38]MH_I2C_Read... [17:15:38]Read from MH i2c: F0 09 00 [17:15:38]MH_I2C_Read... [17:15:38]Read from MH i2c: F0 09 00 CA 55 00 40 89 BF 66 07 E8 5D 66 B7 [17:15:38]GetLastDocTimeStamp 1723828268 [17:15:38]current date 1723828544 [17:15:38]FM_GetShiftState [17:15:38]SAM_PROTO_GetShiftState [17:15:38]wFMCommunicate request_size=4 [17:15:38]MH_SAM_APDU [17:15:38]CAPDU: 80 13 01 00 [17:15:38]Write to MH i2c: E2 08 00 CB 55 80 13 01 00 00 00 00 00 9D [17:15:38]Write i2c OK [17:15:38]MH_I2C_Read... [17:15:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:38]Read from MH i2c: E2 [17:15:38]MH_I2C_Read... [17:15:38]Read from MH i2c: E2 0E 00 [17:15:38]MH_I2C_Read... [17:15:38]Read from MH i2c: E2 0E 00 CB 55 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 13 [17:15:38]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [17:15:38]wFMCommunicate OK [17:15:38]SAM_PROTO_GetShiftState done [17:15:38]FM_GetShiftState done [17:15:38]opened in 1723766958 [17:15:38]opened+sec_in_day 1723853358 [17:15:38]quantity*price = 14000 [17:15:38]sum+1 = 14001 [17:15:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 150 16.08.2024 17:15 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49502 ФПД: 163249347562614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T171544&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49502&fm=163249347562614&tin=02508201610067®Number=0000000000092546&sum=14000 0 [17:15:39]StoreToDocumentArchive [17:15:39]shift 464 fd 49502 [17:15:39]save to /storage/0464/doc_00049502 [17:15:39]save last doc name /storage/0464/doc_00049502 to /storage/kkm_last_doc_name [17:15:39]save OK [17:15:39]Clear old archive folders... [17:15:39]ProcessDocumentItem done err = 0, tmpTLVsize=275 [17:15:39]tlvbuf is 00E99450 [17:15:39]SAM_PROTO_ClearQueue [17:15:39]wFMCommunicate request_size=4 [17:15:39]MH_SAM_APDU [17:15:39]CAPDU: 80 09 00 00 [17:15:39]Write to MH i2c: E2 08 00 D8 55 80 09 00 00 00 00 00 00 9F [17:15:39]Write i2c OK [17:15:39]MH_I2C_Read... [17:15:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:39]Read from MH i2c: E2 [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: E2 03 00 [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: E2 03 00 D8 55 00 90 00 A1 [17:15:39]RAPDU: 90 00 [17:15:39]wFMCommunicate OK [17:15:39]SAM_PROTO_ClearQueue done [17:15:39]KKMCreateOFDPacket [17:15:39]OFDProtocolAddRootSTLVToBuf [17:15:39]FM_MakeSignedData [17:15:39]FM_MakeSignedData [17:15:39]SAM_PROTO_SignData [17:15:39]wFMCommunicate request_size=4 [17:15:39]MH_SAM_APDU [17:15:39]CAPDU: 80 0D 01 02 [17:15:39]Write to MH i2c: E2 08 00 D9 55 80 0D 01 02 00 00 00 00 A7 [17:15:39]Write i2c OK [17:15:39]MH_I2C_Read... [17:15:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:39]Read from MH i2c: E2 [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: E2 03 00 [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: E2 03 00 D9 55 00 90 00 A2 [17:15:39]RAPDU: 90 00 [17:15:39]wFMCommunicate OK [17:15:39]wFMCommunicate request_size=255 [17:15:39]MH_SAM_APDU [17:15:39]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 40 89 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [17:15:39]Write to MH i2c: E2 02 01 DA 55 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 40 89 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 8D [17:15:39]Write i2c OK [17:15:39]MH_I2C_Read... [17:15:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:39]Read from MH i2c: E2 [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: E2 03 00 [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: E2 03 00 DA 55 00 90 00 A3 [17:15:39]RAPDU: 90 00 [17:15:39]wFMCommunicate OK [17:15:39]wFMCommunicate request_size=34 [17:15:39]MH_SAM_APDU [17:15:39]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5E C1 00 00 35 04 06 00 94 79 73 5F 0C 76 [17:15:39]Write to MH i2c: E2 25 00 DB 55 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5E C1 00 00 35 04 06 00 94 79 73 5F 0C 76 00 00 E3 [17:15:39]Write i2c OK [17:15:39]MH_I2C_Read... [17:15:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:39]Read from MH i2c: E2 [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: E2 03 00 [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: E2 03 00 DB 55 00 90 00 A4 [17:15:39]RAPDU: 90 00 [17:15:39]wFMCommunicate OK [17:15:39]wFMCommunicate request_size=4 [17:15:39]MH_SAM_APDU [17:15:39]CAPDU: 80 0D 03 02 [17:15:39]Write to MH i2c: E2 08 00 DC 55 80 0D 03 02 00 00 00 00 AC [17:15:39]Write i2c OK [17:15:39]MH_I2C_Read... [17:15:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:39]Read from MH i2c: E2 [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: E2 0B 00 [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: E2 0B 00 DC 55 00 FB 17 D1 F8 0C A2 67 46 90 00 E3 [17:15:39]RAPDU: FB 17 D1 F8 0C A2 67 46 90 00 [17:15:39]wFMCommunicate OK [17:15:39]SAM_PROTO_SignData done [17:15:39]FM_MakeSignedData done [17:15:39]CreateOFDProtocolMessage [17:15:39]wFMCommunicate request_size=4 [17:15:39]MH_SAM_APDU [17:15:39]CAPDU: 80 11 00 00 [17:15:39]Write to MH i2c: E2 08 00 DD 55 80 11 00 00 00 00 00 00 AC [17:15:39]Write i2c OK [17:15:39]MH_I2C_Read... [17:15:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:39]Read from MH i2c: E2 [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: E2 17 00 [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: E2 17 00 DD 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F7 [17:15:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:15:39]wFMCommunicate OK [17:15:39]CreateOFDProtocolMessage done [17:15:39]OFDSenderStorePacket 49502 [17:15:39]StoreOFDPacket docnum=49502 [17:15:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 D1 DE 1F 01 03 B6 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 40 89 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5E C1 00 00 35 04 06 00 94 79 73 5F 0C 76 FB 17 D1 F8 0C A2 67 46 [17:15:39]CheckFolder [17:15:39]dirname=/storage/ofd_packets [17:15:39]CheckFolder done [17:15:39]ProducePacketName [17:15:39]name=ofd_packets/00049502 [17:15:39]NVStorageSaveData ofd_packets/00049502 [17:15:39]File name is /storage/ofd_packets/00049502 [17:15:39]Write 325 bytes [17:15:39]NVStorageSaveData done [17:15:39]OFDSenderStorePacket done [17:15:39]KKMCreateOFDPacket done [17:15:39]NVStorageSaveData kkm_last_timestamp [17:15:39]File name is /storage/kkm_last_timestamp [17:15:39]Write 4 bytes [17:15:39]NVStorageSaveData done [17:15:39]ExternCall_PrintAddStr [17:15:39]wPrintStart [17:15:39]Write to MH i2c: 01 00 00 DE 55 33 [17:15:39]Write i2c OK [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: 01 [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: 01 07 00 [17:15:39]MH_I2C_Read... [17:15:39]Read from MH i2c: 01 07 00 DE 55 00 00 00 00 00 FF 0F 48 [17:15:39]RasterBufferAndPrint [17:15:39]line Счет N : (3)189711 [17:15:39]line ИНН: 02508201610067 [17:15:39]line Контрольно-Кассовый Чек [17:15:39]line ПРОДАЖА [17:15:39]line Товар: 48743587 [17:15:39]line Сигареты Winston XStyle Silver [17:15:39]line 1.000 * 140.00 [17:15:39]line = 140.00 [17:15:39]line НДС 12% НСП 1% [17:15:39]line > о реализуемом товаре [17:15:39]line ИТОГО: 140.00 [17:15:39]line НСП 1% : 1.24 [17:15:39]line НДС 12% : 14.87 [17:15:39]line Наличными: 140.00 [17:15:39]line Безнал.: 0.00 [17:15:39]line Место: АЗС № 95 "Партнер Нефть" [17:15:39]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:15:39]line СНО: Общий режим [17:15:39]line Чек 150 16.08.2024 17:15 [17:15:39]line Смена: 464 ФФД: 1.0 [17:15:39]line ЗНМ: 0300000078 [17:15:39]line РНМ: 0000000000092546 [17:15:39]line Версия ККМ: 001 [17:15:39]line ФМ: 0000000000871800 [17:15:39]line ФД: 49502 [17:15:39]line ФПД: 163249347562614 [17:15:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T171544&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49502&fm=163249347562614&tin=02508201610067®Number=0000000000092546&sum=14000 [17:15:40]OFD Sender: Processing packet 49502 [packets to send 21, broken 20] [17:15:40]ProducePacketName [17:15:40]name=ofd_packets/00049502 [17:15:40]OFD Sender: To server: pG, [17:15:40]CommunicateWithHost lk.salyk.kg:30040 [17:15:40]ConnectInit lk.salyk.kg [17:15:40]line 0 [17:15:40]written 0, free lines is 4095 [17:15:40]Connected sock=7 [17:15:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 D1 DE 1F 01 03 B6 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 40 89 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5E C1 00 00 35 04 06 00 94 79 73 5F 0C 76 FB 17 D1 F8 0C A2 67 46 [17:15:40]Write to MH i2c: 01 00 00 07 56 5D [17:15:40]Write i2c OK [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: 01 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: 01 07 00 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: 01 07 00 07 56 00 00 00 00 00 D2 0C 42 [17:15:40]RasterBufferAndPrint [17:15:40]line [17:15:40]line [17:15:40]line [17:15:40]line [17:15:40]line [17:15:40]written 0, free lines is 3289 [17:15:40]MH_Cut [17:15:40]Write to MH i2c: D1 01 00 0E 56 01 36 [17:15:40]Write i2c OK [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: D1 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: D1 01 00 [17:15:40]MH_I2C_Read... [17:15:40]Read from MH i2c: D1 01 00 0E 56 00 35 [17:15:40]Write to MH i2c: 01 00 00 0F 56 65 [17:15:40]Write i2c OK [17:15:40]MH_I2C_Read... [17:15:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 5A 60 47 00 52 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5E C1 00 00 F4 03 04 00 7E 34 BF 66 B6 04 01 00 00 52 60 05 F9 24 02 38 6E [17:15:40]CommunicateWithHost err = 0 [17:15:40]CheckOFDResponse [17:15:40]1017 (14) - 77093643461234 [17:15:40]1041 (16) - 0000000000871800 [17:15:40]1040 (4) - 49502 [17:15:40]1012 (4) - 16.08.2024 11:14 [17:15:40]1206 (1) - 0 [17:15:40]OFD Sender: Remove packet 49502 [17:15:40]ProducePacketName [17:15:40]name=ofd_packets/00049502 [17:15:40]NVStorageDeleteData [17:15:41]OFD Sender: No OFD packet to send [17:15:41]*** Cut start [17:15:41]*** Purtial cut [17:15:41]*** CUTSNS_PIN = 0 [17:15:41]*** Stage 1: CUTSNS_PIN = 1 [17:15:43]Read from MH i2c: 01 [17:15:43]MH_I2C_Read... [17:15:43]*** Stop cut motor [17:15:43]*** Cut end [17:15:43]Read from MH i2c: 01 07 00 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: 01 07 00 0F 56 00 00 00 00 00 FF 0F 7A [17:15:43]process_action close_receipt done [17:15:43]requested_data is exist [17:15:43]produce_requested_data [17:15:43]requested_item fm.sn is exist - process it [17:15:43]wFMCommunicate request_size=4 [17:15:43]MH_SAM_APDU [17:15:43]CAPDU: 80 11 00 00 [17:15:43]Write to MH i2c: E2 08 00 10 56 80 11 00 00 00 00 00 00 E0 [17:15:43]Write i2c OK [17:15:43]MH_I2C_Read... [17:15:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:43]Read from MH i2c: E2 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: E2 17 00 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: E2 17 00 10 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 2B [17:15:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:15:43]wFMCommunicate OK [17:15:43]requested_item fd.num is exist - process it [17:15:43]SAM_PROTO_GetFieldsCounters [17:15:43]wFMCommunicate request_size=4 [17:15:43]MH_SAM_APDU [17:15:43]CAPDU: 80 13 00 00 [17:15:43]Write to MH i2c: E2 08 00 11 56 80 13 00 00 00 00 00 00 E3 [17:15:43]Write i2c OK [17:15:43]MH_I2C_Read... [17:15:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:43]Read from MH i2c: E2 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: E2 62 00 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: E2 62 00 11 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5E C1 00 00 0E 04 04 00 D0 01 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 AF [17:15:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5E C1 00 00 0E 04 04 00 D0 01 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 [17:15:43]wFMCommunicate OK [17:15:43]SAM_PROTO_GetFieldsCounters done [17:15:43]requested_item shift.num is exist - process it [17:15:43]requested_item shift.opened is exist - process it [17:15:43]req_shift_opened [17:15:43]FM_GetShiftState [17:15:43]SAM_PROTO_GetShiftState [17:15:43]wFMCommunicate request_size=4 [17:15:43]MH_SAM_APDU [17:15:43]CAPDU: 80 13 01 00 [17:15:43]Write to MH i2c: E2 08 00 12 56 80 13 01 00 00 00 00 00 E5 [17:15:43]Write i2c OK [17:15:43]MH_I2C_Read... [17:15:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:43]Read from MH i2c: E2 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: E2 0E 00 [17:15:43]MH_I2C_Read... [17:15:43]Read from MH i2c: E2 0E 00 12 56 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 5B [17:15:43]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [17:15:43]wFMCommunicate OK [17:15:43]SAM_PROTO_GetShiftState done [17:15:43]FM_GetShiftState done [17:15:43]req_shift_opened done [17:15:43]requested_item shift.open_date is exist - process it [17:15:43]req_shift_open_date [17:15:43]req_shift_open_date done [17:15:43]produce_requested_data done [17:15:43]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49502,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [17:15:43]process_action_free close_receipt [17:15:43]json_value_free [17:15:43]json_value_free done [17:15:43]process_json_proto returns [17:15:43]Send response to host [17:15:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49502,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [17:15:43]free response buf [17:15:43]execute_script done [17:15:43]execute_script returns [17:15:43]free content buf [17:15:43]Sock 9.Close socket [17:15:43]Sock 9.Thread stoped [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:56]OFD Sender: No OFD packet to send [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17:26]OFD Sender: No OFD packet to send [17:17:31]OFD Sender: No OFD packet to send [17:17:36]OFD Sender: No OFD packet to send [17:17:41]OFD Sender: No OFD packet to send [17:17:46]OFD Sender: No OFD packet to send [17:17:51]OFD Sender: No OFD packet to send [17:17:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:26]OFD Sender: No OFD packet to send [17:18:31]OFD Sender: No OFD packet to send [17:18:36]OFD Sender: No OFD packet to send [17:18:41]OFD Sender: No OFD packet to send [17:18:46]OFD Sender: No OFD packet to send [17:18:51]OFD Sender: No OFD packet to send [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [17:19:16]OFD Sender: No OFD packet to send [17:22:04]ConnectInit Can't connect to host [17:22:06]OFD Sender: No OFD packet to send [17:22:11]OFD Sender: No OFD packet to send [17:22:16]OFD Sender: No OFD packet to send [17:22:21]OFD Sender: No OFD packet to send [17:22:26]OFD Sender: No OFD packet to send [17:22:31]OFD Sender: No OFD packet to send [17:22:36]OFD Sender: No OFD packet to send [17:22:41]OFD Sender: No OFD packet to send [17:22:46]OFD Sender: No OFD packet to send [17:22:51]OFD Sender: No OFD packet to send [17:22:56]OFD Sender: No OFD packet to send [17:23:01]OFD Sender: No OFD packet to send [17:23:06]OFD Sender: No OFD packet to send [17:23:11]OFD Sender: No OFD packet to send [17:23:16]OFD Sender: No OFD packet to send [17:23:21]OFD Sender: No OFD packet to send [17:23:26]OFD Sender: No OFD packet to send [17:23:31]OFD Sender: No OFD packet to send [17:23:36]OFD Sender: No OFD packet to send [17:23:41]OFD Sender: No OFD packet to send [17:23:46]OFD Sender: No OFD packet to send [17:23:51]OFD Sender: No OFD packet to send [17:23:56]OFD Sender: No OFD packet to send [17:24:01]OFD Sender: No OFD packet to send [17:24:06]OFD Sender: No OFD packet to send [17:24:11]OFD Sender: No OFD packet to send [17:24:16]OFD Sender: No OFD packet to send [17:24:21]OFD Sender: No OFD packet to send [17:24:26]OFD Sender: No OFD packet to send [17:24:31]OFD Sender: No OFD packet to send [17:24:36]OFD Sender: No OFD packet to send [17:24:41]OFD Sender: No OFD packet to send [17:24:46]OFD Sender: No OFD packet to send [17:24:51]OFD Sender: No OFD packet to send [17:24:56]OFD Sender: No OFD packet to send [17:25:01]OFD Sender: No OFD packet to send [17:25:06]OFD Sender: No OFD packet to send [17:25:11]OFD Sender: No OFD packet to send [17:25:16]OFD Sender: No OFD packet to send [17:25:21]OFD Sender: No OFD packet to send [17:25:26]OFD Sender: No OFD packet to send [17:25:31]OFD Sender: No OFD packet to send [17:25:36]OFD Sender: No OFD packet to send [17:25:41]OFD Sender: No OFD packet to send [17:25:43]recv_with_timeout no data received [17:25:46]OFD Sender: No OFD packet to send [17:25:48]accept exits with 10 [17:25:48]New connection [17:25:48]New thread 3066973540 created [17:25:48]Thread 3066830180 joined [17:25:48]Waiting for new connection... [17:25:48] Sock 10.Parse request [17:25:48]Sock 10.Check first char [17:25:48]Sock 10.First char is OK [17:25:48]request: POST /json_proto HTTP/1.0 [17:25:48]Method: POST [17:25:48]URL: /json_proto [17:25:48]Method is POST - this is cgi request [17:25:48]url: /json_proto [17:25:48]query_string will be loaded in cgi processing [17:25:48]execute_cgi json_proto POST (null) [17:25:48]execute_cgi path=json_proto method=POST [17:25:48]POST find Content-Length [17:25:48]Host: 172.17.46.196:8080 [17:25:48]Content-Length: 872 [17:25:48]Content-Type: application/json [17:25:48] [17:25:48]POST finish read [17:25:48]Found Content-Length = 872 [17:25:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189712", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:48]execute_script... [17:25:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189712", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:25:48]POST & json_proto [17:25:48]process_json_proto [17:25:48]json parsed OK: [17:25:48]protocol is kg_v1.0 [17:25:48]action value=close_receipt [17:25:48]process_action close_receipt [17:25:48]cmd_close_receipt [17:25:48]MH_GetDate [17:25:48]Write to MH i2c: F0 00 00 13 56 58 [17:25:48]Write i2c OK [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: F0 [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: F0 09 00 [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: F0 09 00 13 56 00 A2 8B BF 66 07 E8 5D 66 65 [17:25:48]GetLastDocTimeStamp 1723828544 [17:25:48]current date 1723829154 [17:25:48]FM_GetShiftState [17:25:48]SAM_PROTO_GetShiftState [17:25:48]wFMCommunicate request_size=4 [17:25:48]MH_SAM_APDU [17:25:48]CAPDU: 80 13 01 00 [17:25:48]Write to MH i2c: E2 08 00 14 56 80 13 01 00 00 00 00 00 E7 [17:25:48]Write i2c OK [17:25:48]MH_I2C_Read... [17:25:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:48]Read from MH i2c: E2 [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: E2 0E 00 [17:25:48]MH_I2C_Read... [17:25:48]Read from MH i2c: E2 0E 00 14 56 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 5D [17:25:48]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [17:25:48]wFMCommunicate OK [17:25:48]SAM_PROTO_GetShiftState done [17:25:48]FM_GetShiftState done [17:25:48]opened in 1723766958 [17:25:48]opened+sec_in_day 1723853358 [17:25:48]quantity*price = 6000 [17:25:48]sum+1 = 6001 [17:25:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 151 16.08.2024 17:25 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49503 ФПД: 74094006263183 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T172554&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49503&fm=74094006263183&tin=02508201610067®Number=0000000000092546&sum=20000 0 [17:25:49]StoreToDocumentArchive [17:25:49]shift 464 fd 49503 [17:25:49]save to /storage/0464/doc_00049503 [17:25:49]save last doc name /storage/0464/doc_00049503 to /storage/kkm_last_doc_name [17:25:49]save OK [17:25:49]Clear old archive folders... [17:25:49]ProcessDocumentItem done err = 0, tmpTLVsize=376 [17:25:49]tlvbuf is 00EC5C30 [17:25:49]SAM_PROTO_ClearQueue [17:25:49]wFMCommunicate request_size=4 [17:25:49]MH_SAM_APDU [17:25:49]CAPDU: 80 09 00 00 [17:25:49]Write to MH i2c: E2 08 00 21 56 80 09 00 00 00 00 00 00 E9 [17:25:49]Write i2c OK [17:25:49]MH_I2C_Read... [17:25:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:49]Read from MH i2c: E2 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 03 00 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 03 00 21 56 00 90 00 EB [17:25:49]RAPDU: 90 00 [17:25:49]wFMCommunicate OK [17:25:49]SAM_PROTO_ClearQueue done [17:25:49]KKMCreateOFDPacket [17:25:49]OFDProtocolAddRootSTLVToBuf [17:25:49]FM_MakeSignedData [17:25:49]FM_MakeSignedData [17:25:49]SAM_PROTO_SignData [17:25:49]wFMCommunicate request_size=4 [17:25:49]MH_SAM_APDU [17:25:49]CAPDU: 80 0D 01 02 [17:25:49]Write to MH i2c: E2 08 00 22 56 80 0D 01 02 00 00 00 00 F1 [17:25:49]Write i2c OK [17:25:49]MH_I2C_Read... [17:25:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:49]Read from MH i2c: E2 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 03 00 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 03 00 22 56 00 90 00 EC [17:25:49]RAPDU: 90 00 [17:25:49]wFMCommunicate OK [17:25:49]wFMCommunicate request_size=255 [17:25:49]MH_SAM_APDU [17:25:49]CAPDU: 80 0D 02 02 FA 03 00 78 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 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 [17:25:49]Write to MH i2c: E2 02 01 23 56 80 0D 02 02 FA 00 03 00 78 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 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 00 00 F8 [17:25:49]Write i2c OK [17:25:49]MH_I2C_Read... [17:25:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:49]Read from MH i2c: E2 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 03 00 [17:25:49]MH_I2C_Read... [17:25:49]Read from MH i2c: E2 03 00 23 56 00 90 00 ED [17:25:49]RAPDU: 90 00 [17:25:49]wFMCommunicate OK [17:25:49]wFMCommunicate request_size=135 [17:25:49]MH_SAM_APDU [17:25:49]CAPDU: 80 0D 02 02 82 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 97 00 00 00 F4 03 04 00 A2 8B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5F C1 00 00 35 04 06 00 43 63 5A EC 5D 8F [17:25:49]Write to MH i2c: E2 8A 00 24 56 80 0D 02 02 82 00 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 97 00 00 00 F4 03 04 00 A2 8B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5F C1 00 00 35 04 06 00 43 63 5A EC 5D 8F 00 00 A1 [17:25:49]Write i2c OK [17:25:49]MH_I2C_Read... [17:25:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:50]Read from MH i2c: E2 [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: E2 03 00 [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: E2 03 00 24 56 00 90 00 EE [17:25:50]RAPDU: 90 00 [17:25:50]wFMCommunicate OK [17:25:50]wFMCommunicate request_size=4 [17:25:50]MH_SAM_APDU [17:25:50]CAPDU: 80 0D 03 02 [17:25:50]Write to MH i2c: E2 08 00 25 56 80 0D 03 02 00 00 00 00 F6 [17:25:50]Write i2c OK [17:25:50]MH_I2C_Read... [17:25:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:50]Read from MH i2c: E2 [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: E2 0B 00 [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: E2 0B 00 25 56 00 79 D2 E6 53 A5 D1 88 0C 90 00 85 [17:25:50]RAPDU: 79 D2 E6 53 A5 D1 88 0C 90 00 [17:25:50]wFMCommunicate OK [17:25:50]SAM_PROTO_SignData done [17:25:50]FM_MakeSignedData done [17:25:50]CreateOFDProtocolMessage [17:25:50]wFMCommunicate request_size=4 [17:25:50]MH_SAM_APDU [17:25:50]CAPDU: 80 11 00 00 [17:25:50]Write to MH i2c: E2 08 00 26 56 80 11 00 00 00 00 00 00 F6 [17:25:50]Write i2c OK [17:25:50]MH_I2C_Read... [17:25:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:50]Read from MH i2c: E2 [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: E2 17 00 [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: E2 17 00 26 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 41 [17:25:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:25:50]wFMCommunicate OK [17:25:50]CreateOFDProtocolMessage done [17:25:50]OFDSenderStorePacket 49503 [17:25:50]StoreOFDPacket docnum=49503 [17:25:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 8C 01 00 00 87 B9 84 01 7F 1E 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 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 97 00 00 00 F4 03 04 00 A2 8B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5F C1 00 00 35 04 06 00 43 63 5A EC 5D 8F 79 D2 E6 53 A5 D1 88 0C [17:25:50]CheckFolder [17:25:50]dirname=/storage/ofd_packets [17:25:50]CheckFolder done [17:25:50]ProducePacketName [17:25:50]name=ofd_packets/00049503 [17:25:50]NVStorageSaveData ofd_packets/00049503 [17:25:50]File name is /storage/ofd_packets/00049503 [17:25:50]Write 426 bytes [17:25:50]NVStorageSaveData done [17:25:50]OFDSenderStorePacket done [17:25:50]KKMCreateOFDPacket done [17:25:50]NVStorageSaveData kkm_last_timestamp [17:25:50]File name is /storage/kkm_last_timestamp [17:25:50]Write 4 bytes [17:25:50]NVStorageSaveData done [17:25:50]ExternCall_PrintAddStr [17:25:50]wPrintStart [17:25:50]Write to MH i2c: 01 00 00 27 56 7D [17:25:50]Write i2c OK [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: 01 [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: 01 07 00 [17:25:50]MH_I2C_Read... [17:25:50]Read from MH i2c: 01 07 00 27 56 00 00 00 00 00 FF 0F 92 [17:25:50]RasterBufferAndPrint [17:25:50]line Счет N : (3)189712 [17:25:50]line ИНН: 02508201610067 [17:25:50]line Контрольно-Кассовый Чек [17:25:50]line ПРОДАЖА [17:25:50]line Товар: 4700000160204 [17:25:50]line Вода Легенда 1,5л [17:25:50]line 1.000 * 60.00 [17:25:50]line = 60.00 [17:25:50]line НДС 12% НСП 1% [17:25:50]line > о реализуемом товаре [17:25:50]line Товар: 48743587 [17:25:50]line Сигареты Winston XStyle Silver [17:25:50]line 1.000 * 140.00 [17:25:50]line = 140.00 [17:25:50]line НДС 12% НСП 1% [17:25:50]line > о реализуемом товаре [17:25:50]line ИТОГО: 200.00 [17:25:50]line НСП 1% : 1.77 [17:25:50]line НДС 12% : 21.24 [17:25:50]line Наличными: 200.00 [17:25:50]line Безнал.: 0.00 [17:25:50]line Место: АЗС № 95 "Партнер Нефть" [17:25:50]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:25:50]line СНО: Общий режим [17:25:50]line Чек 151 16.08.2024 17:25 [17:25:50]line Смена: 464 ФФД: 1.0 [17:25:50]line ЗНМ: 0300000078 [17:25:50]line РНМ: 0000000000092546 [17:25:50]line Версия ККМ: 001 [17:25:50]line ФМ: 0000000000871800 [17:25:50]line ФД: 49503 [17:25:50]line ФПД: 74094006263183 [17:25:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T172554&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49503&fm=74094006263183&tin=02508201610067®Number=0000000000092546&sum=20000 [17:25:50]line 0 [17:25:50]OFD Sender: Processing packet 49503 [packets to send 21, broken 20] [17:25:50]ProducePacketName [17:25:50]name=ofd_packets/00049503 [17:25:50]OFD Sender: To server: pG, [17:25:50]CommunicateWithHost lk.salyk.kg:30040 [17:25:50]ConnectInit lk.salyk.kg [17:25:50]written 0, free lines is 4095 [17:25:51]Write to MH i2c: 01 00 00 56 56 AC [17:25:51]Write i2c OK [17:25:51]MH_I2C_Read... [17:25:51]Read from MH i2c: 01 [17:25:51]MH_I2C_Read... [17:25:51]Read from MH i2c: 01 07 00 [17:25:51]MH_I2C_Read... [17:25:51]Read from MH i2c: 01 07 00 56 56 00 00 00 00 00 6E 0C 2D [17:25:51]RasterBufferAndPrint [17:25:51]line [17:25:51]line [17:25:51]line [17:25:51]line [17:25:51]line [17:25:51]written 0, free lines is 3188 [17:25:51]MH_Cut [17:25:51]Write to MH i2c: D1 01 00 5D 56 01 85 [17:25:51]Write i2c OK [17:25:51]MH_I2C_Read... [17:25:51]Read from MH i2c: D1 [17:25:51]MH_I2C_Read... [17:25:51]Read from MH i2c: D1 01 00 [17:25:51]MH_I2C_Read... [17:25:51]Read from MH i2c: D1 01 00 5D 56 00 84 [17:25:51]Write to MH i2c: 01 00 00 5E 56 B4 [17:25:51]Write i2c OK [17:25:51]MH_I2C_Read... [17:25:51]*** Cut start [17:25:51]*** Purtial cut [17:25:51]*** Stage 1: CUTSNS_PIN = 1 [17:25:52]Read from MH i2c: 01 [17:25:52]MH_I2C_Read... [17:25:52]*** Stop cut motor [17:25:52]*** Cut end [17:25:52]Read from MH i2c: 01 07 00 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: 01 07 00 5E 56 00 00 00 00 00 FF 0F C9 [17:25:52]process_action close_receipt done [17:25:52]requested_data is exist [17:25:52]produce_requested_data [17:25:52]requested_item fm.sn is exist - process it [17:25:52]wFMCommunicate request_size=4 [17:25:52]MH_SAM_APDU [17:25:52]CAPDU: 80 11 00 00 [17:25:52]Write to MH i2c: E2 08 00 5F 56 80 11 00 00 00 00 00 00 2F [17:25:52]Write i2c OK [17:25:52]MH_I2C_Read... [17:25:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:52]Read from MH i2c: E2 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 17 00 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 17 00 5F 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7A [17:25:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:25:52]wFMCommunicate OK [17:25:52]requested_item fd.num is exist - process it [17:25:52]SAM_PROTO_GetFieldsCounters [17:25:52]wFMCommunicate request_size=4 [17:25:52]MH_SAM_APDU [17:25:52]CAPDU: 80 13 00 00 [17:25:52]Write to MH i2c: E2 08 00 60 56 80 13 00 00 00 00 00 00 32 [17:25:52]Write i2c OK [17:25:52]MH_I2C_Read... [17:25:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:52]Read from MH i2c: E2 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 62 00 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 62 00 60 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5F C1 00 00 0E 04 04 00 D0 01 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 02 [17:25:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 5F C1 00 00 0E 04 04 00 D0 01 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 [17:25:52]wFMCommunicate OK [17:25:52]SAM_PROTO_GetFieldsCounters done [17:25:52]requested_item shift.num is exist - process it [17:25:52]requested_item shift.opened is exist - process it [17:25:52]req_shift_opened [17:25:52]FM_GetShiftState [17:25:52]SAM_PROTO_GetShiftState [17:25:52]wFMCommunicate request_size=4 [17:25:52]MH_SAM_APDU [17:25:52]CAPDU: 80 13 01 00 [17:25:52]Write to MH i2c: E2 08 00 61 56 80 13 01 00 00 00 00 00 34 [17:25:52]Write i2c OK [17:25:52]MH_I2C_Read... [17:25:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:52]Read from MH i2c: E2 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 0E 00 [17:25:52]MH_I2C_Read... [17:25:52]Read from MH i2c: E2 0E 00 61 56 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 AA [17:25:52]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [17:25:52]wFMCommunicate OK [17:25:52]SAM_PROTO_GetShiftState done [17:25:52]FM_GetShiftState done [17:25:52]req_shift_opened done [17:25:52]requested_item shift.open_date is exist - process it [17:25:52]req_shift_open_date [17:25:52]req_shift_open_date done [17:25:52]produce_requested_data done [17:25:52]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49503,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [17:25:52]process_action_free close_receipt [17:25:52]json_value_free [17:25:52]json_value_free done [17:25:52]process_json_proto returns [17:25:52]Send response to host [17:25:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49503,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [17:25:52]free response buf [17:25:52]execute_script done [17:25:52]execute_script returns [17:25:52]free content buf [17:25:52]Sock 10.Close socket [17:25:52]Sock 10.Thread stoped [17:25:53]Connected sock=7 [17:25:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 8C 01 00 00 87 B9 84 01 7F 1E 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 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 97 00 00 00 F4 03 04 00 A2 8B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5F C1 00 00 35 04 06 00 43 63 5A EC 5D 8F 79 D2 E6 53 A5 D1 88 0C [17:25:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 35 33 47 00 DC 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 5F C1 00 00 F4 03 04 00 E4 36 BF 66 B6 04 01 00 00 E2 BD 6C D6 C6 A2 60 66 [17:25:54]CommunicateWithHost err = 0 [17:25:54]CheckOFDResponse [17:25:54]1017 (14) - 77093643461234 [17:25:54]1041 (16) - 0000000000871800 [17:25:54]1040 (4) - 49503 [17:25:54]1012 (4) - 16.08.2024 11:24 [17:25:54]1206 (1) - 0 [17:25:54]OFD Sender: Remove packet 49503 [17:25:54]ProducePacketName [17:25:54]name=ofd_packets/00049503 [17:25:54]NVStorageDeleteData [17:25:55]OFD Sender: No OFD packet to send [17:26:00]OFD Sender: No OFD packet to send [17:26:01]recv_with_timeout no data received [17:26:05]OFD Sender: No OFD packet to send [17:26:10]OFD Sender: No OFD packet to send [17:26:13]recv_with_timeout no data received [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:15]OFD Sender: No OFD packet to send [17:27:20]OFD Sender: No OFD packet to send [17:27:25]OFD Sender: No OFD packet to send [17:27:30]OFD Sender: No OFD packet to send [17:27:35]OFD Sender: No OFD packet to send [17:27:40]OFD Sender: No OFD packet to send [17:27:45]OFD Sender: No OFD packet to send [17:27:50]OFD Sender: No OFD packet to send [17:27:55]OFD Sender: No OFD packet to send [17:28:00]OFD Sender: No OFD packet to send [17:28:05]OFD Sender: No OFD packet to send [17:28:10]OFD Sender: No OFD packet to send [17:28:15]OFD Sender: No OFD packet to send [17:28:20]OFD Sender: No OFD packet to send [17:28:25]OFD Sender: No OFD packet to send [17:28:30]OFD Sender: No OFD packet to send [17:28:35]OFD Sender: No OFD packet to send [17:28:40]OFD Sender: No OFD packet to send [17:28:45]OFD Sender: No OFD packet to send [17:28:50]OFD Sender: No OFD packet to send [17:28:55]OFD Sender: No OFD packet to send [17:29:00]OFD Sender: No OFD packet to send [17:29:05]OFD Sender: No OFD packet to send [17:29:10]OFD Sender: No OFD packet to send [17:29:15]OFD Sender: No OFD packet to send [17:29:20]OFD Sender: No OFD packet to send [17:29:25]OFD Sender: No OFD packet to send [17:29:30]OFD Sender: No OFD packet to send [17:29:35]OFD Sender: No OFD packet to send [17:29:40]OFD Sender: No OFD packet to send [17:29:45]OFD Sender: No OFD packet to send [17:29:50]OFD Sender: No OFD packet to send [17:29:55]OFD Sender: No OFD packet to send [17:30:00]OFD Sender: No OFD packet to send [17:30:05]OFD Sender: No OFD packet to send [17:30:10]OFD Sender: No OFD packet to send [17:30:15]OFD Sender: No OFD packet to send [17:30:20]OFD Sender: No OFD packet to send [17:30:25]OFD Sender: No OFD packet to send [17:30:30]OFD Sender: No OFD packet to send [17:30:35]OFD Sender: No OFD packet to send [17:30:40]OFD Sender: No OFD packet to send [17:30:45]OFD Sender: No OFD packet to send [17:30:50]OFD Sender: No OFD packet to send [17:30:55]OFD Sender: No OFD packet to send [17:31:00]OFD Sender: No OFD packet to send [17:31:05]OFD Sender: No OFD packet to send [17:31:10]OFD Sender: No OFD packet to send [17:31:15]OFD Sender: No OFD packet to send [17:31:20]OFD Sender: No OFD packet to send [17:31:25]OFD Sender: No OFD packet to send [17:31:30]OFD Sender: No OFD packet to send [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:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]accept exits with 9 [17:34:40]New connection [17:34:40]New thread 3066830180 created [17:34:40]Thread 3066973540 joined [17:34:40]Waiting for new connection... [17:34:40] Sock 9.Parse request [17:34:40]Sock 9.Check first char [17:34:40]Sock 9.First char is OK [17:34:40]request: POST /json_proto HTTP/1.0 [17:34:40]Method: POST [17:34:40]URL: /json_proto [17:34:40]Method is POST - this is cgi request [17:34:40]url: /json_proto [17:34:40]query_string will be loaded in cgi processing [17:34:40]execute_cgi json_proto POST (null) [17:34:40]execute_cgi path=json_proto method=POST [17:34:40]POST find Content-Length [17:34:40]Host: 172.17.46.196:8080 [17:34:40]Content-Length: 663 [17:34:40]Content-Type: application/json [17:34:40] [17:34:40]POST finish read [17:34:40]Found Content-Length = 663 [17:34:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189713", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:40]execute_script... [17:34: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 : (3)189713", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:34:40]POST & json_proto [17:34:40]process_json_proto [17:34:40]json parsed OK: [17:34:40]protocol is kg_v1.0 [17:34:40]action value=close_receipt [17:34:40]process_action close_receipt [17:34:40]cmd_close_receipt [17:34:40]MH_GetDate [17:34:40]Write to MH i2c: F0 00 00 62 56 A7 [17:34:40]Write i2c OK [17:34:40]MH_I2C_Read... [17:34:40]Read from MH i2c: F0 [17:34:40]MH_I2C_Read... [17:34:40]Read from MH i2c: F0 09 00 [17:34:40]MH_I2C_Read... [17:34:40]Read from MH i2c: F0 09 00 62 56 00 B6 8D BF 66 07 E8 5D 66 CA [17:34:40]GetLastDocTimeStamp 1723829154 [17:34:40]current date 1723829686 [17:34:40]FM_GetShiftState [17:34:40]SAM_PROTO_GetShiftState [17:34:40]wFMCommunicate request_size=4 [17:34:40]MH_SAM_APDU [17:34:40]CAPDU: 80 13 01 00 [17:34:40]Write to MH i2c: E2 08 00 63 56 80 13 01 00 00 00 00 00 36 [17:34:40]Write i2c OK [17:34:40]MH_I2C_Read... [17:34:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:40]Read from MH i2c: E2 [17:34:40]MH_I2C_Read... [17:34:40]Read from MH i2c: E2 0E 00 [17:34:40]MH_I2C_Read... [17:34:40]Read from MH i2c: E2 0E 00 63 56 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 AC [17:34:40]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [17:34:40]wFMCommunicate OK [17:34:40]SAM_PROTO_GetShiftState done [17:34:40]FM_GetShiftState done [17:34:40]opened in 1723766958 [17:34:40]opened+sec_in_day 1723853358 [17:34:40]quantity*price = 15500 [17:34:40]sum+1 = 15501 [17:34:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 152 16.08.2024 17:34 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49504 ФПД: 47174758613698 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T173446&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49504&fm=47174758613698&tin=02508201610067®Number=0000000000092546&sum=15500 0 [17:34:41]StoreToDocumentArchive [17:34:41]shift 464 fd 49504 [17:34:41]save to /storage/0464/doc_00049504 [17:34:41]save last doc name /storage/0464/doc_00049504 to /storage/kkm_last_doc_name [17:34:41]save OK [17:34:41]Clear old archive folders... [17:34:41]ProcessDocumentItem done err = 0, tmpTLVsize=287 [17:34:41]tlvbuf is 00E28440 [17:34:41]SAM_PROTO_ClearQueue [17:34:41]wFMCommunicate request_size=4 [17:34:41]MH_SAM_APDU [17:34:41]CAPDU: 80 09 00 00 [17:34:41]Write to MH i2c: E2 08 00 70 56 80 09 00 00 00 00 00 00 38 [17:34:41]Write i2c OK [17:34:41]MH_I2C_Read... [17:34:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:41]Read from MH i2c: E2 [17:34:41]MH_I2C_Read... [17:34:41]Read from MH i2c: E2 03 00 [17:34:41]MH_I2C_Read... [17:34:41]Read from MH i2c: E2 03 00 70 56 00 90 00 3A [17:34:41]RAPDU: 90 00 [17:34:41]wFMCommunicate OK [17:34:41]SAM_PROTO_ClearQueue done [17:34:41]KKMCreateOFDPacket [17:34:41]OFDProtocolAddRootSTLVToBuf [17:34:41]FM_MakeSignedData [17:34:41]FM_MakeSignedData [17:34:41]SAM_PROTO_SignData [17:34:41]wFMCommunicate request_size=4 [17:34:41]MH_SAM_APDU [17:34:41]CAPDU: 80 0D 01 02 [17:34:41]Write to MH i2c: E2 08 00 71 56 80 0D 01 02 00 00 00 00 40 [17:34:41]Write i2c OK [17:34:41]MH_I2C_Read... [17:34:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:41]Read from MH i2c: E2 [17:34:41]MH_I2C_Read... [17:34:41]Read from MH i2c: E2 03 00 [17:34:41]MH_I2C_Read... [17:34:41]Read from MH i2c: E2 03 00 71 56 00 90 00 3B [17:34:41]RAPDU: 90 00 [17:34:41]wFMCommunicate OK [17:34:41]wFMCommunicate request_size=255 [17:34:41]MH_SAM_APDU [17:34:41]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 B6 8D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [17:34:41]Write to MH i2c: E2 02 01 72 56 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 B6 8D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 5F [17:34:41]Write i2c OK [17:34:41]MH_I2C_Read... [17:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:41]Read from MH i2c: E2 [17:34:41]MH_I2C_Read... [17:34:41]Read from MH i2c: E2 03 00 [17:34:41]MH_I2C_Read... [17:34:41]Read from MH i2c: E2 03 00 72 56 00 90 00 3C [17:34:41]RAPDU: 90 00 [17:34:41]wFMCommunicate OK [17:34:41]wFMCommunicate request_size=46 [17:34:41]MH_SAM_APDU [17:34:41]CAPDU: 80 0D 02 02 29 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 60 C1 00 00 35 04 06 00 2A E7 BA BA C2 C2 [17:34:41]Write to MH i2c: E2 31 00 73 56 80 0D 02 02 29 00 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 60 C1 00 00 35 04 06 00 2A E7 BA BA C2 C2 00 00 F2 [17:34:41]Write i2c OK [17:34:41]MH_I2C_Read... [17:34:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:41]Read from MH i2c: E2 [17:34:41]MH_I2C_Read... [17:34:41]Read from MH i2c: E2 03 00 [17:34:41]MH_I2C_Read... [17:34:41]Read from MH i2c: E2 03 00 73 56 00 90 00 3D [17:34:41]RAPDU: 90 00 [17:34:41]wFMCommunicate OK [17:34:41]wFMCommunicate request_size=4 [17:34:41]MH_SAM_APDU [17:34:41]CAPDU: 80 0D 03 02 [17:34:41]Write to MH i2c: E2 08 00 74 56 80 0D 03 02 00 00 00 00 45 [17:34:41]Write i2c OK [17:34:41]MH_I2C_Read... [17:34:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:41]Read from MH i2c: E2 [17:34:41]MH_I2C_Read... [17:34:41]Read from MH i2c: E2 0B 00 [17:34:41]MH_I2C_Read... [17:34:41]Read from MH i2c: E2 0B 00 74 56 00 F8 E4 21 B7 48 07 04 35 90 00 82 [17:34:41]RAPDU: F8 E4 21 B7 48 07 04 35 90 00 [17:34:41]wFMCommunicate OK [17:34:41]SAM_PROTO_SignData done [17:34:41]FM_MakeSignedData done [17:34:41]CreateOFDProtocolMessage [17:34:41]wFMCommunicate request_size=4 [17:34:41]MH_SAM_APDU [17:34:41]CAPDU: 80 11 00 00 [17:34:41]Write to MH i2c: E2 08 00 75 56 80 11 00 00 00 00 00 00 45 [17:34:41]Write i2c OK [17:34:41]MH_I2C_Read... [17:34:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:41]Read from MH i2c: E2 [17:34:41]MH_I2C_Read... [17:34:41]Read from MH i2c: E2 17 00 [17:34:41]MH_I2C_Read... [17:34:41]Read from MH i2c: E2 17 00 75 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 90 [17:34:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:34:41]wFMCommunicate OK [17:34:41]CreateOFDProtocolMessage done [17:34:41]OFDSenderStorePacket 49504 [17:34:41]StoreOFDPacket docnum=49504 [17:34:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 33 01 00 00 C5 0A 2B 01 86 C1 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 B6 8D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 60 C1 00 00 35 04 06 00 2A E7 BA BA C2 C2 F8 E4 21 B7 48 07 04 35 [17:34:41]CheckFolder [17:34:41]dirname=/storage/ofd_packets [17:34:41]CheckFolder done [17:34:41]ProducePacketName [17:34:41]name=ofd_packets/00049504 [17:34:41]NVStorageSaveData ofd_packets/00049504 [17:34:41]File name is /storage/ofd_packets/00049504 [17:34:41]Write 337 bytes [17:34:41]NVStorageSaveData done [17:34:41]OFDSenderStorePacket done [17:34:41]KKMCreateOFDPacket done [17:34:41]NVStorageSaveData kkm_last_timestamp [17:34:41]File name is /storage/kkm_last_timestamp [17:34:41]Write 4 bytes [17:34:41]NVStorageSaveData done [17:34:41]ExternCall_PrintAddStr [17:34:41]wPrintStart [17:34:41]Write to MH i2c: 01 00 00 76 56 CC [17:34:41]Write i2c OK [17:34:41]MH_I2C_Read... [17:34:41]Read from MH i2c: 01 [17:34:41]MH_I2C_Read... [17:34:41]Read from MH i2c: 01 07 00 [17:34:41]MH_I2C_Read... [17:34:41]Read from MH i2c: 01 07 00 76 56 00 00 00 00 00 FF 0F E1 [17:34:41]RasterBufferAndPrint [17:34:41]line Счет N : (3)189713 [17:34:41]line ИНН: 02508201610067 [17:34:41]line Контрольно-Кассовый Чек [17:34:41]line ПРОДАЖА [17:34:41]line Товар: 5449000176448 [17:34:41]line Сок Piko Pulpy апельсин ПЭТ 1л [17:34:41]line 1.000 * 155.00 [17:34:41]line = 155.00 [17:34:41]line НДС 12% НСП 1% [17:34:41]line > о реализуемом товаре [17:34:41]line ИТОГО: 155.00 [17:34:41]line НСП 1% : 1.37 [17:34:41]line НДС 12% : 16.46 [17:34:41]line Наличными: 155.00 [17:34:41]line Безнал.: 0.00 [17:34:41]line Место: АЗС № 95 "Партнер Нефть" [17:34:41]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:34:41]line СНО: Общий режим [17:34:41]line Чек 152 16.08.2024 17:34 [17:34:41]line Смена: 464 ФФД: 1.0 [17:34:41]line ЗНМ: 0300000078 [17:34:41]line РНМ: 0000000000092546 [17:34:41]line Версия ККМ: 001 [17:34:41]line ФМ: 0000000000871800 [17:34:41]line ФД: 49504 [17:34:41]line ФПД: 47174758613698 [17:34:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T173446&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49504&fm=47174758613698&tin=02508201610067®Number=0000000000092546&sum=15500 [17:34:42]line 0 [17:34:42]OFD Sender: Processing packet 49504 [packets to send 21, broken 20] [17:34:42]ProducePacketName [17:34:42]name=ofd_packets/00049504 [17:34:42]OFD Sender: To server: pG, [17:34:42]CommunicateWithHost lk.salyk.kg:30040 [17:34:42]ConnectInit lk.salyk.kg [17:34:42]written 0, free lines is 4095 [17:34:42]Connected sock=10 [17:34:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 33 01 00 00 C5 0A 2B 01 86 C1 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 B6 8D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 60 C1 00 00 35 04 06 00 2A E7 BA BA C2 C2 F8 E4 21 B7 48 07 04 35 [17:34:42]Write to MH i2c: 01 00 00 9F 56 F5 [17:34:42]Write i2c OK [17:34:42]MH_I2C_Read... [17:34:42]Read from MH i2c: 01 [17:34:42]MH_I2C_Read... [17:34:42]Read from MH i2c: 01 07 00 [17:34:42]MH_I2C_Read... [17:34:42]Read from MH i2c: 01 07 00 9F 56 00 00 00 00 00 E7 0C EF [17:34:42]RasterBufferAndPrint [17:34:42]line [17:34:42]line [17:34:42]line [17:34:42]line [17:34:42]line [17:34:42]written 0, free lines is 3309 [17:34:42]MH_Cut [17:34:42]Write to MH i2c: D1 01 00 A6 56 01 CE [17:34:42]Write i2c OK [17:34:42]MH_I2C_Read... [17:34:42]Read from MH i2c: D1 [17:34:42]MH_I2C_Read... [17:34:42]Read from MH i2c: D1 01 00 [17:34:42]MH_I2C_Read... [17:34:42]Read from MH i2c: D1 01 00 A6 56 00 CD [17:34:42]Write to MH i2c: 01 00 00 A7 56 FD [17:34:42]Write i2c OK [17:34:42]MH_I2C_Read... [17:34:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 FA AC 47 00 5A 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 38 37 31 38 30 30 10 04 04 00 60 C1 00 00 F4 03 04 00 F5 38 BF 66 B6 04 01 00 00 E3 4E 4F B2 D2 E1 7E 15 [17:34:42]CommunicateWithHost err = 0 [17:34:42]CheckOFDResponse [17:34:42]1017 (14) - 77093643461234 [17:34:42]1041 (16) - 0000000000871800 [17:34:42]1040 (4) - 49504 [17:34:42]1012 (4) - 16.08.2024 11:33 [17:34:42]1206 (1) - 0 [17:34:42]OFD Sender: Remove packet 49504 [17:34:42]ProducePacketName [17:34:42]name=ofd_packets/00049504 [17:34:42]NVStorageDeleteData [17:34:43]OFD Sender: No OFD packet to send [17:34:43]*** Cut start [17:34:43]*** Purtial cut [17:34:43]*** CUTSNS_PIN = 0 [17:34:43]*** Stage 1: CUTSNS_PIN = 1 [17:34:45]Read from MH i2c: 01 [17:34:45]MH_I2C_Read... [17:34:45]*** Stop cut motor [17:34:45]*** Cut end [17:34:45]Read from MH i2c: 01 07 00 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: 01 07 00 A7 56 00 00 00 00 00 FF 0F 12 [17:34:45]process_action close_receipt done [17:34:45]requested_data is exist [17:34:45]produce_requested_data [17:34:45]requested_item fm.sn is exist - process it [17:34:45]wFMCommunicate request_size=4 [17:34:45]MH_SAM_APDU [17:34:45]CAPDU: 80 11 00 00 [17:34:45]Write to MH i2c: E2 08 00 A8 56 80 11 00 00 00 00 00 00 78 [17:34:45]Write i2c OK [17:34:45]MH_I2C_Read... [17:34:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:45]Read from MH i2c: E2 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: E2 17 00 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: E2 17 00 A8 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C3 [17:34:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:34:45]wFMCommunicate OK [17:34:45]requested_item fd.num is exist - process it [17:34:45]SAM_PROTO_GetFieldsCounters [17:34:45]wFMCommunicate request_size=4 [17:34:45]MH_SAM_APDU [17:34:45]CAPDU: 80 13 00 00 [17:34:45]Write to MH i2c: E2 08 00 A9 56 80 13 00 00 00 00 00 00 7B [17:34:45]Write i2c OK [17:34:45]MH_I2C_Read... [17:34:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:45]Read from MH i2c: E2 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: E2 62 00 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: E2 62 00 A9 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 60 C1 00 00 0E 04 04 00 D0 01 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 4F [17:34:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 60 C1 00 00 0E 04 04 00 D0 01 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 [17:34:45]wFMCommunicate OK [17:34:45]SAM_PROTO_GetFieldsCounters done [17:34:45]requested_item shift.num is exist - process it [17:34:45]requested_item shift.opened is exist - process it [17:34:45]req_shift_opened [17:34:45]FM_GetShiftState [17:34:45]SAM_PROTO_GetShiftState [17:34:45]wFMCommunicate request_size=4 [17:34:45]MH_SAM_APDU [17:34:45]CAPDU: 80 13 01 00 [17:34:45]Write to MH i2c: E2 08 00 AA 56 80 13 01 00 00 00 00 00 7D [17:34:45]Write i2c OK [17:34:45]MH_I2C_Read... [17:34:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:45]Read from MH i2c: E2 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: E2 0E 00 [17:34:45]MH_I2C_Read... [17:34:45]Read from MH i2c: E2 0E 00 AA 56 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 F3 [17:34:45]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [17:34:45]wFMCommunicate OK [17:34:45]SAM_PROTO_GetShiftState done [17:34:45]FM_GetShiftState done [17:34:45]req_shift_opened done [17:34:45]requested_item shift.open_date is exist - process it [17:34:45]req_shift_open_date [17:34:45]req_shift_open_date done [17:34:45]produce_requested_data done [17:34:45]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49504,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [17:34:45]process_action_free close_receipt [17:34:45]json_value_free [17:34:45]json_value_free done [17:34:45]process_json_proto returns [17:34:45]Send response to host [17:34:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49504,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [17:34:45]free response buf [17:34:45]execute_script done [17:34:45]execute_script returns [17:34:45]free content buf [17:34:45]Sock 9.Close socket [17:34:45]Sock 9.Thread stoped [17:34:48]OFD Sender: No OFD packet to send [17:34:53]OFD Sender: No OFD packet to send [17:34:58]OFD Sender: No OFD packet to send [17:35:01]accept exits with 7 [17:35:01]New connection [17:35:01]New thread 3066973540 created [17:35:01]Thread 3066830180 joined [17:35:01]Waiting for new connection... [17:35:01] Sock 7.Parse request [17:35:01]Sock 7.Check first char [17:35:01]Sock 7.First char is OK [17:35:01]request: POST /json_proto HTTP/1.0 [17:35:01]Method: POST [17:35:01]URL: /json_proto [17:35:01]Method is POST - this is cgi request [17:35:01]url: /json_proto [17:35:01]query_string will be loaded in cgi processing [17:35:01]execute_cgi json_proto POST (null) [17:35:01]execute_cgi path=json_proto method=POST [17:35:01]POST find Content-Length [17:35:01]Host: 172.17.46.196:8080 [17:35:01]Content-Length: 655 [17:35:01]Content-Type: application/json [17:35:01] [17:35:01]POST finish read [17:35:01]Found Content-Length = 655 [17:35:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189714", "tax_sys" : 0, "items" : [ { "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:01]execute_script... [17:35: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 : (3)189714", "tax_sys" : 0, "items" : [ { "code": "4860019001414", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,75\u043B \u041F\u042D\u0422", "price" : 135.00, "quantity" : 1.000, "sum" : 135.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:35:01]POST & json_proto [17:35:01]process_json_proto [17:35:01]json parsed OK: [17:35:01]protocol is kg_v1.0 [17:35:01]action value=close_receipt [17:35:01]process_action close_receipt [17:35:01]cmd_close_receipt [17:35:01]MH_GetDate [17:35:01]Write to MH i2c: F0 00 00 AB 56 F0 [17:35:01]Write i2c OK [17:35:01]MH_I2C_Read... [17:35:01]Read from MH i2c: F0 [17:35:01]MH_I2C_Read... [17:35:01]Read from MH i2c: F0 09 00 [17:35:01]MH_I2C_Read... [17:35:01]Read from MH i2c: F0 09 00 AB 56 00 CB 8D BF 66 07 E8 5D 66 28 [17:35:01]GetLastDocTimeStamp 1723829686 [17:35:01]current date 1723829707 [17:35:01]FM_GetShiftState [17:35:01]SAM_PROTO_GetShiftState [17:35:01]wFMCommunicate request_size=4 [17:35:01]MH_SAM_APDU [17:35:01]CAPDU: 80 13 01 00 [17:35:01]Write to MH i2c: E2 08 00 AC 56 80 13 01 00 00 00 00 00 7F [17:35:01]Write i2c OK [17:35:01]MH_I2C_Read... [17:35:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:01]Read from MH i2c: E2 [17:35:01]MH_I2C_Read... [17:35:01]Read from MH i2c: E2 0E 00 [17:35:01]MH_I2C_Read... [17:35:01]Read from MH i2c: E2 0E 00 AC 56 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 F5 [17:35:01]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [17:35:01]wFMCommunicate OK [17:35:01]SAM_PROTO_GetShiftState done [17:35:01]FM_GetShiftState done [17:35:01]opened in 1723766958 [17:35:01]opened+sec_in_day 1723853358 [17:35:01]quantity*price = 13500 [17:35:01]sum+1 = 13501 [17:35:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 135.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 153 16.08.2024 17:35 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49505 ФПД: 16470094641143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T173507&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49505&fm=16470094641143&tin=02508201610067®Number=0000000000092546&sum=13500 0 [17:35:02]StoreToDocumentArchive [17:35:02]shift 464 fd 49505 [17:35:02]save to /storage/0464/doc_00049505 [17:35:02]save last doc name /storage/0464/doc_00049505 to /storage/kkm_last_doc_name [17:35:02]save OK [17:35:02]Clear old archive folders... [17:35:02]ProcessDocumentItem done err = 0, tmpTLVsize=279 [17:35:02]tlvbuf is 00E14AF0 [17:35:02]SAM_PROTO_ClearQueue [17:35:02]wFMCommunicate request_size=4 [17:35:02]MH_SAM_APDU [17:35:02]CAPDU: 80 09 00 00 [17:35:02]Write to MH i2c: E2 08 00 B9 56 80 09 00 00 00 00 00 00 81 [17:35:02]Write i2c OK [17:35:02]MH_I2C_Read... [17:35:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:35:02]Read from MH i2c: E2 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 03 00 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 03 00 B9 56 00 90 00 83 [17:35:02]RAPDU: 90 00 [17:35:02]wFMCommunicate OK [17:35:02]SAM_PROTO_ClearQueue done [17:35:02]KKMCreateOFDPacket [17:35:02]OFDProtocolAddRootSTLVToBuf [17:35:02]FM_MakeSignedData [17:35:02]FM_MakeSignedData [17:35:02]SAM_PROTO_SignData [17:35:02]wFMCommunicate request_size=4 [17:35:02]MH_SAM_APDU [17:35:02]CAPDU: 80 0D 01 02 [17:35:02]Write to MH i2c: E2 08 00 BA 56 80 0D 01 02 00 00 00 00 89 [17:35:02]Write i2c OK [17:35:02]MH_I2C_Read... [17:35:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:35:02]Read from MH i2c: E2 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 03 00 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 03 00 BA 56 00 90 00 84 [17:35:02]RAPDU: 90 00 [17:35:02]wFMCommunicate OK [17:35:02]wFMCommunicate request_size=255 [17:35:02]MH_SAM_APDU [17:35:02]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 CB 8D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 [17:35:02]Write to MH i2c: E2 02 01 BB 56 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 CB 8D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 00 00 DF [17:35:02]Write i2c OK [17:35:02]MH_I2C_Read... [17:35:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:02]Read from MH i2c: E2 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 03 00 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 03 00 BB 56 00 90 00 85 [17:35:02]RAPDU: 90 00 [17:35:02]wFMCommunicate OK [17:35:02]wFMCommunicate request_size=38 [17:35:02]MH_SAM_APDU [17:35:02]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 61 C1 00 00 35 04 06 00 0E FA BE 23 F7 F7 [17:35:02]Write to MH i2c: E2 29 00 BC 56 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 61 C1 00 00 35 04 06 00 0E FA BE 23 F7 F7 00 00 06 [17:35:02]Write i2c OK [17:35:02]MH_I2C_Read... [17:35:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:35:02]Read from MH i2c: E2 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 03 00 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 03 00 BC 56 00 90 00 86 [17:35:02]RAPDU: 90 00 [17:35:02]wFMCommunicate OK [17:35:02]wFMCommunicate request_size=4 [17:35:02]MH_SAM_APDU [17:35:02]CAPDU: 80 0D 03 02 [17:35:02]Write to MH i2c: E2 08 00 BD 56 80 0D 03 02 00 00 00 00 8E [17:35:02]Write i2c OK [17:35:02]MH_I2C_Read... [17:35:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:35:02]Read from MH i2c: E2 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 0B 00 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 0B 00 BD 56 00 7C 0D A4 AB CA DB 97 9F 90 00 42 [17:35:02]RAPDU: 7C 0D A4 AB CA DB 97 9F 90 00 [17:35:02]wFMCommunicate OK [17:35:02]SAM_PROTO_SignData done [17:35:02]FM_MakeSignedData done [17:35:02]CreateOFDProtocolMessage [17:35:02]wFMCommunicate request_size=4 [17:35:02]MH_SAM_APDU [17:35:02]CAPDU: 80 11 00 00 [17:35:02]Write to MH i2c: E2 08 00 BE 56 80 11 00 00 00 00 00 00 8E [17:35:02]Write i2c OK [17:35:02]MH_I2C_Read... [17:35:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:02]Read from MH i2c: E2 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 17 00 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: E2 17 00 BE 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D9 [17:35:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:35:02]wFMCommunicate OK [17:35:02]CreateOFDProtocolMessage done [17:35:02]OFDSenderStorePacket 49505 [17:35:02]StoreOFDPacket docnum=49505 [17:35:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2B 01 00 00 0F 7D 23 01 FE A8 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 CB 8D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 61 C1 00 00 35 04 06 00 0E FA BE 23 F7 F7 7C 0D A4 AB CA DB 97 9F [17:35:02]CheckFolder [17:35:02]dirname=/storage/ofd_packets [17:35:02]CheckFolder done [17:35:02]ProducePacketName [17:35:02]name=ofd_packets/00049505 [17:35:02]NVStorageSaveData ofd_packets/00049505 [17:35:02]File name is /storage/ofd_packets/00049505 [17:35:02]Write 329 bytes [17:35:02]NVStorageSaveData done [17:35:02]OFDSenderStorePacket done [17:35:02]KKMCreateOFDPacket done [17:35:02]NVStorageSaveData kkm_last_timestamp [17:35:02]File name is /storage/kkm_last_timestamp [17:35:02]Write 4 bytes [17:35:02]NVStorageSaveData done [17:35:02]ExternCall_PrintAddStr [17:35:02]wPrintStart [17:35:02]Write to MH i2c: 01 00 00 BF 56 15 [17:35:02]Write i2c OK [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: 01 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: 01 07 00 [17:35:02]MH_I2C_Read... [17:35:02]Read from MH i2c: 01 07 00 BF 56 00 00 00 00 00 FF 0F 2A [17:35:02]RasterBufferAndPrint [17:35:02]line Счет N : (3)189714 [17:35:02]line ИНН: 02508201610067 [17:35:02]line Контрольно-Кассовый Чек [17:35:02]line ПРОДАЖА [17:35:02]line Товар: 4860019001414 [17:35:02]line Вода Боржоми 0,75л ПЭТ [17:35:02]line 1.000 * 135.00 [17:35:02]line = 135.00 [17:35:02]line НДС 12% НСП 1% [17:35:02]line > о реализуемом товаре [17:35:02]line ИТОГО: 135.00 [17:35:02]line НСП 1% : 1.19 [17:35:02]line НДС 12% : 14.34 [17:35:02]line Наличными: 135.00 [17:35:02]line Безнал.: 0.00 [17:35:02]line Место: АЗС № 95 "Партнер Нефть" [17:35:02]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:35:02]line СНО: Общий режим [17:35:02]line Чек 153 16.08.2024 17:35 [17:35:02]line Смена: 464 ФФД: 1.0 [17:35:02]line ЗНМ: 0300000078 [17:35:02]line РНМ: 0000000000092546 [17:35:02]line Версия ККМ: 001 [17:35:02]line ФМ: 0000000000871800 [17:35:02]line ФД: 49505 [17:35:02]line ФПД: 16470094641143 [17:35:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T173507&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49505&fm=16470094641143&tin=02508201610067®Number=0000000000092546&sum=13500 [17:35:03]OFD Sender: Processing packet 49505 [packets to send 21, broken 20] [17:35:03]ProducePacketName [17:35:03]name=ofd_packets/00049505 [17:35:03]OFD Sender: To server: pG, [17:35:03]CommunicateWithHost lk.salyk.kg:30040 [17:35:03]ConnectInit lk.salyk.kg [17:35:03]line 0 [17:35:03]written 0, free lines is 4095 [17:35:03]Connected sock=9 [17:35:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2B 01 00 00 0F 7D 23 01 FE A8 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 34 31 34 06 04 25 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 37 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 BC 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 CB 8D BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 61 C1 00 00 35 04 06 00 0E FA BE 23 F7 F7 7C 0D A4 AB CA DB 97 9F [17:35:03]Write to MH i2c: 01 00 00 E7 56 3D [17:35:03]Write i2c OK [17:35:03]MH_I2C_Read... [17:35:03]Read from MH i2c: 01 [17:35:03]MH_I2C_Read... [17:35:03]Read from MH i2c: 01 07 00 [17:35:03]MH_I2C_Read... [17:35:03]Read from MH i2c: 01 07 00 E7 56 00 00 00 00 00 FB 0C 4B [17:35:03]RasterBufferAndPrint [17:35:03]line [17:35:03]line [17:35:03]line [17:35:03]line [17:35:03]line [17:35:03]written 0, free lines is 3332 [17:35:03]MH_Cut [17:35:03]Write to MH i2c: D1 01 00 EE 56 01 16 [17:35:03]Write i2c OK [17:35:03]MH_I2C_Read... [17:35:03]Read from MH i2c: D1 [17:35:03]MH_I2C_Read... [17:35:03]Read from MH i2c: D1 01 00 [17:35:03]MH_I2C_Read... [17:35:03]Read from MH i2c: D1 01 00 EE 56 00 15 [17:35:03]Write to MH i2c: 01 00 00 EF 56 45 [17:35:03]Write i2c OK [17:35:03]MH_I2C_Read... [17:35:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 78 90 47 00 A6 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 38 37 31 38 30 30 10 04 04 00 61 C1 00 00 F4 03 04 00 09 39 BF 66 B6 04 01 00 00 BD 93 B8 17 1F 4B CA CA [17:35:03]CommunicateWithHost err = 0 [17:35:03]CheckOFDResponse [17:35:03]1017 (14) - 77093643461234 [17:35:03]1041 (16) - 0000000000871800 [17:35:03]1040 (4) - 49505 [17:35:03]1012 (4) - 16.08.2024 11:33 [17:35:03]1206 (1) - 0 [17:35:03]OFD Sender: Remove packet 49505 [17:35:03]ProducePacketName [17:35:03]name=ofd_packets/00049505 [17:35:03]NVStorageDeleteData [17:35:04]OFD Sender: No OFD packet to send [17:35:04]*** Cut start [17:35:04]*** Purtial cut [17:35:04]*** Stage 1: CUTSNS_PIN = 1 [17:35:04]Read from MH i2c: 01 [17:35:04]MH_I2C_Read... [17:35:04]*** Stop cut motor [17:35:04]*** Cut end [17:35:04]Read from MH i2c: 01 07 00 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: 01 07 00 EF 56 00 00 00 00 00 FF 0F 5A [17:35:04]process_action close_receipt done [17:35:04]requested_data is exist [17:35:04]produce_requested_data [17:35:04]requested_item fm.sn is exist - process it [17:35:04]wFMCommunicate request_size=4 [17:35:04]MH_SAM_APDU [17:35:04]CAPDU: 80 11 00 00 [17:35:04]Write to MH i2c: E2 08 00 F0 56 80 11 00 00 00 00 00 00 C0 [17:35:04]Write i2c OK [17:35:04]MH_I2C_Read... [17:35:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:35:04]Read from MH i2c: E2 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 17 00 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 17 00 F0 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 0B [17:35:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:35:04]wFMCommunicate OK [17:35:04]requested_item fd.num is exist - process it [17:35:04]SAM_PROTO_GetFieldsCounters [17:35:04]wFMCommunicate request_size=4 [17:35:04]MH_SAM_APDU [17:35:04]CAPDU: 80 13 00 00 [17:35:04]Write to MH i2c: E2 08 00 F1 56 80 13 00 00 00 00 00 00 C3 [17:35:04]Write i2c OK [17:35:04]MH_I2C_Read... [17:35:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:35:04]Read from MH i2c: E2 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 62 00 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 62 00 F1 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 61 C1 00 00 0E 04 04 00 D0 01 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 9B [17:35:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 61 C1 00 00 0E 04 04 00 D0 01 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:35:04]wFMCommunicate OK [17:35:04]SAM_PROTO_GetFieldsCounters done [17:35:04]requested_item shift.num is exist - process it [17:35:04]requested_item shift.opened is exist - process it [17:35:04]req_shift_opened [17:35:04]FM_GetShiftState [17:35:04]SAM_PROTO_GetShiftState [17:35:04]wFMCommunicate request_size=4 [17:35:04]MH_SAM_APDU [17:35:04]CAPDU: 80 13 01 00 [17:35:04]Write to MH i2c: E2 08 00 F2 56 80 13 01 00 00 00 00 00 C5 [17:35:04]Write i2c OK [17:35:04]MH_I2C_Read... [17:35:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:35:04]Read from MH i2c: E2 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 0E 00 [17:35:04]MH_I2C_Read... [17:35:04]Read from MH i2c: E2 0E 00 F2 56 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 3B [17:35:04]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [17:35:04]wFMCommunicate OK [17:35:04]SAM_PROTO_GetShiftState done [17:35:04]FM_GetShiftState done [17:35:04]req_shift_opened done [17:35:04]requested_item shift.open_date is exist - process it [17:35:04]req_shift_open_date [17:35:04]req_shift_open_date done [17:35:04]produce_requested_data done [17:35:04]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49505,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [17:35:04]process_action_free close_receipt [17:35:04]json_value_free [17:35:04]json_value_free done [17:35:04]process_json_proto returns [17:35:04]Send response to host [17:35:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49505,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [17:35:04]free response buf [17:35:04]execute_script done [17:35:04]execute_script returns [17:35:04]free content buf [17:35:04]Sock 7.Close socket [17:35:04]Sock 7.Thread stoped [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:34]OFD Sender: No OFD packet to send [17:38:39]OFD Sender: No OFD packet to send [17:38:44]OFD Sender: No OFD packet to send [17:38:49]OFD Sender: No OFD packet to send [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:36]accept exits with 10 [17:39:36]New connection [17:39:36]New thread 3066830180 created [17:39:36]Thread 3066973540 joined [17:39:36]Waiting for new connection... [17:39:36] Sock 10.Parse request [17:39:36]Sock 10.Check first char [17:39:36]Sock 10.First char is OK [17:39:36]request: POST /json_proto HTTP/1.0 [17:39:36]Method: POST [17:39:36]URL: /json_proto [17:39:36]Method is POST - this is cgi request [17:39:36]url: /json_proto [17:39:36]query_string will be loaded in cgi processing [17:39:36]execute_cgi json_proto POST (null) [17:39:36]execute_cgi path=json_proto method=POST [17:39:36]POST find Content-Length [17:39:36]Host: 172.17.46.196:8080 [17:39:36]Content-Length: 623 [17:39:36]Content-Type: application/json [17:39:36] [17:39:36]POST finish read [17:39:36]Found Content-Length = 623 [17:39:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189715", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:36]execute_script... [17:39:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189715", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:36]POST & json_proto [17:39:36]process_json_proto [17:39:36]json parsed OK: [17:39:36]protocol is kg_v1.0 [17:39:36]action value=close_receipt [17:39:36]process_action close_receipt [17:39:36]cmd_close_receipt [17:39:36]MH_GetDate [17:39:36]Write to MH i2c: F0 00 00 F3 56 38 [17:39:36]Write i2c OK [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: F0 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: F0 09 00 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: F0 09 00 F3 56 00 DE 8E BF 66 07 E8 5D 66 84 [17:39:36]GetLastDocTimeStamp 1723829707 [17:39:36]current date 1723829982 [17:39:36]FM_GetShiftState [17:39:36]SAM_PROTO_GetShiftState [17:39:36]wFMCommunicate request_size=4 [17:39:36]MH_SAM_APDU [17:39:36]CAPDU: 80 13 01 00 [17:39:36]Write to MH i2c: E2 08 00 F4 56 80 13 01 00 00 00 00 00 C7 [17:39:36]Write i2c OK [17:39:36]MH_I2C_Read... [17:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:36]Read from MH i2c: E2 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 0E 00 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 0E 00 F4 56 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 3D [17:39:36]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [17:39:36]wFMCommunicate OK [17:39:36]SAM_PROTO_GetShiftState done [17:39:36]FM_GetShiftState done [17:39:36]opened in 1723766958 [17:39:36]opened+sec_in_day 1723853358 [17:39:36]quantity*price = 14000 [17:39:36]sum+1 = 14001 [17:39:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 154 16.08.2024 17:39 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49506 ФПД: 245717598591099 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T173942&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49506&fm=245717598591099&tin=02508201610067®Number=0000000000092546&sum=14000 0 [17:39:37]StoreToDocumentArchive [17:39:37]shift 464 fd 49506 [17:39:37]save to /storage/0464/doc_00049506 [17:39:37]save last doc name /storage/0464/doc_00049506 to /storage/kkm_last_doc_name [17:39:37]save OK [17:39:37]Clear old archive folders... [17:39:37]ProcessDocumentItem done err = 0, tmpTLVsize=275 [17:39:37]tlvbuf is 00E45EC0 [17:39:37]SAM_PROTO_ClearQueue [17:39:37]wFMCommunicate request_size=4 [17:39:37]MH_SAM_APDU [17:39:37]CAPDU: 80 09 00 00 [17:39:37]Write to MH i2c: E2 08 00 01 57 80 09 00 00 00 00 00 00 CA [17:39:37]Write i2c OK [17:39:37]MH_I2C_Read... [17:39:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:37]Read from MH i2c: E2 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 03 00 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 03 00 01 57 00 90 00 CC [17:39:37]RAPDU: 90 00 [17:39:37]wFMCommunicate OK [17:39:37]SAM_PROTO_ClearQueue done [17:39:37]KKMCreateOFDPacket [17:39:37]OFDProtocolAddRootSTLVToBuf [17:39:37]FM_MakeSignedData [17:39:37]FM_MakeSignedData [17:39:37]SAM_PROTO_SignData [17:39:37]wFMCommunicate request_size=4 [17:39:37]MH_SAM_APDU [17:39:37]CAPDU: 80 0D 01 02 [17:39:37]Write to MH i2c: E2 08 00 02 57 80 0D 01 02 00 00 00 00 D2 [17:39:37]Write i2c OK [17:39:37]MH_I2C_Read... [17:39:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:37]Read from MH i2c: E2 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 03 00 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 03 00 02 57 00 90 00 CD [17:39:37]RAPDU: 90 00 [17:39:37]wFMCommunicate OK [17:39:37]wFMCommunicate request_size=255 [17:39:37]MH_SAM_APDU [17:39:37]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 DE 8E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [17:39:37]Write to MH i2c: E2 02 01 03 57 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 DE 8E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 5F [17:39:37]Write i2c OK [17:39:37]MH_I2C_Read... [17:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:37]Read from MH i2c: E2 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 03 00 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 03 00 03 57 00 90 00 CE [17:39:37]RAPDU: 90 00 [17:39:37]wFMCommunicate OK [17:39:37]wFMCommunicate request_size=34 [17:39:37]MH_SAM_APDU [17:39:37]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 62 C1 00 00 35 04 06 00 DF 7A 96 2D D8 7B [17:39:37]Write to MH i2c: E2 25 00 04 57 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 62 C1 00 00 35 04 06 00 DF 7A 96 2D D8 7B 00 00 20 [17:39:37]Write i2c OK [17:39:37]MH_I2C_Read... [17:39:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:37]Read from MH i2c: E2 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 03 00 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 03 00 04 57 00 90 00 CF [17:39:37]RAPDU: 90 00 [17:39:37]wFMCommunicate OK [17:39:37]wFMCommunicate request_size=4 [17:39:37]MH_SAM_APDU [17:39:37]CAPDU: 80 0D 03 02 [17:39:37]Write to MH i2c: E2 08 00 05 57 80 0D 03 02 00 00 00 00 D7 [17:39:37]Write i2c OK [17:39:37]MH_I2C_Read... [17:39:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:37]Read from MH i2c: E2 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 0B 00 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 0B 00 05 57 00 03 2F 29 3A EE 9B 5B 93 90 00 E4 [17:39:37]RAPDU: 03 2F 29 3A EE 9B 5B 93 90 00 [17:39:37]wFMCommunicate OK [17:39:37]SAM_PROTO_SignData done [17:39:37]FM_MakeSignedData done [17:39:37]CreateOFDProtocolMessage [17:39:37]wFMCommunicate request_size=4 [17:39:37]MH_SAM_APDU [17:39:37]CAPDU: 80 11 00 00 [17:39:37]Write to MH i2c: E2 08 00 06 57 80 11 00 00 00 00 00 00 D7 [17:39:37]Write i2c OK [17:39:37]MH_I2C_Read... [17:39:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:37]Read from MH i2c: E2 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 17 00 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: E2 17 00 06 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 22 [17:39:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:39:37]wFMCommunicate OK [17:39:37]CreateOFDProtocolMessage done [17:39:37]OFDSenderStorePacket 49506 [17:39:37]StoreOFDPacket docnum=49506 [17:39:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 7D F5 1F 01 9D 38 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 DE 8E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 62 C1 00 00 35 04 06 00 DF 7A 96 2D D8 7B 03 2F 29 3A EE 9B 5B 93 [17:39:37]CheckFolder [17:39:37]dirname=/storage/ofd_packets [17:39:37]CheckFolder done [17:39:37]ProducePacketName [17:39:37]name=ofd_packets/00049506 [17:39:37]NVStorageSaveData ofd_packets/00049506 [17:39:37]File name is /storage/ofd_packets/00049506 [17:39:37]Write 325 bytes [17:39:37]NVStorageSaveData done [17:39:37]OFDSenderStorePacket done [17:39:37]KKMCreateOFDPacket done [17:39:37]NVStorageSaveData kkm_last_timestamp [17:39:37]File name is /storage/kkm_last_timestamp [17:39:37]Write 4 bytes [17:39:37]NVStorageSaveData done [17:39:37]ExternCall_PrintAddStr [17:39:37]wPrintStart [17:39:37]Write to MH i2c: 01 00 00 07 57 5E [17:39:37]Write i2c OK [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: 01 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: 01 07 00 [17:39:37]MH_I2C_Read... [17:39:37]Read from MH i2c: 01 07 00 07 57 00 00 00 00 00 FF 0F 73 [17:39:37]RasterBufferAndPrint [17:39:37]line Счет N : (3)189715 [17:39:37]line ИНН: 02508201610067 [17:39:37]line Контрольно-Кассовый Чек [17:39:37]line ПРОДАЖА [17:39:37]line Товар: 48743587 [17:39:37]line Сигареты Winston XStyle Silver [17:39:37]line 1.000 * 140.00 [17:39:37]line = 140.00 [17:39:37]line НДС 12% НСП 1% [17:39:37]line > о реализуемом товаре [17:39:37]line ИТОГО: 140.00 [17:39:37]line НСП 1% : 1.24 [17:39:37]line НДС 12% : 14.87 [17:39:37]line Наличными: 140.00 [17:39:37]line Безнал.: 0.00 [17:39:37]line Место: АЗС № 95 "Партнер Нефть" [17:39:37]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:39:37]line СНО: Общий режим [17:39:37]line Чек 154 16.08.2024 17:39 [17:39:37]line Смена: 464 ФФД: 1.0 [17:39:37]line ЗНМ: 0300000078 [17:39:37]line РНМ: 0000000000092546 [17:39:37]line Версия ККМ: 001 [17:39:37]line ФМ: 0000000000871800 [17:39:37]line ФД: 49506 [17:39:37]line ФПД: 245717598591099 [17:39:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T173942&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49506&fm=245717598591099&tin=02508201610067®Number=0000000000092546&sum=14000 [17:39:38]line 0 [17:39:38]OFD Sender: Processing packet 49506 [packets to send 21, broken 20] [17:39:38]ProducePacketName [17:39:38]name=ofd_packets/00049506 [17:39:38]OFD Sender: To server: pG, [17:39:38]CommunicateWithHost lk.salyk.kg:30040 [17:39:38]ConnectInit lk.salyk.kg [17:39:38]written 0, free lines is 4095 [17:39:38]Connected sock=9 [17:39:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 7D F5 1F 01 9D 38 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CF 05 00 00 00 00 07 04 06 00 B0 36 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 DE 8E BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 62 C1 00 00 35 04 06 00 DF 7A 96 2D D8 7B 03 2F 29 3A EE 9B 5B 93 [17:39:38]Write to MH i2c: 01 00 00 30 57 87 [17:39:38]Write i2c OK [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: 01 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: 01 07 00 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: 01 07 00 30 57 00 00 00 00 00 D7 0C 71 [17:39:38]RasterBufferAndPrint [17:39:38]line [17:39:38]line [17:39:38]line [17:39:38]line [17:39:38]line [17:39:38]written 0, free lines is 3295 [17:39:38]MH_Cut [17:39:38]Write to MH i2c: D1 01 00 37 57 01 60 [17:39:38]Write i2c OK [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: D1 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: D1 01 00 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: D1 01 00 37 57 00 5F [17:39:38]Write to MH i2c: 01 00 00 38 57 8F [17:39:38]Write i2c OK [17:39:38]MH_I2C_Read... [17:39:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 97 BA 47 00 D9 CF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 62 C1 00 00 F4 03 04 00 1C 3A BF 66 B6 04 01 00 00 48 6F 93 2F 02 80 E8 A3 [17:39:38]CommunicateWithHost err = 0 [17:39:38]CheckOFDResponse [17:39:38]1017 (14) - 77093643461234 [17:39:38]1041 (16) - 0000000000871800 [17:39:38]1040 (4) - 49506 [17:39:38]1012 (4) - 16.08.2024 11:38 [17:39:38]1206 (1) - 0 [17:39:38]OFD Sender: Remove packet 49506 [17:39:38]ProducePacketName [17:39:38]name=ofd_packets/00049506 [17:39:38]NVStorageDeleteData [17:39:38]OFD Sender: No OFD packet to send [17:39:39]*** Cut start [17:39:39]*** Purtial cut [17:39:39]*** CUTSNS_PIN = 0 [17:39:39]*** Stage 1: CUTSNS_PIN = 1 [17:39:41]Read from MH i2c: 01 [17:39:41]MH_I2C_Read... [17:39:41]*** Stop cut motor [17:39:41]*** Cut end [17:39:41]Read from MH i2c: 01 07 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: 01 07 00 38 57 00 00 00 00 00 FF 0F A4 [17:39:41]process_action close_receipt done [17:39:41]requested_data is exist [17:39:41]produce_requested_data [17:39:41]requested_item fm.sn is exist - process it [17:39:41]wFMCommunicate request_size=4 [17:39:41]MH_SAM_APDU [17:39:41]CAPDU: 80 11 00 00 [17:39:41]Write to MH i2c: E2 08 00 39 57 80 11 00 00 00 00 00 00 0A [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 17 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 17 00 39 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 55 [17:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:39:41]wFMCommunicate OK [17:39:41]requested_item fd.num is exist - process it [17:39:41]SAM_PROTO_GetFieldsCounters [17:39:41]wFMCommunicate request_size=4 [17:39:41]MH_SAM_APDU [17:39:41]CAPDU: 80 13 00 00 [17:39:41]Write to MH i2c: E2 08 00 3A 57 80 13 00 00 00 00 00 00 0D [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 62 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 62 00 3A 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 62 C1 00 00 0E 04 04 00 D0 01 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 E9 [17:39:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 62 C1 00 00 0E 04 04 00 D0 01 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 [17:39:41]wFMCommunicate OK [17:39:41]SAM_PROTO_GetFieldsCounters done [17:39:41]requested_item shift.num is exist - process it [17:39:41]requested_item shift.opened is exist - process it [17:39:41]req_shift_opened [17:39:41]FM_GetShiftState [17:39:41]SAM_PROTO_GetShiftState [17:39:41]wFMCommunicate request_size=4 [17:39:41]MH_SAM_APDU [17:39:41]CAPDU: 80 13 01 00 [17:39:41]Write to MH i2c: E2 08 00 3B 57 80 13 01 00 00 00 00 00 0F [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 0E 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 0E 00 3B 57 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 85 [17:39:41]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [17:39:41]wFMCommunicate OK [17:39:41]SAM_PROTO_GetShiftState done [17:39:41]FM_GetShiftState done [17:39:41]req_shift_opened done [17:39:41]requested_item shift.open_date is exist - process it [17:39:41]req_shift_open_date [17:39:41]req_shift_open_date done [17:39:41]produce_requested_data done [17:39:41]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49506,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [17:39:41]process_action_free close_receipt [17:39:41]json_value_free [17:39:41]json_value_free done [17:39:41]process_json_proto returns [17:39:41]Send response to host [17:39:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49506,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [17:39:41]free response buf [17:39:41]execute_script done [17:39:41]execute_script returns [17:39:41]free content buf [17:39:41]Sock 10.Close socket [17:39:41]Sock 10.Thread stoped [17:39:44]OFD Sender: No OFD packet to send [17:39:49]OFD Sender: No OFD packet to send [17:39:54]OFD Sender: No OFD packet to send [17:39:59]OFD Sender: No OFD packet to send [17:40:04]OFD Sender: No OFD packet to send [17:40:09]OFD Sender: No OFD packet to send [17:40:14]OFD Sender: No OFD packet to send [17:40:19]OFD Sender: No OFD packet to send [17:40:24]OFD Sender: No OFD packet to send [17:43:11]ConnectInit Can't connect to host [17:43:14]OFD Sender: No OFD packet to send [17:43:19]OFD Sender: No OFD packet to send [17:43:24]OFD Sender: No OFD packet to send [17:43:29]OFD Sender: No OFD packet to send [17:43:34]OFD Sender: No OFD packet to send [17:43:39]OFD Sender: No OFD packet to send [17:43:44]OFD Sender: No OFD packet to send [17:43:49]OFD Sender: No OFD packet to send [17:43:54]OFD Sender: No OFD packet to send [17:43:59]OFD Sender: No OFD packet to send [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]OFD Sender: No OFD packet to send [17:45:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:09]OFD Sender: No OFD packet to send [17:46:14]OFD Sender: No OFD packet to send [17:46:19]OFD Sender: No OFD packet to send [17:46:24]OFD Sender: No OFD packet to send [17:46:29]OFD Sender: No OFD packet to send [17:46:34]OFD Sender: No OFD packet to send [17:46:39]OFD Sender: No OFD packet to send [17:46:44]OFD Sender: No OFD packet to send [17:46:49]OFD Sender: No OFD packet to send [17:46:54]OFD Sender: No OFD packet to send [17:46:59]OFD Sender: No OFD packet to send [17:47:04]OFD Sender: No OFD packet to send [17:47:09]OFD Sender: No OFD packet to send [17:47:14]OFD Sender: No OFD packet to send [17:47:19]OFD Sender: No OFD packet to send [17:47:24]OFD Sender: No OFD packet to send [17:47:29]OFD Sender: No OFD packet to send [17:47:34]OFD Sender: No OFD packet to send [17:47:39]OFD Sender: No OFD packet to send [17:47:44]OFD Sender: No OFD packet to send [17:47:49]OFD Sender: No OFD packet to send [17:47:54]OFD Sender: No OFD packet to send [17:47:59]OFD Sender: No OFD packet to send [17:48:04]OFD Sender: No OFD packet to send [17:48:09]OFD Sender: No OFD packet to send [17:48:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:50:04]OFD Sender: No OFD packet to send [17:50:09]OFD Sender: No OFD packet to send [17:50:14]OFD Sender: No OFD packet to send [17:50:19]OFD Sender: No OFD packet to send [17:50:24]OFD Sender: No OFD packet to send [17:50:29]OFD Sender: No OFD packet to send [17:50:34]OFD Sender: No OFD packet to send [17:50:39]OFD Sender: No OFD packet to send [17:50:44]OFD Sender: No OFD packet to send [17:50:49]OFD Sender: No OFD packet to send [17:50:54]OFD Sender: No OFD packet to send [17:50:59]OFD Sender: No OFD packet to send [17:51:04]OFD Sender: No OFD packet to send [17:51:09]OFD Sender: No OFD packet to send [17:51:14]OFD Sender: No OFD packet to send [17:51:19]OFD Sender: No OFD packet to send [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:39]OFD Sender: No OFD packet to send [17:51:44]OFD Sender: No OFD packet to send [17:51:49]OFD Sender: No OFD packet to send [17:51:54]OFD Sender: No OFD packet to send [17:51:59]OFD Sender: No OFD packet to send [17:52:04]OFD Sender: No OFD packet to send [17:52:09]OFD Sender: No OFD packet to send [17:52:14]OFD Sender: No OFD packet to send [17:52:19]OFD Sender: No OFD packet to send [17:52:24]OFD Sender: No OFD packet to send [17:52:29]OFD Sender: No OFD packet to send [17:52:34]OFD Sender: No OFD packet to send [17:52:39]OFD Sender: No OFD packet to send [17:52:44]OFD Sender: No OFD packet to send [17:52:49]OFD Sender: No OFD packet to send [17:52:54]OFD Sender: No OFD packet to send [17:52:59]OFD Sender: No OFD packet to send [17:53:04]OFD Sender: No OFD packet to send [17:53:09]OFD Sender: No OFD packet to send [17:53:14]OFD Sender: No OFD packet to send [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:49]OFD Sender: No OFD packet to send [17:53:54]OFD Sender: No OFD packet to send [17:53:59]OFD Sender: No OFD packet to send [17:54:04]OFD Sender: No OFD packet to send [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:59]OFD Sender: No OFD packet to send [17:55:04]OFD Sender: No OFD packet to send [17:55:09]OFD Sender: No OFD packet to send [17:55:14]OFD Sender: No OFD packet to send [17:55:19]OFD Sender: No OFD packet to send [17:55:24]OFD Sender: No OFD packet to send [17:55:29]OFD Sender: No OFD packet to send [17:55:34]OFD Sender: No OFD packet to send [17:55:39]OFD Sender: No OFD packet to send [17:55:44]OFD Sender: No OFD packet to send [17:55:49]OFD Sender: No OFD packet to send [17:55:54]OFD Sender: No OFD packet to send [17:55:59]OFD Sender: No OFD packet to send [17:56:04]OFD Sender: No OFD packet to send [17:56:09]OFD Sender: No OFD packet to send [17:56:14]OFD Sender: No OFD packet to send [17:56:19]OFD Sender: No OFD packet to send [17:56:24]OFD Sender: No OFD packet to send [17:56:29]OFD Sender: No OFD packet to send [17:56:34]OFD Sender: No OFD packet to send [17:56:39]OFD Sender: No OFD packet to send [17:56:44]OFD Sender: No OFD packet to send [17:56:49]OFD Sender: No OFD packet to send [17:56:54]OFD Sender: No OFD packet to send [17:56:59]OFD Sender: No OFD packet to send [17:57:04]OFD Sender: No OFD packet to send [17:57:09]OFD Sender: No OFD packet to send [17:57:14]OFD Sender: No OFD packet to send [17:57:19]OFD Sender: No OFD packet to send [17:57:24]OFD Sender: No OFD packet to send [17:57:29]OFD Sender: No OFD packet to send [17:57:34]OFD Sender: No OFD packet to send [17:57:39]OFD Sender: No OFD packet to send [17:57:44]OFD Sender: No OFD packet to send [17:57:49]OFD Sender: No OFD packet to send [17:57:54]OFD Sender: No OFD packet to send [17:57:59]OFD Sender: No OFD packet to send [17:58:04]OFD Sender: No OFD packet to send [17:58:09]OFD Sender: No OFD packet to send [17:58:14]OFD Sender: No OFD packet to send [17:58:19]OFD Sender: No OFD packet to send [17:58:24]OFD Sender: No OFD packet to send [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:19]OFD Sender: No OFD packet to send [17:59:24]OFD Sender: No OFD packet to send [17:59:29]OFD Sender: No OFD packet to send [17:59:34]OFD Sender: No OFD packet to send [17:59:36]accept exits with 7 [17:59:36]New connection [17:59:36]New thread 3066973540 created [17:59:36]Thread 3066830180 joined [17:59:36]Waiting for new connection... [17:59:36] Sock 7.Parse request [17:59:36]Sock 7.Check first char [17:59:36]Sock 7.First char is OK [17:59:36]request: POST /json_proto HTTP/1.0 [17:59:36]Method: POST [17:59:36]URL: /json_proto [17:59:36]Method is POST - this is cgi request [17:59:36]url: /json_proto [17:59:36]query_string will be loaded in cgi processing [17:59:36]execute_cgi json_proto POST (null) [17:59:36]execute_cgi path=json_proto method=POST [17:59:36]POST find Content-Length [17:59:36]Host: 172.17.46.196:8080 [17:59:36]Content-Length: 1108 [17:59:36]Content-Type: application/json [17:59:36] [17:59:36]POST finish read [17:59:36]Found Content-Length = 1108 [17:59:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189716", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 380.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:36]execute_script... [17:59: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 : (3)189716", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 380.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:36]POST & json_proto [17:59:36]process_json_proto [17:59:36]json parsed OK: [17:59:36]protocol is kg_v1.0 [17:59:36]action value=close_receipt [17:59:36]process_action close_receipt [17:59:36]cmd_close_receipt [17:59:36]MH_GetDate [17:59:36]Write to MH i2c: F0 00 00 3C 57 82 [17:59:36]Write i2c OK [17:59:36]MH_I2C_Read... [17:59:36]Read from MH i2c: F0 [17:59:36]MH_I2C_Read... [17:59:36]Read from MH i2c: F0 09 00 [17:59:36]MH_I2C_Read... [17:59:36]Read from MH i2c: F0 09 00 3C 57 00 8F 93 BF 66 07 E8 5D 66 84 [17:59:36]GetLastDocTimeStamp 1723829982 [17:59:36]current date 1723831183 [17:59:36]FM_GetShiftState [17:59:36]SAM_PROTO_GetShiftState [17:59:36]wFMCommunicate request_size=4 [17:59:36]MH_SAM_APDU [17:59:36]CAPDU: 80 13 01 00 [17:59:36]Write to MH i2c: E2 08 00 3D 57 80 13 01 00 00 00 00 00 11 [17:59:36]Write i2c OK [17:59:36]MH_I2C_Read... [17:59:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:36]Read from MH i2c: E2 [17:59:36]MH_I2C_Read... [17:59:36]Read from MH i2c: E2 0E 00 [17:59:36]MH_I2C_Read... [17:59:36]Read from MH i2c: E2 0E 00 3D 57 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 87 [17:59:36]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [17:59:36]wFMCommunicate OK [17:59:36]SAM_PROTO_GetShiftState done [17:59:36]FM_GetShiftState done [17:59:36]opened in 1723766958 [17:59:36]opened+sec_in_day 1723853358 [17:59:36]quantity*price = 10000 [17:59:36]sum+1 = 10001 [17:59:36]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 380.00 НСП 1% : 3.36 НДС 12% : 40.36 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 155 16.08.2024 17:59 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49507 ФПД: 134849280584666 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T175943&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49507&fm=134849280584666&tin=02508201610067®Number=0000000000092546&sum=38000 0 [17:59:37]StoreToDocumentArchive [17:59:37]shift 464 fd 49507 [17:59:37]save to /storage/0464/doc_00049507 [17:59:37]save last doc name /storage/0464/doc_00049507 to /storage/kkm_last_doc_name [17:59:37]save OK [17:59:37]Clear old archive folders... [17:59:37]ProcessDocumentItem done err = 0, tmpTLVsize=477 [17:59:37]tlvbuf is 00E43730 [17:59:37]SAM_PROTO_ClearQueue [17:59:37]wFMCommunicate request_size=4 [17:59:37]MH_SAM_APDU [17:59:37]CAPDU: 80 09 00 00 [17:59:37]Write to MH i2c: E2 08 00 4A 57 80 09 00 00 00 00 00 00 13 [17:59:37]Write i2c OK [17:59:37]MH_I2C_Read... [17:59:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:59:37]Read from MH i2c: E2 [17:59:37]MH_I2C_Read... [17:59:37]Read from MH i2c: E2 03 00 [17:59:37]MH_I2C_Read... [17:59:37]Read from MH i2c: E2 03 00 4A 57 00 90 00 15 [17:59:37]RAPDU: 90 00 [17:59:37]wFMCommunicate OK [17:59:37]SAM_PROTO_ClearQueue done [17:59:37]KKMCreateOFDPacket [17:59:37]OFDProtocolAddRootSTLVToBuf [17:59:37]FM_MakeSignedData [17:59:37]FM_MakeSignedData [17:59:37]SAM_PROTO_SignData [17:59:37]wFMCommunicate request_size=4 [17:59:37]MH_SAM_APDU [17:59:37]CAPDU: 80 0D 01 02 [17:59:37]Write to MH i2c: E2 08 00 4B 57 80 0D 01 02 00 00 00 00 1B [17:59:37]Write i2c OK [17:59:37]MH_I2C_Read... [17:59:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:59:37]Read from MH i2c: E2 [17:59:37]MH_I2C_Read... [17:59:37]Read from MH i2c: E2 03 00 [17:59:37]MH_I2C_Read... [17:59:37]Read from MH i2c: E2 03 00 4B 57 00 90 00 16 [17:59:37]RAPDU: 90 00 [17:59:37]wFMCommunicate OK [17:59:37]wFMCommunicate request_size=255 [17:59:37]MH_SAM_APDU [17:59:37]CAPDU: 80 0D 02 02 FA 03 00 DD 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 [17:59:37]Write to MH i2c: E2 02 01 4C 57 80 0D 02 02 FA 00 03 00 DD 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 00 00 4C [17:59:38]Write i2c OK [17:59:38]MH_I2C_Read... [17:59:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:38]Read from MH i2c: E2 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: E2 03 00 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: E2 03 00 4C 57 00 90 00 17 [17:59:38]RAPDU: 90 00 [17:59:38]wFMCommunicate OK [17:59:38]wFMCommunicate request_size=236 [17:59:38]MH_SAM_APDU [17:59:38]CAPDU: 80 0D 02 02 E7 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 8F 93 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 63 C1 00 00 35 04 06 00 7A A5 0B 77 AB DA [17:59:38]Write to MH i2c: E2 EF 00 4D 57 80 0D 02 02 E7 00 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 8F 93 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 63 C1 00 00 35 04 06 00 7A A5 0B 77 AB DA 00 00 49 [17:59:38]Write i2c OK [17:59:38]MH_I2C_Read... [17:59:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:38]Read from MH i2c: E2 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: E2 03 00 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: E2 03 00 4D 57 00 90 00 18 [17:59:38]RAPDU: 90 00 [17:59:38]wFMCommunicate OK [17:59:38]wFMCommunicate request_size=4 [17:59:38]MH_SAM_APDU [17:59:38]CAPDU: 80 0D 03 02 [17:59:38]Write to MH i2c: E2 08 00 4E 57 80 0D 03 02 00 00 00 00 20 [17:59:38]Write i2c OK [17:59:38]MH_I2C_Read... [17:59:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:59:38]Read from MH i2c: E2 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: E2 0B 00 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: E2 0B 00 4E 57 00 97 0E 85 75 2C 16 EA 4E 90 00 3A [17:59:38]RAPDU: 97 0E 85 75 2C 16 EA 4E 90 00 [17:59:38]wFMCommunicate OK [17:59:38]SAM_PROTO_SignData done [17:59:38]FM_MakeSignedData done [17:59:38]CreateOFDProtocolMessage [17:59:38]wFMCommunicate request_size=4 [17:59:38]MH_SAM_APDU [17:59:38]CAPDU: 80 11 00 00 [17:59:38]Write to MH i2c: E2 08 00 4F 57 80 11 00 00 00 00 00 00 20 [17:59:38]Write i2c OK [17:59:38]MH_I2C_Read... [17:59:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:38]Read from MH i2c: E2 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: E2 17 00 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: E2 17 00 4F 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6B [17:59:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:59:38]wFMCommunicate OK [17:59:38]CreateOFDProtocolMessage done [17:59:38]OFDSenderStorePacket 49507 [17:59:38]StoreOFDPacket docnum=49507 [17:59:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 F1 01 00 00 EF 6F E9 01 BD 6B 5A 03 01 00 03 00 DD 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 8F 93 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 63 C1 00 00 35 04 06 00 7A A5 0B 77 AB DA 97 0E 85 75 2C 16 EA 4E [17:59:38]CheckFolder [17:59:38]dirname=/storage/ofd_packets [17:59:38]CheckFolder done [17:59:38]ProducePacketName [17:59:38]name=ofd_packets/00049507 [17:59:38]NVStorageSaveData ofd_packets/00049507 [17:59:38]File name is /storage/ofd_packets/00049507 [17:59:38]Write 527 bytes [17:59:38]NVStorageSaveData done [17:59:38]OFDSenderStorePacket done [17:59:38]KKMCreateOFDPacket done [17:59:38]NVStorageSaveData kkm_last_timestamp [17:59:38]File name is /storage/kkm_last_timestamp [17:59:38]Write 4 bytes [17:59:38]NVStorageSaveData done [17:59:38]ExternCall_PrintAddStr [17:59:38]wPrintStart [17:59:38]Write to MH i2c: 01 00 00 50 57 A7 [17:59:38]Write i2c OK [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: 01 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: 01 07 00 [17:59:38]MH_I2C_Read... [17:59:38]Read from MH i2c: 01 07 00 50 57 00 00 00 00 00 FF 0F BC [17:59:38]RasterBufferAndPrint [17:59:38]line Счет N : (3)189716 [17:59:38]line ИНН: 02508201610067 [17:59:38]line Контрольно-Кассовый Чек [17:59:38]line ПРОДАЖА [17:59:38]line Товар: 4700000160358 [17:59:38]line Вода Легенда 1л [17:59:38]line 2.000 * 50.00 [17:59:38]line = 100.00 [17:59:38]line НДС 12% НСП 1% [17:59:38]line > о реализуемом товаре [17:59:38]line Товар: 48743587 [17:59:38]line Сигареты Winston XStyle Silver [17:59:38]line 1.000 * 140.00 [17:59:38]line = 140.00 [17:59:38]line НДС 12% НСП 1% [17:59:38]line > о реализуемом товаре [17:59:38]line Товар: 48743570 [17:59:38]line Сигареты Winston XStyle Blue [17:59:38]line 1.000 * 140.00 [17:59:38]line = 140.00 [17:59:38]line НДС 12% НСП 1% [17:59:38]line > о реализуемом товаре [17:59:38]line ИТОГО: 380.00 [17:59:38]line НСП 1% : 3.36 [17:59:38]line НДС 12% : 40.36 [17:59:38]line Наличными: 380.00 [17:59:38]line Безнал.: 0.00 [17:59:38]line Место: АЗС № 95 "Партнер Нефть" [17:59:38]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:59:38]line СНО: Общий режим [17:59:38]line Чек 155 16.08.2024 17:59 [17:59:38]line Смена: 464 ФФД: 1.0 [17:59:38]line ЗНМ: 0300000078 [17:59:38]line РНМ: 0000000000092546 [17:59:38]line Версия ККМ: 001 [17:59:38]line ФМ: 0000000000871800 [17:59:38]line ФД: 49507 [17:59:38]line ФПД: 134849280584666 [17:59:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T175943&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49507&fm=134849280584666&tin=02508201610067®Number=0000000000092546&sum=38000 [17:59:38]line 0 [17:59:38]OFD Sender: Processing packet 49507 [packets to send 21, broken 20] [17:59:38]ProducePacketName [17:59:38]name=ofd_packets/00049507 [17:59:38]OFD Sender: To server: pG, [17:59:38]CommunicateWithHost lk.salyk.kg:30040 [17:59:38]ConnectInit lk.salyk.kg [17:59:38]written 0, free lines is 4095 [17:59:38]Connected sock=10 [17:59:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 F1 01 00 00 EF 6F E9 01 BD 6B 5A 03 01 00 03 00 DD 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 0F 00 00 00 00 07 04 06 00 70 94 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9B 00 00 00 F4 03 04 00 8F 93 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 63 C1 00 00 35 04 06 00 7A A5 0B 77 AB DA 97 0E 85 75 2C 16 EA 4E [17:59:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 41 DD 47 00 38 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 63 C1 00 00 F4 03 04 00 CD 3E BF 66 B6 04 01 00 00 3C ED B0 BA 25 9D 71 2F [17:59:39]CommunicateWithHost err = 0 [17:59:39]CheckOFDResponse [17:59:39]1017 (14) - 77093643461234 [17:59:39]1041 (16) - 0000000000871800 [17:59:39]1040 (4) - 49507 [17:59:39]1012 (4) - 16.08.2024 11:58 [17:59:39]1206 (1) - 0 [17:59:39]OFD Sender: Remove packet 49507 [17:59:39]ProducePacketName [17:59:39]name=ofd_packets/00049507 [17:59:39]NVStorageDeleteData [17:59:39]Write to MH i2c: 01 00 00 85 57 DC [17:59:39]Write i2c OK [17:59:39]MH_I2C_Read... [17:59:39]Read from MH i2c: 01 [17:59:39]MH_I2C_Read... [17:59:39]Read from MH i2c: 01 07 00 [17:59:39]MH_I2C_Read... [17:59:39]Read from MH i2c: 01 07 00 85 57 00 00 00 00 00 33 0C 22 [17:59:39]RasterBufferAndPrint [17:59:39]line [17:59:39]line [17:59:39]line [17:59:39]line [17:59:39]line [17:59:39]written 0, free lines is 3128 [17:59:39]MH_Cut [17:59:39]Write to MH i2c: D1 01 00 8C 57 01 B5 [17:59:39]Write i2c OK [17:59:39]MH_I2C_Read... [17:59:39]Read from MH i2c: D1 [17:59:39]MH_I2C_Read... [17:59:39]Read from MH i2c: D1 01 00 [17:59:39]MH_I2C_Read... [17:59:39]Read from MH i2c: D1 01 00 8C 57 00 B4 [17:59:39]Write to MH i2c: 01 00 00 8D 57 E4 [17:59:39]Write i2c OK [17:59:39]MH_I2C_Read... [17:59:39]OFD Sender: No OFD packet to send [17:59:40]*** Cut start [17:59:40]*** Purtial cut [17:59:40]*** Stage 1: CUTSNS_PIN = 1 [17:59:40]Read from MH i2c: 01 [17:59:40]MH_I2C_Read... [17:59:40]*** Stop cut motor [17:59:40]*** Cut end [17:59:40]Read from MH i2c: 01 07 00 [17:59:40]MH_I2C_Read... [17:59:40]Read from MH i2c: 01 07 00 8D 57 00 00 00 00 00 FF 0F F9 [17:59:40]process_action close_receipt done [17:59:40]requested_data is exist [17:59:40]produce_requested_data [17:59:40]requested_item fm.sn is exist - process it [17:59:40]wFMCommunicate request_size=4 [17:59:40]MH_SAM_APDU [17:59:40]CAPDU: 80 11 00 00 [17:59:40]Write to MH i2c: E2 08 00 8E 57 80 11 00 00 00 00 00 00 5F [17:59:40]Write i2c OK [17:59:40]MH_I2C_Read... [17:59:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:40]Read from MH i2c: E2 [17:59:40]MH_I2C_Read... [17:59:40]Read from MH i2c: E2 17 00 [17:59:40]MH_I2C_Read... [17:59:40]Read from MH i2c: E2 17 00 8E 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AA [17:59:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:59:40]wFMCommunicate OK [17:59:40]requested_item fd.num is exist - process it [17:59:40]SAM_PROTO_GetFieldsCounters [17:59:40]wFMCommunicate request_size=4 [17:59:40]MH_SAM_APDU [17:59:40]CAPDU: 80 13 00 00 [17:59:40]Write to MH i2c: E2 08 00 8F 57 80 13 00 00 00 00 00 00 62 [17:59:40]Write i2c OK [17:59:40]MH_I2C_Read... [17:59:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:59:40]Read from MH i2c: E2 [17:59:40]MH_I2C_Read... [17:59:40]Read from MH i2c: E2 62 00 [17:59:40]MH_I2C_Read... [17:59:40]Read from MH i2c: E2 62 00 8F 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 63 C1 00 00 0E 04 04 00 D0 01 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 42 [17:59:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 63 C1 00 00 0E 04 04 00 D0 01 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 [17:59:40]wFMCommunicate OK [17:59:40]SAM_PROTO_GetFieldsCounters done [17:59:40]requested_item shift.num is exist - process it [17:59:40]requested_item shift.opened is exist - process it [17:59:40]req_shift_opened [17:59:40]FM_GetShiftState [17:59:40]SAM_PROTO_GetShiftState [17:59:40]wFMCommunicate request_size=4 [17:59:40]MH_SAM_APDU [17:59:40]CAPDU: 80 13 01 00 [17:59:40]Write to MH i2c: E2 08 00 90 57 80 13 01 00 00 00 00 00 64 [17:59:40]Write i2c OK [17:59:40]MH_I2C_Read... [17:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:40]Read from MH i2c: E2 [17:59:40]MH_I2C_Read... [17:59:40]Read from MH i2c: E2 0E 00 [17:59:40]MH_I2C_Read... [17:59:40]Read from MH i2c: E2 0E 00 90 57 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 DA [17:59:40]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [17:59:40]wFMCommunicate OK [17:59:40]SAM_PROTO_GetShiftState done [17:59:40]FM_GetShiftState done [17:59:40]req_shift_opened done [17:59:40]requested_item shift.open_date is exist - process it [17:59:40]req_shift_open_date [17:59:40]req_shift_open_date done [17:59:40]produce_requested_data done [17:59:40]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49507,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [17:59:40]process_action_free close_receipt [17:59:40]json_value_free [17:59:40]json_value_free done [17:59:40]process_json_proto returns [17:59:40]Send response to host [17:59:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49507,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [17:59:40]free response buf [17:59:40]execute_script done [17:59:40]execute_script returns [17:59:40]free content buf [17:59:40]Sock 7.Close socket [17:59:40]Sock 7.Thread stoped [17:59:44]OFD Sender: No OFD packet to send [17:59:49]OFD Sender: No OFD packet to send [17:59:54]OFD Sender: No OFD packet to send [17:59:56]accept exits with 9 [17:59:56]New connection [17:59:56]New thread 3066830180 created [17:59:56]Thread 3066973540 joined [17:59:56]Waiting for new connection... [17:59:56] Sock 9.Parse request [17:59:56]Sock 9.Check first char [17:59:56]Sock 9.First char is OK [17:59:56]request: POST /json_proto HTTP/1.0 [17:59:56]Method: POST [17:59:56]URL: /json_proto [17:59:56]Method is POST - this is cgi request [17:59:56]url: /json_proto [17:59:56]query_string will be loaded in cgi processing [17:59:56]execute_cgi json_proto POST (null) [17:59:56]execute_cgi path=json_proto method=POST [17:59:56]POST find Content-Length [17:59:56]Host: 172.17.46.196:8080 [17:59:56]Content-Length: 673 [17:59:56]Content-Type: application/json [17:59:56] [17:59:56]POST finish read [17:59:56]Found Content-Length = 673 [17:59:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189717", "tax_sys" : 0, "items" : [ { "code": "4700041420084", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST ANTIBACTERIAL 100 \u0448\u0442", "price" : 190.00, "quantity" : 1.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:56]execute_script... [17:59: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 : (3)189717", "tax_sys" : 0, "items" : [ { "code": "4700041420084", "name": "\u0421\u0430\u043B\u0444\u0435\u0442\u043A\u0438 \u0432\u043B\u0430\u0436\u043D BEST ANTIBACTERIAL 100 \u0448\u0442", "price" : 190.00, "quantity" : 1.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:59:56]POST & json_proto [17:59:56]process_json_proto [17:59:56]json parsed OK: [17:59:56]protocol is kg_v1.0 [17:59:56]action value=close_receipt [17:59:56]process_action close_receipt [17:59:56]cmd_close_receipt [17:59:56]MH_GetDate [17:59:56]Write to MH i2c: F0 00 00 91 57 D7 [17:59:56]Write i2c OK [17:59:56]MH_I2C_Read... [17:59:56]Read from MH i2c: F0 [17:59:56]MH_I2C_Read... [17:59:56]Read from MH i2c: F0 09 00 [17:59:56]MH_I2C_Read... [17:59:56]Read from MH i2c: F0 09 00 91 57 00 A2 93 BF 66 07 E8 5D 66 EC [17:59:56]GetLastDocTimeStamp 1723831183 [17:59:56]current date 1723831202 [17:59:56]FM_GetShiftState [17:59:56]SAM_PROTO_GetShiftState [17:59:56]wFMCommunicate request_size=4 [17:59:56]MH_SAM_APDU [17:59:56]CAPDU: 80 13 01 00 [17:59:56]Write to MH i2c: E2 08 00 92 57 80 13 01 00 00 00 00 00 66 [17:59:56]Write i2c OK [17:59:56]MH_I2C_Read... [17:59:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:59:56]Read from MH i2c: E2 [17:59:56]MH_I2C_Read... [17:59:56]Read from MH i2c: E2 0E 00 [17:59:56]MH_I2C_Read... [17:59:56]Read from MH i2c: E2 0E 00 92 57 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 DC [17:59:56]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [17:59:56]wFMCommunicate OK [17:59:56]SAM_PROTO_GetShiftState done [17:59:56]FM_GetShiftState done [17:59:56]opened in 1723766958 [17:59:56]opened+sec_in_day 1723853358 [17:59:56]quantity*price = 19000 [17:59:56]sum+1 = 19001 [17:59:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 156 16.08.2024 18:00 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49508 ФПД: 109798774411083 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T180002&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49508&fm=109798774411083&tin=02508201610067®Number=0000000000092546&sum=19000 0 [17:59:57]StoreToDocumentArchive [17:59:57]shift 464 fd 49508 [17:59:57]save to /storage/0464/doc_00049508 [17:59:57]save last doc name /storage/0464/doc_00049508 to /storage/kkm_last_doc_name [17:59:57]save OK [17:59:57]Clear old archive folders... [17:59:57]ProcessDocumentItem done err = 0, tmpTLVsize=297 [17:59:57]tlvbuf is 00DFB100 [17:59:57]SAM_PROTO_ClearQueue [17:59:57]wFMCommunicate request_size=4 [17:59:57]MH_SAM_APDU [17:59:57]CAPDU: 80 09 00 00 [17:59:57]Write to MH i2c: E2 08 00 9F 57 80 09 00 00 00 00 00 00 68 [17:59:57]Write i2c OK [17:59:57]MH_I2C_Read... [17:59:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:59:57]Read from MH i2c: E2 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 03 00 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 03 00 9F 57 00 90 00 6A [17:59:57]RAPDU: 90 00 [17:59:57]wFMCommunicate OK [17:59:57]SAM_PROTO_ClearQueue done [17:59:57]KKMCreateOFDPacket [17:59:57]OFDProtocolAddRootSTLVToBuf [17:59:57]FM_MakeSignedData [17:59:57]FM_MakeSignedData [17:59:57]SAM_PROTO_SignData [17:59:57]wFMCommunicate request_size=4 [17:59:57]MH_SAM_APDU [17:59:57]CAPDU: 80 0D 01 02 [17:59:57]Write to MH i2c: E2 08 00 A0 57 80 0D 01 02 00 00 00 00 70 [17:59:57]Write i2c OK [17:59:57]MH_I2C_Read... [17:59:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:59:57]Read from MH i2c: E2 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 03 00 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 03 00 A0 57 00 90 00 6B [17:59:57]RAPDU: 90 00 [17:59:57]wFMCommunicate OK [17:59:57]wFMCommunicate request_size=255 [17:59:57]MH_SAM_APDU [17:59:57]CAPDU: 80 0D 02 02 FA 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 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 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 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 9C 00 00 00 F4 03 04 00 A2 93 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 [17:59:57]Write to MH i2c: E2 02 01 A1 57 80 0D 02 02 FA 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 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 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 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 9C 00 00 00 F4 03 04 00 A2 93 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 00 00 68 [17:59:57]Write i2c OK [17:59:57]MH_I2C_Read... [17:59:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:57]Read from MH i2c: E2 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 03 00 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 03 00 A1 57 00 90 00 6C [17:59:57]RAPDU: 90 00 [17:59:57]wFMCommunicate OK [17:59:57]wFMCommunicate request_size=56 [17:59:57]MH_SAM_APDU [17:59:57]CAPDU: 80 0D 02 02 33 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 64 C1 00 00 35 04 06 00 63 DC 84 F2 0F 4B [17:59:57]Write to MH i2c: E2 3B 00 A2 57 80 0D 02 02 33 00 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 64 C1 00 00 35 04 06 00 63 DC 84 F2 0F 4B 00 00 2B [17:59:57]Write i2c OK [17:59:57]MH_I2C_Read... [17:59:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:59:57]Read from MH i2c: E2 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 03 00 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 03 00 A2 57 00 90 00 6D [17:59:57]RAPDU: 90 00 [17:59:57]wFMCommunicate OK [17:59:57]wFMCommunicate request_size=4 [17:59:57]MH_SAM_APDU [17:59:57]CAPDU: 80 0D 03 02 [17:59:57]Write to MH i2c: E2 08 00 A3 57 80 0D 03 02 00 00 00 00 75 [17:59:57]Write i2c OK [17:59:57]MH_I2C_Read... [17:59:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:59:57]Read from MH i2c: E2 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 0B 00 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 0B 00 A3 57 00 D7 C7 CF E5 56 2A 9D 2D 90 00 12 [17:59:57]RAPDU: D7 C7 CF E5 56 2A 9D 2D 90 00 [17:59:57]wFMCommunicate OK [17:59:57]SAM_PROTO_SignData done [17:59:57]FM_MakeSignedData done [17:59:57]CreateOFDProtocolMessage [17:59:57]wFMCommunicate request_size=4 [17:59:57]MH_SAM_APDU [17:59:57]CAPDU: 80 11 00 00 [17:59:57]Write to MH i2c: E2 08 00 A4 57 80 11 00 00 00 00 00 00 75 [17:59:57]Write i2c OK [17:59:57]MH_I2C_Read... [17:59:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:59:57]Read from MH i2c: E2 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 17 00 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: E2 17 00 A4 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C0 [17:59:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [17:59:57]wFMCommunicate OK [17:59:57]CreateOFDProtocolMessage done [17:59:57]OFDSenderStorePacket 49508 [17:59:57]StoreOFDPacket docnum=49508 [17:59:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3D 01 00 00 B5 03 35 01 8E 18 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 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 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 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 9C 00 00 00 F4 03 04 00 A2 93 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 64 C1 00 00 35 04 06 00 63 DC 84 F2 0F 4B D7 C7 CF E5 56 2A 9D 2D [17:59:57]CheckFolder [17:59:57]dirname=/storage/ofd_packets [17:59:57]CheckFolder done [17:59:57]ProducePacketName [17:59:57]name=ofd_packets/00049508 [17:59:57]NVStorageSaveData ofd_packets/00049508 [17:59:57]File name is /storage/ofd_packets/00049508 [17:59:57]Write 347 bytes [17:59:57]NVStorageSaveData done [17:59:57]OFDSenderStorePacket done [17:59:57]KKMCreateOFDPacket done [17:59:57]NVStorageSaveData kkm_last_timestamp [17:59:57]File name is /storage/kkm_last_timestamp [17:59:57]Write 4 bytes [17:59:57]NVStorageSaveData done [17:59:57]ExternCall_PrintAddStr [17:59:57]wPrintStart [17:59:57]Write to MH i2c: 01 00 00 A5 57 FC [17:59:57]Write i2c OK [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: 01 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: 01 07 00 [17:59:57]MH_I2C_Read... [17:59:57]Read from MH i2c: 01 07 00 A5 57 00 00 00 00 00 FF 0F 11 [17:59:57]RasterBufferAndPrint [17:59:57]line Счет N : (3)189717 [17:59:57]line ИНН: 02508201610067 [17:59:57]line Контрольно-Кассовый Чек [17:59:57]line ПРОДАЖА [17:59:57]line Товар: 4700041420084 [17:59:57]line Салфетки влажн BEST ANTIBACTERIAL 100 шт [17:59:57]line 1.000 * 190.00 [17:59:57]line = 190.00 [17:59:57]line НДС 12% НСП 1% [17:59:57]line > о реализуемом товаре [17:59:57]line ИТОГО: 190.00 [17:59:57]line НСП 1% : 1.68 [17:59:57]line НДС 12% : 20.18 [17:59:57]line Наличными: 190.00 [17:59:57]line Безнал.: 0.00 [17:59:57]line Место: АЗС № 95 "Партнер Нефть" [17:59:57]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [17:59:57]line СНО: Общий режим [17:59:57]line Чек 156 16.08.2024 18:00 [17:59:57]line Смена: 464 ФФД: 1.0 [17:59:57]line ЗНМ: 0300000078 [17:59:57]line РНМ: 0000000000092546 [17:59:57]line Версия ККМ: 001 [17:59:57]line ФМ: 0000000000871800 [17:59:57]line ФД: 49508 [17:59:57]line ФПД: 109798774411083 [17:59:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T180002&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49508&fm=109798774411083&tin=02508201610067®Number=0000000000092546&sum=19000 [17:59:58]line 0 [17:59:58]OFD Sender: Processing packet 49508 [packets to send 21, broken 20] [17:59:58]ProducePacketName [17:59:58]name=ofd_packets/00049508 [17:59:58]OFD Sender: To server: pG, [17:59:58]CommunicateWithHost lk.salyk.kg:30040 [17:59:58]ConnectInit lk.salyk.kg [17:59:58]written 0, free lines is 4095 [17:59:58]Connected sock=7 [17:59:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3D 01 00 00 B5 03 35 01 8E 18 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 37 30 30 30 34 31 34 32 30 30 38 34 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B8 20 D0 B2 D0 BB D0 B0 D0 B6 D0 BD 20 42 45 53 54 20 41 4E 54 49 42 41 43 54 45 52 49 41 4C 20 31 30 30 20 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 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 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 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 9C 00 00 00 F4 03 04 00 A2 93 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 64 C1 00 00 35 04 06 00 63 DC 84 F2 0F 4B D7 C7 CF E5 56 2A 9D 2D [17:59:58]Write to MH i2c: 01 00 00 CE 57 25 [17:59:58]Write i2c OK [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: 01 [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: 01 07 00 [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: 01 07 00 CE 57 00 00 00 00 00 F7 0C 2F [17:59:58]RasterBufferAndPrint [17:59:58]line [17:59:58]line [17:59:58]line [17:59:58]line [17:59:58]line [17:59:58]written 0, free lines is 3328 [17:59:58]MH_Cut [17:59:58]Write to MH i2c: D1 01 00 D5 57 01 FE [17:59:58]Write i2c OK [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: D1 [17:59:58]MH_I2C_Read... [17:59:58]Read from MH i2c: D1 01 00 [17:59:58]MH_I2C_Read... [17:59:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 6A 88 47 00 E6 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 38 37 31 38 30 30 10 04 04 00 64 C1 00 00 F4 03 04 00 E1 3E BF 66 B6 04 01 00 00 C7 6F 47 DC 7C 98 3C D9 [17:59:58]CommunicateWithHost err = 0 [17:59:58]CheckOFDResponse [17:59:58]1017 (14) - 77093643461234 [17:59:58]1041 (16) - 0000000000871800 [17:59:58]1040 (4) - 49508 [17:59:58]1012 (4) - 16.08.2024 11:58 [17:59:58]1206 (1) - 0 [17:59:58]OFD Sender: Remove packet 49508 [17:59:58]ProducePacketName [17:59:58]name=ofd_packets/00049508 [17:59:58]NVStorageDeleteData [17:59:58]Read from MH i2c: D1 01 00 D5 57 00 FD [17:59:58]Write to MH i2c: 01 00 00 D6 57 2D [17:59:58]Write i2c OK [17:59:58]MH_I2C_Read... [17:59:59]OFD Sender: No OFD packet to send [17:59:59]*** Cut start [17:59:59]*** Purtial cut [17:59:59]*** CUTSNS_PIN = 0 [17:59:59]*** Stage 1: CUTSNS_PIN = 1 [18:00:01]Read from MH i2c: 01 [18:00:01]MH_I2C_Read... [18:00:01]*** Stop cut motor [18:00:01]*** Cut end [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 D6 57 00 00 00 00 00 FF 0F 42 [18:00:01]process_action close_receipt done [18:00:01]requested_data is exist [18:00:01]produce_requested_data [18:00:01]requested_item fm.sn is exist - process it [18:00:01]wFMCommunicate request_size=4 [18:00:01]MH_SAM_APDU [18:00:01]CAPDU: 80 11 00 00 [18:00:01]Write to MH i2c: E2 08 00 D7 57 80 11 00 00 00 00 00 00 A8 [18:00:01]Write i2c OK [18:00:01]MH_I2C_Read... [18:00:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:00:01]Read from MH i2c: E2 [18:00:01]MH_I2C_Read... [18:00:01]Read from MH i2c: E2 17 00 [18:00:01]MH_I2C_Read... [18:00:01]Read from MH i2c: E2 17 00 D7 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F3 [18:00:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:00:01]wFMCommunicate OK [18:00:01]requested_item fd.num is exist - process it [18:00:01]SAM_PROTO_GetFieldsCounters [18:00:01]wFMCommunicate request_size=4 [18:00:01]MH_SAM_APDU [18:00:01]CAPDU: 80 13 00 00 [18:00:01]Write to MH i2c: E2 08 00 D8 57 80 13 00 00 00 00 00 00 AB [18:00:01]Write i2c OK [18:00:01]MH_I2C_Read... [18:00:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:00:01]Read from MH i2c: E2 [18:00:01]MH_I2C_Read... [18:00:01]Read from MH i2c: E2 62 00 [18:00:01]MH_I2C_Read... [18:00:01]Read from MH i2c: E2 62 00 D8 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 64 C1 00 00 0E 04 04 00 D0 01 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 8F [18:00:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 64 C1 00 00 0E 04 04 00 D0 01 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 [18:00:01]wFMCommunicate OK [18:00:01]SAM_PROTO_GetFieldsCounters done [18:00:01]requested_item shift.num is exist - process it [18:00:01]requested_item shift.opened is exist - process it [18:00:01]req_shift_opened [18:00:01]FM_GetShiftState [18:00:01]SAM_PROTO_GetShiftState [18:00:01]wFMCommunicate request_size=4 [18:00:01]MH_SAM_APDU [18:00:01]CAPDU: 80 13 01 00 [18:00:01]Write to MH i2c: E2 08 00 D9 57 80 13 01 00 00 00 00 00 AD [18:00:01]Write i2c OK [18:00:01]MH_I2C_Read... [18:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:00:01]Read from MH i2c: E2 [18:00:01]MH_I2C_Read... [18:00:01]Read from MH i2c: E2 0E 00 [18:00:01]MH_I2C_Read... [18:00:01]Read from MH i2c: E2 0E 00 D9 57 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 23 [18:00:01]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [18:00:01]wFMCommunicate OK [18:00:01]SAM_PROTO_GetShiftState done [18:00:01]FM_GetShiftState done [18:00:01]req_shift_opened done [18:00:01]requested_item shift.open_date is exist - process it [18:00:01]req_shift_open_date [18:00:01]req_shift_open_date done [18:00:01]produce_requested_data done [18:00:01]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49508,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [18:00:01]process_action_free close_receipt [18:00:01]json_value_free [18:00:01]json_value_free done [18:00:01]process_json_proto returns [18:00:01]Send response to host [18:00:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49508,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [18:00:01]free response buf [18:00:01]execute_script done [18:00:01]execute_script returns [18:00:01]free content buf [18:00:01]Sock 9.Close socket [18:00:01]Sock 9.Thread stoped [18:00:04]OFD Sender: No OFD packet to send [18:00:09]OFD Sender: No OFD packet to send [18:00:14]OFD Sender: No OFD packet to send [18:00:19]OFD Sender: No OFD packet to send [18:00:24]OFD Sender: No OFD packet to send [18:00:29]OFD Sender: No OFD packet to send [18:00:34]OFD Sender: No OFD packet to send [18:00:39]OFD Sender: No OFD packet to send [18:00:44]OFD Sender: No OFD packet to send [18:00:49]OFD Sender: No OFD packet to send [18:00:54]OFD Sender: No OFD packet to send [18:00:59]OFD Sender: No OFD packet to send [18:01:04]OFD Sender: No OFD packet to send [18:01:09]OFD Sender: No OFD packet to send [18:01:14]OFD Sender: No OFD packet to send [18:01:19]OFD Sender: No OFD packet to send [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:54]OFD Sender: No OFD packet to send [18:01:59]OFD Sender: No OFD packet to send [18:02:04]OFD Sender: No OFD packet to send [18:02:09]OFD Sender: No OFD packet to send [18:02:14]OFD Sender: No OFD packet to send [18:02:19]OFD Sender: No OFD packet to send [18:02:24]OFD Sender: No OFD packet to send [18:02:29]OFD Sender: No OFD packet to send [18:02:34]OFD Sender: No OFD packet to send [18:02:39]OFD Sender: No OFD packet to send [18:02:44]OFD Sender: No OFD packet to send [18:02:49]OFD Sender: No OFD packet to send [18:02:54]OFD Sender: No OFD packet to send [18:02:59]OFD Sender: No OFD packet to send [18:03:04]OFD Sender: No OFD packet to send [18:03:09]OFD Sender: No OFD packet to send [18:03:14]OFD Sender: No OFD packet to send [18:03:19]OFD Sender: No OFD packet to send [18:03:24]OFD Sender: No OFD packet to send [18:03:29]OFD Sender: No OFD packet to send [18:03:34]OFD Sender: No OFD packet to send [18:03:39]OFD Sender: No OFD packet to send [18:03:44]OFD Sender: No OFD packet to send [18:03:49]OFD Sender: No OFD packet to send [18:03:54]OFD Sender: No OFD packet to send [18:03:59]OFD Sender: No OFD packet to send [18:04:04]OFD Sender: No OFD packet to send [18:04:09]OFD Sender: No OFD packet to send [18:04:14]OFD Sender: No OFD packet to send [18:04:19]OFD Sender: No OFD packet to send [18:04:24]OFD Sender: No OFD packet to send [18:04:29]OFD Sender: No OFD packet to send [18:04:34]OFD Sender: No OFD packet to send [18:04:39]OFD Sender: No OFD packet to send [18:04:44]OFD Sender: No OFD packet to send [18:04:49]OFD Sender: No OFD packet to send [18:04:54]OFD Sender: No OFD packet to send [18:04:59]accept exits with 10 [18:04:59]New connection [18:04:59]New thread 3066973540 created [18:04:59]Thread 3066830180 joined [18:04:59]Waiting for new connection... [18:04:59] Sock 10.Parse request [18:04:59]Sock 10.Check first char [18:04:59]Sock 10.First char is OK [18:04:59]request: POST /json_proto HTTP/1.0 [18:04:59]Method: POST [18:04:59]URL: /json_proto [18:04:59]Method is POST - this is cgi request [18:04:59]url: /json_proto [18:04:59]query_string will be loaded in cgi processing [18:04:59]execute_cgi json_proto POST (null) [18:04:59]execute_cgi path=json_proto method=POST [18:04:59]POST find Content-Length [18:04:59]Host: 172.17.46.196:8080 [18:04:59]Content-Length: 631 [18:04:59]Content-Type: application/json [18:04:59] [18:04:59]POST finish read [18:04:59]Found Content-Length = 631 [18:04:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189718", "tax_sys" : 0, "items" : [ { "code": "4780022460216", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko red 1\u043A\u0433", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:59]execute_script... [18:04: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 : (3)189718", "tax_sys" : 0, "items" : [ { "code": "4780022460216", "name": "\u0410\u043D\u0442\u0438\u0444\u0440\u0438\u0437 Yumiko red 1\u043A\u0433", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 210.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:59]POST & json_proto [18:04:59]process_json_proto [18:04:59]json parsed OK: [18:04:59]protocol is kg_v1.0 [18:04:59]action value=close_receipt [18:04:59]process_action close_receipt [18:04:59]cmd_close_receipt [18:04:59]MH_GetDate [18:04:59]Write to MH i2c: F0 00 00 DA 57 20 [18:04:59]Write i2c OK [18:04:59]MH_I2C_Read... [18:04:59]Read from MH i2c: F0 [18:04:59]MH_I2C_Read... [18:04:59]Read from MH i2c: F0 09 00 [18:04:59]MH_I2C_Read... [18:04:59]Read from MH i2c: F0 09 00 DA 57 00 D1 94 BF 66 07 E8 5D 66 65 [18:04:59]GetLastDocTimeStamp 1723831202 [18:04:59]current date 1723831505 [18:04:59]FM_GetShiftState [18:04:59]SAM_PROTO_GetShiftState [18:04:59]wFMCommunicate request_size=4 [18:04:59]MH_SAM_APDU [18:04:59]CAPDU: 80 13 01 00 [18:04:59]Write to MH i2c: E2 08 00 DB 57 80 13 01 00 00 00 00 00 AF [18:04:59]Write i2c OK [18:04:59]MH_I2C_Read... [18:04:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:59]Read from MH i2c: E2 [18:04:59]MH_I2C_Read... [18:04:59]Read from MH i2c: E2 0E 00 [18:04:59]MH_I2C_Read... [18:04:59]Read from MH i2c: E2 0E 00 DB 57 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 25 [18:04:59]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [18:04:59]wFMCommunicate OK [18:04:59]SAM_PROTO_GetShiftState done [18:04:59]FM_GetShiftState done [18:04:59]opened in 1723766958 [18:04:59]opened+sec_in_day 1723853358 [18:04:59]quantity*price = 21000 [18:04:59]sum+1 = 21001 [18:04:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 210.00 НСП 1% : 1.86 НДС 12% : 22.30 Наличными: 210.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 157 16.08.2024 18:05 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49509 ФПД: 222033039484578 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T180505&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49509&fm=222033039484578&tin=02508201610067®Number=0000000000092546&sum=21000 0 [18:05:00]StoreToDocumentArchive [18:05:00]shift 464 fd 49509 [18:05:00]save to /storage/0464/doc_00049509 [18:05:00]save last doc name /storage/0464/doc_00049509 to /storage/kkm_last_doc_name [18:05:00]save OK [18:05:00]Clear old archive folders... [18:05:00]ProcessDocumentItem done err = 0, tmpTLVsize=275 [18:05:00]tlvbuf is 00F869A0 [18:05:00]SAM_PROTO_ClearQueue [18:05:00]wFMCommunicate request_size=4 [18:05:00]MH_SAM_APDU [18:05:00]CAPDU: 80 09 00 00 [18:05:00]Write to MH i2c: E2 08 00 E8 57 80 09 00 00 00 00 00 00 B1 [18:05:00]Write i2c OK [18:05:00]MH_I2C_Read... [18:05:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:00]Read from MH i2c: E2 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 03 00 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 03 00 E8 57 00 90 00 B3 [18:05:00]RAPDU: 90 00 [18:05:00]wFMCommunicate OK [18:05:00]SAM_PROTO_ClearQueue done [18:05:00]KKMCreateOFDPacket [18:05:00]OFDProtocolAddRootSTLVToBuf [18:05:00]FM_MakeSignedData [18:05:00]FM_MakeSignedData [18:05:00]SAM_PROTO_SignData [18:05:00]wFMCommunicate request_size=4 [18:05:00]MH_SAM_APDU [18:05:00]CAPDU: 80 0D 01 02 [18:05:00]Write to MH i2c: E2 08 00 E9 57 80 0D 01 02 00 00 00 00 B9 [18:05:00]Write i2c OK [18:05:00]MH_I2C_Read... [18:05:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:00]Read from MH i2c: E2 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 03 00 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 03 00 E9 57 00 90 00 B4 [18:05:00]RAPDU: 90 00 [18:05:00]wFMCommunicate OK [18:05:00]wFMCommunicate request_size=255 [18:05:00]MH_SAM_APDU [18:05:00]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 31 36 06 04 21 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 72 65 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 D1 94 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [18:05:00]Write to MH i2c: E2 02 01 EA 57 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 31 36 06 04 21 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 72 65 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 D1 94 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 49 [18:05:00]Write i2c OK [18:05:00]MH_I2C_Read... [18:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:00]Read from MH i2c: E2 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 03 00 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 03 00 EA 57 00 90 00 B5 [18:05:00]RAPDU: 90 00 [18:05:00]wFMCommunicate OK [18:05:00]wFMCommunicate request_size=34 [18:05:00]MH_SAM_APDU [18:05:00]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 65 C1 00 00 35 04 06 00 C9 F0 18 72 66 A2 [18:05:00]Write to MH i2c: E2 25 00 EB 57 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 65 C1 00 00 35 04 06 00 C9 F0 18 72 66 A2 00 00 E6 [18:05:00]Write i2c OK [18:05:00]MH_I2C_Read... [18:05:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:00]Read from MH i2c: E2 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 03 00 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 03 00 EB 57 00 90 00 B6 [18:05:00]RAPDU: 90 00 [18:05:00]wFMCommunicate OK [18:05:00]wFMCommunicate request_size=4 [18:05:00]MH_SAM_APDU [18:05:00]CAPDU: 80 0D 03 02 [18:05:00]Write to MH i2c: E2 08 00 EC 57 80 0D 03 02 00 00 00 00 BE [18:05:00]Write i2c OK [18:05:00]MH_I2C_Read... [18:05:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:05:00]Read from MH i2c: E2 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 0B 00 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 0B 00 EC 57 00 35 06 49 7B 37 CB 01 65 90 00 26 [18:05:00]RAPDU: 35 06 49 7B 37 CB 01 65 90 00 [18:05:00]wFMCommunicate OK [18:05:00]SAM_PROTO_SignData done [18:05:00]FM_MakeSignedData done [18:05:00]CreateOFDProtocolMessage [18:05:00]wFMCommunicate request_size=4 [18:05:00]MH_SAM_APDU [18:05:00]CAPDU: 80 11 00 00 [18:05:00]Write to MH i2c: E2 08 00 ED 57 80 11 00 00 00 00 00 00 BE [18:05:00]Write i2c OK [18:05:00]MH_I2C_Read... [18:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:00]Read from MH i2c: E2 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 17 00 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: E2 17 00 ED 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 09 [18:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:05:00]wFMCommunicate OK [18:05:00]CreateOFDProtocolMessage done [18:05:00]OFDSenderStorePacket 49509 [18:05:00]StoreOFDPacket docnum=49509 [18:05:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 30 FC 1F 01 EC 63 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 31 36 06 04 21 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 72 65 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 D1 94 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 65 C1 00 00 35 04 06 00 C9 F0 18 72 66 A2 35 06 49 7B 37 CB 01 65 [18:05:00]CheckFolder [18:05:00]dirname=/storage/ofd_packets [18:05:00]CheckFolder done [18:05:00]ProducePacketName [18:05:00]name=ofd_packets/00049509 [18:05:00]NVStorageSaveData ofd_packets/00049509 [18:05:00]File name is /storage/ofd_packets/00049509 [18:05:00]Write 325 bytes [18:05:00]NVStorageSaveData done [18:05:00]OFDSenderStorePacket done [18:05:00]KKMCreateOFDPacket done [18:05:00]NVStorageSaveData kkm_last_timestamp [18:05:00]File name is /storage/kkm_last_timestamp [18:05:00]Write 4 bytes [18:05:00]NVStorageSaveData done [18:05:00]ExternCall_PrintAddStr [18:05:00]wPrintStart [18:05:00]Write to MH i2c: 01 00 00 EE 57 45 [18:05:00]Write i2c OK [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: 01 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: 01 07 00 [18:05:00]MH_I2C_Read... [18:05:00]Read from MH i2c: 01 07 00 EE 57 00 00 00 00 00 FF 0F 5A [18:05:00]RasterBufferAndPrint [18:05:00]line Счет N : (3)189718 [18:05:00]line ИНН: 02508201610067 [18:05:00]line Контрольно-Кассовый Чек [18:05:00]line ПРОДАЖА [18:05:00]line Товар: 4780022460216 [18:05:00]line Антифриз Yumiko red 1кг [18:05:00]line 1.000 * 210.00 [18:05:00]line = 210.00 [18:05:00]line НДС 12% НСП 1% [18:05:00]line > о реализуемом товаре [18:05:00]line ИТОГО: 210.00 [18:05:00]line НСП 1% : 1.86 [18:05:00]line НДС 12% : 22.30 [18:05:00]line Наличными: 210.00 [18:05:00]line Безнал.: 0.00 [18:05:00]line Место: АЗС № 95 "Партнер Нефть" [18:05:00]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:05:00]line СНО: Общий режим [18:05:00]line Чек 157 16.08.2024 18:05 [18:05:00]line Смена: 464 ФФД: 1.0 [18:05:00]line ЗНМ: 0300000078 [18:05:00]line РНМ: 0000000000092546 [18:05:00]line Версия ККМ: 001 [18:05:00]line ФМ: 0000000000871800 [18:05:00]line ФД: 49509 [18:05:00]line ФПД: 222033039484578 [18:05:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T180505&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49509&fm=222033039484578&tin=02508201610067®Number=0000000000092546&sum=21000 [18:05:00]line 0 [18:05:01]written 0, free lines is 4095 [18:05:01]OFD Sender: Processing packet 49509 [packets to send 21, broken 20] [18:05:01]ProducePacketName [18:05:01]name=ofd_packets/00049509 [18:05:01]OFD Sender: To server: pG, [18:05:01]CommunicateWithHost lk.salyk.kg:30040 [18:05:01]ConnectInit lk.salyk.kg [18:05:01]Connected sock=9 [18:05:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 30 FC 1F 01 EC 63 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 32 31 36 06 04 21 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 72 65 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 D1 94 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 65 C1 00 00 35 04 06 00 C9 F0 18 72 66 A2 35 06 49 7B 37 CB 01 65 [18:05:01]Write to MH i2c: 01 00 00 16 58 6E [18:05:01]Write i2c OK [18:05:01]MH_I2C_Read... [18:05:01]Read from MH i2c: 01 [18:05:01]MH_I2C_Read... [18:05:01]Read from MH i2c: 01 07 00 [18:05:01]MH_I2C_Read... [18:05:01]Read from MH i2c: 01 07 00 16 58 00 00 00 00 00 07 0D 89 [18:05:01]RasterBufferAndPrint [18:05:01]line [18:05:01]line [18:05:01]line [18:05:01]line [18:05:01]line [18:05:01]written 0, free lines is 3344 [18:05:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 01 EC 47 00 30 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 38 37 31 38 30 30 10 04 04 00 65 C1 00 00 F4 03 04 00 10 40 BF 66 B6 04 01 00 00 40 17 16 AE B9 D0 6C 41 [18:05:01]CommunicateWithHost err = 0 [18:05:01]CheckOFDResponse [18:05:01]1017 (14) - 77093643461234 [18:05:01]1041 (16) - 0000000000871800 [18:05:01]1040 (4) - 49509 [18:05:01]1012 (4) - 16.08.2024 12:03 [18:05:01]1206 (1) - 0 [18:05:01]OFD Sender: Remove packet 49509 [18:05:01]ProducePacketName [18:05:01]name=ofd_packets/00049509 [18:05:01]NVStorageDeleteData [18:05:01]MH_Cut [18:05:01]Write to MH i2c: D1 01 00 1D 58 01 47 [18:05:01]Write i2c OK [18:05:01]MH_I2C_Read... [18:05:01]Read from MH i2c: D1 [18:05:01]MH_I2C_Read... [18:05:01]Read from MH i2c: D1 01 00 [18:05:01]MH_I2C_Read... [18:05:01]Read from MH i2c: D1 01 00 1D 58 00 46 [18:05:01]Write to MH i2c: 01 00 00 1E 58 76 [18:05:01]Write i2c OK [18:05:01]MH_I2C_Read... [18:05:02]OFD Sender: No OFD packet to send [18:05:02]*** Cut start [18:05:02]*** Purtial cut [18:05:02]*** Stage 1: CUTSNS_PIN = 1 [18:05:02]Read from MH i2c: 01 [18:05:02]MH_I2C_Read... [18:05:02]*** Stop cut motor [18:05:02]*** Cut end [18:05:02]Read from MH i2c: 01 07 00 [18:05:02]MH_I2C_Read... [18:05:02]Read from MH i2c: 01 07 00 1E 58 00 00 00 00 00 FF 0F 8B [18:05:02]process_action close_receipt done [18:05:02]requested_data is exist [18:05:02]produce_requested_data [18:05:02]requested_item fm.sn is exist - process it [18:05:02]wFMCommunicate request_size=4 [18:05:02]MH_SAM_APDU [18:05:02]CAPDU: 80 11 00 00 [18:05:02]Write to MH i2c: E2 08 00 1F 58 80 11 00 00 00 00 00 00 F1 [18:05:02]Write i2c OK [18:05:02]MH_I2C_Read... [18:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:05:02]Read from MH i2c: E2 [18:05:02]MH_I2C_Read... [18:05:02]Read from MH i2c: E2 17 00 [18:05:02]MH_I2C_Read... [18:05:02]Read from MH i2c: E2 17 00 1F 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3C [18:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:05:02]wFMCommunicate OK [18:05:02]requested_item fd.num is exist - process it [18:05:02]SAM_PROTO_GetFieldsCounters [18:05:02]wFMCommunicate request_size=4 [18:05:02]MH_SAM_APDU [18:05:02]CAPDU: 80 13 00 00 [18:05:02]Write to MH i2c: E2 08 00 20 58 80 13 00 00 00 00 00 00 F4 [18:05:02]Write i2c OK [18:05:02]MH_I2C_Read... [18:05:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:05:02]Read from MH i2c: E2 [18:05:02]MH_I2C_Read... [18:05:02]Read from MH i2c: E2 62 00 [18:05:02]MH_I2C_Read... [18:05:02]Read from MH i2c: E2 62 00 20 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 65 C1 00 00 0E 04 04 00 D0 01 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 DC [18:05:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 65 C1 00 00 0E 04 04 00 D0 01 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 [18:05:02]wFMCommunicate OK [18:05:02]SAM_PROTO_GetFieldsCounters done [18:05:02]requested_item shift.num is exist - process it [18:05:02]requested_item shift.opened is exist - process it [18:05:02]req_shift_opened [18:05:02]FM_GetShiftState [18:05:02]SAM_PROTO_GetShiftState [18:05:02]wFMCommunicate request_size=4 [18:05:02]MH_SAM_APDU [18:05:02]CAPDU: 80 13 01 00 [18:05:02]Write to MH i2c: E2 08 00 21 58 80 13 01 00 00 00 00 00 F6 [18:05:02]Write i2c OK [18:05:02]MH_I2C_Read... [18:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:02]Read from MH i2c: E2 [18:05:02]MH_I2C_Read... [18:05:02]Read from MH i2c: E2 0E 00 [18:05:02]MH_I2C_Read... [18:05:02]Read from MH i2c: E2 0E 00 21 58 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 6C [18:05:02]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [18:05:02]wFMCommunicate OK [18:05:02]SAM_PROTO_GetShiftState done [18:05:02]FM_GetShiftState done [18:05:02]req_shift_opened done [18:05:02]requested_item shift.open_date is exist - process it [18:05:02]req_shift_open_date [18:05:02]req_shift_open_date done [18:05:02]produce_requested_data done [18:05:02]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49509,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [18:05:02]process_action_free close_receipt [18:05:02]json_value_free [18:05:02]json_value_free done [18:05:02]process_json_proto returns [18:05:02]Send response to host [18:05:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49509,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [18:05:02]free response buf [18:05:02]execute_script done [18:05:02]execute_script returns [18:05:02]free content buf [18:05:02]Sock 10.Close socket [18:05:02]Sock 10.Thread stoped [18:05:07]OFD Sender: No OFD packet to send [18:05:12]OFD Sender: No OFD packet to send [18:05:17]OFD Sender: No OFD packet to send [18:05:22]OFD Sender: No OFD packet to send [18:05:27]OFD Sender: No OFD packet to send [18:05:32]OFD Sender: No OFD packet to send [18:05:37]OFD Sender: No OFD packet to send [18:05:42]OFD Sender: No OFD packet to send [18:05:47]OFD Sender: No OFD packet to send [18:05:52]OFD Sender: No OFD packet to send [18:05:57]OFD Sender: No OFD packet to send [18:06:02]OFD Sender: No OFD packet to send [18:06:07]OFD Sender: No OFD packet to send [18:06:12]OFD Sender: No OFD packet to send [18:06:17]OFD Sender: No OFD packet to send [18:06:22]OFD Sender: No OFD packet to send [18:06:27]OFD Sender: No OFD packet to send [18:06:32]OFD Sender: No OFD packet to send [18:06:37]OFD Sender: No OFD packet to send [18:06:42]OFD Sender: No OFD packet to send [18:06:47]OFD Sender: No OFD packet to send [18:06:52]OFD Sender: No OFD packet to send [18:06:57]OFD Sender: No OFD packet to send [18:07:02]OFD Sender: No OFD packet to send [18:07:07]OFD Sender: No OFD packet to send [18:07:12]OFD Sender: No OFD packet to send [18:07:17]OFD Sender: No OFD packet to send [18:07:22]OFD Sender: No OFD packet to send [18:07:27]OFD Sender: No OFD packet to send [18:07:32]OFD Sender: No OFD packet to send [18:07:37]OFD Sender: No OFD packet to send [18:07:42]OFD Sender: No OFD packet to send [18:07:47]OFD Sender: No OFD packet to send [18:07:52]OFD Sender: No OFD packet to send [18:07:57]OFD Sender: No OFD packet to send [18:08:02]OFD Sender: No OFD packet to send [18:08:07]OFD Sender: No OFD packet to send [18:08:12]OFD Sender: No OFD packet to send [18:08:17]OFD Sender: No OFD packet to send [18:08:22]OFD Sender: No OFD packet to send [18:08:27]OFD Sender: No OFD packet to send [18:08:32]OFD Sender: No OFD packet to send [18:08:37]OFD Sender: No OFD packet to send [18:08:42]OFD Sender: No OFD packet to send [18:08:47]OFD Sender: No OFD packet to send [18:08:52]OFD Sender: No OFD packet to send [18:08:57]OFD Sender: No OFD packet to send [18:09:02]OFD Sender: No OFD packet to send [18:09:07]OFD Sender: No OFD packet to send [18:09:12]OFD Sender: No OFD packet to send [18:09:17]OFD Sender: No OFD packet to send [18:09:22]OFD Sender: No OFD packet to send [18:09:27]OFD Sender: No OFD packet to send [18:09:32]OFD Sender: No OFD packet to send [18:09:37]OFD Sender: No OFD packet to send [18:09:42]OFD Sender: No OFD packet to send [18:09:47]OFD Sender: No OFD packet to send [18:09:52]OFD Sender: No OFD packet to send [18:09:57]OFD Sender: No OFD packet to send [18:10:02]OFD Sender: No OFD packet to send [18:10:07]OFD Sender: No OFD packet to send [18:10:12]OFD Sender: No OFD packet to send [18:10:17]OFD Sender: No OFD packet to send [18:10:22]OFD Sender: No OFD packet to send [18:10:27]OFD Sender: No OFD packet to send [18:10:32]OFD Sender: No OFD packet to send [18:10:37]OFD Sender: No OFD packet to send [18:51:09]ConnectInit Can't connect to host [18:51:11]ConnectInit Can't take IP for lk.salyk.kg [18:51:11]CommunicateWithHost connect error [18:51:11]CommunicateWithHost err = -1 [18:51:11]OFD Sender: Server communicate error [18:51:16]OFD Sender: Processing packet 49510 [packets to send 26, broken 20] [18:51:16]ProducePacketName [18:51:16]name=ofd_packets/00049510 [18:51:16]OFD Sender: To server: pG, [18:51:16]CommunicateWithHost lk.salyk.kg:30040 [18:51:16]ConnectInit lk.salyk.kg [18:51:16]Connected sock=7 [18:51:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 BF 5C 1B 01 43 1F 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 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 67 96 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 66 C1 00 00 35 04 06 00 1A 29 74 11 F3 85 F1 1C 80 1D 20 87 E2 C2 [18:51:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C5 E4 47 00 F5 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 38 37 31 38 30 30 10 04 04 00 66 C1 00 00 F4 03 04 00 E7 4A BF 66 B6 04 01 00 00 9F 94 4A FC 73 6E 87 DF [18:51:16]CommunicateWithHost err = 0 [18:51:16]CheckOFDResponse [18:51:16]1017 (14) - 77093643461234 [18:51:16]1041 (16) - 0000000000871800 [18:51:16]1040 (4) - 49510 [18:51:16]1012 (4) - 16.08.2024 12:49 [18:51:16]1206 (1) - 0 [18:51:16]OFD Sender: Remove packet 49510 [18:51:16]ProducePacketName [18:51:16]name=ofd_packets/00049510 [18:51:16]NVStorageDeleteData [18:51:17]OFD Sender: Processing packet 49511 [packets to send 25, broken 20] [18:51:17]ProducePacketName [18:51:17]name=ofd_packets/00049511 [18:51:17]OFD Sender: To server: pG, [18:51:17]CommunicateWithHost lk.salyk.kg:30040 [18:51:17]ConnectInit lk.salyk.kg [18:51:17]Connected sock=7 [18:51:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3F 01 00 00 35 3C 37 01 00 7F 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 37 30 06 04 39 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 7E 96 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 67 C1 00 00 35 04 06 00 ED 13 96 12 65 93 ED AC 48 C0 5A 21 AC 16 [18:51:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 61 B5 47 00 3E 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 38 37 31 38 30 30 10 04 04 00 67 C1 00 00 F4 03 04 00 E8 4A BF 66 B6 04 01 00 00 AA 62 70 72 D9 D5 B0 C7 [18:51:17]CommunicateWithHost err = 0 [18:51:17]CheckOFDResponse [18:51:17]1017 (14) - 77093643461234 [18:51:17]1041 (16) - 0000000000871800 [18:51:17]1040 (4) - 49511 [18:51:17]1012 (4) - 16.08.2024 12:49 [18:51:17]1206 (1) - 0 [18:51:17]OFD Sender: Remove packet 49511 [18:51:17]ProducePacketName [18:51:17]name=ofd_packets/00049511 [18:51:17]NVStorageDeleteData [18:51:18]OFD Sender: Processing packet 49512 [packets to send 24, broken 20] [18:51:18]ProducePacketName [18:51:18]name=ofd_packets/00049512 [18:51:18]OFD Sender: To server: pG, [18:51:18]CommunicateWithHost lk.salyk.kg:30040 [18:51:18]ConnectInit lk.salyk.kg [18:51:18]Connected sock=7 [18:51:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 7B F0 07 01 BB 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 42 99 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 68 C1 00 00 35 04 06 00 0C 5C A8 BA A3 51 0A 90 12 FC 63 2A E8 FD [18:51:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 EB FC 47 00 59 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 68 C1 00 00 F4 03 04 00 E9 4A BF 66 B6 04 01 00 00 6F E0 0C E7 58 C4 E2 37 [18:51:18]CommunicateWithHost err = 0 [18:51:18]CheckOFDResponse [18:51:18]1017 (14) - 77093643461234 [18:51:18]1041 (16) - 0000000000871800 [18:51:18]1040 (4) - 49512 [18:51:18]1012 (4) - 16.08.2024 12:49 [18:51:18]1206 (1) - 0 [18:51:18]OFD Sender: Remove packet 49512 [18:51:18]ProducePacketName [18:51:18]name=ofd_packets/00049512 [18:51:18]NVStorageDeleteData [18:51:19]OFD Sender: Processing packet 49513 [packets to send 23, broken 20] [18:51:19]ProducePacketName [18:51:19]name=ofd_packets/00049513 [18:51:19]OFD Sender: To server: pG, [18:51:19]CommunicateWithHost lk.salyk.kg:30040 [18:51:19]ConnectInit lk.salyk.kg [18:51:19]Connected sock=7 [18:51:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 34 01 00 00 D3 E7 2C 01 FD 45 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 30 31 31 31 30 30 30 39 31 39 39 33 06 04 2E 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 9C D0 B8 D0 BB D0 BA D0 B8 20 D0 92 D0 B5 D0 B9 20 32 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 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 CC 9A BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 69 C1 00 00 35 04 06 00 95 A2 75 42 E9 83 E1 88 17 AC 79 77 C1 C3 [18:51:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D6 E9 47 00 8B 59 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 69 C1 00 00 F4 03 04 00 EA 4A BF 66 B6 04 01 00 00 A2 42 0C DE FA 2A 0F 96 [18:51:19]CommunicateWithHost err = 0 [18:51:19]CheckOFDResponse [18:51:19]1017 (14) - 77093643461234 [18:51:19]1041 (16) - 0000000000871800 [18:51:19]1040 (4) - 49513 [18:51:19]1012 (4) - 16.08.2024 12:49 [18:51:19]1206 (1) - 0 [18:51:19]OFD Sender: Remove packet 49513 [18:51:19]ProducePacketName [18:51:19]name=ofd_packets/00049513 [18:51:19]NVStorageDeleteData [18:51:20]OFD Sender: Processing packet 49514 [packets to send 22, broken 20] [18:51:20]ProducePacketName [18:51:20]name=ofd_packets/00049514 [18:51:20]OFD Sender: To server: pG, [18:51:20]CommunicateWithHost lk.salyk.kg:30040 [18:51:20]ConnectInit lk.salyk.kg [18:51:20]Connected sock=7 [18:51:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 DA 1A 20 01 C3 18 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 34 36 38 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 43 61 73 74 65 72 2B FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 37 00 00 00 00 13 04 06 00 DC 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 05 00 00 00 00 07 04 06 00 DC 37 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 92 9B BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6A C1 00 00 35 04 06 00 0A FC 30 7A FF 60 91 1F 96 22 76 80 13 1E [18:51:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 6A 21 47 00 EC 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6A C1 00 00 F4 03 04 00 EB 4A BF 66 B6 04 01 00 00 25 97 44 46 01 09 EE 40 [18:51:20]CommunicateWithHost err = 0 [18:51:20]CheckOFDResponse [18:51:20]1017 (14) - 77093643461234 [18:51:20]1041 (16) - 0000000000871800 [18:51:20]1040 (4) - 49514 [18:51:20]1012 (4) - 16.08.2024 12:49 [18:51:20]1206 (1) - 0 [18:51:20]OFD Sender: Remove packet 49514 [18:51:20]ProducePacketName [18:51:20]name=ofd_packets/00049514 [18:51:20]NVStorageDeleteData [18:51:21]OFD Sender: Processing packet 49515 [packets to send 21, broken 20] [18:51:21]ProducePacketName [18:51:21]name=ofd_packets/00049515 [18:51:21]OFD Sender: To server: pG, [18:51:21]CommunicateWithHost lk.salyk.kg:30040 [18:51:21]ConnectInit lk.salyk.kg [18:51:21]Connected sock=7 [18:51:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3C 01 00 00 95 81 34 01 04 91 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 38 36 30 32 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D0 B0 D0 BF 2C D0 BB D0 B5 D0 BC D0 BE D0 BD D0 B3 D1 80 D0 B0 D1 81 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 37 00 00 00 00 13 04 06 00 78 37 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 37 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E4 05 00 00 00 00 07 04 06 00 78 37 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 F3 9C BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6B C1 00 00 35 04 06 00 90 55 A0 8F 6A 46 33 02 40 C8 86 C5 1F 96 [18:51:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 42 A6 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 38 37 31 38 30 30 10 04 04 00 6B C1 00 00 F4 03 04 00 EC 4A BF 66 B6 04 01 00 00 A6 82 77 8A 54 05 24 8B [18:51:21]CommunicateWithHost err = 0 [18:51:21]CheckOFDResponse [18:51:21]1017 (14) - 77093643461234 [18:51:21]1041 (16) - 0000000000871800 [18:51:21]1040 (4) - 49515 [18:51:21]1012 (4) - 16.08.2024 12:49 [18:51:21]1206 (1) - 0 [18:51:21]OFD Sender: Remove packet 49515 [18:51:21]ProducePacketName [18:51:21]name=ofd_packets/00049515 [18:51:21]NVStorageDeleteData [18:51:22]OFD Sender: No OFD packet to send [18:51:27]OFD Sender: No OFD packet to send [18:51:32]OFD Sender: No OFD packet to send [18:51:37]OFD Sender: No OFD packet to send [18:51:42]OFD Sender: No OFD packet to send [18:51:47]OFD Sender: No OFD packet to send [18:51:52]OFD Sender: No OFD packet to send [18:51:57]OFD Sender: No OFD packet to send [18:52:02]OFD Sender: No OFD packet to send [18:52:07]OFD Sender: No OFD packet to send [18:52:12]OFD Sender: No OFD packet to send [18:52:17]OFD Sender: No OFD packet to send [18:52:22]OFD Sender: No OFD packet to send [18:52:27]OFD Sender: No OFD packet to send [18:52:32]OFD Sender: No OFD packet to send [18:52:37]OFD Sender: No OFD packet to send [18:52:42]OFD Sender: No OFD packet to send [18:52:47]OFD Sender: No OFD packet to send [18:52:52]OFD Sender: No OFD packet to send [18:52:57]OFD Sender: No OFD packet to send [18:53:02]OFD Sender: No OFD packet to send [18:53:07]OFD Sender: No OFD packet to send [18:53:12]OFD Sender: No OFD packet to send [18:53:17]OFD Sender: No OFD packet to send [18:53:22]OFD Sender: No OFD packet to send [18:53:27]OFD Sender: No OFD packet to send [18:53:32]OFD Sender: No OFD packet to send [18:53:37]OFD Sender: No OFD packet to send [18:53:42]OFD Sender: No OFD packet to send [18:53:47]OFD Sender: No OFD packet to send [18:53:52]OFD Sender: No OFD packet to send [18:53:57]OFD Sender: No OFD packet to send [18:54:02]OFD Sender: No OFD packet to send [18:54:07]OFD Sender: No OFD packet to send [18:54:12]OFD Sender: No OFD packet to send [18:54:17]OFD Sender: No OFD packet to send [18:54:22]OFD Sender: No OFD packet to send [18:54:27]OFD Sender: No OFD packet to send [18:54:32]OFD Sender: No OFD packet to send [18:54:37]OFD Sender: No OFD packet to send [18:54:42]OFD Sender: No OFD packet to send [18:54:47]OFD Sender: No OFD packet to send [18:54:52]OFD Sender: No OFD packet to send [18:54:57]OFD Sender: No OFD packet to send [18:55:02]OFD Sender: No OFD packet to send [18:55:07]OFD Sender: No OFD packet to send [18:55:12]OFD Sender: No OFD packet to send [18:55:17]OFD Sender: No OFD packet to send [18:55:22]OFD Sender: No OFD packet to send [18:55:27]OFD Sender: No OFD packet to send [18:55:32]OFD Sender: No OFD packet to send [18:55:37]OFD Sender: No OFD packet to send [18:55:42]OFD Sender: No OFD packet to send [18:55:47]OFD Sender: No OFD packet to send [18:55:52]OFD Sender: No OFD packet to send [18:55:57]OFD Sender: No OFD packet to send [18:56:02]OFD Sender: No OFD packet to send [18:56:07]OFD Sender: No OFD packet to send [18:56:12]OFD Sender: No OFD packet to send [18:56:17]OFD Sender: No OFD packet to send [18:56:20]accept exits with 11 [18:56:20]New connection [18:56:20]New thread 3066830180 created [18:56:20]Thread 3066973540 joined [18:56:20]Waiting for new connection... [18:56:20] Sock 11.Parse request [18:56:20]Sock 11.Check first char [18:56:20]Sock 11.First char is OK [18:56:20]request: POST /json_proto HTTP/1.0 [18:56:20]Method: POST [18:56:20]URL: /json_proto [18:56:20]Method is POST - this is cgi request [18:56:20]url: /json_proto [18:56:20]query_string will be loaded in cgi processing [18:56:20]execute_cgi json_proto POST (null) [18:56:20]execute_cgi path=json_proto method=POST [18:56:20]POST find Content-Length [18:56:20]Host: 172.17.46.196:8080 [18:56:20]Content-Length: 622 [18:56:20]Content-Type: application/json [18:56:20] [18:56:20]POST finish read [18:56:20]Found Content-Length = 622 [18:56:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189724", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:20]execute_script... [18:56: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 : (3)189724", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 1.000, "sum" : 151.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 151.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:56:20]POST & json_proto [18:56:20]process_json_proto [18:56:20]json parsed OK: [18:56:20]protocol is kg_v1.0 [18:56:20]action value=close_receipt [18:56:20]process_action close_receipt [18:56:20]cmd_close_receipt [18:56:20]MH_GetDate [18:56:20]Write to MH i2c: F0 00 00 D7 59 1F [18:56:20]Write i2c OK [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: F0 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: F0 09 00 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: F0 09 00 D7 59 00 DA A0 BF 66 07 E8 5D 66 79 [18:56:20]GetLastDocTimeStamp 1723833587 [18:56:20]current date 1723834586 [18:56:20]FM_GetShiftState [18:56:20]SAM_PROTO_GetShiftState [18:56:20]wFMCommunicate request_size=4 [18:56:20]MH_SAM_APDU [18:56:20]CAPDU: 80 13 01 00 [18:56:20]Write to MH i2c: E2 08 00 D8 59 80 13 01 00 00 00 00 00 AE [18:56:20]Write i2c OK [18:56:20]MH_I2C_Read... [18:56:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:20]Read from MH i2c: E2 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 0E 00 [18:56:20]MH_I2C_Read... [18:56:20]Read from MH i2c: E2 0E 00 D8 59 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 24 [18:56:20]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [18:56:20]wFMCommunicate OK [18:56:20]SAM_PROTO_GetShiftState done [18:56:20]FM_GetShiftState done [18:56:20]opened in 1723766958 [18:56:20]opened+sec_in_day 1723853358 [18:56:20]quantity*price = 15100 [18:56:20]sum+1 = 15101 [18:56:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 151.00 НСП 1% : 1.34 НДС 12% : 16.03 Наличными: 151.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 164 16.08.2024 18:56 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49516 ФПД: 87201881127007 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T185626&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49516&fm=87201881127007&tin=02508201610067®Number=0000000000092546&sum=15100 0 [18:56:21]StoreToDocumentArchive [18:56:21]shift 464 fd 49516 [18:56:21]save to /storage/0464/doc_00049516 [18:56:21]save last doc name /storage/0464/doc_00049516 to /storage/kkm_last_doc_name [18:56:21]save OK [18:56:21]Clear old archive folders... [18:56:21]ProcessDocumentItem done err = 0, tmpTLVsize=274 [18:56:21]tlvbuf is 00E6A2E0 [18:56:21]SAM_PROTO_ClearQueue [18:56:21]wFMCommunicate request_size=4 [18:56:21]MH_SAM_APDU [18:56:21]CAPDU: 80 09 00 00 [18:56:21]Write to MH i2c: E2 08 00 E5 59 80 09 00 00 00 00 00 00 B0 [18:56:21]Write i2c OK [18:56:21]MH_I2C_Read... [18:56:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:56:21]Read from MH i2c: E2 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: E2 03 00 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: E2 03 00 E5 59 00 90 00 B2 [18:56:21]RAPDU: 90 00 [18:56:21]wFMCommunicate OK [18:56:21]SAM_PROTO_ClearQueue done [18:56:21]KKMCreateOFDPacket [18:56:21]OFDProtocolAddRootSTLVToBuf [18:56:21]FM_MakeSignedData [18:56:21]FM_MakeSignedData [18:56:21]SAM_PROTO_SignData [18:56:21]wFMCommunicate request_size=4 [18:56:21]MH_SAM_APDU [18:56:21]CAPDU: 80 0D 01 02 [18:56:21]Write to MH i2c: E2 08 00 E6 59 80 0D 01 02 00 00 00 00 B8 [18:56:21]Write i2c OK [18:56:21]MH_I2C_Read... [18:56:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:56:21]Read from MH i2c: E2 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: E2 03 00 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: E2 03 00 E6 59 00 90 00 B3 [18:56:21]RAPDU: 90 00 [18:56:21]wFMCommunicate OK [18:56:21]wFMCommunicate request_size=255 [18:56:21]MH_SAM_APDU [18:56:21]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 A4 00 00 00 F4 03 04 00 DA A0 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 [18:56:21]Write to MH i2c: E2 02 01 E7 59 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 A4 00 00 00 F4 03 04 00 DA A0 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 00 00 96 [18:56:21]Write i2c OK [18:56:21]MH_I2C_Read... [18:56:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:21]Read from MH i2c: E2 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: E2 03 00 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: E2 03 00 E7 59 00 90 00 B4 [18:56:21]RAPDU: 90 00 [18:56:21]wFMCommunicate OK [18:56:21]wFMCommunicate request_size=33 [18:56:21]MH_SAM_APDU [18:56:21]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6C C1 00 00 35 04 06 00 4F 4F 45 25 F8 5F [18:56:21]Write to MH i2c: E2 24 00 E8 59 80 0D 02 02 1C 00 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6C C1 00 00 35 04 06 00 4F 4F 45 25 F8 5F 00 00 CE [18:56:21]Write i2c OK [18:56:21]MH_I2C_Read... [18:56:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:56:21]Read from MH i2c: E2 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: E2 03 00 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: E2 03 00 E8 59 00 90 00 B5 [18:56:21]RAPDU: 90 00 [18:56:21]wFMCommunicate OK [18:56:21]wFMCommunicate request_size=4 [18:56:21]MH_SAM_APDU [18:56:21]CAPDU: 80 0D 03 02 [18:56:21]Write to MH i2c: E2 08 00 E9 59 80 0D 03 02 00 00 00 00 BD [18:56:21]Write i2c OK [18:56:21]MH_I2C_Read... [18:56:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:56:21]Read from MH i2c: E2 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: E2 0B 00 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: E2 0B 00 E9 59 00 57 0D 4C 30 F9 1D 1B 36 90 00 05 [18:56:21]RAPDU: 57 0D 4C 30 F9 1D 1B 36 90 00 [18:56:21]wFMCommunicate OK [18:56:21]SAM_PROTO_SignData done [18:56:21]FM_MakeSignedData done [18:56:21]CreateOFDProtocolMessage [18:56:21]wFMCommunicate request_size=4 [18:56:21]MH_SAM_APDU [18:56:21]CAPDU: 80 11 00 00 [18:56:21]Write to MH i2c: E2 08 00 EA 59 80 11 00 00 00 00 00 00 BD [18:56:21]Write i2c OK [18:56:21]MH_I2C_Read... [18:56:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:21]Read from MH i2c: E2 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: E2 17 00 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: E2 17 00 EA 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 08 [18:56:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:56:21]wFMCommunicate OK [18:56:21]CreateOFDProtocolMessage done [18:56:21]OFDSenderStorePacket 49516 [18:56:21]StoreOFDPacket docnum=49516 [18:56:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 62 69 1E 01 4A 9A 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 A4 00 00 00 F4 03 04 00 DA A0 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6C C1 00 00 35 04 06 00 4F 4F 45 25 F8 5F 57 0D 4C 30 F9 1D 1B 36 [18:56:21]CheckFolder [18:56:21]dirname=/storage/ofd_packets [18:56:21]CheckFolder done [18:56:21]ProducePacketName [18:56:21]name=ofd_packets/00049516 [18:56:21]NVStorageSaveData ofd_packets/00049516 [18:56:21]File name is /storage/ofd_packets/00049516 [18:56:21]Write 324 bytes [18:56:21]NVStorageSaveData done [18:56:21]OFDSenderStorePacket done [18:56:21]KKMCreateOFDPacket done [18:56:21]NVStorageSaveData kkm_last_timestamp [18:56:21]File name is /storage/kkm_last_timestamp [18:56:21]Write 4 bytes [18:56:21]NVStorageSaveData done [18:56:21]ExternCall_PrintAddStr [18:56:21]wPrintStart [18:56:21]Write to MH i2c: 01 00 00 EB 59 44 [18:56:21]Write i2c OK [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: 01 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: 01 07 00 [18:56:21]MH_I2C_Read... [18:56:21]Read from MH i2c: 01 07 00 EB 59 00 00 00 00 00 FF 0F 59 [18:56:21]RasterBufferAndPrint [18:56:21]line Счет N : (3)189724 [18:56:21]line ИНН: 02508201610067 [18:56:21]line Контрольно-Кассовый Чек [18:56:21]line ПРОДАЖА [18:56:21]line Товар: 48741958 [18:56:21]line Сигареты Parliament Aqua Blue [18:56:21]line 1.000 * 151.00 [18:56:21]line = 151.00 [18:56:21]line НДС 12% НСП 1% [18:56:21]line > о реализуемом товаре [18:56:21]line ИТОГО: 151.00 [18:56:21]line НСП 1% : 1.34 [18:56:21]line НДС 12% : 16.03 [18:56:21]line Наличными: 151.00 [18:56:21]line Безнал.: 0.00 [18:56:21]line Место: АЗС № 95 "Партнер Нефть" [18:56:21]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:56:21]line СНО: Общий режим [18:56:21]line Чек 164 16.08.2024 18:56 [18:56:21]line Смена: 464 ФФД: 1.0 [18:56:21]line ЗНМ: 0300000078 [18:56:21]line РНМ: 0000000000092546 [18:56:21]line Версия ККМ: 001 [18:56:21]line ФМ: 0000000000871800 [18:56:21]line ФД: 49516 [18:56:21]line ФПД: 87201881127007 [18:56:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T185626&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49516&fm=87201881127007&tin=02508201610067®Number=0000000000092546&sum=15100 [18:56:22]line 0 [18:56:22]OFD Sender: Processing packet 49516 [packets to send 21, broken 20] [18:56:22]ProducePacketName [18:56:22]name=ofd_packets/00049516 [18:56:22]OFD Sender: To server: pG, [18:56:22]CommunicateWithHost lk.salyk.kg:30040 [18:56:22]ConnectInit lk.salyk.kg [18:56:22]written 0, free lines is 4095 [18:56:22]Connected sock=9 [18:56:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 62 69 1E 01 4A 9A 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 43 06 00 00 00 00 07 04 06 00 FC 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 A4 00 00 00 F4 03 04 00 DA A0 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6C C1 00 00 35 04 06 00 4F 4F 45 25 F8 5F 57 0D 4C 30 F9 1D 1B 36 [18:56:22]Write to MH i2c: 01 00 00 14 5A 6E [18:56:22]Write i2c OK [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: 01 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: 01 07 00 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: 01 07 00 14 5A 00 00 00 00 00 D2 0C 53 [18:56:22]RasterBufferAndPrint [18:56:22]line [18:56:22]line [18:56:22]line [18:56:22]line [18:56:22]line [18:56:22]written 0, free lines is 3288 [18:56:22]MH_Cut [18:56:22]Write to MH i2c: D1 01 00 1B 5A 01 47 [18:56:22]Write i2c OK [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: D1 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: D1 01 00 [18:56:22]MH_I2C_Read... [18:56:22]Read from MH i2c: D1 01 00 1B 5A 00 46 [18:56:22]Write to MH i2c: 01 00 00 1C 5A 76 [18:56:22]Write i2c OK [18:56:22]MH_I2C_Read... [18:56:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D9 A4 47 00 20 90 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6C C1 00 00 F4 03 04 00 19 4C BF 66 B6 04 01 00 00 33 BF 66 1C 12 56 07 5A [18:56:22]CommunicateWithHost err = 0 [18:56:22]CheckOFDResponse [18:56:22]1017 (14) - 77093643461234 [18:56:22]1041 (16) - 0000000000871800 [18:56:22]1040 (4) - 49516 [18:56:22]1012 (4) - 16.08.2024 12:54 [18:56:22]1206 (1) - 0 [18:56:22]OFD Sender: Remove packet 49516 [18:56:22]ProducePacketName [18:56:22]name=ofd_packets/00049516 [18:56:22]NVStorageDeleteData [18:56:23]OFD Sender: No OFD packet to send [18:56:23]*** Cut start [18:56:23]*** Purtial cut [18:56:23]*** CUTSNS_PIN = 0 [18:56:23]*** Stage 1: CUTSNS_PIN = 1 [18:56:25]Read from MH i2c: 01 [18:56:25]MH_I2C_Read... [18:56:25]*** Stop cut motor [18:56:25]*** Cut end [18:56:25]Read from MH i2c: 01 07 00 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: 01 07 00 1C 5A 00 00 00 00 00 FF 0F 8B [18:56:25]process_action close_receipt done [18:56:25]requested_data is exist [18:56:25]produce_requested_data [18:56:25]requested_item fm.sn is exist - process it [18:56:25]wFMCommunicate request_size=4 [18:56:25]MH_SAM_APDU [18:56:25]CAPDU: 80 11 00 00 [18:56:25]Write to MH i2c: E2 08 00 1D 5A 80 11 00 00 00 00 00 00 F1 [18:56:25]Write i2c OK [18:56:25]MH_I2C_Read... [18:56:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:56:25]Read from MH i2c: E2 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: E2 17 00 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: E2 17 00 1D 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3C [18:56:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:56:25]wFMCommunicate OK [18:56:25]requested_item fd.num is exist - process it [18:56:25]SAM_PROTO_GetFieldsCounters [18:56:25]wFMCommunicate request_size=4 [18:56:25]MH_SAM_APDU [18:56:25]CAPDU: 80 13 00 00 [18:56:25]Write to MH i2c: E2 08 00 1E 5A 80 13 00 00 00 00 00 00 F4 [18:56:25]Write i2c OK [18:56:25]MH_I2C_Read... [18:56:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:56:25]Read from MH i2c: E2 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: E2 62 00 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: E2 62 00 1E 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6C C1 00 00 0E 04 04 00 D0 01 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 F8 [18:56:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6C C1 00 00 0E 04 04 00 D0 01 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 [18:56:25]wFMCommunicate OK [18:56:25]SAM_PROTO_GetFieldsCounters done [18:56:25]requested_item shift.num is exist - process it [18:56:25]requested_item shift.opened is exist - process it [18:56:25]req_shift_opened [18:56:25]FM_GetShiftState [18:56:25]SAM_PROTO_GetShiftState [18:56:25]wFMCommunicate request_size=4 [18:56:25]MH_SAM_APDU [18:56:25]CAPDU: 80 13 01 00 [18:56:25]Write to MH i2c: E2 08 00 1F 5A 80 13 01 00 00 00 00 00 F6 [18:56:25]Write i2c OK [18:56:25]MH_I2C_Read... [18:56:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:56:25]Read from MH i2c: E2 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: E2 0E 00 [18:56:25]MH_I2C_Read... [18:56:25]Read from MH i2c: E2 0E 00 1F 5A 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 6C [18:56:25]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [18:56:25]wFMCommunicate OK [18:56:25]SAM_PROTO_GetShiftState done [18:56:25]FM_GetShiftState done [18:56:25]req_shift_opened done [18:56:25]requested_item shift.open_date is exist - process it [18:56:25]req_shift_open_date [18:56:25]req_shift_open_date done [18:56:25]produce_requested_data done [18:56:25]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49516,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [18:56:25]process_action_free close_receipt [18:56:25]json_value_free [18:56:25]json_value_free done [18:56:25]process_json_proto returns [18:56:25]Send response to host [18:56:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49516,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [18:56:25]free response buf [18:56:25]execute_script done [18:56:25]execute_script returns [18:56:25]free content buf [18:56:25]Sock 11.Close socket [18:56:25]Sock 11.Thread stoped [18:56:28]OFD Sender: No OFD packet to send [18:56:33]OFD Sender: No OFD packet to send [18:56:38]OFD Sender: No OFD packet to send [18:56:43]OFD Sender: No OFD packet to send [18:56:48]OFD Sender: No OFD packet to send [18:56:53]OFD Sender: No OFD packet to send [18:56:58]OFD Sender: No OFD packet to send [18:57:00]accept exits with 7 [18:57:00]New connection [18:57:00]New thread 3066973540 created [18:57:00]Thread 3066830180 joined [18:57:00]Waiting for new connection... [18:57:00] Sock 7.Parse request [18:57:00]Sock 7.Check first char [18:57:00]Sock 7.First char is OK [18:57:00]request: POST /json_proto HTTP/1.0 [18:57:00]Method: POST [18:57:00]URL: /json_proto [18:57:00]Method is POST - this is cgi request [18:57:00]url: /json_proto [18:57:00]query_string will be loaded in cgi processing [18:57:00]execute_cgi json_proto POST (null) [18:57:00]execute_cgi path=json_proto method=POST [18:57:00]POST find Content-Length [18:57:00]Host: 172.17.46.196:8080 [18:57:00]Content-Length: 622 [18:57:00]Content-Type: application/json [18:57:00] [18:57:00]POST finish read [18:57:00]Found Content-Length = 622 [18:57:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189725", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 2.000, "sum" : 302.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 302.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:00]execute_script... [18:57: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 : (3)189725", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 151.00, "quantity" : 2.000, "sum" : 302.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 302.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:00]POST & json_proto [18:57:00]process_json_proto [18:57:00]json parsed OK: [18:57:00]protocol is kg_v1.0 [18:57:00]action value=close_receipt [18:57:00]process_action close_receipt [18:57:00]cmd_close_receipt [18:57:00]MH_GetDate [18:57:00]Write to MH i2c: F0 00 00 20 5A 69 [18:57:00]Write i2c OK [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: F0 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: F0 09 00 [18:57:00]MH_I2C_Read... [18:57:00]Read from MH i2c: F0 09 00 20 5A 00 03 A1 BF 66 07 E8 5D 66 ED [18:57:00]GetLastDocTimeStamp 1723834586 [18:57:00]current date 1723834627 [18:57:00]FM_GetShiftState [18:57:00]SAM_PROTO_GetShiftState [18:57:00]wFMCommunicate request_size=4 [18:57:00]MH_SAM_APDU [18:57:00]CAPDU: 80 13 01 00 [18:57:00]Write to MH i2c: E2 08 00 21 5A 80 13 01 00 00 00 00 00 F8 [18:57:00]Write i2c OK [18:57:00]MH_I2C_Read... [18:57:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:01]Read from MH i2c: E2 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 0E 00 [18:57:01]MH_I2C_Read... [18:57:01]Read from MH i2c: E2 0E 00 21 5A 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 6E [18:57:01]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [18:57:01]wFMCommunicate OK [18:57:01]SAM_PROTO_GetShiftState done [18:57:01]FM_GetShiftState done [18:57:01]opened in 1723766958 [18:57:01]opened+sec_in_day 1723853358 [18:57:01]quantity*price = 30200 [18:57:01]sum+1 = 30201 [18:57:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 302.00 НСП 1% : 2.67 НДС 12% : 32.07 Наличными: 302.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 165 16.08.2024 18:57 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49517 ФПД: 279986038259164 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T185707&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49517&fm=279986038259164&tin=02508201610067®Number=0000000000092546&sum=30200 0 [18:57:02]StoreToDocumentArchive [18:57:02]shift 464 fd 49517 [18:57:02]save to /storage/0464/doc_00049517 [18:57:02]save last doc name /storage/0464/doc_00049517 to /storage/kkm_last_doc_name [18:57:02]save OK [18:57:02]Clear old archive folders... [18:57:02]ProcessDocumentItem done err = 0, tmpTLVsize=274 [18:57:02]tlvbuf is 00F4A1C0 [18:57:02]SAM_PROTO_ClearQueue [18:57:02]wFMCommunicate request_size=4 [18:57:02]MH_SAM_APDU [18:57:02]CAPDU: 80 09 00 00 [18:57:02]Write to MH i2c: E2 08 00 2E 5A 80 09 00 00 00 00 00 00 FA [18:57:02]Write i2c OK [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 [18:57:02]MH_I2C_Read... [18:57:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:02]Read from MH i2c: E2 03 00 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 03 00 2E 5A 00 90 00 FC [18:57:02]RAPDU: 90 00 [18:57:02]wFMCommunicate OK [18:57:02]SAM_PROTO_ClearQueue done [18:57:02]KKMCreateOFDPacket [18:57:02]OFDProtocolAddRootSTLVToBuf [18:57:02]FM_MakeSignedData [18:57:02]FM_MakeSignedData [18:57:02]SAM_PROTO_SignData [18:57:02]wFMCommunicate request_size=4 [18:57:02]MH_SAM_APDU [18:57:02]CAPDU: 80 0D 01 02 [18:57:02]Write to MH i2c: E2 08 00 2F 5A 80 0D 01 02 00 00 00 00 02 [18:57:02]Write i2c OK [18:57:02]MH_I2C_Read... [18:57:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:02]Read from MH i2c: E2 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 03 00 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 03 00 2F 5A 00 90 00 FD [18:57:02]RAPDU: 90 00 [18:57:02]wFMCommunicate OK [18:57:02]wFMCommunicate request_size=255 [18:57:02]MH_SAM_APDU [18:57:02]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 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 A5 00 00 00 F4 03 04 00 03 A1 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 [18:57:02]Write to MH i2c: E2 02 01 30 5A 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 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 A5 00 00 00 F4 03 04 00 03 A1 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 00 00 6C [18:57:02]Write i2c OK [18:57:02]MH_I2C_Read... [18:57:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:02]Read from MH i2c: E2 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 03 00 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 03 00 30 5A 00 90 00 FE [18:57:02]RAPDU: 90 00 [18:57:02]wFMCommunicate OK [18:57:02]wFMCommunicate request_size=33 [18:57:02]MH_SAM_APDU [18:57:02]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6D C1 00 00 35 04 06 00 FE A5 54 5A 3D DC [18:57:02]Write to MH i2c: E2 24 00 31 5A 80 0D 02 02 1C 00 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6D C1 00 00 35 04 06 00 FE A5 54 5A 3D DC 00 00 24 [18:57:02]Write i2c OK [18:57:02]MH_I2C_Read... [18:57:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:02]Read from MH i2c: E2 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 03 00 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 03 00 31 5A 00 90 00 FF [18:57:02]RAPDU: 90 00 [18:57:02]wFMCommunicate OK [18:57:02]wFMCommunicate request_size=4 [18:57:02]MH_SAM_APDU [18:57:02]CAPDU: 80 0D 03 02 [18:57:02]Write to MH i2c: E2 08 00 32 5A 80 0D 03 02 00 00 00 00 07 [18:57:02]Write i2c OK [18:57:02]MH_I2C_Read... [18:57:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:02]Read from MH i2c: E2 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 0B 00 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 0B 00 32 5A 00 58 42 35 8E A6 AF 9F 26 90 00 7F [18:57:02]RAPDU: 58 42 35 8E A6 AF 9F 26 90 00 [18:57:02]wFMCommunicate OK [18:57:02]SAM_PROTO_SignData done [18:57:02]FM_MakeSignedData done [18:57:02]CreateOFDProtocolMessage [18:57:02]wFMCommunicate request_size=4 [18:57:02]MH_SAM_APDU [18:57:02]CAPDU: 80 11 00 00 [18:57:02]Write to MH i2c: E2 08 00 33 5A 80 11 00 00 00 00 00 00 07 [18:57:02]Write i2c OK [18:57:02]MH_I2C_Read... [18:57:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:02]Read from MH i2c: E2 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 17 00 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: E2 17 00 33 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 52 [18:57:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:57:02]wFMCommunicate OK [18:57:02]CreateOFDProtocolMessage done [18:57:02]OFDSenderStorePacket 49517 [18:57:02]StoreOFDPacket docnum=49517 [18:57:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 C5 61 1E 01 D5 D1 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 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 A5 00 00 00 F4 03 04 00 03 A1 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6D C1 00 00 35 04 06 00 FE A5 54 5A 3D DC 58 42 35 8E A6 AF 9F 26 [18:57:02]CheckFolder [18:57:02]dirname=/storage/ofd_packets [18:57:02]CheckFolder done [18:57:02]ProducePacketName [18:57:02]name=ofd_packets/00049517 [18:57:02]NVStorageSaveData ofd_packets/00049517 [18:57:02]File name is /storage/ofd_packets/00049517 [18:57:02]Write 324 bytes [18:57:02]NVStorageSaveData done [18:57:02]OFDSenderStorePacket done [18:57:02]KKMCreateOFDPacket done [18:57:02]NVStorageSaveData kkm_last_timestamp [18:57:02]File name is /storage/kkm_last_timestamp [18:57:02]Write 4 bytes [18:57:02]NVStorageSaveData done [18:57:02]ExternCall_PrintAddStr [18:57:02]wPrintStart [18:57:02]Write to MH i2c: 01 00 00 34 5A 8E [18:57:02]Write i2c OK [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: 01 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: 01 07 00 [18:57:02]MH_I2C_Read... [18:57:02]Read from MH i2c: 01 07 00 34 5A 00 00 00 00 00 FF 0F A3 [18:57:02]RasterBufferAndPrint [18:57:02]line Счет N : (3)189725 [18:57:02]line ИНН: 02508201610067 [18:57:02]line Контрольно-Кассовый Чек [18:57:02]line ПРОДАЖА [18:57:02]line Товар: 48741958 [18:57:02]line Сигареты Parliament Aqua Blue [18:57:02]line 2.000 * 151.00 [18:57:02]line = 302.00 [18:57:02]line НДС 12% НСП 1% [18:57:02]line > о реализуемом товаре [18:57:02]line ИТОГО: 302.00 [18:57:02]line НСП 1% : 2.67 [18:57:02]line НДС 12% : 32.07 [18:57:02]line Наличными: 302.00 [18:57:02]line Безнал.: 0.00 [18:57:02]line Место: АЗС № 95 "Партнер Нефть" [18:57:02]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:57:02]line СНО: Общий режим [18:57:02]line Чек 165 16.08.2024 18:57 [18:57:02]line Смена: 464 ФФД: 1.0 [18:57:02]line ЗНМ: 0300000078 [18:57:02]line РНМ: 0000000000092546 [18:57:02]line Версия ККМ: 001 [18:57:02]line ФМ: 0000000000871800 [18:57:02]line ФД: 49517 [18:57:02]line ФПД: 279986038259164 [18:57:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T185707&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49517&fm=279986038259164&tin=02508201610067®Number=0000000000092546&sum=30200 [18:57:03]line 0 [18:57:03]OFD Sender: Processing packet 49517 [packets to send 21, broken 20] [18:57:03]ProducePacketName [18:57:03]name=ofd_packets/00049517 [18:57:03]OFD Sender: To server: pG, [18:57:03]CommunicateWithHost lk.salyk.kg:30040 [18:57:03]ConnectInit lk.salyk.kg [18:57:03]written 0, free lines is 4095 [18:57:03]Connected sock=10 [18:57:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 C5 61 1E 01 D5 D1 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 F8 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 0C 00 00 00 00 07 04 06 00 F8 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 A5 00 00 00 F4 03 04 00 03 A1 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6D C1 00 00 35 04 06 00 FE A5 54 5A 3D DC 58 42 35 8E A6 AF 9F 26 [18:57:03]Write to MH i2c: 01 00 00 5D 5A B7 [18:57:03]Write i2c OK [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: 01 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: 01 07 00 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: 01 07 00 5D 5A 00 00 00 00 00 D7 0C A1 [18:57:03]RasterBufferAndPrint [18:57:03]line [18:57:03]line [18:57:03]line [18:57:03]line [18:57:03]line [18:57:03]written 0, free lines is 3295 [18:57:03]MH_Cut [18:57:03]Write to MH i2c: D1 01 00 64 5A 01 90 [18:57:03]Write i2c OK [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: D1 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: D1 01 00 [18:57:03]MH_I2C_Read... [18:57:03]Read from MH i2c: D1 01 00 64 5A 00 8F [18:57:03]Write to MH i2c: 01 00 00 65 5A BF [18:57:03]Write i2c OK [18:57:03]MH_I2C_Read... [18:57:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 85 AD 47 00 76 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6D C1 00 00 F4 03 04 00 41 4C BF 66 B6 04 01 00 00 41 34 3E D8 CF FC 86 85 [18:57:03]CommunicateWithHost err = 0 [18:57:03]CheckOFDResponse [18:57:03]1017 (14) - 77093643461234 [18:57:03]1041 (16) - 0000000000871800 [18:57:03]1040 (4) - 49517 [18:57:03]1012 (4) - 16.08.2024 12:55 [18:57:03]1206 (1) - 0 [18:57:03]OFD Sender: Remove packet 49517 [18:57:03]ProducePacketName [18:57:03]name=ofd_packets/00049517 [18:57:03]NVStorageDeleteData [18:57:03]OFD Sender: No OFD packet to send [18:57:04]*** Cut start [18:57:04]*** Purtial cut [18:57:04]*** Stage 1: CUTSNS_PIN = 1 [18:57:04]Read from MH i2c: 01 [18:57:04]MH_I2C_Read... [18:57:04]*** Stop cut motor [18:57:04]*** Cut end [18:57:04]Read from MH i2c: 01 07 00 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: 01 07 00 65 5A 00 00 00 00 00 FF 0F D4 [18:57:04]process_action close_receipt done [18:57:04]requested_data is exist [18:57:04]produce_requested_data [18:57:04]requested_item fm.sn is exist - process it [18:57:04]wFMCommunicate request_size=4 [18:57:04]MH_SAM_APDU [18:57:04]CAPDU: 80 11 00 00 [18:57:04]Write to MH i2c: E2 08 00 66 5A 80 11 00 00 00 00 00 00 3A [18:57:04]Write i2c OK [18:57:04]MH_I2C_Read... [18:57:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:04]Read from MH i2c: E2 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 17 00 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 17 00 66 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 85 [18:57:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:57:04]wFMCommunicate OK [18:57:04]requested_item fd.num is exist - process it [18:57:04]SAM_PROTO_GetFieldsCounters [18:57:04]wFMCommunicate request_size=4 [18:57:04]MH_SAM_APDU [18:57:04]CAPDU: 80 13 00 00 [18:57:04]Write to MH i2c: E2 08 00 67 5A 80 13 00 00 00 00 00 00 3D [18:57:04]Write i2c OK [18:57:04]MH_I2C_Read... [18:57:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:04]Read from MH i2c: E2 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 62 00 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 62 00 67 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6D C1 00 00 0E 04 04 00 D0 01 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 45 [18:57:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6D C1 00 00 0E 04 04 00 D0 01 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 [18:57:04]wFMCommunicate OK [18:57:04]SAM_PROTO_GetFieldsCounters done [18:57:04]requested_item shift.num is exist - process it [18:57:04]requested_item shift.opened is exist - process it [18:57:04]req_shift_opened [18:57:04]FM_GetShiftState [18:57:04]SAM_PROTO_GetShiftState [18:57:04]wFMCommunicate request_size=4 [18:57:04]MH_SAM_APDU [18:57:04]CAPDU: 80 13 01 00 [18:57:04]Write to MH i2c: E2 08 00 68 5A 80 13 01 00 00 00 00 00 3F [18:57:04]Write i2c OK [18:57:04]MH_I2C_Read... [18:57:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:04]Read from MH i2c: E2 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 0E 00 [18:57:04]MH_I2C_Read... [18:57:04]Read from MH i2c: E2 0E 00 68 5A 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 B5 [18:57:04]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [18:57:04]wFMCommunicate OK [18:57:04]SAM_PROTO_GetShiftState done [18:57:04]FM_GetShiftState done [18:57:04]req_shift_opened done [18:57:04]requested_item shift.open_date is exist - process it [18:57:04]req_shift_open_date [18:57:04]req_shift_open_date done [18:57:04]produce_requested_data done [18:57:04]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49517,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [18:57:04]process_action_free close_receipt [18:57:04]json_value_free [18:57:04]json_value_free done [18:57:04]process_json_proto returns [18:57:04]Send response to host [18:57:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49517,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [18:57:04]free response buf [18:57:04]execute_script done [18:57:04]execute_script returns [18:57:04]free content buf [18:57:04]Sock 7.Close socket [18:57:04]Sock 7.Thread stoped [18:57:08]OFD Sender: No OFD packet to send [18:57:14]OFD Sender: No OFD packet to send [18:57:19]OFD Sender: No OFD packet to send [18:57:24]OFD Sender: No OFD packet to send [18:57:29]OFD Sender: No OFD packet to send [18:57:34]OFD Sender: No OFD packet to send [18:57:39]OFD Sender: No OFD packet to send [18:57:44]OFD Sender: No OFD packet to send [18:57:49]OFD Sender: No OFD packet to send [18:57:54]OFD Sender: No OFD packet to send [18:57:59]OFD Sender: No OFD packet to send [18:58:04]OFD Sender: No OFD packet to send [18:58:09]OFD Sender: No OFD packet to send [18:58:14]OFD Sender: No OFD packet to send [18:58:19]OFD Sender: No OFD packet to send [18:58:24]OFD Sender: No OFD packet to send [18:58:29]OFD Sender: No OFD packet to send [18:58:34]OFD Sender: No OFD packet to send [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:34]accept exits with 9 [18:59:34]New connection [18:59:34]New thread 3066830180 created [18:59:34]Thread 3066973540 joined [18:59:34]Waiting for new connection... [18:59:34] Sock 9.Parse request [18:59:34]Sock 9.Check first char [18:59:34]Sock 9.First char is OK [18:59:34]request: POST /json_proto HTTP/1.0 [18:59:34]Method: POST [18:59:34]URL: /json_proto [18:59:34]Method is POST - this is cgi request [18:59:34]url: /json_proto [18:59:34]query_string will be loaded in cgi processing [18:59:34]execute_cgi json_proto POST (null) [18:59:34]execute_cgi path=json_proto method=POST [18:59:34]POST find Content-Length [18:59:34]Host: 172.17.46.196:8080 [18:59:34]Content-Length: 823 [18:59:34]Content-Type: application/json [18:59:34] [18:59:34]POST finish read [18:59:34]Found Content-Length = 823 [18:59:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189726", "tax_sys" : 0, "items" : [ { "code": "2074042218486", "name": "\u0434\u0435\u0440\u0436\u0430\u0442\u0435\u043B\u0438 \u043C\u043E\u0431.\u0442\u0435\u043B \"Yike\" yk 09", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:34]execute_script... [18:59: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 : (3)189726", "tax_sys" : 0, "items" : [ { "code": "2074042218486", "name": "\u0434\u0435\u0440\u0436\u0430\u0442\u0435\u043B\u0438 \u043C\u043E\u0431.\u0442\u0435\u043B \"Yike\" yk 09", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:34]POST & json_proto [18:59:34]process_json_proto [18:59:34]json parsed OK: [18:59:34]protocol is kg_v1.0 [18:59:34]action value=close_receipt [18:59:34]process_action close_receipt [18:59:34]cmd_close_receipt [18:59:34]MH_GetDate [18:59:34]Write to MH i2c: F0 00 00 69 5A B2 [18:59:34]Write i2c OK [18:59:34]MH_I2C_Read... [18:59:34]Read from MH i2c: F0 [18:59:34]MH_I2C_Read... [18:59:34]Read from MH i2c: F0 09 00 [18:59:34]MH_I2C_Read... [18:59:34]Read from MH i2c: F0 09 00 69 5A 00 9D A1 BF 66 07 E8 5D 66 D0 [18:59:34]GetLastDocTimeStamp 1723834627 [18:59:34]current date 1723834781 [18:59:34]FM_GetShiftState [18:59:34]SAM_PROTO_GetShiftState [18:59:34]wFMCommunicate request_size=4 [18:59:34]MH_SAM_APDU [18:59:34]CAPDU: 80 13 01 00 [18:59:34]Write to MH i2c: E2 08 00 6A 5A 80 13 01 00 00 00 00 00 41 [18:59:34]Write i2c OK [18:59:34]MH_I2C_Read... [18:59:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:34]Read from MH i2c: E2 [18:59:34]MH_I2C_Read... [18:59:34]Read from MH i2c: E2 0E 00 [18:59:34]MH_I2C_Read... [18:59:34]Read from MH i2c: E2 0E 00 6A 5A 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 B7 [18:59:34]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [18:59:34]wFMCommunicate OK [18:59:34]SAM_PROTO_GetShiftState done [18:59:34]FM_GetShiftState done [18:59:34]opened in 1723766958 [18:59:34]opened+sec_in_day 1723853358 [18:59:34]quantity*price = 9000 [18:59:34]sum+1 = 9001 [18:59:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 0.00 Безнал.: 90.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 166 16.08.2024 18:59 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49518 ФПД: 223734435930812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T185941&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49518&fm=223734435930812&tin=02508201610067®Number=0000000000092546&sum=9000 0 [18:59:36]StoreToDocumentArchive [18:59:36]shift 464 fd 49518 [18:59:36]save to /storage/0464/doc_00049518 [18:59:36]save last doc name /storage/0464/doc_00049518 to /storage/kkm_last_doc_name [18:59:36]save OK [18:59:36]Clear old archive folders... [18:59:36]ProcessDocumentItem done err = 0, tmpTLVsize=287 [18:59:36]tlvbuf is 00DEA3F0 [18:59:36]SAM_PROTO_ClearQueue [18:59:36]wFMCommunicate request_size=4 [18:59:36]MH_SAM_APDU [18:59:36]CAPDU: 80 09 00 00 [18:59:36]Write to MH i2c: E2 08 00 77 5A 80 09 00 00 00 00 00 00 43 [18:59:36]Write i2c OK [18:59:36]MH_I2C_Read... [18:59:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:36]Read from MH i2c: E2 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 03 00 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 03 00 77 5A 00 90 00 45 [18:59:36]RAPDU: 90 00 [18:59:36]wFMCommunicate OK [18:59:36]SAM_PROTO_ClearQueue done [18:59:36]KKMCreateOFDPacket [18:59:36]OFDProtocolAddRootSTLVToBuf [18:59:36]FM_MakeSignedData [18:59:36]FM_MakeSignedData [18:59:36]SAM_PROTO_SignData [18:59:36]wFMCommunicate request_size=4 [18:59:36]MH_SAM_APDU [18:59:36]CAPDU: 80 0D 01 02 [18:59:36]Write to MH i2c: E2 08 00 78 5A 80 0D 01 02 00 00 00 00 4B [18:59:36]Write i2c OK [18:59:36]MH_I2C_Read... [18:59:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:36]Read from MH i2c: E2 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 03 00 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 03 00 78 5A 00 90 00 46 [18:59:36]RAPDU: 90 00 [18:59:36]wFMCommunicate OK [18:59:36]wFMCommunicate request_size=255 [18:59:36]MH_SAM_APDU [18:59:36]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 37 34 30 34 32 32 31 38 34 38 36 06 04 2D 00 D0 B4 D0 B5 D1 80 D0 B6 D0 B0 D1 82 D0 B5 D0 BB D0 B8 20 D0 BC D0 BE D0 B1 2E D1 82 D0 B5 D0 BB 20 22 59 69 6B 65 22 20 79 6B 20 30 39 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 9D A1 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 [18:59:36]Write to MH i2c: E2 02 01 79 5A 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 37 34 30 34 32 32 31 38 34 38 36 06 04 2D 00 D0 B4 D0 B5 D1 80 D0 B6 D0 B0 D1 82 D0 B5 D0 BB D0 B8 20 D0 BC D0 BE D0 B1 2E D1 82 D0 B5 D0 BB 20 22 59 69 6B 65 22 20 79 6B 20 30 39 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 9D A1 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 00 00 D4 [18:59:36]Write i2c OK [18:59:36]MH_I2C_Read... [18:59:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:36]Read from MH i2c: E2 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 03 00 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 03 00 79 5A 00 90 00 47 [18:59:36]RAPDU: 90 00 [18:59:36]wFMCommunicate OK [18:59:36]wFMCommunicate request_size=46 [18:59:36]MH_SAM_APDU [18:59:36]CAPDU: 80 0D 02 02 29 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6E C1 00 00 35 04 06 00 CB 7C 3B 93 E2 BC [18:59:36]Write to MH i2c: E2 31 00 7A 5A 80 0D 02 02 29 00 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6E C1 00 00 35 04 06 00 CB 7C 3B 93 E2 BC 00 00 B5 [18:59:36]Write i2c OK [18:59:36]MH_I2C_Read... [18:59:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:36]Read from MH i2c: E2 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 03 00 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 03 00 7A 5A 00 90 00 48 [18:59:36]RAPDU: 90 00 [18:59:36]wFMCommunicate OK [18:59:36]wFMCommunicate request_size=4 [18:59:36]MH_SAM_APDU [18:59:36]CAPDU: 80 0D 03 02 [18:59:36]Write to MH i2c: E2 08 00 7B 5A 80 0D 03 02 00 00 00 00 50 [18:59:36]Write i2c OK [18:59:36]MH_I2C_Read... [18:59:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:36]Read from MH i2c: E2 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 0B 00 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 0B 00 7B 5A 00 44 8D 60 0B 29 33 08 79 90 00 6A [18:59:36]RAPDU: 44 8D 60 0B 29 33 08 79 90 00 [18:59:36]wFMCommunicate OK [18:59:36]SAM_PROTO_SignData done [18:59:36]FM_MakeSignedData done [18:59:36]CreateOFDProtocolMessage [18:59:36]wFMCommunicate request_size=4 [18:59:36]MH_SAM_APDU [18:59:36]CAPDU: 80 11 00 00 [18:59:36]Write to MH i2c: E2 08 00 7C 5A 80 11 00 00 00 00 00 00 50 [18:59:36]Write i2c OK [18:59:36]MH_I2C_Read... [18:59:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:36]Read from MH i2c: E2 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 17 00 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: E2 17 00 7C 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 9B [18:59:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:59:36]wFMCommunicate OK [18:59:36]CreateOFDProtocolMessage done [18:59:36]OFDSenderStorePacket 49518 [18:59:36]StoreOFDPacket docnum=49518 [18:59:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 33 01 00 00 FD 54 2B 01 30 27 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 37 34 30 34 32 32 31 38 34 38 36 06 04 2D 00 D0 B4 D0 B5 D1 80 D0 B6 D0 B0 D1 82 D0 B5 D0 BB D0 B8 20 D0 BC D0 BE D0 B1 2E D1 82 D0 B5 D0 BB 20 22 59 69 6B 65 22 20 79 6B 20 30 39 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 9D A1 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6E C1 00 00 35 04 06 00 CB 7C 3B 93 E2 BC 44 8D 60 0B 29 33 08 79 [18:59:36]CheckFolder [18:59:36]dirname=/storage/ofd_packets [18:59:36]CheckFolder done [18:59:36]ProducePacketName [18:59:36]name=ofd_packets/00049518 [18:59:36]NVStorageSaveData ofd_packets/00049518 [18:59:36]File name is /storage/ofd_packets/00049518 [18:59:36]Write 337 bytes [18:59:36]NVStorageSaveData done [18:59:36]OFDSenderStorePacket done [18:59:36]KKMCreateOFDPacket done [18:59:36]NVStorageSaveData kkm_last_timestamp [18:59:36]File name is /storage/kkm_last_timestamp [18:59:36]Write 4 bytes [18:59:36]NVStorageSaveData done [18:59:36]ExternCall_PrintAddStr [18:59:36]wPrintStart [18:59:36]Write to MH i2c: 01 00 00 7D 5A D7 [18:59:36]Write i2c OK [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: 01 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: 01 07 00 [18:59:36]MH_I2C_Read... [18:59:36]Read from MH i2c: 01 07 00 7D 5A 00 00 00 00 00 FF 0F EC [18:59:36]RasterBufferAndPrint [18:59:36]line Счет N : (3)189726 [18:59:36]line ИНН: 02508201610067 [18:59:36]line Контрольно-Кассовый Чек [18:59:36]line ПРОДАЖА [18:59:36]line Товар: 2074042218486 [18:59:36]line держатели моб.тел "Yike" yk 09 [18:59:36]line 1.000 * 90.00 [18:59:36]line = 90.00 [18:59:36]line НДС 12% НСП 1% [18:59:36]line > о реализуемом товаре [18:59:36]line ИТОГО: 90.00 [18:59:36]line НСП 1% : 0.80 [18:59:36]line НДС 12% : 9.56 [18:59:36]line Наличными: 0.00 [18:59:36]line Безнал.: 90.00 [18:59:36]line Место: АЗС № 95 "Партнер Нефть" [18:59:36]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:59:36]line СНО: Общий режим [18:59:36]line Чек 166 16.08.2024 18:59 [18:59:36]line Смена: 464 ФФД: 1.0 [18:59:36]line ЗНМ: 0300000078 [18:59:36]line РНМ: 0000000000092546 [18:59:36]line Версия ККМ: 001 [18:59:36]line Платежная система: O! деньги [18:59:36]line ФМ: 0000000000871800 [18:59:36]line ФД: 49518 [18:59:36]line ФПД: 223734435930812 [18:59:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T185941&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49518&fm=223734435930812&tin=02508201610067®Number=0000000000092546&sum=9000 [18:59:37]line 0 [18:59:37]OFD Sender: Processing packet 49518 [packets to send 21, broken 20] [18:59:37]ProducePacketName [18:59:37]name=ofd_packets/00049518 [18:59:37]OFD Sender: To server: pG, [18:59:37]CommunicateWithHost lk.salyk.kg:30040 [18:59:37]ConnectInit lk.salyk.kg [18:59:37]written 0, free lines is 4095 [18:59:37]Connected sock=10 [18:59:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 33 01 00 00 FD 54 2B 01 30 27 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 37 34 30 34 32 32 31 38 34 38 36 06 04 2D 00 D0 B4 D0 B5 D1 80 D0 B6 D0 B0 D1 82 D0 B5 D0 BB D0 B8 20 D0 BC D0 BE D0 B1 2E D1 82 D0 B5 D0 BB 20 22 59 69 6B 65 22 20 79 6B 20 30 39 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 23 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 9D A1 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6E C1 00 00 35 04 06 00 CB 7C 3B 93 E2 BC 44 8D 60 0B 29 33 08 79 [18:59:37]Write to MH i2c: 01 00 00 A8 5A 02 [18:59:37]Write i2c OK [18:59:37]MH_I2C_Read... [18:59:37]Read from MH i2c: 01 [18:59:37]MH_I2C_Read... [18:59:37]Read from MH i2c: 01 07 00 [18:59:37]MH_I2C_Read... [18:59:37]Read from MH i2c: 01 07 00 A8 5A 00 00 00 00 00 D0 0C E5 [18:59:37]RasterBufferAndPrint [18:59:37]line [18:59:37]line [18:59:37]line [18:59:37]line [18:59:37]line [18:59:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A7 AB 47 00 F0 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 38 37 31 38 30 30 10 04 04 00 6E C1 00 00 F4 03 04 00 DB 4C BF 66 B6 04 01 00 00 EE DD 6C 06 62 1B 26 F0 [18:59:37]CommunicateWithHost err = 0 [18:59:37]CheckOFDResponse [18:59:37]1017 (14) - 77093643461234 [18:59:37]1041 (16) - 0000000000871800 [18:59:37]1040 (4) - 49518 [18:59:37]1012 (4) - 16.08.2024 12:58 [18:59:37]1206 (1) - 0 [18:59:37]OFD Sender: Remove packet 49518 [18:59:37]ProducePacketName [18:59:37]name=ofd_packets/00049518 [18:59:37]NVStorageDeleteData [18:59:37]written 0, free lines is 3295 [18:59:37]MH_Cut [18:59:37]Write to MH i2c: D1 01 00 AF 5A 01 DB [18:59:37]Write i2c OK [18:59:37]MH_I2C_Read... [18:59:37]Read from MH i2c: D1 [18:59:37]MH_I2C_Read... [18:59:37]Read from MH i2c: D1 01 00 [18:59:37]MH_I2C_Read... [18:59:37]Read from MH i2c: D1 01 00 AF 5A 00 DA [18:59:37]Write to MH i2c: 01 00 00 B0 5A 0A [18:59:37]Write i2c OK [18:59:37]MH_I2C_Read... [18:59:37]OFD Sender: No OFD packet to send [18:59:38]*** Cut start [18:59:38]*** Purtial cut [18:59:38]*** CUTSNS_PIN = 0 [18:59:38]*** Stage 1: CUTSNS_PIN = 1 [18:59:40]Read from MH i2c: 01 [18:59:40]MH_I2C_Read... [18:59:40]*** Stop cut motor [18:59:40]*** Cut end [18:59:40]Read from MH i2c: 01 07 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: 01 07 00 B0 5A 00 00 00 00 00 FF 0F 1F [18:59:40]process_action close_receipt done [18:59:40]requested_data is exist [18:59:40]produce_requested_data [18:59:40]requested_item fm.sn is exist - process it [18:59:40]wFMCommunicate request_size=4 [18:59:40]MH_SAM_APDU [18:59:40]CAPDU: 80 11 00 00 [18:59:40]Write to MH i2c: E2 08 00 B1 5A 80 11 00 00 00 00 00 00 85 [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:40]Read from MH i2c: E2 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 17 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 17 00 B1 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 D0 [18:59:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:59:40]wFMCommunicate OK [18:59:40]requested_item fd.num is exist - process it [18:59:40]SAM_PROTO_GetFieldsCounters [18:59:40]wFMCommunicate request_size=4 [18:59:40]MH_SAM_APDU [18:59:40]CAPDU: 80 13 00 00 [18:59:40]Write to MH i2c: E2 08 00 B2 5A 80 13 00 00 00 00 00 00 88 [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:59:40]Read from MH i2c: E2 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 62 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 62 00 B2 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6E C1 00 00 0E 04 04 00 D0 01 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 94 [18:59:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6E C1 00 00 0E 04 04 00 D0 01 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 [18:59:40]wFMCommunicate OK [18:59:40]SAM_PROTO_GetFieldsCounters done [18:59:40]requested_item shift.num is exist - process it [18:59:40]requested_item shift.opened is exist - process it [18:59:40]req_shift_opened [18:59:40]FM_GetShiftState [18:59:40]SAM_PROTO_GetShiftState [18:59:40]wFMCommunicate request_size=4 [18:59:40]MH_SAM_APDU [18:59:40]CAPDU: 80 13 01 00 [18:59:40]Write to MH i2c: E2 08 00 B3 5A 80 13 01 00 00 00 00 00 8A [18:59:40]Write i2c OK [18:59:40]MH_I2C_Read... [18:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:40]Read from MH i2c: E2 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 0E 00 [18:59:40]MH_I2C_Read... [18:59:40]Read from MH i2c: E2 0E 00 B3 5A 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 00 [18:59:40]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [18:59:40]wFMCommunicate OK [18:59:40]SAM_PROTO_GetShiftState done [18:59:40]FM_GetShiftState done [18:59:40]req_shift_opened done [18:59:40]requested_item shift.open_date is exist - process it [18:59:40]req_shift_open_date [18:59:40]req_shift_open_date done [18:59:40]produce_requested_data done [18:59:40]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49518,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [18:59:40]process_action_free close_receipt [18:59:40]json_value_free [18:59:40]json_value_free done [18:59:40]process_json_proto returns [18:59:40]Send response to host [18:59:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49518,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [18:59:40]free response buf [18:59:40]execute_script done [18:59:40]execute_script returns [18:59:40]free content buf [18:59:40]Sock 9.Close socket [18:59:40]Sock 9.Thread stoped [18:59:42]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [18:59:58]accept exits with 7 [18:59:58]New connection [18:59:58]New thread 3066973540 created [18:59:58]Thread 3066830180 joined [18:59:58]Waiting for new connection... [18:59:58] Sock 7.Parse request [18:59:58]Sock 7.Check first char [18:59:58]Sock 7.First char is OK [18:59:58]request: POST /json_proto HTTP/1.0 [18:59:58]Method: POST [18:59:58]URL: /json_proto [18:59:58]Method is POST - this is cgi request [18:59:58]url: /json_proto [18:59:58]query_string will be loaded in cgi processing [18:59:58]execute_cgi json_proto POST (null) [18:59:58]execute_cgi path=json_proto method=POST [18:59:58]POST find Content-Length [18:59:58]Host: 172.17.46.196:8080 [18:59:58]Content-Length: 807 [18:59:58]Content-Type: application/json [18:59:58] [18:59:58]POST finish read [18:59:58]Found Content-Length = 807 [18:59:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189727", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.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" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:58]execute_script... [18:59: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 : (3)189727", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.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" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:59:58]POST & json_proto [18:59:58]process_json_proto [18:59:58]json parsed OK: [18:59:58]protocol is kg_v1.0 [18:59:58]action value=close_receipt [18:59:58]process_action close_receipt [18:59:58]cmd_close_receipt [18:59:58]MH_GetDate [18:59:58]Write to MH i2c: F0 00 00 B4 5A FD [18:59:58]Write i2c OK [18:59:58]MH_I2C_Read... [18:59:58]Read from MH i2c: F0 [18:59:58]MH_I2C_Read... [18:59:58]Read from MH i2c: F0 09 00 [18:59:58]MH_I2C_Read... [18:59:58]Read from MH i2c: F0 09 00 B4 5A 00 B4 A1 BF 66 07 E8 5D 66 32 [18:59:58]GetLastDocTimeStamp 1723834781 [18:59:58]current date 1723834804 [18:59:58]FM_GetShiftState [18:59:58]SAM_PROTO_GetShiftState [18:59:58]wFMCommunicate request_size=4 [18:59:58]MH_SAM_APDU [18:59:58]CAPDU: 80 13 01 00 [18:59:58]Write to MH i2c: E2 08 00 B5 5A 80 13 01 00 00 00 00 00 8C [18:59:58]Write i2c OK [18:59:58]MH_I2C_Read... [18:59:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:59:58]Read from MH i2c: E2 [18:59:58]MH_I2C_Read... [18:59:58]Read from MH i2c: E2 0E 00 [18:59:58]MH_I2C_Read... [18:59:58]Read from MH i2c: E2 0E 00 B5 5A 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 02 [18:59:58]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [18:59:58]wFMCommunicate OK [18:59:58]SAM_PROTO_GetShiftState done [18:59:58]FM_GetShiftState done [18:59:58]opened in 1723766958 [18:59:58]opened+sec_in_day 1723853358 [18:59:58]quantity*price = 5000 [18:59:58]sum+1 = 5001 [18:59:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 0.00 Безнал.: 50.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 167 16.08.2024 19:00 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000871800 ФД: 49519 ФПД: 104534317105081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T190004&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49519&fm=104534317105081&tin=02508201610067®Number=0000000000092546&sum=5000 0 [18:59:59]StoreToDocumentArchive [18:59:59]shift 464 fd 49519 [18:59:59]save to /storage/0464/doc_00049519 [18:59:59]save last doc name /storage/0464/doc_00049519 to /storage/kkm_last_doc_name [18:59:59]save OK [18:59:59]Clear old archive folders... [18:59:59]ProcessDocumentItem done err = 0, tmpTLVsize=269 [18:59:59]tlvbuf is 00DDCE90 [18:59:59]SAM_PROTO_ClearQueue [18:59:59]wFMCommunicate request_size=4 [18:59:59]MH_SAM_APDU [18:59:59]CAPDU: 80 09 00 00 [18:59:59]Write to MH i2c: E2 08 00 C2 5A 80 09 00 00 00 00 00 00 8E [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [18:59:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:59:59]Read from MH i2c: E2 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 C2 5A 00 90 00 90 [18:59:59]RAPDU: 90 00 [18:59:59]wFMCommunicate OK [18:59:59]SAM_PROTO_ClearQueue done [18:59:59]KKMCreateOFDPacket [18:59:59]OFDProtocolAddRootSTLVToBuf [18:59:59]FM_MakeSignedData [18:59:59]FM_MakeSignedData [18:59:59]SAM_PROTO_SignData [18:59:59]wFMCommunicate request_size=4 [18:59:59]MH_SAM_APDU [18:59:59]CAPDU: 80 0D 01 02 [18:59:59]Write to MH i2c: E2 08 00 C3 5A 80 0D 01 02 00 00 00 00 96 [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [18:59:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:59:59]Read from MH i2c: E2 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 C3 5A 00 90 00 91 [18:59:59]RAPDU: 90 00 [18:59:59]wFMCommunicate OK [18:59:59]wFMCommunicate request_size=255 [18:59:59]MH_SAM_APDU [18:59:59]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 B4 A1 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [18:59:59]Write to MH i2c: E2 02 01 C4 5A 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 B4 A1 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 A0 [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [18:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:59]Read from MH i2c: E2 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 C4 5A 00 90 00 92 [18:59:59]RAPDU: 90 00 [18:59:59]wFMCommunicate OK [18:59:59]wFMCommunicate request_size=28 [18:59:59]MH_SAM_APDU [18:59:59]CAPDU: 80 0D 02 02 17 37 31 38 30 30 10 04 04 00 6F C1 00 00 35 04 06 00 5F 12 CA D6 7F B9 [18:59:59]Write to MH i2c: E2 1F 00 C5 5A 80 0D 02 02 17 00 37 31 38 30 30 10 04 04 00 6F C1 00 00 35 04 06 00 5F 12 CA D6 7F B9 00 00 97 [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [18:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:59:59]Read from MH i2c: E2 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 03 00 C5 5A 00 90 00 93 [18:59:59]RAPDU: 90 00 [18:59:59]wFMCommunicate OK [18:59:59]wFMCommunicate request_size=4 [18:59:59]MH_SAM_APDU [18:59:59]CAPDU: 80 0D 03 02 [18:59:59]Write to MH i2c: E2 08 00 C6 5A 80 0D 03 02 00 00 00 00 9B [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [18:59:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:59:59]Read from MH i2c: E2 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 0B 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 0B 00 C6 5A 00 3C C5 2B 0F CC C5 4E 28 90 00 DE [18:59:59]RAPDU: 3C C5 2B 0F CC C5 4E 28 90 00 [18:59:59]wFMCommunicate OK [18:59:59]SAM_PROTO_SignData done [18:59:59]FM_MakeSignedData done [18:59:59]CreateOFDProtocolMessage [18:59:59]wFMCommunicate request_size=4 [18:59:59]MH_SAM_APDU [18:59:59]CAPDU: 80 11 00 00 [18:59:59]Write to MH i2c: E2 08 00 C7 5A 80 11 00 00 00 00 00 00 9B [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [18:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:59:59]Read from MH i2c: E2 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 17 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: E2 17 00 C7 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 E6 [18:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [18:59:59]wFMCommunicate OK [18:59:59]CreateOFDProtocolMessage done [18:59:59]OFDSenderStorePacket 49519 [18:59:59]StoreOFDPacket docnum=49519 [18:59:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 B5 49 19 01 7D 3D 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 B4 A1 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6F C1 00 00 35 04 06 00 5F 12 CA D6 7F B9 3C C5 2B 0F CC C5 4E 28 [18:59:59]CheckFolder [18:59:59]dirname=/storage/ofd_packets [18:59:59]CheckFolder done [18:59:59]ProducePacketName [18:59:59]name=ofd_packets/00049519 [18:59:59]NVStorageSaveData ofd_packets/00049519 [18:59:59]File name is /storage/ofd_packets/00049519 [18:59:59]Write 319 bytes [18:59:59]NVStorageSaveData done [18:59:59]OFDSenderStorePacket done [18:59:59]KKMCreateOFDPacket done [18:59:59]NVStorageSaveData kkm_last_timestamp [18:59:59]File name is /storage/kkm_last_timestamp [18:59:59]Write 4 bytes [18:59:59]NVStorageSaveData done [18:59:59]ExternCall_PrintAddStr [18:59:59]wPrintStart [18:59:59]Write to MH i2c: 01 00 00 C8 5A 22 [18:59:59]OFD Sender: Processing packet 49519 [packets to send 21, broken 20] [18:59:59]ProducePacketName [18:59:59]name=ofd_packets/00049519 [18:59:59]OFD Sender: To server: pG, [18:59:59]CommunicateWithHost lk.salyk.kg:30040 [18:59:59]ConnectInit lk.salyk.kg [18:59:59]Write i2c OK [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: 01 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: 01 07 00 [18:59:59]MH_I2C_Read... [18:59:59]Read from MH i2c: 01 07 00 C8 5A 00 00 00 00 00 FF 0F 37 [18:59:59]RasterBufferAndPrint [18:59:59]line Счет N : (3)189727 [18:59:59]line ИНН: 02508201610067 [18:59:59]line Контрольно-Кассовый Чек [18:59:59]line ПРОДАЖА [18:59:59]line Товар: 4700000160358 [18:59:59]line Вода Легенда 1л [18:59:59]line 1.000 * 50.00 [18:59:59]line = 50.00 [18:59:59]line НДС 12% НСП 1% [18:59:59]line > о реализуемом товаре [18:59:59]line ИТОГО: 50.00 [18:59:59]line НСП 1% : 0.44 [18:59:59]line НДС 12% : 5.31 [18:59:59]line Наличными: 0.00 [18:59:59]line Безнал.: 50.00 [18:59:59]line Место: АЗС № 95 "Партнер Нефть" [18:59:59]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [18:59:59]line СНО: Общий режим [18:59:59]line Чек 167 16.08.2024 19:00 [18:59:59]line Смена: 464 ФФД: 1.0 [18:59:59]line ЗНМ: 0300000078 [18:59:59]line РНМ: 0000000000092546 [18:59:59]line Версия ККМ: 001 [18:59:59]line Платежная система: Бакай Банк [18:59:59]line ФМ: 0000000000871800 [18:59:59]line ФД: 49519 [18:59:59]line ФПД: 104534317105081 [18:59:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T190004&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49519&fm=104534317105081&tin=02508201610067®Number=0000000000092546&sum=5000 [19:00:00]Connected sock=10 [19:00:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 B5 49 19 01 7D 3D 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 88 13 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 B4 A1 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 6F C1 00 00 35 04 06 00 5F 12 CA D6 7F B9 3C C5 2B 0F CC C5 4E 28 [19:00:00]line 0 [19:00:00]written 0, free lines is 4095 [19:00:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 DA 79 47 00 3D 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 38 37 31 38 30 30 10 04 04 00 6F C1 00 00 F4 03 04 00 F2 4C BF 66 B6 04 01 00 00 63 C3 54 D9 3E 2E 36 39 [19:00:00]CommunicateWithHost err = 0 [19:00:00]CheckOFDResponse [19:00:00]1017 (14) - 77093643461234 [19:00:00]1041 (16) - 0000000000871800 [19:00:00]1040 (4) - 49519 [19:00:00]1012 (4) - 16.08.2024 12:58 [19:00:00]1206 (1) - 0 [19:00:00]OFD Sender: Remove packet 49519 [19:00:00]ProducePacketName [19:00:00]name=ofd_packets/00049519 [19:00:00]NVStorageDeleteData [19:00:00]Write to MH i2c: 01 00 00 F2 5A 4C [19:00:00]Write i2c OK [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: 01 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: 01 07 00 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: 01 07 00 F2 5A 00 00 00 00 00 D0 0C 2F [19:00:00]RasterBufferAndPrint [19:00:00]line [19:00:00]line [19:00:00]line [19:00:00]line [19:00:00]line [19:00:00]written 0, free lines is 3286 [19:00:00]MH_Cut [19:00:00]Write to MH i2c: D1 01 00 F9 5A 01 25 [19:00:00]Write i2c OK [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: D1 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: D1 01 00 [19:00:00]MH_I2C_Read... [19:00:00]Read from MH i2c: D1 01 00 F9 5A 00 24 [19:00:00]Write to MH i2c: 01 00 00 FA 5A 54 [19:00:00]Write i2c OK [19:00:00]MH_I2C_Read... [19:00:00]OFD Sender: No OFD packet to send [19:00:01]*** Cut start [19:00:01]*** Purtial cut [19:00:01]*** Stage 1: CUTSNS_PIN = 1 [19:00:01]Read from MH i2c: 01 [19:00:01]MH_I2C_Read... [19:00:01]*** Stop cut motor [19:00:01]*** Cut end [19:00:01]Read from MH i2c: 01 07 00 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: 01 07 00 FA 5A 00 00 00 00 00 FF 0F 69 [19:00:01]process_action close_receipt done [19:00:01]requested_data is exist [19:00:01]produce_requested_data [19:00:01]requested_item fm.sn is exist - process it [19:00:01]wFMCommunicate request_size=4 [19:00:01]MH_SAM_APDU [19:00:01]CAPDU: 80 11 00 00 [19:00:01]Write to MH i2c: E2 08 00 FB 5A 80 11 00 00 00 00 00 00 CF [19:00:01]Write i2c OK [19:00:01]MH_I2C_Read... [19:00:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:01]Read from MH i2c: E2 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: E2 17 00 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: E2 17 00 FB 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 1A [19:00:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:00:01]wFMCommunicate OK [19:00:01]requested_item fd.num is exist - process it [19:00:01]SAM_PROTO_GetFieldsCounters [19:00:01]wFMCommunicate request_size=4 [19:00:01]MH_SAM_APDU [19:00:01]CAPDU: 80 13 00 00 [19:00:01]Write to MH i2c: E2 08 00 FC 5A 80 13 00 00 00 00 00 00 D2 [19:00:01]Write i2c OK [19:00:01]MH_I2C_Read... [19:00:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:01]Read from MH i2c: E2 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: E2 62 00 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: E2 62 00 FC 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6F C1 00 00 0E 04 04 00 D0 01 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 E2 [19:00:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 6F C1 00 00 0E 04 04 00 D0 01 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 [19:00:01]wFMCommunicate OK [19:00:01]SAM_PROTO_GetFieldsCounters done [19:00:01]requested_item shift.num is exist - process it [19:00:01]requested_item shift.opened is exist - process it [19:00:01]req_shift_opened [19:00:01]FM_GetShiftState [19:00:01]SAM_PROTO_GetShiftState [19:00:01]wFMCommunicate request_size=4 [19:00:01]MH_SAM_APDU [19:00:01]CAPDU: 80 13 01 00 [19:00:01]Write to MH i2c: E2 08 00 FD 5A 80 13 01 00 00 00 00 00 D4 [19:00:01]Write i2c OK [19:00:01]MH_I2C_Read... [19:00:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:01]Read from MH i2c: E2 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: E2 0E 00 [19:00:01]MH_I2C_Read... [19:00:01]Read from MH i2c: E2 0E 00 FD 5A 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 4A [19:00:01]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [19:00:01]wFMCommunicate OK [19:00:01]SAM_PROTO_GetShiftState done [19:00:01]FM_GetShiftState done [19:00:01]req_shift_opened done [19:00:01]requested_item shift.open_date is exist - process it [19:00:01]req_shift_open_date [19:00:01]req_shift_open_date done [19:00:01]produce_requested_data done [19:00:01]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49519,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [19:00:01]process_action_free close_receipt [19:00:01]json_value_free [19:00:01]json_value_free done [19:00:01]process_json_proto returns [19:00:01]Send response to host [19:00:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49519,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [19:00:01]free response buf [19:00:01]execute_script done [19:00:01]execute_script returns [19:00:01]free content buf [19:00:01]Sock 7.Close socket [19:00:01]Sock 7.Thread stoped [19:00:05]OFD Sender: No OFD packet to send [19:00:10]OFD Sender: No OFD packet to send [19:00:15]OFD Sender: No OFD packet to send [19:00:21]OFD Sender: No OFD packet to send [19:00:26]OFD Sender: No OFD packet to send [19:00:31]OFD Sender: No OFD packet to send [19:00:36]OFD Sender: No OFD packet to send [19:00:41]OFD Sender: No OFD packet to send [19:00:46]OFD Sender: No OFD packet to send [19:00:51]OFD Sender: No OFD packet to send [19:00:56]OFD Sender: No OFD packet to send [19:00:59]accept exits with 9 [19:00:59]New connection [19:00:59]New thread 3066830180 created [19:00:59]Thread 3066973540 joined [19:00:59]Waiting for new connection... [19:00:59] Sock 9.Parse request [19:00:59]Sock 9.Check first char [19:00:59]Sock 9.First char is OK [19:00:59]request: POST /json_proto HTTP/1.0 [19:00:59]Method: POST [19:00:59]URL: /json_proto [19:00:59]Method is POST - this is cgi request [19:00:59]url: /json_proto [19:00:59]query_string will be loaded in cgi processing [19:00:59]execute_cgi json_proto POST (null) [19:00:59]execute_cgi path=json_proto method=POST [19:00:59]POST find Content-Length [19:00:59]Host: 172.17.46.196:8080 [19:00:59]Content-Length: 809 [19:00:59]Content-Type: application/json [19:00:59] [19:00:59]POST finish read [19:00:59]Found Content-Length = 809 [19:00:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189728", "tax_sys" : 0, "items" : [ { "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 135.00, "quantity" : 1.000, "sum" : 135.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:59]execute_script... [19:00: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 : (3)189728", "tax_sys" : 0, "items" : [ { "code": "4860019001346", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u0441\u0442", "price" : 135.00, "quantity" : 1.000, "sum" : 135.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 135.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:00:59]POST & json_proto [19:00:59]process_json_proto [19:00:59]json parsed OK: [19:00:59]protocol is kg_v1.0 [19:00:59]action value=close_receipt [19:00:59]process_action close_receipt [19:00:59]cmd_close_receipt [19:00:59]MH_GetDate [19:00:59]Write to MH i2c: F0 00 00 FE 5A 47 [19:00:59]Write i2c OK [19:00:59]MH_I2C_Read... [19:00:59]Read from MH i2c: F0 [19:00:59]MH_I2C_Read... [19:00:59]Read from MH i2c: F0 09 00 [19:00:59]MH_I2C_Read... [19:00:59]Read from MH i2c: F0 09 00 FE 5A 00 F2 A1 BF 66 07 E8 5D 66 BA [19:00:59]GetLastDocTimeStamp 1723834804 [19:00:59]current date 1723834866 [19:00:59]FM_GetShiftState [19:00:59]SAM_PROTO_GetShiftState [19:00:59]wFMCommunicate request_size=4 [19:00:59]MH_SAM_APDU [19:00:59]CAPDU: 80 13 01 00 [19:00:59]Write to MH i2c: E2 08 00 FF 5A 80 13 01 00 00 00 00 00 D6 [19:00:59]Write i2c OK [19:00:59]MH_I2C_Read... [19:01:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:00]Read from MH i2c: E2 [19:01:00]MH_I2C_Read... [19:01:00]Read from MH i2c: E2 0E 00 [19:01:00]MH_I2C_Read... [19:01:00]Read from MH i2c: E2 0E 00 FF 5A 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 4C [19:01:00]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [19:01:00]wFMCommunicate OK [19:01:00]SAM_PROTO_GetShiftState done [19:01:00]FM_GetShiftState done [19:01:00]opened in 1723766958 [19:01:00]opened+sec_in_day 1723853358 [19:01:00]quantity*price = 13500 [19:01:00]sum+1 = 13501 [19:01:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 135.00 НСП 1% : 1.19 НДС 12% : 14.34 Наличными: 0.00 Безнал.: 135.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 168 16.08.2024 19:01 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49520 ФПД: 50441961494800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T190106&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49520&fm=50441961494800&tin=02508201610067®Number=0000000000092546&sum=13500 0 [19:01:01]StoreToDocumentArchive [19:01:01]shift 464 fd 49520 [19:01:01]save to /storage/0464/doc_00049520 [19:01:01]save last doc name /storage/0464/doc_00049520 to /storage/kkm_last_doc_name [19:01:01]save OK [19:01:01]Clear old archive folders... [19:01:01]ProcessDocumentItem done err = 0, tmpTLVsize=276 [19:01:01]tlvbuf is 00E6A610 [19:01:01]SAM_PROTO_ClearQueue [19:01:01]wFMCommunicate request_size=4 [19:01:01]MH_SAM_APDU [19:01:01]CAPDU: 80 09 00 00 [19:01:01]Write to MH i2c: E2 08 00 0C 5B 80 09 00 00 00 00 00 00 D9 [19:01:01]Write i2c OK [19:01:01]MH_I2C_Read... [19:01:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:01]Read from MH i2c: E2 [19:01:01]MH_I2C_Read... [19:01:01]Read from MH i2c: E2 03 00 [19:01:01]MH_I2C_Read... [19:01:01]Read from MH i2c: E2 03 00 0C 5B 00 90 00 DB [19:01:01]RAPDU: 90 00 [19:01:01]wFMCommunicate OK [19:01:01]SAM_PROTO_ClearQueue done [19:01:01]KKMCreateOFDPacket [19:01:01]OFDProtocolAddRootSTLVToBuf [19:01:01]FM_MakeSignedData [19:01:01]FM_MakeSignedData [19:01:01]SAM_PROTO_SignData [19:01:01]wFMCommunicate request_size=4 [19:01:01]MH_SAM_APDU [19:01:01]CAPDU: 80 0D 01 02 [19:01:01]Write to MH i2c: E2 08 00 0D 5B 80 0D 01 02 00 00 00 00 E1 [19:01:01]Write i2c OK [19:01:01]MH_I2C_Read... [19:01:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:01]Read from MH i2c: E2 [19:01:01]MH_I2C_Read... [19:01:01]Read from MH i2c: E2 03 00 [19:01:01]MH_I2C_Read... [19:01:01]Read from MH i2c: E2 03 00 0D 5B 00 90 00 DC [19:01:01]RAPDU: 90 00 [19:01:01]wFMCommunicate OK [19:01:01]wFMCommunicate request_size=255 [19:01:01]MH_SAM_APDU [19:01:01]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 F2 A1 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 [19:01:01]Write to MH i2c: E2 02 01 0E 5B 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 F2 A1 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 00 00 1C [19:01:01]Write i2c OK [19:01:01]MH_I2C_Read... [19:01:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:01]Read from MH i2c: E2 [19:01:01]MH_I2C_Read... [19:01:01]Read from MH i2c: E2 03 00 [19:01:01]MH_I2C_Read... [19:01:01]Read from MH i2c: E2 03 00 0E 5B 00 90 00 DD [19:01:01]RAPDU: 90 00 [19:01:01]wFMCommunicate OK [19:01:01]wFMCommunicate request_size=35 [19:01:01]MH_SAM_APDU [19:01:01]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 70 C1 00 00 35 04 06 00 2D E0 6F 32 59 10 [19:01:01]Write to MH i2c: E2 26 00 0F 5B 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 70 C1 00 00 35 04 06 00 2D E0 6F 32 59 10 00 00 17 [19:01:01]Write i2c OK [19:01:01]MH_I2C_Read... [19:01:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:01]Read from MH i2c: E2 [19:01:01]MH_I2C_Read... [19:01:01]Read from MH i2c: E2 03 00 [19:01:01]MH_I2C_Read... [19:01:01]Read from MH i2c: E2 03 00 0F 5B 00 90 00 DE [19:01:01]RAPDU: 90 00 [19:01:01]wFMCommunicate OK [19:01:01]wFMCommunicate request_size=4 [19:01:01]MH_SAM_APDU [19:01:01]CAPDU: 80 0D 03 02 [19:01:01]Write to MH i2c: E2 08 00 10 5B 80 0D 03 02 00 00 00 00 E6 [19:01:01]Write i2c OK [19:01:01]MH_I2C_Read... [19:01:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:01]Read from MH i2c: E2 [19:01:01]MH_I2C_Read... [19:01:01]Read from MH i2c: E2 0B 00 [19:01:01]MH_I2C_Read... [19:01:01]Read from MH i2c: E2 0B 00 10 5B 00 96 3E 99 E2 21 CA 6B E3 90 00 6F [19:01:01]RAPDU: 96 3E 99 E2 21 CA 6B E3 90 00 [19:01:01]wFMCommunicate OK [19:01:01]SAM_PROTO_SignData done [19:01:01]FM_MakeSignedData done [19:01:01]CreateOFDProtocolMessage [19:01:01]wFMCommunicate request_size=4 [19:01:01]MH_SAM_APDU [19:01:01]CAPDU: 80 11 00 00 [19:01:01]Write to MH i2c: E2 08 00 11 5B 80 11 00 00 00 00 00 00 E6 [19:01:01]Write i2c OK [19:01:01]MH_I2C_Read... [19:01:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:01]Read from MH i2c: E2 [19:01:01]MH_I2C_Read... [19:01:01]Read from MH i2c: E2 17 00 [19:01:01]MH_I2C_Read... [19:01:01]Read from MH i2c: E2 17 00 11 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 31 [19:01:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:01:01]wFMCommunicate OK [19:01:01]CreateOFDProtocolMessage done [19:01:01]OFDSenderStorePacket 49520 [19:01:01]StoreOFDPacket docnum=49520 [19:01:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 24 A3 20 01 6E 73 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 F2 A1 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 70 C1 00 00 35 04 06 00 2D E0 6F 32 59 10 96 3E 99 E2 21 CA 6B E3 [19:01:01]CheckFolder [19:01:01]dirname=/storage/ofd_packets [19:01:01]CheckFolder done [19:01:01]ProducePacketName [19:01:01]name=ofd_packets/00049520 [19:01:01]NVStorageSaveData ofd_packets/00049520 [19:01:01]File name is /storage/ofd_packets/00049520 [19:01:01]Write 326 bytes [19:01:01]NVStorageSaveData done [19:01:01]OFDSenderStorePacket done [19:01:01]KKMCreateOFDPacket done [19:01:01]NVStorageSaveData kkm_last_timestamp [19:01:01]File name is /storage/kkm_last_timestamp [19:01:01]Write 4 bytes [19:01:01]NVStorageSaveData done [19:01:01]ExternCall_PrintAddStr [19:01:01]wPrintStart [19:01:01]Write to MH i2c: 01 00 00 12 5B 6D [19:01:01]Write i2c OK [19:01:01]MH_I2C_Read... [19:01:01]Read from MH i2c: 01 [19:01:01]MH_I2C_Read... [19:01:01]Read from MH i2c: 01 07 00 [19:01:01]MH_I2C_Read... [19:01:01]Read from MH i2c: 01 07 00 12 5B 00 00 00 00 00 FF 0F 82 [19:01:01]RasterBufferAndPrint [19:01:01]line Счет N : (3)189728 [19:01:01]line ИНН: 02508201610067 [19:01:01]line Контрольно-Кассовый Чек [19:01:01]line ПРОДАЖА [19:01:01]line Товар: 4860019001346 [19:01:01]line Вода Боржоми 0,5л ст [19:01:01]line 1.000 * 135.00 [19:01:01]line = 135.00 [19:01:01]line НДС 12% НСП 1% [19:01:01]line > о реализуемом товаре [19:01:01]line ИТОГО: 135.00 [19:01:01]line НСП 1% : 1.19 [19:01:01]line НДС 12% : 14.34 [19:01:01]line Наличными: 0.00 [19:01:01]line Безнал.: 135.00 [19:01:01]line Место: АЗС № 95 "Партнер Нефть" [19:01:01]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:01:01]line СНО: Общий режим [19:01:01]line Чек 168 16.08.2024 19:01 [19:01:01]line Смена: 464 ФФД: 1.0 [19:01:01]line ЗНМ: 0300000078 [19:01:01]line РНМ: 0000000000092546 [19:01:01]line Версия ККМ: 001 [19:01:01]line Платежная система: O! деньги [19:01:01]line ФМ: 0000000000871800 [19:01:01]line ФД: 49520 [19:01:01]line ФПД: 50441961494800 [19:01:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T190106&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49520&fm=50441961494800&tin=02508201610067®Number=0000000000092546&sum=13500 [19:01:02]OFD Sender: Processing packet 49520 [packets to send 21, broken 20] [19:01:02]ProducePacketName [19:01:02]name=ofd_packets/00049520 [19:01:02]OFD Sender: To server: pG, [19:01:02]CommunicateWithHost lk.salyk.kg:30040 [19:01:02]ConnectInit lk.salyk.kg [19:01:02]line 0 [19:01:02]written 0, free lines is 4095 [19:01:02]Connected sock=7 [19:01:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 24 A3 20 01 6E 73 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 34 36 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 34 00 00 00 00 13 04 06 00 BC 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9A 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 34 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 F2 A1 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 70 C1 00 00 35 04 06 00 2D E0 6F 32 59 10 96 3E 99 E2 21 CA 6B E3 [19:01:02]Write to MH i2c: 01 00 00 3C 5B 97 [19:01:02]Write i2c OK [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: 01 [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: 01 07 00 [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: 01 07 00 3C 5B 00 00 00 00 00 E2 0C 8C [19:01:02]RasterBufferAndPrint [19:01:02]line [19:01:02]line [19:01:02]line [19:01:02]line [19:01:02]line [19:01:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 1C CD 47 00 68 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 38 37 31 38 30 30 10 04 04 00 70 C1 00 00 F4 03 04 00 30 4D BF 66 B6 04 01 00 00 8F 27 53 C6 84 E1 63 9E [19:01:02]CommunicateWithHost err = 0 [19:01:02]CheckOFDResponse [19:01:02]1017 (14) - 77093643461234 [19:01:02]1041 (16) - 0000000000871800 [19:01:02]1040 (4) - 49520 [19:01:02]1012 (4) - 16.08.2024 12:59 [19:01:02]1206 (1) - 0 [19:01:02]OFD Sender: Remove packet 49520 [19:01:02]ProducePacketName [19:01:02]name=ofd_packets/00049520 [19:01:02]NVStorageDeleteData [19:01:02]written 0, free lines is 3306 [19:01:02]MH_Cut [19:01:02]Write to MH i2c: D1 01 00 43 5B 01 70 [19:01:02]Write i2c OK [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: D1 [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: D1 01 00 [19:01:02]MH_I2C_Read... [19:01:02]Read from MH i2c: D1 01 00 43 5B 00 6F [19:01:02]Write to MH i2c: 01 00 00 44 5B 9F [19:01:02]Write i2c OK [19:01:02]MH_I2C_Read... [19:01:03]OFD Sender: No OFD packet to send [19:01:03]*** Cut start [19:01:03]*** Purtial cut [19:01:03]*** CUTSNS_PIN = 0 [19:01:03]*** Stage 1: CUTSNS_PIN = 1 [19:01:05]Read from MH i2c: 01 [19:01:05]MH_I2C_Read... [19:01:05]*** Stop cut motor [19:01:05]*** Cut end [19:01:05]Read from MH i2c: 01 07 00 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: 01 07 00 44 5B 00 00 00 00 00 FF 0F B4 [19:01:05]process_action close_receipt done [19:01:05]requested_data is exist [19:01:05]produce_requested_data [19:01:05]requested_item fm.sn is exist - process it [19:01:05]wFMCommunicate request_size=4 [19:01:05]MH_SAM_APDU [19:01:05]CAPDU: 80 11 00 00 [19:01:05]Write to MH i2c: E2 08 00 45 5B 80 11 00 00 00 00 00 00 1A [19:01:05]Write i2c OK [19:01:05]MH_I2C_Read... [19:01:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:05]Read from MH i2c: E2 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: E2 17 00 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: E2 17 00 45 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 65 [19:01:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:01:05]wFMCommunicate OK [19:01:05]requested_item fd.num is exist - process it [19:01:05]SAM_PROTO_GetFieldsCounters [19:01:05]wFMCommunicate request_size=4 [19:01:05]MH_SAM_APDU [19:01:05]CAPDU: 80 13 00 00 [19:01:05]Write to MH i2c: E2 08 00 46 5B 80 13 00 00 00 00 00 00 1D [19:01:05]Write i2c OK [19:01:05]MH_I2C_Read... [19:01:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:05]Read from MH i2c: E2 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: E2 62 00 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: E2 62 00 46 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 70 C1 00 00 0E 04 04 00 D0 01 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 31 [19:01:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 70 C1 00 00 0E 04 04 00 D0 01 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 [19:01:05]wFMCommunicate OK [19:01:05]SAM_PROTO_GetFieldsCounters done [19:01:05]requested_item shift.num is exist - process it [19:01:05]requested_item shift.opened is exist - process it [19:01:05]req_shift_opened [19:01:05]FM_GetShiftState [19:01:05]SAM_PROTO_GetShiftState [19:01:05]wFMCommunicate request_size=4 [19:01:05]MH_SAM_APDU [19:01:05]CAPDU: 80 13 01 00 [19:01:05]Write to MH i2c: E2 08 00 47 5B 80 13 01 00 00 00 00 00 1F [19:01:05]Write i2c OK [19:01:05]MH_I2C_Read... [19:01:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:05]Read from MH i2c: E2 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: E2 0E 00 [19:01:05]MH_I2C_Read... [19:01:05]Read from MH i2c: E2 0E 00 47 5B 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 95 [19:01:05]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [19:01:05]wFMCommunicate OK [19:01:05]SAM_PROTO_GetShiftState done [19:01:05]FM_GetShiftState done [19:01:05]req_shift_opened done [19:01:05]requested_item shift.open_date is exist - process it [19:01:05]req_shift_open_date [19:01:05]req_shift_open_date done [19:01:05]produce_requested_data done [19:01:05]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49520,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [19:01:05]process_action_free close_receipt [19:01:05]json_value_free [19:01:05]json_value_free done [19:01:05]process_json_proto returns [19:01:05]Send response to host [19:01:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49520,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [19:01:05]free response buf [19:01:05]execute_script done [19:01:05]execute_script returns [19:01:05]free content buf [19:01:05]Sock 9.Close socket [19:01:05]Sock 9.Thread stoped [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:58]OFD Sender: No OFD packet to send [19:03:03]OFD Sender: No OFD packet to send [19:03:08]OFD Sender: No OFD packet to send [19:03:13]OFD Sender: No OFD packet to send [19:03:18]OFD Sender: No OFD packet to send [19:03:23]OFD Sender: No OFD packet to send [19:03:24]accept exits with 10 [19:03:24]New connection [19:03:24]New thread 3066973540 created [19:03:24]Thread 3066830180 joined [19:03:24]Waiting for new connection... [19:03:24] Sock 10.Parse request [19:03:24]Sock 10.Check first char [19:03:24]Sock 10.First char is OK [19:03:24]request: POST /json_proto HTTP/1.0 [19:03:24]Method: POST [19:03:24]URL: /json_proto [19:03:24]Method is POST - this is cgi request [19:03:24]url: /json_proto [19:03:24]query_string will be loaded in cgi processing [19:03:24]execute_cgi json_proto POST (null) [19:03:24]execute_cgi path=json_proto method=POST [19:03:24]POST find Content-Length [19:03:24]Host: 172.17.46.196:8080 [19:03:24]Content-Length: 756 [19:03:24]Content-Type: application/json [19:03:24] [19:03:24]POST finish read [19:03:24]Found Content-Length = 756 [19:03:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)11325640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30069217", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:24]execute_script... [19:03: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)11325640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-4", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30069217", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:24]POST & json_proto [19:03:24]process_json_proto [19:03:24]json parsed OK: [19:03:24]protocol is kg_v1.0 [19:03:24]action value=close_receipt [19:03:24]process_action close_receipt [19:03:24]cmd_close_receipt [19:03:24]MH_GetDate [19:03:24]Write to MH i2c: F0 00 00 48 5B 92 [19:03:24]Write i2c OK [19:03:24]MH_I2C_Read... [19:03:24]Read from MH i2c: F0 [19:03:24]MH_I2C_Read... [19:03:24]Read from MH i2c: F0 09 00 [19:03:24]MH_I2C_Read... [19:03:24]Read from MH i2c: F0 09 00 48 5B 00 83 A2 BF 66 07 E8 5D 66 97 [19:03:24]GetLastDocTimeStamp 1723834866 [19:03:24]current date 1723835011 [19:03:24]FM_GetShiftState [19:03:24]SAM_PROTO_GetShiftState [19:03:24]wFMCommunicate request_size=4 [19:03:24]MH_SAM_APDU [19:03:24]CAPDU: 80 13 01 00 [19:03:24]Write to MH i2c: E2 08 00 49 5B 80 13 01 00 00 00 00 00 21 [19:03:24]Write i2c OK [19:03:24]MH_I2C_Read... [19:03:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:24]Read from MH i2c: E2 [19:03:24]MH_I2C_Read... [19:03:24]Read from MH i2c: E2 0E 00 [19:03:24]MH_I2C_Read... [19:03:24]Read from MH i2c: E2 0E 00 49 5B 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 97 [19:03:24]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [19:03:24]wFMCommunicate OK [19:03:24]SAM_PROTO_GetShiftState done [19:03:24]FM_GetShiftState done [19:03:24]opened in 1723766958 [19:03:24]opened+sec_in_day 1723853358 [19:03:24]quantity*price = 0 [19:03:24]sum+1 = 1 [19:03:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 169 16.08.2024 19:03 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Талоны: ТК ГПНА Online 30069217 ФМ: 0000000000871800 ФД: 49521 ФПД: 269728566669927 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T190331&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49521&fm=269728566669927&tin=02508201610067®Number=0000000000092546&sum=0 [19:03:25]StoreToDocumentArchive [19:03:25]shift 464 fd 49521 [19:03:25]save to /storage/0464/doc_00049521 [19:03:25]save last doc name /storage/0464/doc_00049521 to /storage/kkm_last_doc_name [19:03:25]save OK [19:03:25]Clear old archive folders... [19:03:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:03:25]tlvbuf is 00DEA410 [19:03:25]SAM_PROTO_ClearQueue [19:03:25]wFMCommunicate request_size=4 [19:03:25]MH_SAM_APDU [19:03:25]CAPDU: 80 09 00 00 [19:03:25]Write to MH i2c: E2 08 00 56 5B 80 09 00 00 00 00 00 00 23 [19:03:25]Write i2c OK [19:03:25]MH_I2C_Read... [19:03:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:25]Read from MH i2c: E2 [19:03:25]MH_I2C_Read... [19:03:25]Read from MH i2c: E2 03 00 [19:03:25]MH_I2C_Read... [19:03:25]Read from MH i2c: E2 03 00 56 5B 00 90 00 25 [19:03:25]RAPDU: 90 00 [19:03:25]wFMCommunicate OK [19:03:25]SAM_PROTO_ClearQueue done [19:03:25]KKMCreateOFDPacket [19:03:25]OFDProtocolAddRootSTLVToBuf [19:03:25]FM_MakeSignedData [19:03:25]FM_MakeSignedData [19:03:25]SAM_PROTO_SignData [19:03:25]wFMCommunicate request_size=4 [19:03:25]MH_SAM_APDU [19:03:25]CAPDU: 80 0D 01 02 [19:03:25]Write to MH i2c: E2 08 00 57 5B 80 0D 01 02 00 00 00 00 2B [19:03:25]Write i2c OK [19:03:25]MH_I2C_Read... [19:03:25]Read from MH i2c: E2 [19:03:25]MH_I2C_Read... [19:03:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:25]Read from MH i2c: E2 03 00 [19:03:25]MH_I2C_Read... [19:03:25]Read from MH i2c: E2 03 00 57 5B 00 90 00 26 [19:03:25]RAPDU: 90 00 [19:03:25]wFMCommunicate OK [19:03:25]wFMCommunicate request_size=255 [19:03:25]MH_SAM_APDU [19:03: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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 83 A2 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 71 C1 00 00 35 04 06 00 F5 [19:03:25]Write to MH i2c: E2 02 01 58 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 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 83 A2 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 71 C1 00 00 35 04 06 00 F5 00 00 86 [19:03:25]Write i2c OK [19:03:25]MH_I2C_Read... [19:03:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:25]Read from MH i2c: E2 [19:03:25]MH_I2C_Read... [19:03:25]Read from MH i2c: E2 03 00 [19:03:25]MH_I2C_Read... [19:03:25]Read from MH i2c: E2 03 00 58 5B 00 90 00 27 [19:03:25]RAPDU: 90 00 [19:03:25]wFMCommunicate OK [19:03:25]wFMCommunicate request_size=10 [19:03:25]MH_SAM_APDU [19:03:25]CAPDU: 80 0D 02 02 05 51 13 66 F2 67 [19:03:25]Write to MH i2c: E2 0D 00 59 5B 80 0D 02 02 05 00 51 13 66 F2 67 00 00 5B [19:03:25]Write i2c OK [19:03:25]MH_I2C_Read... [19:03:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:26]Read from MH i2c: E2 [19:03:26]MH_I2C_Read... [19:03:26]Read from MH i2c: E2 03 00 [19:03:26]MH_I2C_Read... [19:03:26]Read from MH i2c: E2 03 00 59 5B 00 90 00 28 [19:03:26]RAPDU: 90 00 [19:03:26]wFMCommunicate OK [19:03:26]wFMCommunicate request_size=4 [19:03:26]MH_SAM_APDU [19:03:26]CAPDU: 80 0D 03 02 [19:03:26]Write to MH i2c: E2 08 00 5A 5B 80 0D 03 02 00 00 00 00 30 [19:03:26]Write i2c OK [19:03:26]MH_I2C_Read... [19:03:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:26]Read from MH i2c: E2 [19:03:26]MH_I2C_Read... [19:03:26]Read from MH i2c: E2 0B 00 [19:03:26]MH_I2C_Read... [19:03:26]Read from MH i2c: E2 0B 00 5A 5B 00 B5 CC 36 98 C5 CA 45 49 90 00 9D [19:03:26]RAPDU: B5 CC 36 98 C5 CA 45 49 90 00 [19:03:26]wFMCommunicate OK [19:03:26]SAM_PROTO_SignData done [19:03:26]FM_MakeSignedData done [19:03:26]CreateOFDProtocolMessage [19:03:26]wFMCommunicate request_size=4 [19:03:26]MH_SAM_APDU [19:03:26]CAPDU: 80 11 00 00 [19:03:26]Write to MH i2c: E2 08 00 5B 5B 80 11 00 00 00 00 00 00 30 [19:03:26]Write i2c OK [19:03:26]MH_I2C_Read... [19:03:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:26]Read from MH i2c: E2 [19:03:26]MH_I2C_Read... [19:03:26]Read from MH i2c: E2 17 00 [19:03:26]MH_I2C_Read... [19:03:26]Read from MH i2c: E2 17 00 5B 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 7B [19:03:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:03:26]wFMCommunicate OK [19:03:26]CreateOFDProtocolMessage done [19:03:26]OFDSenderStorePacket 49521 [19:03:26]StoreOFDPacket docnum=49521 [19:03:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 77 ED 07 01 48 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 83 A2 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 71 C1 00 00 35 04 06 00 F5 51 13 66 F2 67 B5 CC 36 98 C5 CA 45 49 [19:03:26]CheckFolder [19:03:26]dirname=/storage/ofd_packets [19:03:26]CheckFolder done [19:03:26]ProducePacketName [19:03:26]name=ofd_packets/00049521 [19:03:26]NVStorageSaveData ofd_packets/00049521 [19:03:26]File name is /storage/ofd_packets/00049521 [19:03:26]Write 301 bytes [19:03:26]NVStorageSaveData done [19:03:26]OFDSenderStorePacket done [19:03:26]KKMCreateOFDPacket done [19:03:26]NVStorageSaveData kkm_last_timestamp [19:03:26]File name is /storage/kkm_last_timestamp [19:03:26]Write 4 bytes [19:03:26]NVStorageSaveData done [19:03:26]ExternCall_PrintAddStr [19:03:26]wPrintStart [19:03:26]Write to MH i2c: 01 00 00 5C 5B B7 [19:03:26]Write i2c OK [19:03:26]MH_I2C_Read... [19:03:26]Read from MH i2c: 01 [19:03:26]MH_I2C_Read... [19:03:26]Read from MH i2c: 01 07 00 [19:03:26]MH_I2C_Read... [19:03:26]Read from MH i2c: 01 07 00 5C 5B 00 00 00 00 00 FF 0F CC [19:03:26]RasterBufferAndPrint [19:03:26]line Счет N : (1)11325640 [19:03:26]line ИНН: 02508201610067 [19:03:26]line Контрольно-Кассовый Чек [19:03:26]line ПРОДАЖА [19:03:26]line ТРК (МРК, ГНК) : 42 [19:03:26]line Товар: 2710124130 [19:03:26]line Аи-92-К-4 [19:03:26]line 20.000 * 0.00 [19:03:26]line = 0.00 [19:03:26]line НДС 12% НСП 1% [19:03:26]line > о реализуемом товаре [19:03:26]line ИТОГО: 0.00 [19:03:26]line НСП 1% : 0.00 [19:03:26]line НДС 12% : 0.00 [19:03:26]line Наличными: 0.00 [19:03:26]line Безнал.: 0.00 [19:03:26]line Место: АЗС № 95 "Партнер Нефть" [19:03:26]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:03:26]line СНО: Общий режим [19:03:26]line Чек 169 16.08.2024 19:03 [19:03:26]line Смена: 464 ФФД: 1.0 [19:03:26]line ЗНМ: 0300000078 [19:03:26]line РНМ: 0000000000092546 [19:03:26]line Версия ККМ: 001 [19:03:26]line Талоны: ТК ГПНА Online [19:03:26]line 30069217 [19:03:26]line ФМ: 0000000000871800 [19:03:26]line ФД: 49521 [19:03:26]line ФПД: 269728566669927 [19:03:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T190331&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49521&fm=269728566669927&tin=02508201610067®Number=0000000000092546&sum=0 [19:03:26]OFD Sender: Processing packet 49521 [packets to send 21, broken 20] [19:03:26]ProducePacketName [19:03:26]name=ofd_packets/00049521 [19:03:26]OFD Sender: To server: pG, [19:03:26]CommunicateWithHost lk.salyk.kg:30040 [19:03:26]ConnectInit lk.salyk.kg [19:03:26]written 0, free lines is 4095 [19:03:26]Connected sock=9 [19:03:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 77 ED 07 01 48 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 83 A2 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 71 C1 00 00 35 04 06 00 F5 51 13 66 F2 67 B5 CC 36 98 C5 CA 45 49 [19:03:26]Write to MH i2c: 01 00 00 86 5B E1 [19:03:26]Write i2c OK [19:03:26]MH_I2C_Read... [19:03:26]Read from MH i2c: 01 [19:03:26]MH_I2C_Read... [19:03:26]Read from MH i2c: 01 07 00 [19:03:26]MH_I2C_Read... [19:03:26]Read from MH i2c: 01 07 00 86 5B 00 00 00 00 00 E9 0C DD [19:03:26]RasterBufferAndPrint [19:03:26]line [19:03:26]line [19:03:26]line [19:03:26]line [19:03:26]line [19:03:26]written 0, free lines is 3311 [19:03:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E5 52 47 00 F8 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 38 37 31 38 30 30 10 04 04 00 71 C1 00 00 F4 03 04 00 C1 4D BF 66 B6 04 01 00 00 81 58 A0 3C 1A AD CB F2 [19:03:26]CommunicateWithHost err = 0 [19:03:26]CheckOFDResponse [19:03:26]1017 (14) - 77093643461234 [19:03:26]1041 (16) - 0000000000871800 [19:03:26]1040 (4) - 49521 [19:03:26]1012 (4) - 16.08.2024 13:01 [19:03:26]1206 (1) - 0 [19:03:26]OFD Sender: Remove packet 49521 [19:03:26]ProducePacketName [19:03:26]name=ofd_packets/00049521 [19:03:26]NVStorageDeleteData [19:03:26]MH_Cut [19:03:26]Write to MH i2c: D1 01 00 8D 5B 01 BA [19:03:26]Write i2c OK [19:03:26]MH_I2C_Read... [19:03:26]Read from MH i2c: D1 [19:03:26]MH_I2C_Read... [19:03:26]Read from MH i2c: D1 01 00 [19:03:26]MH_I2C_Read... [19:03:26]Read from MH i2c: D1 01 00 8D 5B 00 B9 [19:03:26]Write to MH i2c: 01 00 00 8E 5B E9 [19:03:26]Write i2c OK [19:03:26]MH_I2C_Read... [19:03:27]OFD Sender: No OFD packet to send [19:03:27]*** Cut start [19:03:27]*** Purtial cut [19:03:27]*** Stage 1: CUTSNS_PIN = 1 [19:03:27]Read from MH i2c: 01 [19:03:27]MH_I2C_Read... [19:03:27]*** Stop cut motor [19:03:27]*** Cut end [19:03:27]Read from MH i2c: 01 07 00 [19:03:27]MH_I2C_Read... [19:03:27]Read from MH i2c: 01 07 00 8E 5B 00 00 00 00 00 FF 0F FE [19:03:27]process_action close_receipt done [19:03:27]requested_data is exist [19:03:27]produce_requested_data [19:03:27]requested_item fm.sn is exist - process it [19:03:27]wFMCommunicate request_size=4 [19:03:27]MH_SAM_APDU [19:03:27]CAPDU: 80 11 00 00 [19:03:27]Write to MH i2c: E2 08 00 8F 5B 80 11 00 00 00 00 00 00 64 [19:03:27]Write i2c OK [19:03:27]MH_I2C_Read... [19:03:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:28]Read from MH i2c: E2 [19:03:28]MH_I2C_Read... [19:03:28]Read from MH i2c: E2 17 00 [19:03:28]MH_I2C_Read... [19:03:28]Read from MH i2c: E2 17 00 8F 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AF [19:03:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:03:28]wFMCommunicate OK [19:03:28]requested_item fd.num is exist - process it [19:03:28]SAM_PROTO_GetFieldsCounters [19:03:28]wFMCommunicate request_size=4 [19:03:28]MH_SAM_APDU [19:03:28]CAPDU: 80 13 00 00 [19:03:28]Write to MH i2c: E2 08 00 90 5B 80 13 00 00 00 00 00 00 67 [19:03:28]Write i2c OK [19:03:28]MH_I2C_Read... [19:03:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:28]Read from MH i2c: E2 [19:03:28]MH_I2C_Read... [19:03:28]Read from MH i2c: E2 62 00 [19:03:28]MH_I2C_Read... [19:03:28]Read from MH i2c: E2 62 00 90 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 71 C1 00 00 0E 04 04 00 D0 01 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 7F [19:03:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 71 C1 00 00 0E 04 04 00 D0 01 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 [19:03:28]wFMCommunicate OK [19:03:28]SAM_PROTO_GetFieldsCounters done [19:03:28]requested_item shift.num is exist - process it [19:03:28]requested_item shift.opened is exist - process it [19:03:28]req_shift_opened [19:03:28]FM_GetShiftState [19:03:28]SAM_PROTO_GetShiftState [19:03:28]wFMCommunicate request_size=4 [19:03:28]MH_SAM_APDU [19:03:28]CAPDU: 80 13 01 00 [19:03:28]Write to MH i2c: E2 08 00 91 5B 80 13 01 00 00 00 00 00 69 [19:03:28]Write i2c OK [19:03:28]MH_I2C_Read... [19:03:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:28]Read from MH i2c: E2 [19:03:28]MH_I2C_Read... [19:03:28]Read from MH i2c: E2 0E 00 [19:03:28]MH_I2C_Read... [19:03:28]Read from MH i2c: E2 0E 00 91 5B 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 DF [19:03:28]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [19:03:28]wFMCommunicate OK [19:03:28]SAM_PROTO_GetShiftState done [19:03:28]FM_GetShiftState done [19:03:28]req_shift_opened done [19:03:28]requested_item shift.open_date is exist - process it [19:03:28]req_shift_open_date [19:03:28]req_shift_open_date done [19:03:28]produce_requested_data done [19:03:28]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49521,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [19:03:28]process_action_free close_receipt [19:03:28]json_value_free [19:03:28]json_value_free done [19:03:28]process_json_proto returns [19:03:28]Send response to host [19:03:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49521,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [19:03:28]free response buf [19:03:28]execute_script done [19:03:28]execute_script returns [19:03:28]free content buf [19:03:28]Sock 10.Close socket [19:03:28]Sock 10.Thread stoped [19:03:32]OFD Sender: No OFD packet to send [19:03:37]OFD Sender: No OFD packet to send [19:03:42]OFD Sender: No OFD packet to send [19:03:47]OFD Sender: No OFD packet to send [19:03:52]OFD Sender: No OFD packet to send [19:03:57]OFD Sender: No OFD packet to send [19:04:02]OFD Sender: No OFD packet to send [19:04:07]OFD Sender: No OFD packet to send [19:04:12]OFD Sender: No OFD packet to send [19:04:17]OFD Sender: No OFD packet to send [19:04:22]OFD Sender: No OFD packet to send [19:04:27]OFD Sender: No OFD packet to send [19:04:32]OFD Sender: No OFD packet to send [19:04:37]OFD Sender: No OFD packet to send [19:04:42]OFD Sender: No OFD packet to send [19:04:47]OFD Sender: No OFD packet to send [19:04:52]OFD Sender: No OFD packet to send [19:04:57]OFD Sender: No OFD packet to send [19:05:02]OFD Sender: No OFD packet to send [19:05:07]OFD Sender: No OFD packet to send [19:05:12]OFD Sender: No OFD packet to send [19:05:17]OFD Sender: No OFD packet to send [19:05:22]OFD Sender: No OFD packet to send [19:05:27]OFD Sender: No OFD packet to send [19:05:32]OFD Sender: No OFD packet to send [19:05:37]OFD Sender: No OFD packet to send [19:05:42]OFD Sender: No OFD packet to send [19:05:47]OFD Sender: No OFD packet to send [19:05:52]OFD Sender: No OFD packet to send [19:05:57]OFD Sender: No OFD packet to send [19:06:02]OFD Sender: No OFD packet to send [19:06:07]OFD Sender: No OFD packet to send [19:06:12]OFD Sender: No OFD packet to send [19:06:17]OFD Sender: No OFD packet to send [19:06:22]OFD Sender: No OFD packet to send [19:06:27]OFD Sender: No OFD packet to send [19:06:32]OFD Sender: No OFD packet to send [19:06:37]OFD Sender: No OFD packet to send [19:06:42]OFD Sender: No OFD packet to send [19:06:47]OFD Sender: No OFD packet to send [19:06:52]OFD Sender: No OFD packet to send [19:06:57]OFD Sender: No OFD packet to send [19:07:02]OFD Sender: No OFD packet to send [19:07:07]OFD Sender: No OFD packet to send [19:07:12]OFD Sender: No OFD packet to send [19:07:17]OFD Sender: No OFD packet to send [19:07:22]OFD Sender: No OFD packet to send [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:02]OFD Sender: No OFD packet to send [19:08:07]OFD Sender: No OFD packet to send [19:08:12]OFD Sender: No OFD packet to send [19:08:17]OFD Sender: No OFD packet to send [19:08:22]OFD Sender: No OFD packet to send [19:08:27]OFD Sender: No OFD packet to send [19:08:32]OFD Sender: No OFD packet to send [19:08:37]OFD Sender: No OFD packet to send [19:08:42]OFD Sender: No OFD packet to send [19:08:47]OFD Sender: No OFD packet to send [19:08:52]OFD Sender: No OFD packet to send [19:08:57]OFD Sender: No OFD packet to send [19:09:02]OFD Sender: No OFD packet to send [19:09:07]OFD Sender: No OFD packet to send [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:16]accept exits with 7 [19:10:16]New connection [19:10:16]New thread 3066830180 created [19:10:16]Thread 3066973540 joined [19:10:16]Waiting for new connection... [19:10:16] Sock 7.Parse request [19:10:16]Sock 7.Check first char [19:10:16]Sock 7.First char is OK [19:10:16]request: POST /json_proto HTTP/1.0 [19:10:16]Method: POST [19:10:16]URL: /json_proto [19:10:16]Method is POST - this is cgi request [19:10:16]url: /json_proto [19:10:16]query_string will be loaded in cgi processing [19:10:16]execute_cgi json_proto POST (null) [19:10:16]execute_cgi path=json_proto method=POST [19:10:16]POST find Content-Length [19:10:16]Host: 172.17.46.196:8080 [19:10:16]Content-Length: 675 [19:10:16]Content-Type: application/json [19:10:16] [19:10:16]POST finish read [19:10:16]Found Content-Length = 675 [19:10:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189729", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:16]execute_script... [19:10: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 : (3)189729", "tax_sys" : 0, "items" : [ { "code": "4650243871828", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F \u043C\u0430\u043D\u0433\u043E-\u043A\u043E\u043A\u043E\u0441 0,45 \u0436/\u0431", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 90.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:16]POST & json_proto [19:10:16]process_json_proto [19:10:16]json parsed OK: [19:10:16]protocol is kg_v1.0 [19:10:16]action value=close_receipt [19:10:16]process_action close_receipt [19:10:16]cmd_close_receipt [19:10:16]MH_GetDate [19:10:16]Write to MH i2c: F0 00 00 92 5B DC [19:10:16]Write i2c OK [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: F0 [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: F0 09 00 [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: F0 09 00 92 5B 00 1F A4 BF 66 07 E8 5D 66 7F [19:10:16]GetLastDocTimeStamp 1723835011 [19:10:16]current date 1723835423 [19:10:16]FM_GetShiftState [19:10:16]SAM_PROTO_GetShiftState [19:10:16]wFMCommunicate request_size=4 [19:10:16]MH_SAM_APDU [19:10:16]CAPDU: 80 13 01 00 [19:10:16]Write to MH i2c: E2 08 00 93 5B 80 13 01 00 00 00 00 00 6B [19:10:16]Write i2c OK [19:10:16]MH_I2C_Read... [19:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:16]Read from MH i2c: E2 [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: E2 0E 00 [19:10:16]MH_I2C_Read... [19:10:16]Read from MH i2c: E2 0E 00 93 5B 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 E1 [19:10:16]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [19:10:16]wFMCommunicate OK [19:10:16]SAM_PROTO_GetShiftState done [19:10:16]FM_GetShiftState done [19:10:16]opened in 1723766958 [19:10:16]opened+sec_in_day 1723853358 [19:10:16]quantity*price = 9000 [19:10:16]sum+1 = 9001 [19:10:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 90.00 НСП 1% : 0.80 НДС 12% : 9.56 Наличными: 90.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 170 16.08.2024 19:10 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49522 ФПД: 146065047477353 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T191023&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49522&fm=146065047477353&tin=02508201610067®Number=0000000000092546&sum=9000 0 [19:10:18]StoreToDocumentArchive [19:10:18]shift 464 fd 49522 [19:10:18]save to /storage/0464/doc_00049522 [19:10:18]save last doc name /storage/0464/doc_00049522 to /storage/kkm_last_doc_name [19:10:18]save OK [19:10:18]Clear old archive folders... [19:10:18]ProcessDocumentItem done err = 0, tmpTLVsize=294 [19:10:18]tlvbuf is 00EAD240 [19:10:18]SAM_PROTO_ClearQueue [19:10:18]wFMCommunicate request_size=4 [19:10:18]MH_SAM_APDU [19:10:18]CAPDU: 80 09 00 00 [19:10:18]Write to MH i2c: E2 08 00 A0 5B 80 09 00 00 00 00 00 00 6D [19:10:18]Write i2c OK [19:10:18]MH_I2C_Read... [19:10:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:18]Read from MH i2c: E2 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 03 00 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 03 00 A0 5B 00 90 00 6F [19:10:18]RAPDU: 90 00 [19:10:18]wFMCommunicate OK [19:10:18]SAM_PROTO_ClearQueue done [19:10:18]KKMCreateOFDPacket [19:10:18]OFDProtocolAddRootSTLVToBuf [19:10:18]FM_MakeSignedData [19:10:18]FM_MakeSignedData [19:10:18]SAM_PROTO_SignData [19:10:18]wFMCommunicate request_size=4 [19:10:18]MH_SAM_APDU [19:10:18]CAPDU: 80 0D 01 02 [19:10:18]Write to MH i2c: E2 08 00 A1 5B 80 0D 01 02 00 00 00 00 75 [19:10:18]Write i2c OK [19:10:18]MH_I2C_Read... [19:10:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:18]Read from MH i2c: E2 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 03 00 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 03 00 A1 5B 00 90 00 70 [19:10:18]RAPDU: 90 00 [19:10:18]wFMCommunicate OK [19:10:18]wFMCommunicate request_size=255 [19:10:18]MH_SAM_APDU [19:10:18]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 1F A4 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [19:10:18]Write to MH i2c: E2 02 01 A2 5B 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 1F A4 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 76 [19:10:18]Write i2c OK [19:10:18]MH_I2C_Read... [19:10:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:18]Read from MH i2c: E2 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 03 00 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 03 00 A2 5B 00 90 00 71 [19:10:18]RAPDU: 90 00 [19:10:18]wFMCommunicate OK [19:10:18]wFMCommunicate request_size=53 [19:10:18]MH_SAM_APDU [19:10:18]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 72 C1 00 00 35 04 06 00 84 D8 6B 44 DC 69 [19:10:18]Write to MH i2c: E2 38 00 A3 5B 80 0D 02 02 30 00 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 72 C1 00 00 35 04 06 00 84 D8 6B 44 DC 69 00 00 E9 [19:10:18]Write i2c OK [19:10:18]MH_I2C_Read... [19:10:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:18]Read from MH i2c: E2 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 03 00 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 03 00 A3 5B 00 90 00 72 [19:10:18]RAPDU: 90 00 [19:10:18]wFMCommunicate OK [19:10:18]wFMCommunicate request_size=4 [19:10:18]MH_SAM_APDU [19:10:18]CAPDU: 80 0D 03 02 [19:10:18]Write to MH i2c: E2 08 00 A4 5B 80 0D 03 02 00 00 00 00 7A [19:10:18]Write i2c OK [19:10:18]MH_I2C_Read... [19:10:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:18]Read from MH i2c: E2 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 0B 00 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 0B 00 A4 5B 00 42 2B 0F FA 87 B2 D0 93 90 00 8D [19:10:18]RAPDU: 42 2B 0F FA 87 B2 D0 93 90 00 [19:10:18]wFMCommunicate OK [19:10:18]SAM_PROTO_SignData done [19:10:18]FM_MakeSignedData done [19:10:18]CreateOFDProtocolMessage [19:10:18]wFMCommunicate request_size=4 [19:10:18]MH_SAM_APDU [19:10:18]CAPDU: 80 11 00 00 [19:10:18]Write to MH i2c: E2 08 00 A5 5B 80 11 00 00 00 00 00 00 7A [19:10:18]Write i2c OK [19:10:18]MH_I2C_Read... [19:10:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:18]Read from MH i2c: E2 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 17 00 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: E2 17 00 A5 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 C5 [19:10:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:10:18]wFMCommunicate OK [19:10:18]CreateOFDProtocolMessage done [19:10:18]OFDSenderStorePacket 49522 [19:10:18]StoreOFDPacket docnum=49522 [19:10:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 F0 6F 32 01 53 6B 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 1F A4 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 72 C1 00 00 35 04 06 00 84 D8 6B 44 DC 69 42 2B 0F FA 87 B2 D0 93 [19:10:18]CheckFolder [19:10:18]dirname=/storage/ofd_packets [19:10:18]CheckFolder done [19:10:18]ProducePacketName [19:10:18]name=ofd_packets/00049522 [19:10:18]NVStorageSaveData ofd_packets/00049522 [19:10:18]File name is /storage/ofd_packets/00049522 [19:10:18]Write 344 bytes [19:10:18]NVStorageSaveData done [19:10:18]OFDSenderStorePacket done [19:10:18]KKMCreateOFDPacket done [19:10:18]NVStorageSaveData kkm_last_timestamp [19:10:18]File name is /storage/kkm_last_timestamp [19:10:18]Write 4 bytes [19:10:18]NVStorageSaveData done [19:10:18]ExternCall_PrintAddStr [19:10:18]wPrintStart [19:10:18]Write to MH i2c: 01 00 00 A6 5B 01 [19:10:18]Write i2c OK [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: 01 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: 01 07 00 [19:10:18]MH_I2C_Read... [19:10:18]Read from MH i2c: 01 07 00 A6 5B 00 00 00 00 00 FF 0F 16 [19:10:18]RasterBufferAndPrint [19:10:18]line Счет N : (3)189729 [19:10:18]line ИНН: 02508201610067 [19:10:18]line Контрольно-Кассовый Чек [19:10:18]line ПРОДАЖА [19:10:18]line Товар: 4650243871828 [19:10:18]line Gorilla эн нап манго-кокос 0,45 ж/б [19:10:18]line 1.000 * 90.00 [19:10:18]line = 90.00 [19:10:18]line НДС 12% НСП 1% [19:10:18]line > о реализуемом товаре [19:10:18]line ИТОГО: 90.00 [19:10:18]line НСП 1% : 0.80 [19:10:18]line НДС 12% : 9.56 [19:10:18]line Наличными: 90.00 [19:10:18]line Безнал.: 0.00 [19:10:18]line Место: АЗС № 95 "Партнер Нефть" [19:10:18]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [19:10:18]line СНО: Общий режим [19:10:18]line Чек 170 16.08.2024 19:10 [19:10:18]line Смена: 464 ФФД: 1.0 [19:10:18]line ЗНМ: 0300000078 [19:10:18]line РНМ: 0000000000092546 [19:10:18]line Версия ККМ: 001 [19:10:18]line ФМ: 0000000000871800 [19:10:18]line ФД: 49522 [19:10:18]line ФПД: 146065047477353 [19:10:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T191023&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49522&fm=146065047477353&tin=02508201610067®Number=0000000000092546&sum=9000 [19:10:19]OFD Sender: Processing packet 49522 [packets to send 21, broken 20] [19:10:19]ProducePacketName [19:10:19]name=ofd_packets/00049522 [19:10:19]OFD Sender: To server: pG, [19:10:19]CommunicateWithHost lk.salyk.kg:30040 [19:10:19]ConnectInit lk.salyk.kg [19:10:19]line 0 [19:10:19]written 0, free lines is 4095 [19:10:19]Connected sock=10 [19:10:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 F0 6F 32 01 53 6B 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 38 32 38 06 04 34 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BE D0 BA D0 BE D1 81 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 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 1F A4 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 72 C1 00 00 35 04 06 00 84 D8 6B 44 DC 69 42 2B 0F FA 87 B2 D0 93 [19:10:19]Write to MH i2c: 01 00 00 CF 5B 2A [19:10:19]Write i2c OK [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: 01 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: 01 07 00 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: 01 07 00 CF 5B 00 00 00 00 00 ED 0C 2A [19:10:19]RasterBufferAndPrint [19:10:19]line [19:10:19]line [19:10:19]line [19:10:19]line [19:10:19]line [19:10:19]written 0, free lines is 3315 [19:10:19]MH_Cut [19:10:19]Write to MH i2c: D1 01 00 D6 5B 01 03 [19:10:19]Write i2c OK [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: D1 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: D1 01 00 [19:10:19]MH_I2C_Read... [19:10:19]Read from MH i2c: D1 01 00 D6 5B 00 02 [19:10:19]Write to MH i2c: 01 00 00 D7 5B 32 [19:10:19]Write i2c OK [19:10:19]MH_I2C_Read... [19:10:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 46 4F 47 00 93 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 72 C1 00 00 F4 03 04 00 5E 4F BF 66 B6 04 01 00 00 2D A4 3E 6C E0 09 13 91 [19:10:19]CommunicateWithHost err = 0 [19:10:19]CheckOFDResponse [19:10:19]1017 (14) - 77093643461234 [19:10:19]1041 (16) - 0000000000871800 [19:10:19]1040 (4) - 49522 [19:10:19]1012 (4) - 16.08.2024 13:08 [19:10:19]1206 (1) - 0 [19:10:19]OFD Sender: Remove packet 49522 [19:10:19]ProducePacketName [19:10:19]name=ofd_packets/00049522 [19:10:19]NVStorageDeleteData [19:10:20]OFD Sender: No OFD packet to send [19:10:20]*** Cut start [19:10:20]*** Purtial cut [19:10:20]*** CUTSNS_PIN = 0 [19:10:20]*** Stage 1: CUTSNS_PIN = 1 [19:10:22]Read from MH i2c: 01 [19:10:22]MH_I2C_Read... [19:10:22]*** Stop cut motor [19:10:22]*** Cut end [19:10:22]Read from MH i2c: 01 07 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: 01 07 00 D7 5B 00 00 00 00 00 FF 0F 47 [19:10:22]process_action close_receipt done [19:10:22]requested_data is exist [19:10:22]produce_requested_data [19:10:22]requested_item fm.sn is exist - process it [19:10:22]wFMCommunicate request_size=4 [19:10:22]MH_SAM_APDU [19:10:22]CAPDU: 80 11 00 00 [19:10:22]Write to MH i2c: E2 08 00 D8 5B 80 11 00 00 00 00 00 00 AD [19:10:22]Write i2c OK [19:10:22]MH_I2C_Read... [19:10:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:22]Read from MH i2c: E2 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 17 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 17 00 D8 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 F8 [19:10:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [19:10:22]wFMCommunicate OK [19:10:22]requested_item fd.num is exist - process it [19:10:22]SAM_PROTO_GetFieldsCounters [19:10:22]wFMCommunicate request_size=4 [19:10:22]MH_SAM_APDU [19:10:22]CAPDU: 80 13 00 00 [19:10:22]Write to MH i2c: E2 08 00 D9 5B 80 13 00 00 00 00 00 00 B0 [19:10:22]Write i2c OK [19:10:22]MH_I2C_Read... [19:10:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:22]Read from MH i2c: E2 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 62 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 62 00 D9 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 72 C1 00 00 0E 04 04 00 D0 01 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 CC [19:10:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 72 C1 00 00 0E 04 04 00 D0 01 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 [19:10:22]wFMCommunicate OK [19:10:22]SAM_PROTO_GetFieldsCounters done [19:10:22]requested_item shift.num is exist - process it [19:10:22]requested_item shift.opened is exist - process it [19:10:22]req_shift_opened [19:10:22]FM_GetShiftState [19:10:22]SAM_PROTO_GetShiftState [19:10:22]wFMCommunicate request_size=4 [19:10:22]MH_SAM_APDU [19:10:22]CAPDU: 80 13 01 00 [19:10:22]Write to MH i2c: E2 08 00 DA 5B 80 13 01 00 00 00 00 00 B2 [19:10:22]Write i2c OK [19:10:22]MH_I2C_Read... [19:10:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:22]Read from MH i2c: E2 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 0E 00 [19:10:22]MH_I2C_Read... [19:10:22]Read from MH i2c: E2 0E 00 DA 5B 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 28 [19:10:22]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [19:10:22]wFMCommunicate OK [19:10:22]SAM_PROTO_GetShiftState done [19:10:22]FM_GetShiftState done [19:10:22]req_shift_opened done [19:10:22]requested_item shift.open_date is exist - process it [19:10:22]req_shift_open_date [19:10:22]req_shift_open_date done [19:10:22]produce_requested_data done [19:10:22]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49522,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [19:10:22]process_action_free close_receipt [19:10:22]json_value_free [19:10:22]json_value_free done [19:10:22]process_json_proto returns [19:10:22]Send response to host [19:10:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49522,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [19:10:22]free response buf [19:10:22]execute_script done [19:10:22]execute_script returns [19:10:22]free content buf [19:10:22]Sock 7.Close socket [19:10:22]Sock 7.Thread stoped [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:55]OFD Sender: No OFD packet to send [19:12:00]OFD Sender: No OFD packet to send [19:12:05]OFD Sender: No OFD packet to send [19:12:10]OFD Sender: No OFD packet to send [19:12:15]OFD Sender: No OFD packet to send [19:12:20]OFD Sender: No OFD packet to send [19:12:25]OFD Sender: No OFD packet to send [19:12:30]OFD Sender: No OFD packet to send [19:12:35]OFD Sender: No OFD packet to send [19:12:40]OFD Sender: No OFD packet to send [19:12:45]OFD Sender: No OFD packet to send [19:12:50]OFD Sender: No OFD packet to send [19:12:55]OFD Sender: No OFD packet to send [19:13:00]OFD Sender: No OFD packet to send [19:31:14]ConnectInit Can't connect to host [19:31:17]OFD Sender: Processing packet 49523 [packets to send 23, broken 20] [19:31:17]ProducePacketName [19:31:17]name=ofd_packets/00049523 [19:31:17]OFD Sender: To server: pG, [19:31:17]CommunicateWithHost lk.salyk.kg:30040 [19:31:17]ConnectInit lk.salyk.kg [20:29:28]ConnectInit Can't connect to host [20:29:31]OFD Sender: Processing packet 49523 [packets to send 31, broken 20] [20:29:31]ProducePacketName [20:29:31]name=ofd_packets/00049523 [20:29:31]OFD Sender: To server: pG, [20:29:31]CommunicateWithHost lk.salyk.kg:30040 [20:29:31]ConnectInit lk.salyk.kg [20:29:32]Connected sock=8 [20:29:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 48 33 07 01 AD 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 34 FF 03 08 00 03 60 EA 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 FC A4 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 73 C1 00 00 35 04 06 00 63 26 D0 A7 C6 F7 73 0D EF 5E B6 55 DA 06 [20:29:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C8 C8 47 00 77 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 38 37 31 38 30 30 10 04 04 00 73 C1 00 00 F4 03 04 00 E8 61 BF 66 B6 04 01 00 00 AE 29 3B 9A 63 A2 59 3D [20:29:32]CommunicateWithHost err = 0 [20:29:32]CheckOFDResponse [20:29:32]1017 (14) - 77093643461234 [20:29:32]1041 (16) - 0000000000871800 [20:29:32]1040 (4) - 49523 [20:29:32]1012 (4) - 16.08.2024 14:27 [20:29:32]1206 (1) - 0 [20:29:32]OFD Sender: Remove packet 49523 [20:29:32]ProducePacketName [20:29:32]name=ofd_packets/00049523 [20:29:32]NVStorageDeleteData [20:29:32]OFD Sender: Processing packet 49524 [packets to send 30, broken 20] [20:29:32]ProducePacketName [20:29:32]name=ofd_packets/00049524 [20:29:32]OFD Sender: To server: pG, [20:29:32]CommunicateWithHost lk.salyk.kg:30040 [20:29:32]ConnectInit lk.salyk.kg [20:29:33]Connected sock=8 [20:29:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 B9 01 00 00 57 8E B1 01 7B 13 5A 03 01 00 03 00 A5 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 34 33 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 31 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 7E 00 00 00 00 13 04 06 00 F4 7E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 91 00 8A 04 0D 00 34 38 36 30 31 31 34 33 39 30 31 37 38 06 04 4D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA D0 BE D0 B3 D0 BE D0 BB D1 8C D0 BD D1 8B D0 B9 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 D0 A2 D0 B0 D1 80 D1 85 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 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 E9 13 00 00 00 00 07 04 06 00 80 BB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AC 00 00 00 F4 03 04 00 81 A8 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 74 C1 00 00 35 04 06 00 D8 3F 73 F4 79 8E E4 C0 A2 5A B0 0C 90 26 [20:29:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 30 56 47 00 F4 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 74 C1 00 00 F4 03 04 00 E9 61 BF 66 B6 04 01 00 00 9E B9 DD FE DB 51 D7 6E [20:29:33]CommunicateWithHost err = 0 [20:29:33]CheckOFDResponse [20:29:33]1017 (14) - 77093643461234 [20:29:33]1041 (16) - 0000000000871800 [20:29:33]1040 (4) - 49524 [20:29:33]1012 (4) - 16.08.2024 14:27 [20:29:33]1206 (1) - 0 [20:29:33]OFD Sender: Remove packet 49524 [20:29:33]ProducePacketName [20:29:33]name=ofd_packets/00049524 [20:29:33]NVStorageDeleteData [20:29:33]OFD Sender: Processing packet 49525 [packets to send 29, broken 20] [20:29:33]ProducePacketName [20:29:33]name=ofd_packets/00049525 [20:29:33]OFD Sender: To server: pG, [20:29:33]CommunicateWithHost lk.salyk.kg:30040 [20:29:33]ConnectInit lk.salyk.kg [22:31:08]ConnectInit Can't connect to host [22:33:24]ConnectInit Can't connect to host [22:33:24]CommunicateWithHost connect error [22:33:24]CommunicateWithHost err = -1 [22:33:24]OFD Sender: Server communicate error [22:33:29]OFD Sender: Processing packet 49525 [packets to send 47, broken 20] [22:33:29]ProducePacketName [22:33:29]name=ofd_packets/00049525 [22:33:29]OFD Sender: To server: pG, [22:33:29]CommunicateWithHost lk.salyk.kg:30040 [22:33:29]ConnectInit lk.salyk.kg [22:33:29]Connected sock=7 [22:33:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 02 CD 26 01 B3 D3 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 32 34 06 04 28 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 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 E3 A8 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 75 C1 00 00 35 04 06 00 AB CF C1 B3 F6 5C DC FD 35 F8 54 3A 08 7F [22:33:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 CB 4A 47 00 77 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 75 C1 00 00 F4 03 04 00 F5 7E BF 66 B6 04 01 00 00 FA CF EB 5E 1B 97 2F 72 [22:33:29]CommunicateWithHost err = 0 [22:33:29]CheckOFDResponse [22:33:29]1017 (14) - 77093643461234 [22:33:29]1041 (16) - 0000000000871800 [22:33:29]1040 (4) - 49525 [22:33:29]1012 (4) - 16.08.2024 16:31 [22:33:29]1206 (1) - 0 [22:33:29]OFD Sender: Remove packet 49525 [22:33:29]ProducePacketName [22:33:29]name=ofd_packets/00049525 [22:33:29]NVStorageDeleteData [22:33:30]OFD Sender: Processing packet 49526 [packets to send 46, broken 20] [22:33:30]ProducePacketName [22:33:30]name=ofd_packets/00049526 [22:33:30]OFD Sender: To server: pG, [22:33:30]CommunicateWithHost lk.salyk.kg:30040 [22:33:30]ConnectInit lk.salyk.kg [22:33:30]Connected sock=9 [22:33:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 6A 18 20 01 88 0D 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 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 48 A9 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 76 C1 00 00 35 04 06 00 1B C6 4B B2 8F A0 EB DC C5 4E 3B CC 8E 3A [22:33:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 67 26 47 00 A5 2B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 76 C1 00 00 F4 03 04 00 F6 7E BF 66 B6 04 01 00 00 C7 31 89 34 4A 27 17 56 [22:33:30]CommunicateWithHost err = 0 [22:33:30]CheckOFDResponse [22:33:30]1017 (14) - 77093643461234 [22:33:30]1041 (16) - 0000000000871800 [22:33:30]1040 (4) - 49526 [22:33:30]1012 (4) - 16.08.2024 16:31 [22:33:30]1206 (1) - 0 [22:33:30]OFD Sender: Remove packet 49526 [22:33:30]ProducePacketName [22:33:30]name=ofd_packets/00049526 [22:33:30]NVStorageDeleteData [22:33:31]OFD Sender: Processing packet 49527 [packets to send 45, broken 20] [22:33:31]ProducePacketName [22:33:31]name=ofd_packets/00049527 [22:33:31]OFD Sender: To server: pG, [22:33:31]CommunicateWithHost lk.salyk.kg:30040 [22:33:31]ConnectInit lk.salyk.kg [22:33:31]Connected sock=7 [22:33:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 70 0B 07 01 2F 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 B8 AA BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 77 C1 00 00 35 04 06 00 5C 43 6F 8F 29 C3 D4 91 F3 FD 16 AF 4B BF [22:33:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E3 2C 47 00 95 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 77 C1 00 00 F4 03 04 00 F7 7E BF 66 B6 04 01 00 00 1D 8D 5C A9 EB 0D 35 34 [22:33:31]CommunicateWithHost err = 0 [22:33:31]CheckOFDResponse [22:33:31]1017 (14) - 77093643461234 [22:33:31]1041 (16) - 0000000000871800 [22:33:31]1040 (4) - 49527 [22:33:31]1012 (4) - 16.08.2024 16:31 [22:33:31]1206 (1) - 0 [22:33:31]OFD Sender: Remove packet 49527 [22:33:31]ProducePacketName [22:33:31]name=ofd_packets/00049527 [22:33:31]NVStorageDeleteData [22:33:31]OFD Sender: Processing packet 49528 [packets to send 44, broken 20] [22:33:31]ProducePacketName [22:33:31]name=ofd_packets/00049528 [22:33:31]OFD Sender: To server: pG, [22:33:31]CommunicateWithHost lk.salyk.kg:30040 [22:33:31]ConnectInit lk.salyk.kg [22:33:32]Connected sock=7 [22:33:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 BF 94 07 01 3A 62 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 EF AA BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 78 C1 00 00 35 04 06 00 FC 92 5F A0 CF E5 80 17 EB B1 F5 24 10 08 [22:33:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 36 BE 47 00 33 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 78 C1 00 00 F4 03 04 00 F8 7E BF 66 B6 04 01 00 00 7E A4 B7 9C EA B9 97 21 [22:33:32]CommunicateWithHost err = 0 [22:33:32]CheckOFDResponse [22:33:32]1017 (14) - 77093643461234 [22:33:32]1041 (16) - 0000000000871800 [22:33:32]1040 (4) - 49528 [22:33:32]1012 (4) - 16.08.2024 16:31 [22:33:32]1206 (1) - 0 [22:33:32]OFD Sender: Remove packet 49528 [22:33:32]ProducePacketName [22:33:32]name=ofd_packets/00049528 [22:33:32]NVStorageDeleteData [22:33:32]OFD Sender: Processing packet 49529 [packets to send 43, broken 20] [22:33:32]ProducePacketName [22:33:32]name=ofd_packets/00049529 [22:33:32]OFD Sender: To server: pG, [22:33:32]CommunicateWithHost lk.salyk.kg:30040 [22:33:32]ConnectInit lk.salyk.kg [22:33:33]Connected sock=7 [22:33:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 80 01 00 00 B3 4D 78 01 63 B0 5A 03 01 00 03 00 6C 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C 4C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 08 00 00 00 00 07 04 06 00 2C 4C 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 78 AD BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 79 C1 00 00 35 04 06 00 3E 3E 35 D9 7C 70 8E 2A F2 87 CB 09 F8 07 [22:33:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F1 13 47 00 26 E8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 79 C1 00 00 F4 03 04 00 F9 7E BF 66 B6 04 01 00 00 98 54 DA 0E 86 0D C1 3D [22:33:33]CommunicateWithHost err = 0 [22:33:33]CheckOFDResponse [22:33:33]1017 (14) - 77093643461234 [22:33:33]1041 (16) - 0000000000871800 [22:33:33]1040 (4) - 49529 [22:33:33]1012 (4) - 16.08.2024 16:31 [22:33:33]1206 (1) - 0 [22:33:33]OFD Sender: Remove packet 49529 [22:33:33]ProducePacketName [22:33:33]name=ofd_packets/00049529 [22:33:33]NVStorageDeleteData [22:33:33]OFD Sender: Processing packet 49530 [packets to send 42, broken 20] [22:33:33]ProducePacketName [22:33:33]name=ofd_packets/00049530 [22:33:33]OFD Sender: To server: pG, [22:33:33]CommunicateWithHost lk.salyk.kg:30040 [22:33:33]ConnectInit lk.salyk.kg [22:33:34]Connected sock=7 [22:33:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 47 01 00 00 FF DB 3F 01 D3 9A 5A 03 01 00 03 00 33 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 32 30 30 30 30 32 39 37 37 30 30 31 32 06 04 41 00 D0 9E D1 87 D0 BA D0 B8 20 D1 81 D0 BE D0 BB D0 BD D1 86 D0 B5 D0 B7 D0 B0 D1 89 D0 B8 D1 82 D0 BD D1 8B D0 B5 20 D0 B2 20 D0 B0 D1 81 D1 81 D0 BE D1 80 D1 82 D0 B8 D0 BC D0 B5 D0 BD D1 82 D0 B5 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 78 E6 00 00 00 00 13 04 06 00 78 E6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 E6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 18 00 00 00 00 07 04 06 00 78 E6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 AE AE BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7A C1 00 00 35 04 06 00 80 C1 0E 95 38 B6 A9 21 34 5D 2D BE BE BD [22:33:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 92 15 47 00 B2 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7A C1 00 00 F4 03 04 00 FA 7E BF 66 B6 04 01 00 00 A5 77 90 21 42 1A 8F AC [22:33:34]CommunicateWithHost err = 0 [22:33:34]CheckOFDResponse [22:33:34]1017 (14) - 77093643461234 [22:33:34]1041 (16) - 0000000000871800 [22:33:34]1040 (4) - 49530 [22:33:34]1012 (4) - 16.08.2024 16:31 [22:33:34]1206 (1) - 0 [22:33:34]OFD Sender: Remove packet 49530 [22:33:34]ProducePacketName [22:33:34]name=ofd_packets/00049530 [22:33:34]NVStorageDeleteData [22:33:34]OFD Sender: Processing packet 49531 [packets to send 41, broken 20] [22:33:34]ProducePacketName [22:33:34]name=ofd_packets/00049531 [22:33:34]OFD Sender: To server: pG, [22:33:34]CommunicateWithHost lk.salyk.kg:30040 [22:33:34]ConnectInit lk.salyk.kg [22:33:35]Connected sock=7 [22:33:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3B 01 00 00 10 E8 33 01 69 D0 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 64 19 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 E1 AE BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7B C1 00 00 35 04 06 00 A7 DE 68 52 AD D2 7A 5C 89 71 BD 46 86 D5 [22:33:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 AA F3 47 00 87 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 38 37 31 38 30 30 10 04 04 00 7B C1 00 00 F4 03 04 00 FB 7E BF 66 B6 04 01 00 00 CA 57 D4 7E 41 A0 B8 74 [22:33:35]CommunicateWithHost err = 0 [22:33:35]CheckOFDResponse [22:33:35]1017 (14) - 77093643461234 [22:33:35]1041 (16) - 0000000000871800 [22:33:35]1040 (4) - 49531 [22:33:35]1012 (4) - 16.08.2024 16:31 [22:33:35]1206 (1) - 0 [22:33:35]OFD Sender: Remove packet 49531 [22:33:35]ProducePacketName [22:33:35]name=ofd_packets/00049531 [22:33:35]NVStorageDeleteData [22:33:35]OFD Sender: Processing packet 49532 [packets to send 40, broken 20] [22:33:35]ProducePacketName [22:33:35]name=ofd_packets/00049532 [22:33:35]OFD Sender: To server: pG, [22:33:35]CommunicateWithHost lk.salyk.kg:30040 [22:33:35]ConnectInit lk.salyk.kg [22:33:35]Connected sock=7 [22:33:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 B3 01 00 00 26 7D AB 01 33 6E 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 39 30 33 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 44 41 44 41 20 D1 8F D0 B1 D0 BB 2C D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 74 40 00 00 00 00 13 04 06 00 74 40 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 8A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 0E 00 00 00 00 07 04 06 00 AC 8A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 0A B3 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7C C1 00 00 35 04 06 00 0C AF 47 5C B9 69 85 74 A8 82 EC 80 6E 45 [22:33:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C3 96 47 00 A0 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 38 37 31 38 30 30 10 04 04 00 7C C1 00 00 F4 03 04 00 FC 7E BF 66 B6 04 01 00 00 6B C9 B6 2D 9B 03 88 0E [22:33:36]CommunicateWithHost err = 0 [22:33:36]CheckOFDResponse [22:33:36]1017 (14) - 77093643461234 [22:33:36]1041 (16) - 0000000000871800 [22:33:36]1040 (4) - 49532 [22:33:36]1012 (4) - 16.08.2024 16:31 [22:33:36]1206 (1) - 0 [22:33:36]OFD Sender: Remove packet 49532 [22:33:36]ProducePacketName [22:33:36]name=ofd_packets/00049532 [22:33:36]NVStorageDeleteData [22:33:36]OFD Sender: Processing packet 49533 [packets to send 39, broken 20] [22:33:36]ProducePacketName [22:33:36]name=ofd_packets/00049533 [22:33:36]OFD Sender: To server: pG, [22:33:36]CommunicateWithHost lk.salyk.kg:30040 [22:33:36]ConnectInit lk.salyk.kg [22:33:36]Connected sock=7 [22:33:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 E1 CA 07 01 9D 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 34 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B5 00 00 00 F4 03 04 00 BC B3 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7D C1 00 00 35 04 06 00 41 50 5D 35 61 09 AA EC DD 9D CB 48 CA E2 [22:33:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 18 C9 47 00 A8 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7D C1 00 00 F4 03 04 00 FD 7E BF 66 B6 04 01 00 00 56 45 59 04 59 00 88 72 [22:33:37]CommunicateWithHost err = 0 [22:33:37]CheckOFDResponse [22:33:37]1017 (14) - 77093643461234 [22:33:37]1041 (16) - 0000000000871800 [22:33:37]1040 (4) - 49533 [22:33:37]1012 (4) - 16.08.2024 16:31 [22:33:37]1206 (1) - 0 [22:33:37]OFD Sender: Remove packet 49533 [22:33:37]ProducePacketName [22:33:37]name=ofd_packets/00049533 [22:33:37]NVStorageDeleteData [22:33:37]OFD Sender: Processing packet 49534 [packets to send 38, broken 20] [22:33:37]ProducePacketName [22:33:37]name=ofd_packets/00049534 [22:33:37]OFD Sender: To server: pG, [22:33:37]CommunicateWithHost lk.salyk.kg:30040 [22:33:37]ConnectInit lk.salyk.kg [22:33:37]Connected sock=7 [22:33:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2A 01 00 00 AB 5F 22 01 F0 22 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 60 3B 00 00 00 00 13 04 06 00 60 3B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 3B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 86 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 06 00 00 00 00 07 04 06 00 60 3B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 CA C2 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7E C1 00 00 35 04 06 00 7D 83 8E 26 4A F6 0A 87 1A 35 A2 7F 2D B1 [22:33:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F6 81 47 00 E8 0D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7E C1 00 00 F4 03 04 00 FE 7E BF 66 B6 04 01 00 00 17 61 63 F4 4F 6E F6 42 [22:33:38]CommunicateWithHost err = 0 [22:33:38]CheckOFDResponse [22:33:38]1017 (14) - 77093643461234 [22:33:38]1041 (16) - 0000000000871800 [22:33:38]1040 (4) - 49534 [22:33:38]1012 (4) - 16.08.2024 16:31 [22:33:38]1206 (1) - 0 [22:33:38]OFD Sender: Remove packet 49534 [22:33:38]ProducePacketName [22:33:38]name=ofd_packets/00049534 [22:33:38]NVStorageDeleteData [22:33:38]OFD Sender: Processing packet 49535 [packets to send 37, broken 20] [22:33:38]ProducePacketName [22:33:38]name=ofd_packets/00049535 [22:33:38]OFD Sender: To server: pG, [22:33:38]CommunicateWithHost lk.salyk.kg:30040 [22:33:38]ConnectInit lk.salyk.kg [22:33:38]Connected sock=7 [22:33:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 B5 86 1F 01 30 D9 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 D1 C2 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7F C1 00 00 35 04 06 00 7D ED 15 AD E2 26 DC AA E4 AF D3 14 29 47 [22:33:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 1C F1 47 00 3C D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 7F C1 00 00 F4 03 04 00 FE 7E BF 66 B6 04 01 00 00 3A D8 92 52 FA FF CC E2 [22:33:39]CommunicateWithHost err = 0 [22:33:39]CheckOFDResponse [22:33:39]1017 (14) - 77093643461234 [22:33:39]1041 (16) - 0000000000871800 [22:33:39]1040 (4) - 49535 [22:33:39]1012 (4) - 16.08.2024 16:31 [22:33:39]1206 (1) - 0 [22:33:39]OFD Sender: Remove packet 49535 [22:33:39]ProducePacketName [22:33:39]name=ofd_packets/00049535 [22:33:39]NVStorageDeleteData [22:33:39]OFD Sender: Processing packet 49536 [packets to send 36, broken 20] [22:33:39]ProducePacketName [22:33:39]name=ofd_packets/00049536 [22:33:39]OFD Sender: To server: pG, [22:33:39]CommunicateWithHost lk.salyk.kg:30040 [22:33:39]ConnectInit lk.salyk.kg [22:33:39]Connected sock=7 [22:33:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A8 01 00 00 FF 9D A0 01 79 20 5A 03 01 00 03 00 94 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 FC 3A 00 00 00 00 13 04 06 00 FC 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 54 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 08 00 00 00 00 07 04 06 00 60 54 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 D6 C2 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 80 C1 00 00 35 04 06 00 71 28 39 41 34 79 D9 FF BF 8C 0B 81 12 65 [22:33:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 25 5D 47 00 4F 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 38 37 31 38 30 30 10 04 04 00 80 C1 00 00 F4 03 04 00 FF 7E BF 66 B6 04 01 00 00 CD 67 CE 3B 0E DD 56 C7 [22:33:40]CommunicateWithHost err = 0 [22:33:40]CheckOFDResponse [22:33:40]1017 (14) - 77093643461234 [22:33:40]1041 (16) - 0000000000871800 [22:33:40]1040 (4) - 49536 [22:33:40]1012 (4) - 16.08.2024 16:31 [22:33:40]1206 (1) - 0 [22:33:40]OFD Sender: Remove packet 49536 [22:33:40]ProducePacketName [22:33:40]name=ofd_packets/00049536 [22:33:40]NVStorageDeleteData [22:33:40]OFD Sender: Processing packet 49537 [packets to send 35, broken 20] [22:33:40]ProducePacketName [22:33:40]name=ofd_packets/00049537 [22:33:40]OFD Sender: To server: pG, [22:33:40]CommunicateWithHost lk.salyk.kg:30040 [22:33:40]ConnectInit lk.salyk.kg [22:35:24]accept exits with 11 [22:35:24]New connection [22:35:24]New thread 3066944868 created [22:35:24]Thread 3066801508 joined [22:35:24]Waiting for new connection... [22:35:24] Sock 11.Parse request [22:35:24]Sock 11.Check first char [22:35:24]Sock 11.First char is OK [22:35:24]request: POST /json_proto HTTP/1.0 [22:35:24]Method: POST [22:35:24]URL: /json_proto [22:35:24]Method is POST - this is cgi request [22:35:24]url: /json_proto [22:35:24]query_string will be loaded in cgi processing [22:35:24]execute_cgi json_proto POST (null) [22:35:24]execute_cgi path=json_proto method=POST [22:35:24]POST find Content-Length [22:35:24]Host: 172.17.46.196:8080 [22:35:24]Content-Length: 628 [22:35:24]Content-Type: application/json [22:35:24] [22:35:24]POST finish read [22:35:24]Found Content-Length = 628 [22:35:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189754", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:24]execute_script... [22:35: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 : (3)189754", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:35:24]POST & json_proto [22:35:24]process_json_proto [22:35:24]json parsed OK: [22:35:24]protocol is kg_v1.0 [22:35:24]action value=close_receipt [22:35:24]process_action close_receipt [22:35:24]cmd_close_receipt [22:35:24]MH_GetDate [22:35:24]Write to MH i2c: F0 00 00 5E 05 52 [22:35:24]Write i2c OK [22:35:24]MH_I2C_Read... [22:35:24]Read from MH i2c: F0 [22:35:24]MH_I2C_Read... [22:35:24]Read from MH i2c: F0 09 00 [22:35:24]MH_I2C_Read... [22:35:24]Read from MH i2c: F0 09 00 5E 05 00 2D D4 BF 66 07 E8 5D 66 33 [22:35:24]GetLastDocTimeStamp 1723847003 [22:35:24]current date 1723847725 [22:35:24]FM_GetShiftState [22:35:24]SAM_PROTO_GetShiftState [22:35:24]wFMCommunicate request_size=4 [22:35:24]MH_SAM_APDU [22:35:24]CAPDU: 80 13 01 00 [22:35:24]Write to MH i2c: E2 08 00 5F 05 80 13 01 00 00 00 00 00 E1 [22:35:24]Write i2c OK [22:35:24]MH_I2C_Read... [22:35:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:24]Read from MH i2c: E2 [22:35:24]MH_I2C_Read... [22:35:24]Read from MH i2c: E2 0E 00 [22:35:24]MH_I2C_Read... [22:35:24]Read from MH i2c: E2 0E 00 5F 05 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 57 [22:35:24]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [22:35:24]wFMCommunicate OK [22:35:24]SAM_PROTO_GetShiftState done [22:35:24]FM_GetShiftState done [22:35:24]opened in 1723766958 [22:35:24]opened+sec_in_day 1723853358 [22:35:24]quantity*price = 13000 [22:35:24]sum+1 = 13001 [22:35:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 200 16.08.2024 22:35 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49552 ФПД: 76435168833658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T223525&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49552&fm=76435168833658&tin=02508201610067®Number=0000000000092546&sum=13000 0 [22:35:25]StoreToDocumentArchive [22:35:25]shift 464 fd 49552 [22:35:25]save to /storage/0464/doc_00049552 [22:35:25]save last doc name /storage/0464/doc_00049552 to /storage/kkm_last_doc_name [22:35:25]save OK [22:35:25]Clear old archive folders... [22:35:25]ProcessDocumentItem done err = 0, tmpTLVsize=276 [22:35:25]tlvbuf is 018CD070 [22:35:25]SAM_PROTO_ClearQueue [22:35:25]wFMCommunicate request_size=4 [22:35:25]MH_SAM_APDU [22:35:25]CAPDU: 80 09 00 00 [22:35:25]Write to MH i2c: E2 08 00 6C 05 80 09 00 00 00 00 00 00 E3 [22:35:25]Write i2c OK [22:35:25]MH_I2C_Read... [22:35:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:35:25]Read from MH i2c: E2 [22:35:25]MH_I2C_Read... [22:35:25]Read from MH i2c: E2 03 00 [22:35:25]MH_I2C_Read... [22:35:25]Read from MH i2c: E2 03 00 6C 05 00 90 00 E5 [22:35:25]RAPDU: 90 00 [22:35:25]wFMCommunicate OK [22:35:25]SAM_PROTO_ClearQueue done [22:35:25]KKMCreateOFDPacket [22:35:25]OFDProtocolAddRootSTLVToBuf [22:35:25]FM_MakeSignedData [22:35:25]FM_MakeSignedData [22:35:25]SAM_PROTO_SignData [22:35:25]wFMCommunicate request_size=4 [22:35:25]MH_SAM_APDU [22:35:25]CAPDU: 80 0D 01 02 [22:35:25]Write to MH i2c: E2 08 00 6D 05 80 0D 01 02 00 00 00 00 EB [22:35:25]Write i2c OK [22:35:25]MH_I2C_Read... [22:35:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:35:25]Read from MH i2c: E2 [22:35:25]MH_I2C_Read... [22:35:25]Read from MH i2c: E2 03 00 [22:35:25]MH_I2C_Read... [22:35:25]Read from MH i2c: E2 03 00 6D 05 00 90 00 E6 [22:35:25]RAPDU: 90 00 [22:35:25]wFMCommunicate OK [22:35:25]wFMCommunicate request_size=255 [22:35:25]MH_SAM_APDU [22:35:25]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 2D D4 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 [22:35:25]Write to MH i2c: E2 02 01 6E 05 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 2D D4 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 00 00 C6 [22:35:25]Write i2c OK [22:35:25]MH_I2C_Read... [22:35:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:26]Read from MH i2c: E2 [22:35:26]MH_I2C_Read... [22:35:26]Read from MH i2c: E2 03 00 [22:35:26]MH_I2C_Read... [22:35:26]Read from MH i2c: E2 03 00 6E 05 00 90 00 E7 [22:35:26]RAPDU: 90 00 [22:35:26]wFMCommunicate OK [22:35:26]wFMCommunicate request_size=35 [22:35:26]MH_SAM_APDU [22:35:26]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 90 C1 00 00 35 04 06 00 45 84 73 16 30 7A [22:35:26]Write to MH i2c: E2 26 00 6F 05 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 90 C1 00 00 35 04 06 00 45 84 73 16 30 7A 00 00 26 [22:35:26]Write i2c OK [22:35:26]MH_I2C_Read... [22:35:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:35:26]Read from MH i2c: E2 [22:35:26]MH_I2C_Read... [22:35:26]Read from MH i2c: E2 03 00 [22:35:26]MH_I2C_Read... [22:35:26]Read from MH i2c: E2 03 00 6F 05 00 90 00 E8 [22:35:26]RAPDU: 90 00 [22:35:26]wFMCommunicate OK [22:35:26]wFMCommunicate request_size=4 [22:35:26]MH_SAM_APDU [22:35:26]CAPDU: 80 0D 03 02 [22:35:26]Write to MH i2c: E2 08 00 70 05 80 0D 03 02 00 00 00 00 F0 [22:35:26]Write i2c OK [22:35:26]MH_I2C_Read... [22:35:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:35:26]Read from MH i2c: E2 [22:35:26]MH_I2C_Read... [22:35:26]Read from MH i2c: E2 0B 00 [22:35:26]MH_I2C_Read... [22:35:26]Read from MH i2c: E2 0B 00 70 05 00 BD 35 05 6C C3 18 5A 81 90 00 0A [22:35:26]RAPDU: BD 35 05 6C C3 18 5A 81 90 00 [22:35:26]wFMCommunicate OK [22:35:26]SAM_PROTO_SignData done [22:35:26]FM_MakeSignedData done [22:35:26]CreateOFDProtocolMessage [22:35:26]wFMCommunicate request_size=4 [22:35:26]MH_SAM_APDU [22:35:26]CAPDU: 80 11 00 00 [22:35:26]Write to MH i2c: E2 08 00 71 05 80 11 00 00 00 00 00 00 F0 [22:35:26]Write i2c OK [22:35:26]MH_I2C_Read... [22:35:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:26]Read from MH i2c: E2 [22:35:26]MH_I2C_Read... [22:35:26]Read from MH i2c: E2 17 00 [22:35:26]MH_I2C_Read... [22:35:26]Read from MH i2c: E2 17 00 71 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 3B [22:35:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:35:26]wFMCommunicate OK [22:35:26]CreateOFDProtocolMessage done [22:35:26]OFDSenderStorePacket 49552 [22:35:26]StoreOFDPacket docnum=49552 [22:35:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 3D E3 20 01 57 E0 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 2D D4 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 90 C1 00 00 35 04 06 00 45 84 73 16 30 7A BD 35 05 6C C3 18 5A 81 [22:35:26]CheckFolder [22:35:26]dirname=/storage/ofd_packets [22:35:26]CheckFolder done [22:35:26]ProducePacketName [22:35:26]name=ofd_packets/00049552 [22:35:26]NVStorageSaveData ofd_packets/00049552 [22:35:26]File name is /storage/ofd_packets/00049552 [22:35:26]Write 326 bytes [22:35:26]NVStorageSaveData done [22:35:26]OFDSenderStorePacket done [22:35:26]KKMCreateOFDPacket done [22:35:26]NVStorageSaveData kkm_last_timestamp [22:35:26]File name is /storage/kkm_last_timestamp [22:35:26]Write 4 bytes [22:35:26]NVStorageSaveData done [22:35:26]ExternCall_PrintAddStr [22:35:26]wPrintStart [22:35:26]Write to MH i2c: 01 00 00 72 05 77 [22:35:26]Write i2c OK [22:35:26]MH_I2C_Read... [22:35:26]Read from MH i2c: 01 [22:35:26]MH_I2C_Read... [22:35:26]Read from MH i2c: 01 07 00 [22:35:26]MH_I2C_Read... [22:35:26]Read from MH i2c: 01 07 00 72 05 00 00 00 00 00 FF 0F 8C [22:35:26]RasterBufferAndPrint [22:35:26]line Счет N : (3)189754 [22:35:26]line ИНН: 02508201610067 [22:35:26]line Контрольно-Кассовый Чек [22:35:26]line ПРОДАЖА [22:35:26]line Товар: 2000036230011 [22:35:26]line Кофе Латте XL(GABB TRADE) [22:35:26]line 1.000 * 130.00 [22:35:26]line = 130.00 [22:35:26]line НДС 12% НСП 1% [22:35:26]line > о реализуемом товаре [22:35:26]line ИТОГО: 130.00 [22:35:26]line НСП 1% : 1.15 [22:35:26]line НДС 12% : 13.80 [22:35:26]line Наличными: 130.00 [22:35:26]line Безнал.: 0.00 [22:35:26]line Место: АЗС № 95 "Партнер Нефть" [22:35:26]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:35:26]line СНО: Общий режим [22:35:26]line Чек 200 16.08.2024 22:35 [22:35:26]line Смена: 464 ФФД: 1.0 [22:35:26]line ЗНМ: 0300000078 [22:35:26]line РНМ: 0000000000092546 [22:35:26]line Версия ККМ: 001 [22:35:26]line ФМ: 0000000000871800 [22:35:26]line ФД: 49552 [22:35:26]line ФПД: 76435168833658 [22:35:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T223525&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49552&fm=76435168833658&tin=02508201610067®Number=0000000000092546&sum=13000 [22:35:26]line 0 [22:35:26]written 0, free lines is 4095 [22:35:26]Write to MH i2c: 01 00 00 9A 05 9F [22:35:26]Write i2c OK [22:35:26]MH_I2C_Read... [22:35:26]Read from MH i2c: 01 [22:35:26]MH_I2C_Read... [22:35:26]Read from MH i2c: 01 07 00 [22:35:26]MH_I2C_Read... [22:35:26]Read from MH i2c: 01 07 00 9A 05 00 00 00 00 00 FB 0C AD [22:35:26]RasterBufferAndPrint [22:35:26]line [22:35:26]line [22:35:26]line [22:35:26]line [22:35:26]line [22:35:26]written 0, free lines is 3328 [22:35:26]MH_Cut [22:35:26]Write to MH i2c: D1 01 00 A1 05 01 78 [22:35:26]Write i2c OK [22:35:26]MH_I2C_Read... [22:35:26]Read from MH i2c: D1 [22:35:26]MH_I2C_Read... [22:35:26]Read from MH i2c: D1 01 00 [22:35:26]MH_I2C_Read... [22:35:26]Read from MH i2c: D1 01 00 A1 05 00 77 [22:35:26]Write to MH i2c: 01 00 00 A2 05 A7 [22:35:26]Write i2c OK [22:35:26]MH_I2C_Read... [22:35:27]*** Cut start [22:35:27]*** Purtial cut [22:35:27]*** CUTSNS_PIN = 0 [22:35:27]*** Stage 1: CUTSNS_PIN = 1 [22:35:29]Read from MH i2c: 01 [22:35:29]MH_I2C_Read... [22:35:29]*** Stop cut motor [22:35:29]*** Cut end [22:35:29]Read from MH i2c: 01 07 00 [22:35:29]MH_I2C_Read... [22:35:29]Read from MH i2c: 01 07 00 A2 05 00 00 00 00 00 FF 0F BC [22:35:29]process_action close_receipt done [22:35:29]requested_data is exist [22:35:29]produce_requested_data [22:35:29]requested_item fm.sn is exist - process it [22:35:29]wFMCommunicate request_size=4 [22:35:29]MH_SAM_APDU [22:35:29]CAPDU: 80 11 00 00 [22:35:29]Write to MH i2c: E2 08 00 A3 05 80 11 00 00 00 00 00 00 22 [22:35:29]Write i2c OK [22:35:29]MH_I2C_Read... [22:35:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:35:29]Read from MH i2c: E2 [22:35:29]MH_I2C_Read... [22:35:29]Read from MH i2c: E2 17 00 [22:35:29]MH_I2C_Read... [22:35:29]Read from MH i2c: E2 17 00 A3 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 6D [22:35:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:35:29]wFMCommunicate OK [22:35:29]requested_item fd.num is exist - process it [22:35:29]SAM_PROTO_GetFieldsCounters [22:35:29]wFMCommunicate request_size=4 [22:35:29]MH_SAM_APDU [22:35:29]CAPDU: 80 13 00 00 [22:35:29]Write to MH i2c: E2 08 00 A4 05 80 13 00 00 00 00 00 00 25 [22:35:29]Write i2c OK [22:35:29]MH_I2C_Read... [22:35:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:35:29]Read from MH i2c: E2 [22:35:29]MH_I2C_Read... [22:35:29]Read from MH i2c: E2 62 00 [22:35:29]MH_I2C_Read... [22:35:29]Read from MH i2c: E2 62 00 A4 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 90 C1 00 00 0E 04 04 00 D0 01 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 B9 [22:35:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 90 C1 00 00 0E 04 04 00 D0 01 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 [22:35:29]wFMCommunicate OK [22:35:29]SAM_PROTO_GetFieldsCounters done [22:35:29]requested_item shift.num is exist - process it [22:35:29]requested_item shift.opened is exist - process it [22:35:29]req_shift_opened [22:35:29]FM_GetShiftState [22:35:29]SAM_PROTO_GetShiftState [22:35:29]wFMCommunicate request_size=4 [22:35:29]MH_SAM_APDU [22:35:29]CAPDU: 80 13 01 00 [22:35:29]Write to MH i2c: E2 08 00 A5 05 80 13 01 00 00 00 00 00 27 [22:35:29]Write i2c OK [22:35:29]MH_I2C_Read... [22:35:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:35:29]Read from MH i2c: E2 [22:35:29]MH_I2C_Read... [22:35:29]Read from MH i2c: E2 0E 00 [22:35:29]MH_I2C_Read... [22:35:29]Read from MH i2c: E2 0E 00 A5 05 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 9D [22:35:29]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [22:35:29]wFMCommunicate OK [22:35:29]SAM_PROTO_GetShiftState done [22:35:29]FM_GetShiftState done [22:35:29]req_shift_opened done [22:35:29]requested_item shift.open_date is exist - process it [22:35:29]req_shift_open_date [22:35:29]req_shift_open_date done [22:35:29]produce_requested_data done [22:35:29]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49552,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [22:35:29]process_action_free close_receipt [22:35:29]json_value_free [22:35:29]json_value_free done [22:35:29]process_json_proto returns [22:35:29]Send response to host [22:35:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49552,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [22:35:29]free response buf [22:35:29]execute_script done [22:35:29]execute_script returns [22:35:29]free content buf [22:35:29]Sock 11.Close socket [22:35:29]Sock 11.Thread stoped [22:35:52]ConnectInit Can't connect to host [22:35:52]CommunicateWithHost connect error [22:35:52]CommunicateWithHost err = -1 [22:35:52]OFD Sender: Server communicate error [22:35:52]OFD Sender: Processing packet 49537 [packets to send 36, broken 20] [22:35:52]ProducePacketName [22:35:52]name=ofd_packets/00049537 [22:35:52]OFD Sender: To server: pG, [22:35:52]CommunicateWithHost lk.salyk.kg:30040 [22:35:52]ConnectInit lk.salyk.kg [22:35:52]Connected sock=7 [22:35:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2C 01 00 00 81 C1 24 01 33 C1 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 32 39 35 37 06 04 26 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 A2 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 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 DE C2 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 81 C1 00 00 35 04 06 00 89 D3 20 15 BB CD D2 67 9F 8F 80 4B 56 D0 [22:35:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 8F 7C 47 00 68 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 81 C1 00 00 F4 03 04 00 84 7F BF 66 B6 04 01 00 00 56 A3 E3 1E C7 58 2D DB [22:35:53]CommunicateWithHost err = 0 [22:35:53]CheckOFDResponse [22:35:53]1017 (14) - 77093643461234 [22:35:53]1041 (16) - 0000000000871800 [22:35:53]1040 (4) - 49537 [22:35:53]1012 (4) - 16.08.2024 16:34 [22:35:53]1206 (1) - 0 [22:35:53]OFD Sender: Remove packet 49537 [22:35:53]ProducePacketName [22:35:53]name=ofd_packets/00049537 [22:35:53]NVStorageDeleteData [22:35:53]OFD Sender: Processing packet 49538 [packets to send 35, broken 20] [22:35:53]ProducePacketName [22:35:53]name=ofd_packets/00049538 [22:35:53]OFD Sender: To server: pG, [22:35:53]CommunicateWithHost lk.salyk.kg:30040 [22:35:53]ConnectInit lk.salyk.kg [22:35:53]Connected sock=7 [22:35:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 23 01 00 00 A2 8E 1B 01 57 22 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 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 E3 C2 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 82 C1 00 00 35 04 06 00 30 AB A2 1D 46 9F B6 D1 3C 28 81 5B 44 C5 [22:35:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 CD 92 47 00 DC 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 38 37 31 38 30 30 10 04 04 00 82 C1 00 00 F4 03 04 00 85 7F BF 66 B6 04 01 00 00 29 D6 F8 BC F5 9B 81 66 [22:35:54]CommunicateWithHost err = 0 [22:35:54]CheckOFDResponse [22:35:54]1017 (14) - 77093643461234 [22:35:54]1041 (16) - 0000000000871800 [22:35:54]1040 (4) - 49538 [22:35:54]1012 (4) - 16.08.2024 16:34 [22:35:54]1206 (1) - 0 [22:35:54]OFD Sender: Remove packet 49538 [22:35:54]ProducePacketName [22:35:54]name=ofd_packets/00049538 [22:35:54]NVStorageDeleteData [22:35:54]OFD Sender: Processing packet 49539 [packets to send 34, broken 20] [22:35:54]ProducePacketName [22:35:54]name=ofd_packets/00049539 [22:35:54]OFD Sender: To server: pG, [22:35:54]CommunicateWithHost lk.salyk.kg:30040 [22:35:54]ConnectInit lk.salyk.kg [22:35:54]Connected sock=7 [22:35:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 E0 BC 20 01 84 A0 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 35 34 34 39 32 35 30 39 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 00 00 00 F4 03 04 00 EA C2 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 83 C1 00 00 35 04 06 00 58 82 50 E8 60 30 D3 69 4D A4 EE 1A A1 0F [22:35:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 4C BA 47 00 EF D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 83 C1 00 00 F4 03 04 00 86 7F BF 66 B6 04 01 00 00 50 E5 32 4F F5 4A E7 FA [22:35:55]CommunicateWithHost err = 0 [22:35:55]CheckOFDResponse [22:35:55]1017 (14) - 77093643461234 [22:35:55]1041 (16) - 0000000000871800 [22:35:55]1040 (4) - 49539 [22:35:55]1012 (4) - 16.08.2024 16:34 [22:35:55]1206 (1) - 0 [22:35:55]OFD Sender: Remove packet 49539 [22:35:55]ProducePacketName [22:35:55]name=ofd_packets/00049539 [22:35:55]NVStorageDeleteData [22:35:55]OFD Sender: Processing packet 49540 [packets to send 33, broken 20] [22:35:55]ProducePacketName [22:35:55]name=ofd_packets/00049540 [22:35:55]OFD Sender: To server: pG, [22:35:55]CommunicateWithHost lk.salyk.kg:30040 [22:35:55]ConnectInit lk.salyk.kg [22:35:55]Connected sock=7 [22:35:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 8C 01 00 00 76 12 84 01 6B 96 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 08 00 34 32 32 30 33 31 30 30 06 04 28 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B1 D0 B0 D0 BD D0 B0 D0 BD 2D D0 BA D0 BB D1 83 D0 B1 D0 BD D0 B8 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 F0 C2 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 84 C1 00 00 35 04 06 00 87 4B C1 30 B0 B6 C0 77 24 53 70 32 51 AE [22:35:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 26 7A 47 00 5E F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 84 C1 00 00 F4 03 04 00 87 7F BF 66 B6 04 01 00 00 C5 F9 0C 19 EF 2B 59 D0 [22:35:56]CommunicateWithHost err = 0 [22:35:56]CheckOFDResponse [22:35:56]1017 (14) - 77093643461234 [22:35:56]1041 (16) - 0000000000871800 [22:35:56]1040 (4) - 49540 [22:35:56]1012 (4) - 16.08.2024 16:34 [22:35:56]1206 (1) - 0 [22:35:56]OFD Sender: Remove packet 49540 [22:35:56]ProducePacketName [22:35:56]name=ofd_packets/00049540 [22:35:56]NVStorageDeleteData [22:35:56]OFD Sender: Processing packet 49541 [packets to send 32, broken 20] [22:35:56]ProducePacketName [22:35:56]name=ofd_packets/00049541 [22:35:56]OFD Sender: To server: pG, [22:35:56]CommunicateWithHost lk.salyk.kg:30040 [22:35:56]ConnectInit lk.salyk.kg [22:35:56]Connected sock=7 [22:35:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 17 78 31 01 21 79 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 23 C3 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 85 C1 00 00 35 04 06 00 E9 C5 3B F5 70 7C 19 5D 4D 24 BD 0D 98 48 [22:35:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 36 F9 47 00 3B 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 85 C1 00 00 F4 03 04 00 88 7F BF 66 B6 04 01 00 00 9C 96 E3 B5 46 D2 1B 15 [22:35:57]CommunicateWithHost err = 0 [22:35:57]CheckOFDResponse [22:35:57]1017 (14) - 77093643461234 [22:35:57]1041 (16) - 0000000000871800 [22:35:57]1040 (4) - 49541 [22:35:57]1012 (4) - 16.08.2024 16:34 [22:35:57]1206 (1) - 0 [22:35:57]OFD Sender: Remove packet 49541 [22:35:57]ProducePacketName [22:35:57]name=ofd_packets/00049541 [22:35:57]NVStorageDeleteData [22:35:57]OFD Sender: Processing packet 49542 [packets to send 31, broken 20] [22:35:57]ProducePacketName [22:35:57]name=ofd_packets/00049542 [22:35:57]OFD Sender: To server: pG, [22:35:57]CommunicateWithHost lk.salyk.kg:30040 [22:35:57]ConnectInit lk.salyk.kg [22:35:57]Connected sock=7 [22:35:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 1D 0A 1C 01 C8 63 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 C6 C3 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 86 C1 00 00 35 04 06 00 E5 AA F0 56 F0 1A D7 FA C8 C6 3C DE 99 84 [22:35:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 4C 58 47 00 B0 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 38 37 31 38 30 30 10 04 04 00 86 C1 00 00 F4 03 04 00 89 7F BF 66 B6 04 01 00 00 F1 B4 BA 69 7F CF 9E 53 [22:35:57]CommunicateWithHost err = 0 [22:35:57]CheckOFDResponse [22:35:57]1017 (14) - 77093643461234 [22:35:57]1041 (16) - 0000000000871800 [22:35:57]1040 (4) - 49542 [22:35:57]1012 (4) - 16.08.2024 16:34 [22:35:57]1206 (1) - 0 [22:35:57]OFD Sender: Remove packet 49542 [22:35:57]ProducePacketName [22:35:57]name=ofd_packets/00049542 [22:35:57]NVStorageDeleteData [22:35:58]OFD Sender: Processing packet 49543 [packets to send 30, broken 20] [22:35:58]ProducePacketName [22:35:58]name=ofd_packets/00049543 [22:35:58]OFD Sender: To server: pG, [22:35:58]CommunicateWithHost lk.salyk.kg:30040 [22:35:58]ConnectInit lk.salyk.kg [22:35:58]Connected sock=10 [22:35:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3E 01 00 00 6C 6E 36 01 E1 3F 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 35 32 38 06 04 38 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 D0 9F D0 AD D0 A2 20 31 2C 30 20 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 15 C5 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 87 C1 00 00 35 04 06 00 F3 32 FD B7 96 D4 4A A1 BD 4A 7C 46 51 E5 [22:35:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 9F 41 47 00 BB 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 87 C1 00 00 F4 03 04 00 8B 7F BF 66 B6 04 01 00 00 B1 57 C0 82 66 87 4B D2 [22:35:59]CommunicateWithHost err = 0 [22:35:59]CheckOFDResponse [22:35:59]1017 (14) - 77093643461234 [22:35:59]1041 (16) - 0000000000871800 [22:35:59]1040 (4) - 49543 [22:35:59]1012 (4) - 16.08.2024 16:34 [22:35:59]1206 (1) - 0 [22:35:59]OFD Sender: Remove packet 49543 [22:35:59]ProducePacketName [22:35:59]name=ofd_packets/00049543 [22:35:59]NVStorageDeleteData [22:35:59]OFD Sender: Processing packet 49544 [packets to send 29, broken 20] [22:35:59]ProducePacketName [22:35:59]name=ofd_packets/00049544 [22:35:59]OFD Sender: To server: pG, [22:35:59]CommunicateWithHost lk.salyk.kg:30040 [22:35:59]ConnectInit lk.salyk.kg [22:35:59]Connected sock=7 [22:35:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 01 02 00 00 6E 27 F9 01 3B E5 5A 03 01 00 03 00 ED 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 32 30 36 39 39 34 32 06 04 1D 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 57 68 69 74 65 20 46 72 65 73 68 20 4D 69 6E 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 79 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 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 C0 00 00 00 F4 03 04 00 52 C8 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 88 C1 00 00 35 04 06 00 CF AF 1E F3 33 FC 1F E0 88 ED 19 E7 8A D0 [22:36:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 A9 F0 47 00 F4 53 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 88 C1 00 00 F4 03 04 00 8B 7F BF 66 B6 04 01 00 00 C1 15 36 D0 F3 75 F4 E5 [22:36:00]CommunicateWithHost err = 0 [22:36:00]CheckOFDResponse [22:36:00]1017 (14) - 77093643461234 [22:36:00]1041 (16) - 0000000000871800 [22:36:00]1040 (4) - 49544 [22:36:00]1012 (4) - 16.08.2024 16:34 [22:36:00]1206 (1) - 0 [22:36:00]OFD Sender: Remove packet 49544 [22:36:00]ProducePacketName [22:36:00]name=ofd_packets/00049544 [22:36:00]NVStorageDeleteData [22:36:00]OFD Sender: Processing packet 49545 [packets to send 28, broken 20] [22:36:00]ProducePacketName [22:36:00]name=ofd_packets/00049545 [22:36:00]OFD Sender: To server: pG, [22:36:00]CommunicateWithHost lk.salyk.kg:30040 [22:36:00]ConnectInit lk.salyk.kg [22:36:00]Connected sock=7 [22:36:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 D5 8A 1C 01 E2 B0 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 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 8A C8 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 89 C1 00 00 35 04 06 00 2C 41 FB 96 4E 07 F2 29 C5 42 C9 8F 29 30 [22:36:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 6C AA 47 00 24 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 89 C1 00 00 F4 03 04 00 8C 7F BF 66 B6 04 01 00 00 75 DA 3C 07 E2 65 DE 62 [22:36:01]CommunicateWithHost err = 0 [22:36:01]CheckOFDResponse [22:36:01]1017 (14) - 77093643461234 [22:36:01]1041 (16) - 0000000000871800 [22:36:01]1040 (4) - 49545 [22:36:01]1012 (4) - 16.08.2024 16:34 [22:36:01]1206 (1) - 0 [22:36:01]OFD Sender: Remove packet 49545 [22:36:01]ProducePacketName [22:36:01]name=ofd_packets/00049545 [22:36:01]NVStorageDeleteData [22:36:01]OFD Sender: Processing packet 49546 [packets to send 27, broken 20] [22:36:01]ProducePacketName [22:36:01]name=ofd_packets/00049546 [22:36:01]OFD Sender: To server: pG, [22:36:01]CommunicateWithHost lk.salyk.kg:30040 [22:36:01]ConnectInit lk.salyk.kg [22:36:01]Connected sock=7 [22:36:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 97 01 00 00 A9 94 8F 01 3E AE 5A 03 01 00 03 00 83 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 30 38 06 04 23 00 D0 96 D0 B8 D0 B4 2F D1 81 D1 82 20 D0 9F D0 9D 20 D0 BB D0 B5 D1 82 D0 BD D1 8F D1 8F 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 7F CB BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8A C1 00 00 35 04 06 00 1C A7 5F 2F C5 8E 01 80 8A 46 05 C5 98 C1 [22:36:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D6 54 47 00 C9 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8A C1 00 00 F4 03 04 00 8D 7F BF 66 B6 04 01 00 00 50 3A 64 BE B2 71 CB 80 [22:36:02]CommunicateWithHost err = 0 [22:36:02]CheckOFDResponse [22:36:02]1017 (14) - 77093643461234 [22:36:02]1041 (16) - 0000000000871800 [22:36:02]1040 (4) - 49546 [22:36:02]1012 (4) - 16.08.2024 16:34 [22:36:02]1206 (1) - 0 [22:36:02]OFD Sender: Remove packet 49546 [22:36:02]ProducePacketName [22:36:02]name=ofd_packets/00049546 [22:36:02]NVStorageDeleteData [22:36:02]OFD Sender: Processing packet 49547 [packets to send 26, broken 20] [22:36:02]ProducePacketName [22:36:02]name=ofd_packets/00049547 [22:36:02]OFD Sender: To server: pG, [22:36:02]CommunicateWithHost lk.salyk.kg:30040 [22:36:02]ConnectInit lk.salyk.kg [22:36:02]Connected sock=7 [22:36:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 48 D4 31 01 1C 43 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 39 39 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 9C CB BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8B C1 00 00 35 04 06 00 FA 23 C3 88 26 8B 64 4A 84 81 31 17 88 3E [22:36:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 39 41 47 00 16 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8B C1 00 00 F4 03 04 00 8E 7F BF 66 B6 04 01 00 00 37 5F D7 19 BF B1 EA CE [22:36:02]CommunicateWithHost err = 0 [22:36:02]CheckOFDResponse [22:36:02]1017 (14) - 77093643461234 [22:36:02]1041 (16) - 0000000000871800 [22:36:02]1040 (4) - 49547 [22:36:02]1012 (4) - 16.08.2024 16:34 [22:36:02]1206 (1) - 0 [22:36:02]OFD Sender: Remove packet 49547 [22:36:02]ProducePacketName [22:36:02]name=ofd_packets/00049547 [22:36:02]NVStorageDeleteData [22:36:03]OFD Sender: Processing packet 49548 [packets to send 25, broken 20] [22:36:03]ProducePacketName [22:36:03]name=ofd_packets/00049548 [22:36:03]OFD Sender: To server: pG, [22:36:03]CommunicateWithHost lk.salyk.kg:30040 [22:36:03]ConnectInit lk.salyk.kg [22:36:03]Connected sock=7 [22:36:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 A9 03 31 01 46 A5 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 87 CC BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8C C1 00 00 35 04 06 00 6A 9E B6 84 56 96 BD 33 78 49 22 11 28 80 [22:36:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 EE 27 47 00 A2 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8C C1 00 00 F4 03 04 00 8F 7F BF 66 B6 04 01 00 00 10 8E 1F 4E 23 20 39 8A [22:36:03]CommunicateWithHost err = 0 [22:36:03]CheckOFDResponse [22:36:03]1017 (14) - 77093643461234 [22:36:03]1041 (16) - 0000000000871800 [22:36:03]1040 (4) - 49548 [22:36:03]1012 (4) - 16.08.2024 16:34 [22:36:03]1206 (1) - 0 [22:36:03]OFD Sender: Remove packet 49548 [22:36:03]ProducePacketName [22:36:03]name=ofd_packets/00049548 [22:36:03]NVStorageDeleteData [22:36:04]OFD Sender: Processing packet 49549 [packets to send 24, broken 20] [22:36:04]ProducePacketName [22:36:04]name=ofd_packets/00049549 [22:36:04]OFD Sender: To server: pG, [22:36:04]CommunicateWithHost lk.salyk.kg:30040 [22:36:04]ConnectInit lk.salyk.kg [22:36:04]Connected sock=7 [22:36:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 83 01 00 00 21 92 7B 01 22 2F 5A 03 01 00 03 00 6F 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E4 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 09 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E4 57 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 7E CE BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8D C1 00 00 35 04 06 00 36 BF 63 F0 0D 37 F9 9B A8 75 5D 9D 9C 68 [22:36:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 CC 3A 47 00 83 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8D C1 00 00 F4 03 04 00 90 7F BF 66 B6 04 01 00 00 62 88 33 70 A0 43 A4 EC [22:36:04]CommunicateWithHost err = 0 [22:36:04]CheckOFDResponse [22:36:04]1017 (14) - 77093643461234 [22:36:04]1041 (16) - 0000000000871800 [22:36:04]1040 (4) - 49549 [22:36:04]1012 (4) - 16.08.2024 16:34 [22:36:04]1206 (1) - 0 [22:36:04]OFD Sender: Remove packet 49549 [22:36:04]ProducePacketName [22:36:04]name=ofd_packets/00049549 [22:36:04]NVStorageDeleteData [22:36:05]OFD Sender: Processing packet 49550 [packets to send 23, broken 20] [22:36:05]ProducePacketName [22:36:05]name=ofd_packets/00049550 [22:36:05]OFD Sender: To server: pG, [22:36:05]CommunicateWithHost lk.salyk.kg:30040 [22:36:05]ConnectInit lk.salyk.kg [22:36:05]Connected sock=7 [22:36:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0F 01 00 00 A5 CC 07 01 42 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 34 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 00 00 00 F4 03 04 00 EB D0 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8E C1 00 00 35 04 06 00 66 5D F6 19 CE B2 F2 8E AD DA B6 2C 74 4A [22:36:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F6 74 47 00 28 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8E C1 00 00 F4 03 04 00 91 7F BF 66 B6 04 01 00 00 1C 6F 07 1C 06 C6 C1 6B [22:36:05]CommunicateWithHost err = 0 [22:36:05]CheckOFDResponse [22:36:05]1017 (14) - 77093643461234 [22:36:05]1041 (16) - 0000000000871800 [22:36:05]1040 (4) - 49550 [22:36:05]1012 (4) - 16.08.2024 16:34 [22:36:05]1206 (1) - 0 [22:36:05]OFD Sender: Remove packet 49550 [22:36:05]ProducePacketName [22:36:05]name=ofd_packets/00049550 [22:36:05]NVStorageDeleteData [22:36:06]OFD Sender: Processing packet 49551 [packets to send 22, broken 20] [22:36:06]ProducePacketName [22:36:06]name=ofd_packets/00049551 [22:36:06]OFD Sender: To server: pG, [22:36:06]CommunicateWithHost lk.salyk.kg:30040 [22:36:06]ConnectInit lk.salyk.kg [22:36:06]Connected sock=7 [22:36:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2F 01 00 00 4E 16 27 01 F4 0F 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 33 31 06 04 29 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2E D0 B2 D0 BA 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 91 03 00 00 00 00 07 04 06 00 98 21 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 5B D1 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8F C1 00 00 35 04 06 00 FF 45 BE 72 E5 EC 8D 8B CE C1 DD 44 55 8F [22:36:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 21 6A 47 00 51 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 8F C1 00 00 F4 03 04 00 92 7F BF 66 B6 04 01 00 00 43 E5 69 6A 36 BE E8 98 [22:36:06]CommunicateWithHost err = 0 [22:36:06]CheckOFDResponse [22:36:06]1017 (14) - 77093643461234 [22:36:06]1041 (16) - 0000000000871800 [22:36:06]1040 (4) - 49551 [22:36:06]1012 (4) - 16.08.2024 16:34 [22:36:06]1206 (1) - 0 [22:36:06]OFD Sender: Remove packet 49551 [22:36:06]ProducePacketName [22:36:06]name=ofd_packets/00049551 [22:36:06]NVStorageDeleteData [22:36:07]OFD Sender: Processing packet 49552 [packets to send 21, broken 20] [22:36:07]ProducePacketName [22:36:07]name=ofd_packets/00049552 [22:36:07]OFD Sender: To server: pG, [22:36:07]CommunicateWithHost lk.salyk.kg:30040 [22:36:07]ConnectInit lk.salyk.kg [22:36:07]Connected sock=7 [22:36:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 28 01 00 00 3D E3 20 01 57 E0 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 2D D4 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 90 C1 00 00 35 04 06 00 45 84 73 16 30 7A BD 35 05 6C C3 18 5A 81 [22:36:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 4F 4F 47 00 8B 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 38 37 31 38 30 30 10 04 04 00 90 C1 00 00 F4 03 04 00 93 7F BF 66 B6 04 01 00 00 96 12 27 E7 79 C5 48 C5 [22:36:07]CommunicateWithHost err = 0 [22:36:07]CheckOFDResponse [22:36:07]1017 (14) - 77093643461234 [22:36:07]1041 (16) - 0000000000871800 [22:36:07]1040 (4) - 49552 [22:36:07]1012 (4) - 16.08.2024 16:34 [22:36:07]1206 (1) - 0 [22:36:07]OFD Sender: Remove packet 49552 [22:36:07]ProducePacketName [22:36:07]name=ofd_packets/00049552 [22:36:07]NVStorageDeleteData [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:43]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:58]OFD Sender: No OFD packet to send [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:03]accept exits with 9 [22:41:03]New connection [22:41:03]New thread 3066801508 created [22:41:03]Thread 3066944868 joined [22:41:03]Waiting for new connection... [22:41:03] Sock 9.Parse request [22:41:03]Sock 9.Check first char [22:41:03]Sock 9.First char is OK [22:41:03]request: POST /json_proto HTTP/1.0 [22:41:03]Method: POST [22:41:03]URL: /json_proto [22:41:03]Method is POST - this is cgi request [22:41:03]url: /json_proto [22:41:03]query_string will be loaded in cgi processing [22:41:03]execute_cgi json_proto POST (null) [22:41:03]execute_cgi path=json_proto method=POST [22:41:03]POST find Content-Length [22:41:03]Host: 172.17.46.196:8080 [22:41:03]Content-Length: 1033 [22:41:03]Content-Type: application/json [22:41:03] [22:41:03]POST finish read [22:41:03]Found Content-Length = 1033 [22:41:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189755", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:03]execute_script... [22:41:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189755", "tax_sys" : 0, "items" : [ { "code": "4700000160204", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1,5\u043B", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 140.00, "quantity" : 1.000, "sum" : 140.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:41:03]POST & json_proto [22:41:03]process_json_proto [22:41:03]json parsed OK: [22:41:03]protocol is kg_v1.0 [22:41:03]action value=close_receipt [22:41:03]process_action close_receipt [22:41:03]cmd_close_receipt [22:41:03]MH_GetDate [22:41:03]Write to MH i2c: F0 00 00 A6 05 9A [22:41:03]Write i2c OK [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: F0 [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: F0 09 00 [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: F0 09 00 A6 05 00 80 D5 BF 66 07 E8 5D 66 CF [22:41:03]GetLastDocTimeStamp 1723847725 [22:41:03]current date 1723848064 [22:41:03]FM_GetShiftState [22:41:03]SAM_PROTO_GetShiftState [22:41:03]wFMCommunicate request_size=4 [22:41:03]MH_SAM_APDU [22:41:03]CAPDU: 80 13 01 00 [22:41:03]Write to MH i2c: E2 08 00 A7 05 80 13 01 00 00 00 00 00 29 [22:41:03]Write i2c OK [22:41:03]MH_I2C_Read... [22:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:03]Read from MH i2c: E2 [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: E2 0E 00 [22:41:03]MH_I2C_Read... [22:41:03]Read from MH i2c: E2 0E 00 A7 05 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 9F [22:41:03]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [22:41:03]wFMCommunicate OK [22:41:03]SAM_PROTO_GetShiftState done [22:41:03]FM_GetShiftState done [22:41:03]opened in 1723766958 [22:41:03]opened+sec_in_day 1723853358 [22:41:03]quantity*price = 6000 [22:41:03]sum+1 = 6001 [22:41:03]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 200.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 201 16.08.2024 22:41 Смена: 464 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000871800 ФД: 49553 ФПД: 7366625345292 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T224104&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49553&fm=7366625345292&tin=02508201610067®Number=0000000000092546&sum=20000 0 [22:41:04]StoreToDocumentArchive [22:41:04]shift 464 fd 49553 [22:41:04]save to /storage/0464/doc_00049553 [22:41:04]save last doc name /storage/0464/doc_00049553 to /storage/kkm_last_doc_name [22:41:04]save OK [22:41:04]Clear old archive folders... [22:41:04]ProcessDocumentItem done err = 0, tmpTLVsize=376 [22:41:04]tlvbuf is 0186C5C0 [22:41:04]SAM_PROTO_ClearQueue [22:41:04]wFMCommunicate request_size=4 [22:41:04]MH_SAM_APDU [22:41:04]CAPDU: 80 09 00 00 [22:41:04]Write to MH i2c: E2 08 00 B4 05 80 09 00 00 00 00 00 00 2B [22:41:04]Write i2c OK [22:41:04]MH_I2C_Read... [22:41:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:41:04]Read from MH i2c: E2 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 03 00 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 03 00 B4 05 00 90 00 2D [22:41:04]RAPDU: 90 00 [22:41:04]wFMCommunicate OK [22:41:04]SAM_PROTO_ClearQueue done [22:41:04]KKMCreateOFDPacket [22:41:04]OFDProtocolAddRootSTLVToBuf [22:41:04]FM_MakeSignedData [22:41:04]FM_MakeSignedData [22:41:04]SAM_PROTO_SignData [22:41:04]wFMCommunicate request_size=4 [22:41:04]MH_SAM_APDU [22:41:04]CAPDU: 80 0D 01 02 [22:41:04]Write to MH i2c: E2 08 00 B5 05 80 0D 01 02 00 00 00 00 33 [22:41:04]Write i2c OK [22:41:04]MH_I2C_Read... [22:41:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:41:04]Read from MH i2c: E2 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 03 00 [22:41:04]MH_I2C_Read... [22:41:04]Read from MH i2c: E2 03 00 B5 05 00 90 00 2E [22:41:04]RAPDU: 90 00 [22:41:04]wFMCommunicate OK [22:41:04]wFMCommunicate request_size=255 [22:41:04]MH_SAM_APDU [22:41:04]CAPDU: 80 0D 02 02 FA 03 00 78 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 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 [22:41:04]Write to MH i2c: E2 02 01 B6 05 80 0D 02 02 FA 00 03 00 78 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 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 00 00 3A [22:41:04]Write i2c OK [22:41:04]MH_I2C_Read... [22:41:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:05]Read from MH i2c: E2 [22:41:05]MH_I2C_Read... [22:41:05]Read from MH i2c: E2 03 00 [22:41:05]MH_I2C_Read... [22:41:05]Read from MH i2c: E2 03 00 B6 05 00 90 00 2F [22:41:05]RAPDU: 90 00 [22:41:05]wFMCommunicate OK [22:41:05]wFMCommunicate request_size=135 [22:41:05]MH_SAM_APDU [22:41:05]CAPDU: 80 0D 02 02 82 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 80 D5 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 91 C1 00 00 35 04 06 00 06 B3 2D 16 3F 0C [22:41:05]Write to MH i2c: E2 8A 00 B7 05 80 0D 02 02 82 00 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 80 D5 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 91 C1 00 00 35 04 06 00 06 B3 2D 16 3F 0C 00 00 DE [22:41:05]Write i2c OK [22:41:05]MH_I2C_Read... [22:41:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:41:05]Read from MH i2c: E2 [22:41:05]MH_I2C_Read... [22:41:05]Read from MH i2c: E2 03 00 [22:41:05]MH_I2C_Read... [22:41:05]Read from MH i2c: E2 03 00 B7 05 00 90 00 30 [22:41:05]RAPDU: 90 00 [22:41:05]wFMCommunicate OK [22:41:05]wFMCommunicate request_size=4 [22:41:05]MH_SAM_APDU [22:41:05]CAPDU: 80 0D 03 02 [22:41:05]Write to MH i2c: E2 08 00 B8 05 80 0D 03 02 00 00 00 00 38 [22:41:05]Write i2c OK [22:41:05]MH_I2C_Read... [22:41:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:41:05]Read from MH i2c: E2 [22:41:05]MH_I2C_Read... [22:41:05]Read from MH i2c: E2 0B 00 [22:41:05]MH_I2C_Read... [22:41:05]Read from MH i2c: E2 0B 00 B8 05 00 97 2A 56 9D A8 4F B1 C6 90 00 5B [22:41:05]RAPDU: 97 2A 56 9D A8 4F B1 C6 90 00 [22:41:05]wFMCommunicate OK [22:41:05]SAM_PROTO_SignData done [22:41:05]FM_MakeSignedData done [22:41:05]CreateOFDProtocolMessage [22:41:05]wFMCommunicate request_size=4 [22:41:05]MH_SAM_APDU [22:41:05]CAPDU: 80 11 00 00 [22:41:05]Write to MH i2c: E2 08 00 B9 05 80 11 00 00 00 00 00 00 38 [22:41:05]Write i2c OK [22:41:05]MH_I2C_Read... [22:41:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:05]Read from MH i2c: E2 [22:41:05]MH_I2C_Read... [22:41:05]Read from MH i2c: E2 17 00 [22:41:05]MH_I2C_Read... [22:41:05]Read from MH i2c: E2 17 00 B9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 83 [22:41:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:41:05]wFMCommunicate OK [22:41:05]CreateOFDProtocolMessage done [22:41:05]OFDSenderStorePacket 49553 [22:41:05]StoreOFDPacket docnum=49553 [22:41:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 8C 01 00 00 B9 87 84 01 EB 64 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 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 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 80 D5 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 91 C1 00 00 35 04 06 00 06 B3 2D 16 3F 0C 97 2A 56 9D A8 4F B1 C6 [22:41:05]CheckFolder [22:41:05]dirname=/storage/ofd_packets [22:41:05]CheckFolder done [22:41:05]ProducePacketName [22:41:05]name=ofd_packets/00049553 [22:41:05]NVStorageSaveData ofd_packets/00049553 [22:41:05]File name is /storage/ofd_packets/00049553 [22:41:05]Write 426 bytes [22:41:05]NVStorageSaveData done [22:41:05]OFDSenderStorePacket done [22:41:05]KKMCreateOFDPacket done [22:41:05]NVStorageSaveData kkm_last_timestamp [22:41:05]File name is /storage/kkm_last_timestamp [22:41:05]Write 4 bytes [22:41:05]NVStorageSaveData done [22:41:05]ExternCall_PrintAddStr [22:41:05]wPrintStart [22:41:05]Write to MH i2c: 01 00 00 BA 05 BF [22:41:05]Write i2c OK [22:41:05]MH_I2C_Read... [22:41:05]Read from MH i2c: 01 [22:41:05]MH_I2C_Read... [22:41:05]OFD Sender: Processing packet 49553 [packets to send 21, broken 20] [22:41:05]ProducePacketName [22:41:05]name=ofd_packets/00049553 [22:41:05]OFD Sender: To server: pG, [22:41:05]CommunicateWithHost lk.salyk.kg:30040 [22:41:05]ConnectInit lk.salyk.kg [22:41:05]Read from MH i2c: 01 07 00 [22:41:05]MH_I2C_Read... [22:41:05]Read from MH i2c: 01 07 00 BA 05 00 00 00 00 00 FF 0F D4 [22:41:05]RasterBufferAndPrint [22:41:05]line Счет N : (3)189755 [22:41:05]line ИНН: 02508201610067 [22:41:05]line Контрольно-Кассовый Чек [22:41:05]line ПРОДАЖА [22:41:05]line Товар: 4700000160204 [22:41:05]line Вода Легенда 1,5л [22:41:05]line 1.000 * 60.00 [22:41:05]line = 60.00 [22:41:05]line НДС 12% НСП 1% [22:41:05]line > о реализуемом товаре [22:41:05]line Товар: 48743587 [22:41:05]line Сигареты Winston XStyle Silver [22:41:05]line 1.000 * 140.00 [22:41:05]line = 140.00 [22:41:05]line НДС 12% НСП 1% [22:41:05]line > о реализуемом товаре [22:41:05]line ИТОГО: 200.00 [22:41:05]line НСП 1% : 1.77 [22:41:05]line НДС 12% : 21.24 [22:41:05]line Наличными: 0.00 [22:41:05]line Безнал.: 200.00 [22:41:05]line Место: АЗС № 95 "Партнер Нефть" [22:41:05]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [22:41:05]line СНО: Общий режим [22:41:05]line Чек 201 16.08.2024 22:41 [22:41:05]line Смена: 464 ФФД: 1.0 [22:41:05]line ЗНМ: 0300000078 [22:41:05]line РНМ: 0000000000092546 [22:41:05]line Версия ККМ: 001 [22:41:05]line Платежная система: O! деньги [22:41:05]line ФМ: 0000000000871800 [22:41:05]line ФД: 49553 [22:41:05]line ФПД: 7366625345292 [22:41:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240816T224104&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49553&fm=7366625345292&tin=02508201610067®Number=0000000000092546&sum=20000 [22:41:05]line 0 [22:41:05]written 0, free lines is 4095 [22:41:06]Connected sock=10 [22:41:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 8C 01 00 00 B9 87 84 01 EB 64 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 30 34 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 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 00 00 00 00 00 00 39 04 06 00 20 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 80 D5 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 91 C1 00 00 35 04 06 00 06 B3 2D 16 3F 0C 97 2A 56 9D A8 4F B1 C6 [22:41:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 73 57 47 00 17 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 91 C1 00 00 F4 03 04 00 BE 80 BF 66 B6 04 01 00 00 B1 E8 15 BC 7D 4A 17 5D [22:41:06]CommunicateWithHost err = 0 [22:41:06]CheckOFDResponse [22:41:06]1017 (14) - 77093643461234 [22:41:06]1041 (16) - 0000000000871800 [22:41:06]1040 (4) - 49553 [22:41:06]1012 (4) - 16.08.2024 16:39 [22:41:06]1206 (1) - 0 [22:41:06]OFD Sender: Remove packet 49553 [22:41:06]ProducePacketName [22:41:06]name=ofd_packets/00049553 [22:41:06]NVStorageDeleteData [22:41:06]Write to MH i2c: 01 00 00 EB 05 F0 [22:41:06]Write i2c OK [22:41:06]MH_I2C_Read... [22:41:06]Read from MH i2c: 01 [22:41:06]MH_I2C_Read... [22:41:06]Read from MH i2c: 01 07 00 [22:41:06]MH_I2C_Read... [22:41:06]Read from MH i2c: 01 07 00 EB 05 00 00 00 00 00 64 0C 67 [22:41:06]RasterBufferAndPrint [22:41:06]line [22:41:06]line [22:41:06]line [22:41:06]line [22:41:06]line [22:41:06]written 0, free lines is 3178 [22:41:06]MH_Cut [22:41:06]Write to MH i2c: D1 01 00 F2 05 01 C9 [22:41:06]Write i2c OK [22:41:06]MH_I2C_Read... [22:41:06]Read from MH i2c: D1 [22:41:06]MH_I2C_Read... [22:41:06]Read from MH i2c: D1 01 00 [22:41:06]MH_I2C_Read... [22:41:06]Read from MH i2c: D1 01 00 F2 05 00 C8 [22:41:06]Write to MH i2c: 01 00 00 F3 05 F8 [22:41:06]Write i2c OK [22:41:06]MH_I2C_Read... [22:41:06]OFD Sender: No OFD packet to send [22:41:07]*** Cut start [22:41:07]*** Purtial cut [22:41:07]*** Stage 1: CUTSNS_PIN = 1 [22:41:07]Read from MH i2c: 01 [22:41:07]MH_I2C_Read... [22:41:07]*** Stop cut motor [22:41:07]*** Cut end [22:41:07]Read from MH i2c: 01 07 00 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: 01 07 00 F3 05 00 00 00 00 00 FF 0F 0D [22:41:07]process_action close_receipt done [22:41:07]requested_data is exist [22:41:07]produce_requested_data [22:41:07]requested_item fm.sn is exist - process it [22:41:07]wFMCommunicate request_size=4 [22:41:07]MH_SAM_APDU [22:41:07]CAPDU: 80 11 00 00 [22:41:07]Write to MH i2c: E2 08 00 F4 05 80 11 00 00 00 00 00 00 73 [22:41:07]Write i2c OK [22:41:07]MH_I2C_Read... [22:41:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:41:07]Read from MH i2c: E2 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 17 00 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 17 00 F4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 BE [22:41:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [22:41:07]wFMCommunicate OK [22:41:07]requested_item fd.num is exist - process it [22:41:07]SAM_PROTO_GetFieldsCounters [22:41:07]wFMCommunicate request_size=4 [22:41:07]MH_SAM_APDU [22:41:07]CAPDU: 80 13 00 00 [22:41:07]Write to MH i2c: E2 08 00 F5 05 80 13 00 00 00 00 00 00 76 [22:41:07]Write i2c OK [22:41:07]MH_I2C_Read... [22:41:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:41:07]Read from MH i2c: E2 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 62 00 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 62 00 F5 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 91 C1 00 00 0E 04 04 00 D0 01 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 0E [22:41:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 91 C1 00 00 0E 04 04 00 D0 01 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 [22:41:07]wFMCommunicate OK [22:41:07]SAM_PROTO_GetFieldsCounters done [22:41:07]requested_item shift.num is exist - process it [22:41:07]requested_item shift.opened is exist - process it [22:41:07]req_shift_opened [22:41:07]FM_GetShiftState [22:41:07]SAM_PROTO_GetShiftState [22:41:07]wFMCommunicate request_size=4 [22:41:07]MH_SAM_APDU [22:41:07]CAPDU: 80 13 01 00 [22:41:07]Write to MH i2c: E2 08 00 F6 05 80 13 01 00 00 00 00 00 78 [22:41:07]Write i2c OK [22:41:07]MH_I2C_Read... [22:41:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:41:07]Read from MH i2c: E2 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 0E 00 [22:41:07]MH_I2C_Read... [22:41:07]Read from MH i2c: E2 0E 00 F6 05 00 09 00 01 AE 98 BE 66 00 00 00 00 90 00 EE [22:41:07]RAPDU: 09 00 01 AE 98 BE 66 00 00 00 00 90 00 [22:41:07]wFMCommunicate OK [22:41:07]SAM_PROTO_GetShiftState done [22:41:07]FM_GetShiftState done [22:41:07]req_shift_opened done [22:41:07]requested_item shift.open_date is exist - process it [22:41:07]req_shift_open_date [22:41:07]req_shift_open_date done [22:41:07]produce_requested_data done [22:41:07]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49553,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958} [22:41:07]process_action_free close_receipt [22:41:07]json_value_free [22:41:07]json_value_free done [22:41:07]process_json_proto returns [22:41:07]Send response to host [22:41:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49553,"shift.num":464,"shift.opened":1,"shift.open_date":1723766958}}} [22:41:07]free response buf [22:41:07]execute_script done [22:41:07]execute_script returns [22:41:07]free content buf [22:41:07]Sock 9.Close socket [22:41:07]Sock 9.Thread stoped [22:41:11]OFD Sender: No OFD packet to send [22:41:16]OFD Sender: No OFD packet to send [22:41:21]OFD Sender: No OFD packet to send [22:41:26]OFD Sender: No OFD packet to send [22:41:31]OFD Sender: No OFD packet to send [22:41:36]OFD Sender: No OFD packet to send [22:41:41]OFD Sender: No OFD packet to send [22:41:46]OFD Sender: No OFD packet to send [22:41:51]OFD Sender: No OFD packet to send [22:41:56]OFD Sender: No OFD packet to send [22:42:01]OFD Sender: No OFD packet to send [22:42:06]OFD Sender: No OFD packet to send [22:42:11]OFD Sender: No OFD packet to send [22:42:16]OFD Sender: No OFD packet to send [22:42:21]OFD Sender: No OFD packet to send [22:42:26]OFD Sender: No OFD packet to send [22:42:31]OFD Sender: No OFD packet to send [22:42:36]OFD Sender: No OFD packet to send [22:42:41]OFD Sender: No OFD packet to send [22:42:46]OFD Sender: No OFD packet to send [22:42:51]OFD Sender: No OFD packet to send [22:42:56]OFD Sender: No OFD packet to send [22:43:01]OFD Sender: No OFD packet to send [22:43:06]OFD Sender: No OFD packet to send [22:43:11]OFD Sender: No OFD packet to send [22:43:16]OFD Sender: No OFD packet to send [22:43:21]OFD Sender: No OFD packet to send [22:43:26]OFD Sender: No OFD packet to send [22:43:31]OFD Sender: No OFD packet to send [22:43:36]OFD Sender: No OFD packet to send [23:41:08]ConnectInit Can't connect to host [23:41:10]OFD Sender: Processing packet 49554 [packets to send 28, broken 20] [23:41:10]ProducePacketName [23:41:10]name=ofd_packets/00049554 [23:41:10]OFD Sender: To server: pG, [23:41:10]CommunicateWithHost lk.salyk.kg:30040 [23:41:10]ConnectInit lk.salyk.kg [01:00:16]ConnectInit Can't connect to host [01:00:18]ConnectInit Can't take IP for lk.salyk.kg [01:00:18]CommunicateWithHost connect error [01:00:18]CommunicateWithHost err = -1 [01:00:18]OFD Sender: Server communicate error [01:00:23]OFD Sender: Processing packet 49554 [packets to send 32, broken 20] [01:00:23]ProducePacketName [01:00:23]name=ofd_packets/00049554 [01:00:23]OFD Sender: To server: pG, [01:00:23]CommunicateWithHost lk.salyk.kg:30040 [01:00:23]ConnectInit lk.salyk.kg [01:00:23]Connected sock=7 [01:00:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 24 01 00 00 2A 0B 1C 01 56 CA 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 19 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 39 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B2 02 00 00 00 00 07 04 06 00 64 19 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 4F D7 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 92 C1 00 00 35 04 06 00 3C 5F DF 68 A3 D9 03 69 BB 23 79 AC 5C BC [01:00:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C4 54 47 00 9C EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 92 C1 00 00 F4 03 04 00 64 A1 BF 66 B6 04 01 00 00 0B 6A EF AC 2C 48 97 86 [01:00:23]CommunicateWithHost err = 0 [01:00:23]CheckOFDResponse [01:00:23]1017 (14) - 77093643461234 [01:00:23]1041 (16) - 0000000000871800 [01:00:23]1040 (4) - 49554 [01:00:23]1012 (4) - 16.08.2024 18:58 [01:00:23]1206 (1) - 0 [01:00:23]OFD Sender: Remove packet 49554 [01:00:23]ProducePacketName [01:00:23]name=ofd_packets/00049554 [01:00:23]NVStorageDeleteData [01:00:24]OFD Sender: Processing packet 49555 [packets to send 31, broken 20] [01:00:24]ProducePacketName [01:00:24]name=ofd_packets/00049555 [01:00:24]OFD Sender: To server: pG, [01:00:24]CommunicateWithHost lk.salyk.kg:30040 [01:00:24]ConnectInit lk.salyk.kg [01:00:24]Connected sock=7 [01:00:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 3A 01 00 00 53 B8 32 01 37 5E 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 32 39 35 32 06 04 34 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 30 2C 33 33 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 23 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BC 03 00 00 00 00 07 04 06 00 28 23 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 0F DB BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 93 C1 00 00 35 04 06 00 20 1C 2F E1 71 54 CF C0 78 4B E5 18 C9 3C [01:00:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 83 BF 47 00 D8 AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 93 C1 00 00 F4 03 04 00 65 A1 BF 66 B6 04 01 00 00 51 69 EB 54 E9 E1 10 1E [01:00:24]CommunicateWithHost err = 0 [01:00:24]CheckOFDResponse [01:00:24]1017 (14) - 77093643461234 [01:00:24]1041 (16) - 0000000000871800 [01:00:24]1040 (4) - 49555 [01:00:24]1012 (4) - 16.08.2024 18:58 [01:00:24]1206 (1) - 0 [01:00:24]OFD Sender: Remove packet 49555 [01:00:24]ProducePacketName [01:00:24]name=ofd_packets/00049555 [01:00:24]NVStorageDeleteData [01:00:25]OFD Sender: Processing packet 49556 [packets to send 30, broken 20] [01:00:25]ProducePacketName [01:00:25]name=ofd_packets/00049556 [01:00:25]OFD Sender: To server: pG, [01:00:25]CommunicateWithHost lk.salyk.kg:30040 [01:00:25]ConnectInit lk.salyk.kg [01:00:25]Connected sock=7 [01:00:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 9E 01 00 00 35 D0 96 01 DC 0F 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EF 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 0B 00 00 00 00 07 04 06 00 78 69 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 F1 DE BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 94 C1 00 00 35 04 06 00 D9 6C D8 42 23 5B B0 70 79 05 B5 66 D8 AF [01:00:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 9F 5A 47 00 5A 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 38 37 31 38 30 30 10 04 04 00 94 C1 00 00 F4 03 04 00 66 A1 BF 66 B6 04 01 00 00 45 81 B4 6B 58 06 53 7D [01:00:25]CommunicateWithHost err = 0 [01:00:25]CheckOFDResponse [01:00:25]1017 (14) - 77093643461234 [01:00:25]1041 (16) - 0000000000871800 [01:00:25]1040 (4) - 49556 [01:00:25]1012 (4) - 16.08.2024 18:58 [01:00:25]1206 (1) - 0 [01:00:25]OFD Sender: Remove packet 49556 [01:00:25]ProducePacketName [01:00:25]name=ofd_packets/00049556 [01:00:25]NVStorageDeleteData [01:00:26]OFD Sender: Processing packet 49557 [packets to send 29, broken 20] [01:00:26]ProducePacketName [01:00:26]name=ofd_packets/00049557 [01:00:26]OFD Sender: To server: pG, [01:00:26]CommunicateWithHost lk.salyk.kg:30040 [01:00:26]ConnectInit lk.salyk.kg [01:00:26]Connected sock=7 [01:00:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 42 01 00 00 82 87 3A 01 A8 9E 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 34 21 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 10 DF BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 95 C1 00 00 35 04 06 00 17 42 B3 E7 DC D5 AC BB BE A3 FE 17 A8 3C [01:00:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 13 83 47 00 14 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 95 C1 00 00 F4 03 04 00 67 A1 BF 66 B6 04 01 00 00 8A BB CD 17 55 C9 A1 02 [01:00:26]CommunicateWithHost err = 0 [01:00:26]CheckOFDResponse [01:00:26]1017 (14) - 77093643461234 [01:00:26]1041 (16) - 0000000000871800 [01:00:26]1040 (4) - 49557 [01:00:26]1012 (4) - 16.08.2024 18:58 [01:00:26]1206 (1) - 0 [01:00:26]OFD Sender: Remove packet 49557 [01:00:26]ProducePacketName [01:00:26]name=ofd_packets/00049557 [01:00:26]NVStorageDeleteData [01:00:27]OFD Sender: Processing packet 49558 [packets to send 28, broken 20] [01:00:27]ProducePacketName [01:00:27]name=ofd_packets/00049558 [01:00:27]OFD Sender: To server: pG, [01:00:27]CommunicateWithHost lk.salyk.kg:30040 [01:00:27]ConnectInit lk.salyk.kg [01:00:27]Connected sock=9 [01:00:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 1E 01 00 00 CE 68 16 01 55 EF 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 B8 56 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 56 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 09 00 00 00 00 07 04 06 00 B8 56 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 00 00 00 F4 03 04 00 2A DF BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 96 C1 00 00 35 04 06 00 01 E3 85 93 3D A1 E9 23 64 42 49 73 25 04 [01:00:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C0 0F 47 00 07 BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 96 C1 00 00 F4 03 04 00 68 A1 BF 66 B6 04 01 00 00 7F F0 B6 44 E4 1B 64 85 [01:00:28]CommunicateWithHost err = 0 [01:00:28]CheckOFDResponse [01:00:28]1017 (14) - 77093643461234 [01:00:28]1041 (16) - 0000000000871800 [01:00:28]1040 (4) - 49558 [01:00:28]1012 (4) - 16.08.2024 18:58 [01:00:28]1206 (1) - 0 [01:00:28]OFD Sender: Remove packet 49558 [01:00:28]ProducePacketName [01:00:28]name=ofd_packets/00049558 [01:00:28]NVStorageDeleteData [01:00:28]OFD Sender: Processing packet 49559 [packets to send 27, broken 20] [01:00:28]ProducePacketName [01:00:28]name=ofd_packets/00049559 [01:00:28]OFD Sender: To server: pG, [01:00:28]CommunicateWithHost lk.salyk.kg:30040 [01:00:28]ConnectInit lk.salyk.kg [01:00:28]Connected sock=7 [01:00:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 26 01 00 00 0B 66 1E 01 9F ED 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 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 98 E1 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 97 C1 00 00 35 04 06 00 25 76 44 2E 40 96 B3 B7 2C 07 04 B9 90 52 [01:00:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C2 25 47 00 7B 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 97 C1 00 00 F4 03 04 00 69 A1 BF 66 B6 04 01 00 00 60 11 97 B6 60 F3 3A 8F [01:00:28]CommunicateWithHost err = 0 [01:00:28]CheckOFDResponse [01:00:28]1017 (14) - 77093643461234 [01:00:28]1041 (16) - 0000000000871800 [01:00:28]1040 (4) - 49559 [01:00:28]1012 (4) - 16.08.2024 18:58 [01:00:28]1206 (1) - 0 [01:00:28]OFD Sender: Remove packet 49559 [01:00:28]ProducePacketName [01:00:28]name=ofd_packets/00049559 [01:00:28]NVStorageDeleteData [01:00:29]OFD Sender: Processing packet 49560 [packets to send 26, broken 20] [01:00:29]ProducePacketName [01:00:29]name=ofd_packets/00049560 [01:00:29]OFD Sender: To server: pG, [01:00:29]CommunicateWithHost lk.salyk.kg:30040 [01:00:29]ConnectInit lk.salyk.kg [01:00:29]Connected sock=7 [01:00:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 8D 01 00 00 01 F8 85 01 DA DB 5A 03 01 00 03 00 79 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 37 30 31 31 36 35 36 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 9F D1 88 D0 B5 D0 BD D0 B8 D1 87 D0 BD D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 00 00 00 F4 03 04 00 FD E1 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 98 C1 00 00 35 04 06 00 B5 1C AE 9D 24 74 38 39 12 0A CB 07 DC 5C [01:00:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 E1 1E 47 00 FC 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 38 37 31 38 30 30 10 04 04 00 98 C1 00 00 F4 03 04 00 6A A1 BF 66 B6 04 01 00 00 D4 BD 44 60 CA B3 72 1A [01:00:30]CommunicateWithHost err = 0 [01:00:30]CheckOFDResponse [01:00:30]1017 (14) - 77093643461234 [01:00:30]1041 (16) - 0000000000871800 [01:00:30]1040 (4) - 49560 [01:00:30]1012 (4) - 16.08.2024 18:58 [01:00:30]1206 (1) - 0 [01:00:30]OFD Sender: Remove packet 49560 [01:00:30]ProducePacketName [01:00:30]name=ofd_packets/00049560 [01:00:30]NVStorageDeleteData [01:00:30]OFD Sender: Processing packet 49561 [packets to send 25, broken 20] [01:00:30]ProducePacketName [01:00:30]name=ofd_packets/00049561 [01:00:30]OFD Sender: To server: pG, [01:00:30]CommunicateWithHost lk.salyk.kg:30040 [01:00:30]ConnectInit lk.salyk.kg [01:00:30]Connected sock=7 [01:00:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 39 01 00 00 A6 B7 31 01 AF 37 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 23 E2 BF 66 0E 04 04 00 D0 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 99 C1 00 00 35 04 06 00 18 D0 35 27 6D 08 1D D4 41 AE 57 E1 49 3D [01:00:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D6 08 47 00 45 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 38 37 31 38 30 30 10 04 04 00 99 C1 00 00 F4 03 04 00 6B A1 BF 66 B6 04 01 00 00 41 3D 3E 11 06 E2 0C BA [01:00:31]CommunicateWithHost err = 0 [01:00:31]CheckOFDResponse [01:00:31]1017 (14) - 77093643461234 [01:00:31]1041 (16) - 0000000000871800 [01:00:31]1040 (4) - 49561 [01:00:31]1012 (4) - 16.08.2024 18:58 [01:00:31]1206 (1) - 0 [01:00:31]OFD Sender: Remove packet 49561 [01:00:31]ProducePacketName [01:00:31]name=ofd_packets/00049561 [01:00:31]NVStorageDeleteData [01:00:31]OFD Sender: Processing packet 49562 [packets to send 24, broken 20] [01:00:31]ProducePacketName [01:00:31]name=ofd_packets/00049562 [01:00:31]OFD Sender: To server: pG, [01:00:31]CommunicateWithHost lk.salyk.kg:30040 [01:00:31]ConnectInit lk.salyk.kg [01:00:31]Connected sock=7 [01:00:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 79 05 00 00 CC 81 71 05 53 B4 5A 05 01 00 05 00 65 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 17 00 D0 9A D0 B0 D0 BB D1 8B D0 B1 D0 B5 D0 BA 20 D1 83 2E 20 D0 9D 2E 20 F4 03 04 00 56 E5 BF 66 0E 04 04 00 D0 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 5E 04 04 00 D1 00 00 00 57 04 04 00 D3 00 00 00 AA 04 D5 04 6E 04 04 00 D1 00 00 00 69 04 A2 00 6F 04 04 00 D1 00 00 00 B1 04 03 00 78 22 29 70 04 03 00 88 86 23 72 04 03 00 F0 9B 05 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 3C 5E 04 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 21 5D 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 9A C1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 6F 02 E1 05 B1 FD CF 6A DA AE 83 14 AC D1 [01:00:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 C8 8C 47 00 CD 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9A C1 00 00 F4 03 04 00 6C A1 BF 66 B6 04 01 00 00 36 42 2D 57 3E 5E E8 3F [01:00:32]CommunicateWithHost err = 0 [01:00:32]CheckOFDResponse [01:00:32]1017 (14) - 77093643461234 [01:00:32]1041 (16) - 0000000000871800 [01:00:32]1040 (4) - 49562 [01:00:32]1012 (4) - 16.08.2024 18:58 [01:00:32]1206 (1) - 0 [01:00:32]OFD Sender: Remove packet 49562 [01:00:32]ProducePacketName [01:00:32]name=ofd_packets/00049562 [01:00:32]NVStorageDeleteData [01:00:32]OFD Sender: Processing packet 49563 [packets to send 23, broken 20] [01:00:32]ProducePacketName [01:00:32]name=ofd_packets/00049563 [01:00:32]OFD Sender: To server: pG, [01:00:32]CommunicateWithHost lk.salyk.kg:30040 [01:00:32]ConnectInit lk.salyk.kg [01:00:32]Connected sock=9 [01:00:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 08 01 00 00 48 62 00 01 88 44 5A 02 01 00 02 00 F4 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 19 00 D0 A1 D1 83 D0 BB D0 B0 D0 B9 D0 BC D0 B0 D0 BD D0 BE D0 B2 20 D0 A2 2E 20 F1 03 45 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 9E D1 88 2C 20 D1 83 D0 BB 2E 20 D0 A0 D0 B0 D0 B7 D0 B7 D0 B0 D0 BA D0 BE D0 B2 D0 B0 20 32 20 D0 91 2C 20 34 30 2E 35 36 38 30 31 38 2C 20 37 32 2E 38 30 37 31 34 39 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 39 35 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 2A EA BF 66 0E 04 04 00 D1 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 9B C1 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 35 04 06 00 2B 25 72 41 15 BE D5 7A 10 57 55 77 22 A9 [01:00:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 03 95 47 00 4A C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9B C1 00 00 F4 03 04 00 6D A1 BF 66 B6 04 01 00 00 A5 E6 B7 23 BC 52 AB E2 [01:00:33]CommunicateWithHost err = 0 [01:00:33]CheckOFDResponse [01:00:33]1017 (14) - 77093643461234 [01:00:33]1041 (16) - 0000000000871800 [01:00:33]1040 (4) - 49563 [01:00:33]1012 (4) - 16.08.2024 18:58 [01:00:33]1206 (1) - 0 [01:00:33]OFD Sender: Remove packet 49563 [01:00:33]ProducePacketName [01:00:33]name=ofd_packets/00049563 [01:00:33]NVStorageDeleteData [01:00:33]OFD Sender: Processing packet 49564 [packets to send 22, broken 20] [01:00:33]ProducePacketName [01:00:33]name=ofd_packets/00049564 [01:00:33]OFD Sender: To server: pG, [01:00:33]CommunicateWithHost lk.salyk.kg:30040 [01:00:33]ConnectInit lk.salyk.kg [01:00:34]Connected sock=7 [01:00:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 59 02 00 00 EA 1F 51 02 21 CC 5A 03 01 00 03 00 45 02 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 2B 00 00 00 00 13 04 06 00 5C 2B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 35 31 06 04 1E 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 AB D1 81 D1 81 D1 8B D0 BA 20 D0 90 D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 A6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AC 11 00 00 00 00 07 04 06 00 68 A6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 D6 ED BF 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9C C1 00 00 35 04 06 00 13 42 90 45 28 15 72 96 FD F2 94 13 FD FE [01:00:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 06 22 47 00 51 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9C C1 00 00 F4 03 04 00 6E A1 BF 66 B6 04 01 00 00 51 4A FD 13 63 A3 FD DF [01:00:34]CommunicateWithHost err = 0 [01:00:34]CheckOFDResponse [01:00:34]1017 (14) - 77093643461234 [01:00:34]1041 (16) - 0000000000871800 [01:00:34]1040 (4) - 49564 [01:00:34]1012 (4) - 16.08.2024 18:58 [01:00:34]1206 (1) - 0 [01:00:34]OFD Sender: Remove packet 49564 [01:00:34]ProducePacketName [01:00:34]name=ofd_packets/00049564 [01:00:34]NVStorageDeleteData [01:00:34]OFD Sender: Processing packet 49565 [packets to send 21, broken 20] [01:00:34]ProducePacketName [01:00:34]name=ofd_packets/00049565 [01:00:34]OFD Sender: To server: pG, [01:00:34]CommunicateWithHost lk.salyk.kg:30040 [01:00:34]ConnectInit lk.salyk.kg [01:00:35]Connected sock=7 [01:00:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 31 01 00 00 D8 70 29 01 39 D4 5A 03 01 00 03 00 1D 01 1E 04 01 00 01 23 04 6F 00 8A 04 08 00 34 38 37 34 35 32 39 31 06 04 30 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 4F 48 4F 20 4E 59 43 20 43 4F 4D 50 41 43 54 20 42 4C 55 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 FA ED BF 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9D C1 00 00 35 04 06 00 0D EC C9 F8 05 1E 0A A5 2D AB 4A 0F 70 B4 [01:00:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 30 9F 47 00 05 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 38 37 31 38 30 30 10 04 04 00 9D C1 00 00 F4 03 04 00 6F A1 BF 66 B6 04 01 00 00 34 74 DB E6 0B DB FB C9 [01:00:35]CommunicateWithHost err = 0 [01:00:35]CheckOFDResponse [01:00:35]1017 (14) - 77093643461234 [01:00:35]1041 (16) - 0000000000871800 [01:00:35]1040 (4) - 49565 [01:00:35]1012 (4) - 16.08.2024 18:58 [01:00:35]1206 (1) - 0 [01:00:35]OFD Sender: Remove packet 49565 [01:00:35]ProducePacketName [01:00:35]name=ofd_packets/00049565 [01:00:35]NVStorageDeleteData [01:00:35]OFD Sender: No OFD packet to send [01:00:40]OFD Sender: No OFD packet to send [01:00:45]OFD Sender: No OFD packet to send [01:00:50]OFD Sender: No OFD packet to send [01:00:55]OFD Sender: No OFD packet to send [01:01:00]OFD Sender: No OFD packet to send [01:01:05]OFD Sender: No OFD packet to send [01:01:10]OFD Sender: No OFD packet to send [01:01:15]OFD Sender: No OFD packet to send [01:01:20]OFD Sender: No OFD packet to send [01:01:25]OFD Sender: No OFD packet to send [01:01:30]OFD Sender: No OFD packet to send [01:01:35]OFD Sender: No OFD packet to send [01:01:40]OFD Sender: No OFD packet to send [01:01:45]OFD Sender: No OFD packet to send [01:01:50]OFD Sender: No OFD packet to send [01:01:55]OFD Sender: No OFD packet to send [01:02:00]OFD Sender: No OFD packet to send [01:02:05]OFD Sender: No OFD packet to send [01:02:10]OFD Sender: No OFD packet to send [01:02:15]OFD Sender: No OFD packet to send [01:02:19]accept exits with 11 [01:02:19]New connection [01:02:19]New thread 3066944868 created [01:02:19]Thread 3066801508 joined [01:02:19]Waiting for new connection... [01:02:19] Sock 11.Parse request [01:02:19]Sock 11.Check first char [01:02:19]Sock 11.First char is OK [01:02:19]request: POST /json_proto HTTP/1.0 [01:02:19]Method: POST [01:02:19]URL: /json_proto [01:02:19]Method is POST - this is cgi request [01:02:19]url: /json_proto [01:02:19]query_string will be loaded in cgi processing [01:02:19]execute_cgi json_proto POST (null) [01:02:19]execute_cgi path=json_proto method=POST [01:02:19]POST find Content-Length [01:02:19]Host: 172.17.46.196:8080 [01:02:19]Content-Length: 630 [01:02:19]Content-Type: application/json [01:02:19] [01:02:19]POST finish read [01:02:19]Found Content-Length = 630 [01:02:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189767", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:02:19]execute_script... [01:02:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189767", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:02:19]POST & json_proto [01:02:19]process_json_proto [01:02:19]json parsed OK: [01:02:19]protocol is kg_v1.0 [01:02:19]action value=close_receipt [01:02:19]process_action close_receipt [01:02:19]cmd_close_receipt [01:02:19]MH_GetDate [01:02:19]Write to MH i2c: F0 00 00 4E 0A 47 [01:02:19]Write i2c OK [01:02:19]MH_I2C_Read... [01:02:19]Read from MH i2c: F0 [01:02:19]MH_I2C_Read... [01:02:19]Read from MH i2c: F0 09 00 [01:02:19]MH_I2C_Read... [01:02:19]Read from MH i2c: F0 09 00 4E 0A 00 9C F6 BF 66 07 E8 5D 66 B9 [01:02:19]GetLastDocTimeStamp 1723854330 [01:02:19]current date 1723856540 [01:02:19]FM_GetShiftState [01:02:19]SAM_PROTO_GetShiftState [01:02:19]wFMCommunicate request_size=4 [01:02:19]MH_SAM_APDU [01:02:19]CAPDU: 80 13 01 00 [01:02:19]Write to MH i2c: E2 08 00 4F 0A 80 13 01 00 00 00 00 00 D6 [01:02:19]Write i2c OK [01:02:19]MH_I2C_Read... [01:02:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:19]Read from MH i2c: E2 [01:02:19]MH_I2C_Read... [01:02:19]Read from MH i2c: E2 0E 00 [01:02:19]MH_I2C_Read... [01:02:19]Read from MH i2c: E2 0E 00 4F 0A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 1B [01:02:19]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [01:02:19]wFMCommunicate OK [01:02:19]SAM_PROTO_GetShiftState done [01:02:19]FM_GetShiftState done [01:02:19]opened in 1723853354 [01:02:19]opened+sec_in_day 1723939754 [01:02:19]quantity*price = 5000 [01:02:19]sum+1 = 5001 [01:02:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 3 17.08.2024 01:02 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49566 ФПД: 784898366095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T010220&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49566&fm=784898366095&tin=02508201610067®Number=0000000000092546&sum=5000 0 [01:02:20]StoreToDocumentArchive [01:02:20]shift 465 fd 49566 [01:02:20]save to /storage/0465/doc_00049566 [01:02:20]save last doc name /storage/0465/doc_00049566 to /storage/kkm_last_doc_name [01:02:20]save OK [01:02:20]Clear old archive folders... [01:02:20]ProcessDocumentItem done err = 0, tmpTLVsize=269 [01:02:20]tlvbuf is 018B81F0 [01:02:20]SAM_PROTO_ClearQueue [01:02:20]wFMCommunicate request_size=4 [01:02:20]MH_SAM_APDU [01:02:20]CAPDU: 80 09 00 00 [01:02:20]Write to MH i2c: E2 08 00 5C 0A 80 09 00 00 00 00 00 00 D8 [01:02:20]Write i2c OK [01:02:20]MH_I2C_Read... [01:02:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:02:20]Read from MH i2c: E2 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 03 00 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 03 00 5C 0A 00 90 00 DA [01:02:20]RAPDU: 90 00 [01:02:20]wFMCommunicate OK [01:02:20]SAM_PROTO_ClearQueue done [01:02:20]KKMCreateOFDPacket [01:02:20]OFDProtocolAddRootSTLVToBuf [01:02:20]FM_MakeSignedData [01:02:20]FM_MakeSignedData [01:02:20]SAM_PROTO_SignData [01:02:20]wFMCommunicate request_size=4 [01:02:20]MH_SAM_APDU [01:02:20]CAPDU: 80 0D 01 02 [01:02:20]Write to MH i2c: E2 08 00 5D 0A 80 0D 01 02 00 00 00 00 E0 [01:02:20]Write i2c OK [01:02:20]MH_I2C_Read... [01:02:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:02:20]Read from MH i2c: E2 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 03 00 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 03 00 5D 0A 00 90 00 DB [01:02:20]RAPDU: 90 00 [01:02:20]wFMCommunicate OK [01:02:20]wFMCommunicate request_size=255 [01:02:20]MH_SAM_APDU [01:02:20]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 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 9C F6 BF 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [01:02:20]Write to MH i2c: E2 02 01 5E 0A 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 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 9C F6 BF 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 84 [01:02:20]Write i2c OK [01:02:20]MH_I2C_Read... [01:02:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:20]Read from MH i2c: E2 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 03 00 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 03 00 5E 0A 00 90 00 DC [01:02:20]RAPDU: 90 00 [01:02:20]wFMCommunicate OK [01:02:20]wFMCommunicate request_size=28 [01:02:20]MH_SAM_APDU [01:02:20]CAPDU: 80 0D 02 02 17 37 31 38 30 30 10 04 04 00 9E C1 00 00 35 04 06 00 00 B6 BF 96 9A 8F [01:02:20]Write to MH i2c: E2 1F 00 5F 0A 80 0D 02 02 17 00 37 31 38 30 30 10 04 04 00 9E C1 00 00 35 04 06 00 00 B6 BF 96 9A 8F 00 00 FB [01:02:20]Write i2c OK [01:02:20]MH_I2C_Read... [01:02:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:20]Read from MH i2c: E2 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 03 00 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 03 00 5F 0A 00 90 00 DD [01:02:20]RAPDU: 90 00 [01:02:20]wFMCommunicate OK [01:02:20]wFMCommunicate request_size=4 [01:02:20]MH_SAM_APDU [01:02:20]CAPDU: 80 0D 03 02 [01:02:20]Write to MH i2c: E2 08 00 60 0A 80 0D 03 02 00 00 00 00 E5 [01:02:20]Write i2c OK [01:02:20]MH_I2C_Read... [01:02:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:02:20]Read from MH i2c: E2 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 0B 00 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 0B 00 60 0A 00 60 56 A7 80 A2 BC 02 27 90 00 4A [01:02:20]RAPDU: 60 56 A7 80 A2 BC 02 27 90 00 [01:02:20]wFMCommunicate OK [01:02:20]SAM_PROTO_SignData done [01:02:20]FM_MakeSignedData done [01:02:20]CreateOFDProtocolMessage [01:02:20]wFMCommunicate request_size=4 [01:02:20]MH_SAM_APDU [01:02:20]CAPDU: 80 11 00 00 [01:02:20]Write to MH i2c: E2 08 00 61 0A 80 11 00 00 00 00 00 00 E5 [01:02:20]Write i2c OK [01:02:20]MH_I2C_Read... [01:02:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:20]Read from MH i2c: E2 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 17 00 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: E2 17 00 61 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 30 [01:02:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:02:20]wFMCommunicate OK [01:02:20]CreateOFDProtocolMessage done [01:02:20]OFDSenderStorePacket 49566 [01:02:20]StoreOFDPacket docnum=49566 [01:02:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 53 FC 19 01 AE BA 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 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 9C F6 BF 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9E C1 00 00 35 04 06 00 00 B6 BF 96 9A 8F 60 56 A7 80 A2 BC 02 27 [01:02:20]CheckFolder [01:02:20]dirname=/storage/ofd_packets [01:02:20]CheckFolder done [01:02:20]ProducePacketName [01:02:20]name=ofd_packets/00049566 [01:02:20]NVStorageSaveData ofd_packets/00049566 [01:02:20]File name is /storage/ofd_packets/00049566 [01:02:20]Write 319 bytes [01:02:20]NVStorageSaveData done [01:02:20]OFDSenderStorePacket done [01:02:20]KKMCreateOFDPacket done [01:02:20]NVStorageSaveData kkm_last_timestamp [01:02:20]File name is /storage/kkm_last_timestamp [01:02:20]Write 4 bytes [01:02:20]NVStorageSaveData done [01:02:20]ExternCall_PrintAddStr [01:02:20]wPrintStart [01:02:20]Write to MH i2c: 01 00 00 62 0A 6C [01:02:20]Write i2c OK [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: 01 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: 01 07 00 [01:02:20]MH_I2C_Read... [01:02:20]Read from MH i2c: 01 07 00 62 0A 00 00 00 00 00 FF 0F 81 [01:02:21]RasterBufferAndPrint [01:02:21]line Счет N : (3)189767 [01:02:21]line ИНН: 02508201610067 [01:02:21]line Контрольно-Кассовый Чек [01:02:21]line ПРОДАЖА [01:02:21]line Товар: 4700000160358 [01:02:21]line Вода Легенда 1л [01:02:21]line 1.000 * 50.00 [01:02:21]line = 50.00 [01:02:21]line НДС 12% НСП 1% [01:02:21]line > о реализуемом товаре [01:02:21]line ИТОГО: 50.00 [01:02:21]line НСП 1% : 0.44 [01:02:21]line НДС 12% : 5.31 [01:02:21]line Наличными: 50.00 [01:02:21]line Безнал.: 0.00 [01:02:21]line Место: АЗС № 95 "Партнер Нефть" [01:02:21]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [01:02:21]line СНО: Общий режим [01:02:21]line Чек 3 17.08.2024 01:02 [01:02:21]line Смена: 465 ФФД: 1.0 [01:02:21]line ЗНМ: 0300000078 [01:02:21]line РНМ: 0000000000092546 [01:02:21]line Версия ККМ: 001 [01:02:21]line ФМ: 0000000000871800 [01:02:21]line ФД: 49566 [01:02:21]line ФПД: 784898366095 [01:02:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T010220&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49566&fm=784898366095&tin=02508201610067®Number=0000000000092546&sum=5000 [01:02:21]OFD Sender: Processing packet 49566 [packets to send 21, broken 20] [01:02:21]ProducePacketName [01:02:21]name=ofd_packets/00049566 [01:02:21]OFD Sender: To server: pG, [01:02:21]CommunicateWithHost lk.salyk.kg:30040 [01:02:21]ConnectInit lk.salyk.kg [01:02:21]line 0 [01:02:21]written 0, free lines is 4095 [01:02:21]Write to MH i2c: 01 00 00 8A 0A 94 [01:02:21]Write i2c OK [01:02:21]MH_I2C_Read... [01:02:21]Read from MH i2c: 01 [01:02:21]MH_I2C_Read... [01:02:21]Read from MH i2c: 01 07 00 [01:02:21]MH_I2C_Read... [01:02:21]Read from MH i2c: 01 07 00 8A 0A 00 00 00 00 00 E5 0C 8C [01:02:21]RasterBufferAndPrint [01:02:21]line [01:02:21]line [01:02:21]line [01:02:21]line [01:02:21]line [01:02:21]written 0, free lines is 3307 [01:02:21]MH_Cut [01:02:21]Write to MH i2c: D1 01 00 91 0A 01 6D [01:02:21]Write i2c OK [01:02:21]MH_I2C_Read... [01:02:21]Read from MH i2c: D1 [01:02:21]MH_I2C_Read... [01:02:21]Read from MH i2c: D1 01 00 [01:02:21]MH_I2C_Read... [01:02:21]Read from MH i2c: D1 01 00 91 0A 00 6C [01:02:21]Write to MH i2c: 01 00 00 92 0A 9C [01:02:21]Write i2c OK [01:02:21]MH_I2C_Read... [01:02:22]*** Cut start [01:02:22]*** Purtial cut [01:02:22]*** Stage 1: CUTSNS_PIN = 1 [01:02:22]Read from MH i2c: 01 [01:02:22]MH_I2C_Read... [01:02:22]*** Stop cut motor [01:02:22]*** Cut end [01:02:22]Read from MH i2c: 01 07 00 [01:02:22]MH_I2C_Read... [01:02:22]Read from MH i2c: 01 07 00 92 0A 00 00 00 00 00 FF 0F B1 [01:02:22]process_action close_receipt done [01:02:22]requested_data is exist [01:02:22]produce_requested_data [01:02:22]requested_item fm.sn is exist - process it [01:02:22]wFMCommunicate request_size=4 [01:02:22]MH_SAM_APDU [01:02:22]CAPDU: 80 11 00 00 [01:02:22]Write to MH i2c: E2 08 00 93 0A 80 11 00 00 00 00 00 00 17 [01:02:22]Write i2c OK [01:02:22]MH_I2C_Read... [01:02:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:22]Read from MH i2c: E2 [01:02:22]MH_I2C_Read... [01:02:22]Read from MH i2c: E2 17 00 [01:02:22]MH_I2C_Read... [01:02:22]Read from MH i2c: E2 17 00 93 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 62 [01:02:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:02:22]wFMCommunicate OK [01:02:22]requested_item fd.num is exist - process it [01:02:22]SAM_PROTO_GetFieldsCounters [01:02:22]wFMCommunicate request_size=4 [01:02:22]MH_SAM_APDU [01:02:22]CAPDU: 80 13 00 00 [01:02:22]Write to MH i2c: E2 08 00 94 0A 80 13 00 00 00 00 00 00 1A [01:02:22]Write i2c OK [01:02:22]MH_I2C_Read... [01:02:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:02:23]Read from MH i2c: E2 [01:02:23]MH_I2C_Read... [01:02:23]Read from MH i2c: E2 62 00 [01:02:23]MH_I2C_Read... [01:02:23]Read from MH i2c: E2 62 00 94 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 9E C1 00 00 0E 04 04 00 D1 01 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 6E [01:02:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 9E C1 00 00 0E 04 04 00 D1 01 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 [01:02:23]wFMCommunicate OK [01:02:23]SAM_PROTO_GetFieldsCounters done [01:02:23]requested_item shift.num is exist - process it [01:02:23]requested_item shift.opened is exist - process it [01:02:23]req_shift_opened [01:02:23]FM_GetShiftState [01:02:23]SAM_PROTO_GetShiftState [01:02:23]wFMCommunicate request_size=4 [01:02:23]MH_SAM_APDU [01:02:23]CAPDU: 80 13 01 00 [01:02:23]Write to MH i2c: E2 08 00 95 0A 80 13 01 00 00 00 00 00 1C [01:02:23]Write i2c OK [01:02:23]MH_I2C_Read... [01:02:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:23]Read from MH i2c: E2 [01:02:23]MH_I2C_Read... [01:02:23]Read from MH i2c: E2 0E 00 [01:02:23]MH_I2C_Read... [01:02:23]Read from MH i2c: E2 0E 00 95 0A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 61 [01:02:23]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [01:02:23]wFMCommunicate OK [01:02:23]SAM_PROTO_GetShiftState done [01:02:23]FM_GetShiftState done [01:02:23]req_shift_opened done [01:02:23]requested_item shift.open_date is exist - process it [01:02:23]req_shift_open_date [01:02:23]req_shift_open_date done [01:02:23]produce_requested_data done [01:02:23]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49566,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [01:02:23]process_action_free close_receipt [01:02:23]json_value_free [01:02:23]json_value_free done [01:02:23]process_json_proto returns [01:02:23]Send response to host [01:02:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49566,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [01:02:23]free response buf [01:02:23]execute_script done [01:02:23]execute_script returns [01:02:23]free content buf [01:02:23]Sock 11.Close socket [01:02:23]Sock 11.Thread stoped [01:02:31]accept exits with 7 [01:02:31]New connection [01:02:31]New thread 3066801508 created [01:02:31]Thread 3066944868 joined [01:02:31]Waiting for new connection... [01:02:31] Sock 7.Parse request [01:02:31]Sock 7.Check first char [01:02:31]Sock 7.First char is OK [01:02:31]request: POST /json_proto HTTP/1.0 [01:02:31]Method: POST [01:02:31]URL: /json_proto [01:02:31]Method is POST - this is cgi request [01:02:31]url: /json_proto [01:02:31]query_string will be loaded in cgi processing [01:02:31]execute_cgi json_proto POST (null) [01:02:31]execute_cgi path=json_proto method=POST [01:02:31]POST find Content-Length [01:02:31]Host: 172.17.46.196:8080 [01:02:31]Content-Length: 644 [01:02:31]Content-Type: application/json [01:02:31] [01:02:31]POST finish read [01:02:31]Found Content-Length = 644 [01:02:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189768", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:02:31]execute_script... [01:02: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 : (3)189768", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:02:31]POST & json_proto [01:02:31]process_json_proto [01:02:31]json parsed OK: [01:02:31]protocol is kg_v1.0 [01:02:31]action value=close_receipt [01:02:31]process_action close_receipt [01:02:31]cmd_close_receipt [01:02:31]MH_GetDate [01:02:31]Write to MH i2c: F0 00 00 96 0A 8F [01:02:31]Write i2c OK [01:02:31]MH_I2C_Read... [01:02:31]Read from MH i2c: F0 [01:02:31]MH_I2C_Read... [01:02:31]Read from MH i2c: F0 09 00 [01:02:31]MH_I2C_Read... [01:02:31]Read from MH i2c: F0 09 00 96 0A 00 A8 F6 BF 66 07 E8 5D 66 0D [01:02:31]GetLastDocTimeStamp 1723856540 [01:02:31]current date 1723856552 [01:02:31]FM_GetShiftState [01:02:31]SAM_PROTO_GetShiftState [01:02:31]wFMCommunicate request_size=4 [01:02:31]MH_SAM_APDU [01:02:31]CAPDU: 80 13 01 00 [01:02:31]Write to MH i2c: E2 08 00 97 0A 80 13 01 00 00 00 00 00 1E [01:02:31]Write i2c OK [01:02:31]MH_I2C_Read... [01:02:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:31]Read from MH i2c: E2 [01:02:31]MH_I2C_Read... [01:02:31]Read from MH i2c: E2 0E 00 [01:02:31]MH_I2C_Read... [01:02:31]Read from MH i2c: E2 0E 00 97 0A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 63 [01:02:31]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [01:02:31]wFMCommunicate OK [01:02:31]SAM_PROTO_GetShiftState done [01:02:31]FM_GetShiftState done [01:02:31]opened in 1723853354 [01:02:31]opened+sec_in_day 1723939754 [01:02:31]quantity*price = 3500 [01:02:31]sum+1 = 3501 [01:02:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 НСП 1% : 0.31 НДС 12% : 3.72 Наличными: 35.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 4 17.08.2024 01:02 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49567 ФПД: 161907115555541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T010232&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49567&fm=161907115555541&tin=02508201610067®Number=0000000000092546&sum=3500 0 [01:02:32]StoreToDocumentArchive [01:02:32]shift 465 fd 49567 [01:02:32]save to /storage/0465/doc_00049567 [01:02:32]save last doc name /storage/0465/doc_00049567 to /storage/kkm_last_doc_name [01:02:32]save OK [01:02:32]Clear old archive folders... [01:02:32]ProcessDocumentItem done err = 0, tmpTLVsize=275 [01:02:32]tlvbuf is B6ED8730 [01:02:32]SAM_PROTO_ClearQueue [01:02:32]wFMCommunicate request_size=4 [01:02:32]MH_SAM_APDU [01:02:32]CAPDU: 80 09 00 00 [01:02:32]Write to MH i2c: E2 08 00 A4 0A 80 09 00 00 00 00 00 00 20 [01:02:32]Write i2c OK [01:02:32]MH_I2C_Read... [01:02:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:02:32]Read from MH i2c: E2 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 03 00 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 03 00 A4 0A 00 90 00 22 [01:02:32]RAPDU: 90 00 [01:02:32]wFMCommunicate OK [01:02:32]SAM_PROTO_ClearQueue done [01:02:32]KKMCreateOFDPacket [01:02:32]OFDProtocolAddRootSTLVToBuf [01:02:32]FM_MakeSignedData [01:02:32]FM_MakeSignedData [01:02:32]SAM_PROTO_SignData [01:02:32]wFMCommunicate request_size=4 [01:02:32]MH_SAM_APDU [01:02:32]CAPDU: 80 0D 01 02 [01:02:32]Write to MH i2c: E2 08 00 A5 0A 80 0D 01 02 00 00 00 00 28 [01:02:32]Write i2c OK [01:02:32]MH_I2C_Read... [01:02:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:02:32]Read from MH i2c: E2 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 03 00 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 03 00 A5 0A 00 90 00 23 [01:02:32]RAPDU: 90 00 [01:02:32]wFMCommunicate OK [01:02:32]wFMCommunicate request_size=255 [01:02:32]MH_SAM_APDU [01:02:32]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 A8 F6 BF 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 [01:02:32]Write to MH i2c: E2 02 01 A6 0A 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 A8 F6 BF 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 00 00 AA [01:02:32]Write i2c OK [01:02:32]MH_I2C_Read... [01:02:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:32]Read from MH i2c: E2 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 03 00 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 03 00 A6 0A 00 90 00 24 [01:02:32]RAPDU: 90 00 [01:02:32]wFMCommunicate OK [01:02:32]wFMCommunicate request_size=34 [01:02:32]MH_SAM_APDU [01:02:32]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9F C1 00 00 35 04 06 00 93 40 F0 1B FA D5 [01:02:32]Write to MH i2c: E2 25 00 A7 0A 80 0D 02 02 1D 00 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9F C1 00 00 35 04 06 00 93 40 F0 1B FA D5 00 00 F1 [01:02:32]Write i2c OK [01:02:32]MH_I2C_Read... [01:02:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:32]Read from MH i2c: E2 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 03 00 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 03 00 A7 0A 00 90 00 25 [01:02:32]RAPDU: 90 00 [01:02:32]wFMCommunicate OK [01:02:32]wFMCommunicate request_size=4 [01:02:32]MH_SAM_APDU [01:02:32]CAPDU: 80 0D 03 02 [01:02:32]Write to MH i2c: E2 08 00 A8 0A 80 0D 03 02 00 00 00 00 2D [01:02:32]Write i2c OK [01:02:32]MH_I2C_Read... [01:02:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:02:32]Read from MH i2c: E2 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 0B 00 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 0B 00 A8 0A 00 BC E7 42 2A 69 30 FE F7 90 00 CB [01:02:32]RAPDU: BC E7 42 2A 69 30 FE F7 90 00 [01:02:32]wFMCommunicate OK [01:02:32]SAM_PROTO_SignData done [01:02:32]FM_MakeSignedData done [01:02:32]CreateOFDProtocolMessage [01:02:32]wFMCommunicate request_size=4 [01:02:32]MH_SAM_APDU [01:02:32]CAPDU: 80 11 00 00 [01:02:32]Write to MH i2c: E2 08 00 A9 0A 80 11 00 00 00 00 00 00 2D [01:02:32]Write i2c OK [01:02:32]MH_I2C_Read... [01:02:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:32]Read from MH i2c: E2 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 17 00 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: E2 17 00 A9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 78 [01:02:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:02:32]wFMCommunicate OK [01:02:32]CreateOFDProtocolMessage done [01:02:32]OFDSenderStorePacket 49567 [01:02:32]StoreOFDPacket docnum=49567 [01:02:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 BA 6B 1F 01 B0 38 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 A8 F6 BF 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9F C1 00 00 35 04 06 00 93 40 F0 1B FA D5 BC E7 42 2A 69 30 FE F7 [01:02:32]CheckFolder [01:02:32]dirname=/storage/ofd_packets [01:02:32]CheckFolder done [01:02:32]ProducePacketName [01:02:32]name=ofd_packets/00049567 [01:02:32]NVStorageSaveData ofd_packets/00049567 [01:02:32]File name is /storage/ofd_packets/00049567 [01:02:32]Write 325 bytes [01:02:32]NVStorageSaveData done [01:02:32]OFDSenderStorePacket done [01:02:32]KKMCreateOFDPacket done [01:02:32]NVStorageSaveData kkm_last_timestamp [01:02:32]File name is /storage/kkm_last_timestamp [01:02:32]Write 4 bytes [01:02:32]NVStorageSaveData done [01:02:32]ExternCall_PrintAddStr [01:02:32]wPrintStart [01:02:32]Write to MH i2c: 01 00 00 AA 0A B4 [01:02:32]Write i2c OK [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: 01 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: 01 07 00 [01:02:32]MH_I2C_Read... [01:02:32]Read from MH i2c: 01 07 00 AA 0A 00 00 00 00 00 FF 0F C9 [01:02:32]RasterBufferAndPrint [01:02:32]line Счет N : (3)189768 [01:02:32]line ИНН: 02508201610067 [01:02:32]line Контрольно-Кассовый Чек [01:02:32]line ПРОДАЖА [01:02:32]line Товар: 4700000310326 [01:02:32]line Вода Адыгене 1л б/г [01:02:32]line 1.000 * 35.00 [01:02:32]line = 35.00 [01:02:32]line НДС 12% НСП 1% [01:02:32]line > о реализуемом товаре [01:02:32]line ИТОГО: 35.00 [01:02:32]line НСП 1% : 0.31 [01:02:32]line НДС 12% : 3.72 [01:02:32]line Наличными: 35.00 [01:02:32]line Безнал.: 0.00 [01:02:32]line Место: АЗС № 95 "Партнер Нефть" [01:02:32]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [01:02:32]line СНО: Общий режим [01:02:32]line Чек 4 17.08.2024 01:02 [01:02:32]line Смена: 465 ФФД: 1.0 [01:02:32]line ЗНМ: 0300000078 [01:02:32]line РНМ: 0000000000092546 [01:02:32]line Версия ККМ: 001 [01:02:32]line ФМ: 0000000000871800 [01:02:32]line ФД: 49567 [01:02:32]line ФПД: 161907115555541 [01:02:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T010232&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49567&fm=161907115555541&tin=02508201610067®Number=0000000000092546&sum=3500 [01:02:33]line 0 [01:02:33]written 0, free lines is 4095 [01:02:33]Write to MH i2c: 01 00 00 D2 0A DC [01:02:33]Write i2c OK [01:02:33]MH_I2C_Read... [01:02:33]Read from MH i2c: 01 [01:02:33]MH_I2C_Read... [01:02:33]Read from MH i2c: 01 07 00 [01:02:33]MH_I2C_Read... [01:02:33]Read from MH i2c: 01 07 00 D2 0A 00 00 00 00 00 E0 0C CF [01:02:33]RasterBufferAndPrint [01:02:33]line [01:02:33]line [01:02:33]line [01:02:33]line [01:02:33]line [01:02:33]written 0, free lines is 3302 [01:02:33]MH_Cut [01:02:33]Write to MH i2c: D1 01 00 D9 0A 01 B5 [01:02:33]Write i2c OK [01:02:33]MH_I2C_Read... [01:02:33]Read from MH i2c: D1 [01:02:33]MH_I2C_Read... [01:02:33]Read from MH i2c: D1 01 00 [01:02:33]MH_I2C_Read... [01:02:33]Read from MH i2c: D1 01 00 D9 0A 00 B4 [01:02:33]Write to MH i2c: 01 00 00 DA 0A E4 [01:02:33]Write i2c OK [01:02:33]MH_I2C_Read... [01:02:34]*** Cut start [01:02:34]*** Purtial cut [01:02:34]*** CUTSNS_PIN = 0 [01:02:34]*** Stage 1: CUTSNS_PIN = 1 [01:02:36]Read from MH i2c: 01 [01:02:36]MH_I2C_Read... [01:02:36]*** Stop cut motor [01:02:36]*** Cut end [01:02:36]Read from MH i2c: 01 07 00 [01:02:36]MH_I2C_Read... [01:02:36]Read from MH i2c: 01 07 00 DA 0A 00 00 00 00 00 FF 0F F9 [01:02:36]process_action close_receipt done [01:02:36]requested_data is exist [01:02:36]produce_requested_data [01:02:36]requested_item fm.sn is exist - process it [01:02:36]wFMCommunicate request_size=4 [01:02:36]MH_SAM_APDU [01:02:36]CAPDU: 80 11 00 00 [01:02:36]Write to MH i2c: E2 08 00 DB 0A 80 11 00 00 00 00 00 00 5F [01:02:36]Write i2c OK [01:02:36]MH_I2C_Read... [01:02:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:36]Read from MH i2c: E2 [01:02:36]MH_I2C_Read... [01:02:36]Read from MH i2c: E2 17 00 [01:02:36]MH_I2C_Read... [01:02:36]Read from MH i2c: E2 17 00 DB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 AA [01:02:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:02:36]wFMCommunicate OK [01:02:36]requested_item fd.num is exist - process it [01:02:36]SAM_PROTO_GetFieldsCounters [01:02:36]wFMCommunicate request_size=4 [01:02:36]MH_SAM_APDU [01:02:36]CAPDU: 80 13 00 00 [01:02:36]Write to MH i2c: E2 08 00 DC 0A 80 13 00 00 00 00 00 00 62 [01:02:36]Write i2c OK [01:02:36]MH_I2C_Read... [01:02:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:02:36]Read from MH i2c: E2 [01:02:36]MH_I2C_Read... [01:02:36]Read from MH i2c: E2 62 00 [01:02:36]MH_I2C_Read... [01:02:36]Read from MH i2c: E2 62 00 DC 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 9F C1 00 00 0E 04 04 00 D1 01 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 BA [01:02:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 9F C1 00 00 0E 04 04 00 D1 01 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:02:36]wFMCommunicate OK [01:02:36]SAM_PROTO_GetFieldsCounters done [01:02:36]requested_item shift.num is exist - process it [01:02:36]requested_item shift.opened is exist - process it [01:02:36]req_shift_opened [01:02:36]FM_GetShiftState [01:02:36]SAM_PROTO_GetShiftState [01:02:36]wFMCommunicate request_size=4 [01:02:36]MH_SAM_APDU [01:02:36]CAPDU: 80 13 01 00 [01:02:36]Write to MH i2c: E2 08 00 DD 0A 80 13 01 00 00 00 00 00 64 [01:02:36]Write i2c OK [01:02:36]MH_I2C_Read... [01:02:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:36]Read from MH i2c: E2 [01:02:36]MH_I2C_Read... [01:02:36]Read from MH i2c: E2 0E 00 [01:02:36]MH_I2C_Read... [01:02:36]Read from MH i2c: E2 0E 00 DD 0A 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 A9 [01:02:36]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [01:02:36]wFMCommunicate OK [01:02:36]SAM_PROTO_GetShiftState done [01:02:36]FM_GetShiftState done [01:02:36]req_shift_opened done [01:02:36]requested_item shift.open_date is exist - process it [01:02:36]req_shift_open_date [01:02:36]req_shift_open_date done [01:02:36]produce_requested_data done [01:02:36]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49567,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [01:02:36]process_action_free close_receipt [01:02:36]json_value_free [01:02:36]json_value_free done [01:02:36]process_json_proto returns [01:02:36]Send response to host [01:02:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49567,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [01:02:36]free response buf [01:02:36]execute_script done [01:02:36]execute_script returns [01:02:36]free content buf [01:02:36]Sock 7.Close socket [01:02:36]Sock 7.Thread stoped [01:04:31]ConnectInit Can't connect to host [01:04:31]CommunicateWithHost connect error [01:04:31]CommunicateWithHost err = -1 [01:04:31]OFD Sender: Server communicate error [01:04:31]OFD Sender: Processing packet 49566 [packets to send 22, broken 20] [01:04:31]ProducePacketName [01:04:31]name=ofd_packets/00049566 [01:04:31]OFD Sender: To server: pG, [01:04:31]CommunicateWithHost lk.salyk.kg:30040 [01:04:31]ConnectInit lk.salyk.kg [01:04:31]Connected sock=7 [01:04:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 21 01 00 00 53 FC 19 01 AE BA 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 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 9C F6 BF 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9E C1 00 00 35 04 06 00 00 B6 BF 96 9A 8F 60 56 A7 80 A2 BC 02 27 [01:04:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 CA 77 47 00 13 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9E C1 00 00 F4 03 04 00 5C A2 BF 66 B6 04 01 00 00 B5 ED 84 79 98 70 97 9F [01:04:32]CommunicateWithHost err = 0 [01:04:32]CheckOFDResponse [01:04:32]1017 (14) - 77093643461234 [01:04:32]1041 (16) - 0000000000871800 [01:04:32]1040 (4) - 49566 [01:04:32]1012 (4) - 16.08.2024 19:02 [01:04:32]1206 (1) - 0 [01:04:32]OFD Sender: Remove packet 49566 [01:04:32]ProducePacketName [01:04:32]name=ofd_packets/00049566 [01:04:32]NVStorageDeleteData [01:04:32]OFD Sender: Processing packet 49567 [packets to send 21, broken 20] [01:04:32]ProducePacketName [01:04:32]name=ofd_packets/00049567 [01:04:32]OFD Sender: To server: pG, [01:04:32]CommunicateWithHost lk.salyk.kg:30040 [01:04:32]ConnectInit lk.salyk.kg [01:04:32]Connected sock=7 [01:04:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 27 01 00 00 BA 6B 1F 01 B0 38 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 0D 00 00 00 00 13 04 06 00 AC 0D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 0D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 74 01 00 00 00 00 07 04 06 00 AC 0D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 A8 F6 BF 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9F C1 00 00 35 04 06 00 93 40 F0 1B FA D5 BC E7 42 2A 69 30 FE F7 [01:04:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 35 C5 47 00 E8 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 9F C1 00 00 F4 03 04 00 5D A2 BF 66 B6 04 01 00 00 B3 83 E4 61 A9 FF 8A 51 [01:04:33]CommunicateWithHost err = 0 [01:04:33]CheckOFDResponse [01:04:33]1017 (14) - 77093643461234 [01:04:33]1041 (16) - 0000000000871800 [01:04:33]1040 (4) - 49567 [01:04:33]1012 (4) - 16.08.2024 19:02 [01:04:33]1206 (1) - 0 [01:04:33]OFD Sender: Remove packet 49567 [01:04:33]ProducePacketName [01:04:33]name=ofd_packets/00049567 [01:04:33]NVStorageDeleteData [01:04:33]OFD Sender: No OFD packet to send [01:04:38]OFD Sender: No OFD packet to send [01:04:43]OFD Sender: No OFD packet to send [01:04:48]OFD Sender: No OFD packet to send [01:04:53]OFD Sender: No OFD packet to send [01:04:58]OFD Sender: No OFD packet to send [01:05:03]OFD Sender: No OFD packet to send [01:23:08]ConnectInit Can't connect to host [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:34]OFD Sender: No OFD packet to send [01:29:39]OFD Sender: No OFD packet to send [01:29:44]OFD Sender: No OFD packet to send [01:29:49]OFD Sender: No OFD packet to send [01:29:54]OFD Sender: No OFD packet to send [01:29:59]OFD Sender: No OFD packet to send [01:30:04]OFD Sender: No OFD packet to send [01:30:09]OFD Sender: No OFD packet to send [01:30:14]OFD Sender: No OFD packet to send [01:30:19]OFD Sender: No OFD packet to send [01:30:24]OFD Sender: No OFD packet to send [01:30:29]OFD Sender: No OFD packet to send [01:30:34]OFD Sender: No OFD packet to send [01:30:39]OFD Sender: No OFD packet to send [01:30:44]OFD Sender: No OFD packet to send [01:30:49]OFD Sender: No OFD packet to send [01:30:54]OFD Sender: No OFD packet to send [01:30:59]OFD Sender: No OFD packet to send [01:31:04]OFD Sender: No OFD packet to send [01:31:09]OFD Sender: No OFD packet to send [01:31:14]OFD Sender: No OFD packet to send [01:31:19]OFD Sender: No OFD packet to send [01:31:24]OFD Sender: No OFD packet to send [01:31:29]OFD Sender: No OFD packet to send [01:31:34]OFD Sender: No OFD packet to send [01:31:39]OFD Sender: No OFD packet to send [01:31:44]OFD Sender: No OFD packet to send [01:31:49]OFD Sender: No OFD packet to send [01:31:54]OFD Sender: No OFD packet to send [01:31:59]OFD Sender: No OFD packet to send [01:32:04]OFD Sender: No OFD packet to send [01:32:09]OFD Sender: No OFD packet to send [01:32:14]OFD Sender: No OFD packet to send [01:32:19]OFD Sender: No OFD packet to send [01:32:24]OFD Sender: No OFD packet to send [01:32:29]OFD Sender: No OFD packet to send [01:32:34]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:57:22]ConnectInit Can't connect to host [01:57:22]OFD Sender: Processing packet 49568 [packets to send 21, broken 20] [01:57:22]ProducePacketName [01:57:22]name=ofd_packets/00049568 [01:57:22]OFD Sender: To server: pG, [01:57:22]CommunicateWithHost lk.salyk.kg:30040 [01:57:22]ConnectInit lk.salyk.kg [01:57:27]ConnectInit Can't take IP for lk.salyk.kg [01:57:27]CommunicateWithHost connect error [01:57:27]CommunicateWithHost err = -1 [01:57:27]OFD Sender: Server communicate error [01:57:32]OFD Sender: Processing packet 49568 [packets to send 21, broken 20] [01:57:32]ProducePacketName [01:57:32]name=ofd_packets/00049568 [01:57:32]OFD Sender: To server: pG, [01:57:32]CommunicateWithHost lk.salyk.kg:30040 [01:57:32]ConnectInit lk.salyk.kg [01:57:37]ConnectInit Can't take IP for lk.salyk.kg [01:57:37]CommunicateWithHost connect error [01:57:37]CommunicateWithHost err = -1 [01:57:37]OFD Sender: Server communicate error [01:57:42]OFD Sender: Processing packet 49568 [packets to send 21, broken 20] [01:57:42]ProducePacketName [01:57:42]name=ofd_packets/00049568 [01:57:42]OFD Sender: To server: pG, [01:57:42]CommunicateWithHost lk.salyk.kg:30040 [01:57:42]ConnectInit lk.salyk.kg [01:57:47]ConnectInit Can't take IP for lk.salyk.kg [01:57:47]CommunicateWithHost connect error [01:57:47]CommunicateWithHost err = -1 [01:57:47]OFD Sender: Server communicate error [01:57:52]OFD Sender: Processing packet 49568 [packets to send 21, broken 20] [01:57:52]ProducePacketName [01:57:52]name=ofd_packets/00049568 [01:57:52]OFD Sender: To server: pG, [01:57:52]CommunicateWithHost lk.salyk.kg:30040 [01:57:52]ConnectInit lk.salyk.kg [01:57:57]ConnectInit Can't take IP for lk.salyk.kg [01:57:57]CommunicateWithHost connect error [01:57:57]CommunicateWithHost err = -1 [01:57:57]OFD Sender: Server communicate error [01:58:02]OFD Sender: Processing packet 49568 [packets to send 21, broken 20] [01:58:02]ProducePacketName [01:58:02]name=ofd_packets/00049568 [01:58:02]OFD Sender: To server: pG, [01:58:02]CommunicateWithHost lk.salyk.kg:30040 [01:58:02]ConnectInit lk.salyk.kg [01:58:03]Connected sock=9 [01:58:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 04 02 00 00 43 47 FC 01 B8 FF 5A 03 01 00 03 00 F0 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 19 00 00 00 00 13 04 06 00 64 19 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 39 35 32 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 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 00 00 00 F4 03 04 00 65 01 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A0 C1 00 00 35 04 06 00 5E 83 1C 8B 75 43 78 C7 96 E4 D7 84 C0 28 [01:58:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 F6 A6 47 00 5D 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 38 37 31 38 30 30 10 04 04 00 A0 C1 00 00 F4 03 04 00 E7 AE BF 66 B6 04 01 00 00 B4 6B 4C 33 75 67 23 A2 [01:58:03]CommunicateWithHost err = 0 [01:58:03]CheckOFDResponse [01:58:03]1017 (14) - 77093643461234 [01:58:03]1041 (16) - 0000000000871800 [01:58:03]1040 (4) - 49568 [01:58:03]1012 (4) - 16.08.2024 19:56 [01:58:03]1206 (1) - 0 [01:58:03]OFD Sender: Remove packet 49568 [01:58:03]ProducePacketName [01:58:03]name=ofd_packets/00049568 [01:58:03]NVStorageDeleteData [01:58:03]OFD Sender: No OFD packet to send [01:58:08]OFD Sender: No OFD packet to send [01:58:13]OFD Sender: No OFD packet to send [01:58:16]accept exits with 7 [01:58:16]New connection [01:58:16]New thread 3066801508 created [01:58:16]Thread 3066944868 joined [01:58:16]Waiting for new connection... [01:58:16] Sock 7.Parse request [01:58:16]Sock 7.Check first char [01:58:16]Sock 7.First char is OK [01:58:16]request: POST /json_proto HTTP/1.0 [01:58:16]Method: POST [01:58:16]URL: /json_proto [01:58:16]Method is POST - this is cgi request [01:58:16]url: /json_proto [01:58:16]query_string will be loaded in cgi processing [01:58:16]execute_cgi json_proto POST (null) [01:58:16]execute_cgi path=json_proto method=POST [01:58:16]POST find Content-Length [01:58:16]Host: 172.17.46.196:8080 [01:58:16]Content-Length: 953 [01:58:16]Content-Type: application/json [01:58:16] [01:58:16]POST finish read [01:58:16]Found Content-Length = 953 [01:58:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189770", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:58:16]execute_script... [01:58:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)189770", "tax_sys" : 0, "items" : [ { "code": "5449000189356", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:58:16]POST & json_proto [01:58:16]process_json_proto [01:58:16]json parsed OK: [01:58:16]protocol is kg_v1.0 [01:58:16]action value=close_receipt [01:58:16]process_action close_receipt [01:58:16]cmd_close_receipt [01:58:16]MH_GetDate [01:58:16]Write to MH i2c: F0 00 00 32 0B 2C [01:58:16]Write i2c OK [01:58:16]MH_I2C_Read... [01:58:16]Read from MH i2c: F0 [01:58:16]MH_I2C_Read... [01:58:16]Read from MH i2c: F0 09 00 [01:58:16]MH_I2C_Read... [01:58:16]Read from MH i2c: F0 09 00 32 0B 00 B9 03 C0 66 07 E8 5D 66 C9 [01:58:16]GetLastDocTimeStamp 1723859301 [01:58:16]current date 1723859897 [01:58:16]FM_GetShiftState [01:58:16]SAM_PROTO_GetShiftState [01:58:16]wFMCommunicate request_size=4 [01:58:16]MH_SAM_APDU [01:58:16]CAPDU: 80 13 01 00 [01:58:16]Write to MH i2c: E2 08 00 33 0B 80 13 01 00 00 00 00 00 BB [01:58:16]Write i2c OK [01:58:16]MH_I2C_Read... [01:58:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:58:16]Read from MH i2c: E2 [01:58:16]MH_I2C_Read... [01:58:16]Read from MH i2c: E2 0E 00 [01:58:16]MH_I2C_Read... [01:58:16]Read from MH i2c: E2 0E 00 33 0B 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 00 [01:58:16]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [01:58:16]wFMCommunicate OK [01:58:16]SAM_PROTO_GetShiftState done [01:58:16]FM_GetShiftState done [01:58:16]opened in 1723853354 [01:58:16]opened+sec_in_day 1723939754 [01:58:16]quantity*price = 12000 [01:58:16]sum+1 = 12001 [01:58:16]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 95 "Партнер Нефть" Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 СНО: Общий режим Чек 6 17.08.2024 01:58 Смена: 465 ФФД: 1.0 ЗНМ: 0300000078 РНМ: 0000000000092546 Версия ККМ: 001 ФМ: 0000000000871800 ФД: 49569 ФПД: 104432322447943 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T015817&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49569&fm=104432322447943&tin=02508201610067®Number=0000000000092546&sum=17000 0 [01:58:17]StoreToDocumentArchive [01:58:17]shift 465 fd 49569 [01:58:17]save to /storage/0465/doc_00049569 [01:58:17]save last doc name /storage/0465/doc_00049569 to /storage/kkm_last_doc_name [01:58:17]save OK [01:58:17]Clear old archive folders... [01:58:17]ProcessDocumentItem done err = 0, tmpTLVsize=397 [01:58:17]tlvbuf is 017FB9D0 [01:58:17]SAM_PROTO_ClearQueue [01:58:17]wFMCommunicate request_size=4 [01:58:17]MH_SAM_APDU [01:58:17]CAPDU: 80 09 00 00 [01:58:17]Write to MH i2c: E2 08 00 40 0B 80 09 00 00 00 00 00 00 BD [01:58:17]Write i2c OK [01:58:17]MH_I2C_Read... [01:58:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:58:17]Read from MH i2c: E2 [01:58:17]MH_I2C_Read... [01:58:17]Read from MH i2c: E2 03 00 [01:58:17]MH_I2C_Read... [01:58:17]Read from MH i2c: E2 03 00 40 0B 00 90 00 BF [01:58:17]RAPDU: 90 00 [01:58:17]wFMCommunicate OK [01:58:17]SAM_PROTO_ClearQueue done [01:58:17]KKMCreateOFDPacket [01:58:17]OFDProtocolAddRootSTLVToBuf [01:58:17]FM_MakeSignedData [01:58:17]FM_MakeSignedData [01:58:17]SAM_PROTO_SignData [01:58:17]wFMCommunicate request_size=4 [01:58:17]MH_SAM_APDU [01:58:17]CAPDU: 80 0D 01 02 [01:58:17]Write to MH i2c: E2 08 00 41 0B 80 0D 01 02 00 00 00 00 C5 [01:58:17]Write i2c OK [01:58:17]MH_I2C_Read... [01:58:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:58:17]Read from MH i2c: E2 [01:58:17]MH_I2C_Read... [01:58:17]Read from MH i2c: E2 03 00 [01:58:17]MH_I2C_Read... [01:58:17]Read from MH i2c: E2 03 00 41 0B 00 90 00 C0 [01:58:17]RAPDU: 90 00 [01:58:17]wFMCommunicate OK [01:58:17]wFMCommunicate request_size=255 [01:58:17]MH_SAM_APDU [01:58:17]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 [01:58:17]Write to MH i2c: E2 02 01 42 0B 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 00 00 09 [01:58:17]Write i2c OK [01:58:17]MH_I2C_Read... [01:58:17]Read from MH i2c: E2 [01:58:17]MH_I2C_Read... [01:58:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:58:17]Read from MH i2c: E2 03 00 [01:58:17]MH_I2C_Read... [01:58:17]Read from MH i2c: E2 03 00 42 0B 00 90 00 C1 [01:58:17]RAPDU: 90 00 [01:58:17]wFMCommunicate OK [01:58:17]wFMCommunicate request_size=156 [01:58:17]MH_SAM_APDU [01:58:17]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 B9 03 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A1 C1 00 00 35 04 06 00 5E FB 0B 7B 8A 47 [01:58:17]Write to MH i2c: E2 9F 00 43 0B 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 B9 03 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A1 C1 00 00 35 04 06 00 5E FB 0B 7B 8A 47 00 00 38 [01:58:17]Write i2c OK [01:58:17]MH_I2C_Read... [01:58:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:58:18]Read from MH i2c: E2 [01:58:18]MH_I2C_Read... [01:58:18]Read from MH i2c: E2 03 00 [01:58:18]MH_I2C_Read... [01:58:18]Read from MH i2c: E2 03 00 43 0B 00 90 00 C2 [01:58:18]RAPDU: 90 00 [01:58:18]wFMCommunicate OK [01:58:18]wFMCommunicate request_size=4 [01:58:18]MH_SAM_APDU [01:58:18]CAPDU: 80 0D 03 02 [01:58:18]Write to MH i2c: E2 08 00 44 0B 80 0D 03 02 00 00 00 00 CA [01:58:18]Write i2c OK [01:58:18]MH_I2C_Read... [01:58:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:58:18]Read from MH i2c: E2 [01:58:18]MH_I2C_Read... [01:58:18]Read from MH i2c: E2 0B 00 [01:58:18]MH_I2C_Read... [01:58:18]Read from MH i2c: E2 0B 00 44 0B 00 93 7D DF E7 27 39 E4 6B 90 00 50 [01:58:18]RAPDU: 93 7D DF E7 27 39 E4 6B 90 00 [01:58:18]wFMCommunicate OK [01:58:18]SAM_PROTO_SignData done [01:58:18]FM_MakeSignedData done [01:58:18]CreateOFDProtocolMessage [01:58:18]wFMCommunicate request_size=4 [01:58:18]MH_SAM_APDU [01:58:18]CAPDU: 80 11 00 00 [01:58:18]Write to MH i2c: E2 08 00 45 0B 80 11 00 00 00 00 00 00 CA [01:58:18]Write i2c OK [01:58:18]MH_I2C_Read... [01:58:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:58:18]Read from MH i2c: E2 [01:58:18]MH_I2C_Read... [01:58:18]Read from MH i2c: E2 17 00 [01:58:18]MH_I2C_Read... [01:58:18]Read from MH i2c: E2 17 00 45 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 15 [01:58:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:58:18]wFMCommunicate OK [01:58:18]CreateOFDProtocolMessage done [01:58:18]OFDSenderStorePacket 49569 [01:58:18]StoreOFDPacket docnum=49569 [01:58:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A1 01 00 00 1A ED 99 01 20 8E 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 B9 03 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A1 C1 00 00 35 04 06 00 5E FB 0B 7B 8A 47 93 7D DF E7 27 39 E4 6B [01:58:18]CheckFolder [01:58:18]dirname=/storage/ofd_packets [01:58:18]CheckFolder done [01:58:18]ProducePacketName [01:58:18]name=ofd_packets/00049569 [01:58:18]NVStorageSaveData ofd_packets/00049569 [01:58:18]File name is /storage/ofd_packets/00049569 [01:58:18]Write 447 bytes [01:58:18]NVStorageSaveData done [01:58:18]OFDSenderStorePacket done [01:58:18]KKMCreateOFDPacket done [01:58:18]NVStorageSaveData kkm_last_timestamp [01:58:18]File name is /storage/kkm_last_timestamp [01:58:18]Write 4 bytes [01:58:18]NVStorageSaveData done [01:58:18]ExternCall_PrintAddStr [01:58:18]wPrintStart [01:58:18]Write to MH i2c: 01 00 00 46 0B 51 [01:58:18]Write i2c OK [01:58:18]MH_I2C_Read... [01:58:18]Read from MH i2c: 01 [01:58:18]MH_I2C_Read... [01:58:18]Read from MH i2c: 01 07 00 [01:58:18]MH_I2C_Read... [01:58:18]Read from MH i2c: 01 07 00 46 0B 00 00 00 00 00 FF 0F 66 [01:58:18]RasterBufferAndPrint [01:58:18]line Счет N : (3)189770 [01:58:18]line ИНН: 02508201610067 [01:58:18]line Контрольно-Кассовый Чек [01:58:18]line ПРОДАЖА [01:58:18]line Товар: 5449000189356 [01:58:18]line Холодный чай Fuse манго ананас 1л [01:58:18]line 1.000 * 120.00 [01:58:18]line = 120.00 [01:58:18]line НДС 12% НСП 1% [01:58:18]line > о реализуемом товаре [01:58:18]line Товар: 4700000160358 [01:58:18]line Вода Легенда 1л [01:58:18]line 1.000 * 50.00 [01:58:18]line = 50.00 [01:58:18]line НДС 12% НСП 1% [01:58:18]line > о реализуемом товаре [01:58:18]line ИТОГО: 170.00 [01:58:18]line НСП 1% : 1.50 [01:58:18]line НДС 12% : 18.05 [01:58:18]line Наличными: 170.00 [01:58:18]line Безнал.: 0.00 [01:58:18]line Место: АЗС № 95 "Партнер Нефть" [01:58:18]line Адрес: 720001, г. Ош, ул. Раззакова 2 Б, 40.568018, 72.807149 [01:58:18]line СНО: Общий режим [01:58:18]line Чек 6 17.08.2024 01:58 [01:58:18]line Смена: 465 ФФД: 1.0 [01:58:18]line ЗНМ: 0300000078 [01:58:18]line РНМ: 0000000000092546 [01:58:18]line Версия ККМ: 001 [01:58:18]line ФМ: 0000000000871800 [01:58:18]line ФД: 49569 [01:58:18]line ФПД: 104432322447943 [01:58:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20240817T015817&type=1&operation_type=1&fn_number=0000000000871800&fd_number=49569&fm=104432322447943&tin=02508201610067®Number=0000000000092546&sum=17000 [01:58:18]line 0 [01:58:18]OFD Sender: Processing packet 49569 [packets to send 21, broken 20] [01:58:18]ProducePacketName [01:58:18]name=ofd_packets/00049569 [01:58:18]OFD Sender: To server: pG, [01:58:18]CommunicateWithHost lk.salyk.kg:30040 [01:58:18]ConnectInit lk.salyk.kg [01:58:18]written 0, free lines is 4095 [01:58:18]Connected sock=10 [01:58:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 A1 01 00 00 1A ED 99 01 20 8E 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 35 36 06 04 38 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 B9 03 C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A1 C1 00 00 35 04 06 00 5E FB 0B 7B 8A 47 93 7D DF E7 27 39 E4 6B [01:58:18]Write to MH i2c: 01 00 00 75 0B 80 [01:58:18]Write i2c OK [01:58:18]MH_I2C_Read... [01:58:18]Read from MH i2c: 01 [01:58:18]MH_I2C_Read... [01:58:18]Read from MH i2c: 01 07 00 [01:58:18]MH_I2C_Read... [01:58:18]Read from MH i2c: 01 07 00 75 0B 00 00 00 00 00 7B 0C 0E [01:58:18]RasterBufferAndPrint [01:58:18]line [01:58:18]line [01:58:18]line [01:58:18]line [01:58:18]line [01:58:18]written 0, free lines is 3201 [01:58:18]MH_Cut [01:58:18]Write to MH i2c: D1 01 00 7C 0B 01 59 [01:58:18]Write i2c OK [01:58:18]MH_I2C_Read... [01:58:18]Read from MH i2c: D1 [01:58:18]MH_I2C_Read... [01:58:18]Read from MH i2c: D1 01 00 [01:58:18]MH_I2C_Read... [01:58:18]Read from MH i2c: D1 01 00 7C 0B 00 58 [01:58:18]Write to MH i2c: 01 00 00 7D 0B 88 [01:58:18]Write i2c OK [01:58:18]MH_I2C_Read... [01:58:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 D1 2B 47 00 94 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A1 C1 00 00 F4 03 04 00 F7 AE BF 66 B6 04 01 00 00 21 47 EC C5 45 D4 E8 FE [01:58:19]CommunicateWithHost err = 0 [01:58:19]CheckOFDResponse [01:58:19]1017 (14) - 77093643461234 [01:58:19]1041 (16) - 0000000000871800 [01:58:19]1040 (4) - 49569 [01:58:19]1012 (4) - 16.08.2024 19:56 [01:58:19]1206 (1) - 0 [01:58:19]OFD Sender: Remove packet 49569 [01:58:19]ProducePacketName [01:58:19]name=ofd_packets/00049569 [01:58:19]NVStorageDeleteData [01:58:19]OFD Sender: No OFD packet to send [01:58:19]*** Cut start [01:58:19]*** Purtial cut [01:58:19]*** CUTSNS_PIN = 0 [01:58:20]*** Stage 1: CUTSNS_PIN = 1 [01:58:21]Read from MH i2c: 01 [01:58:21]MH_I2C_Read... [01:58:21]*** Stop cut motor [01:58:21]*** Cut end [01:58:21]Read from MH i2c: 01 07 00 [01:58:21]MH_I2C_Read... [01:58:21]Read from MH i2c: 01 07 00 7D 0B 00 00 00 00 00 FF 0F 9D [01:58:21]process_action close_receipt done [01:58:21]requested_data is exist [01:58:21]produce_requested_data [01:58:21]requested_item fm.sn is exist - process it [01:58:21]wFMCommunicate request_size=4 [01:58:21]MH_SAM_APDU [01:58:21]CAPDU: 80 11 00 00 [01:58:21]Write to MH i2c: E2 08 00 7E 0B 80 11 00 00 00 00 00 00 03 [01:58:21]Write i2c OK [01:58:21]MH_I2C_Read... [01:58:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:58:21]Read from MH i2c: E2 [01:58:21]MH_I2C_Read... [01:58:21]Read from MH i2c: E2 17 00 [01:58:21]MH_I2C_Read... [01:58:21]Read from MH i2c: E2 17 00 7E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 4E [01:58:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 90 00 [01:58:21]wFMCommunicate OK [01:58:21]requested_item fd.num is exist - process it [01:58:21]SAM_PROTO_GetFieldsCounters [01:58:21]wFMCommunicate request_size=4 [01:58:21]MH_SAM_APDU [01:58:21]CAPDU: 80 13 00 00 [01:58:21]Write to MH i2c: E2 08 00 7F 0B 80 13 00 00 00 00 00 00 06 [01:58:21]Write i2c OK [01:58:21]MH_I2C_Read... [01:58:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:58:22]Read from MH i2c: E2 [01:58:22]MH_I2C_Read... [01:58:22]Read from MH i2c: E2 62 00 [01:58:22]MH_I2C_Read... [01:58:22]Read from MH i2c: E2 62 00 7F 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A1 C1 00 00 0E 04 04 00 D1 01 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 66 [01:58:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 10 04 04 00 A1 C1 00 00 0E 04 04 00 D1 01 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 [01:58:22]wFMCommunicate OK [01:58:22]SAM_PROTO_GetFieldsCounters done [01:58:22]requested_item shift.num is exist - process it [01:58:22]requested_item shift.opened is exist - process it [01:58:22]req_shift_opened [01:58:22]FM_GetShiftState [01:58:22]SAM_PROTO_GetShiftState [01:58:22]wFMCommunicate request_size=4 [01:58:22]MH_SAM_APDU [01:58:22]CAPDU: 80 13 01 00 [01:58:22]Write to MH i2c: E2 08 00 80 0B 80 13 01 00 00 00 00 00 08 [01:58:22]Write i2c OK [01:58:22]MH_I2C_Read... [01:58:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:58:22]Read from MH i2c: E2 [01:58:22]MH_I2C_Read... [01:58:22]Read from MH i2c: E2 0E 00 [01:58:22]MH_I2C_Read... [01:58:22]Read from MH i2c: E2 0E 00 80 0B 00 09 00 01 2A EA BF 66 00 00 00 00 90 00 4D [01:58:22]RAPDU: 09 00 01 2A EA BF 66 00 00 00 00 90 00 [01:58:22]wFMCommunicate OK [01:58:22]SAM_PROTO_GetShiftState done [01:58:22]FM_GetShiftState done [01:58:22]req_shift_opened done [01:58:22]requested_item shift.open_date is exist - process it [01:58:22]req_shift_open_date [01:58:22]req_shift_open_date done [01:58:22]produce_requested_data done [01:58:22]produce_requested_data return {"fm.sn":"0000000000871800","fd.num":49569,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354} [01:58:22]process_action_free close_receipt [01:58:22]json_value_free [01:58:22]json_value_free done [01:58:22]process_json_proto returns [01:58:22]Send response to host [01:58:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000871800","fd.num":49569,"shift.num":465,"shift.opened":1,"shift.open_date":1723853354}}} [01:58:22]free response buf [01:58:22]execute_script done [01:58:22]execute_script returns [01:58:22]free content buf [01:58:22]Sock 7.Close socket [01:58:22]Sock 7.Thread stoped [01:58:24]OFD Sender: No OFD packet to send [01:58:29]OFD Sender: No OFD packet to send [01:58:34]OFD Sender: No OFD packet to send [01:58:39]OFD Sender: No OFD packet to send [01:58:44]OFD Sender: No OFD packet to send [01:58:49]OFD Sender: No OFD packet to send [01:58:54]OFD Sender: No OFD packet to send [02:06:01]ConnectInit Can't connect to host [02:06:04]OFD Sender: No OFD packet to send [02:06:09]OFD Sender: No OFD packet to send [02:06:14]OFD Sender: No OFD packet to send [02:06:19]OFD Sender: No OFD packet to send [02:06:24]OFD Sender: No OFD packet to send [02:06:29]OFD Sender: No OFD packet to send [02:06:34]OFD Sender: No OFD packet to send [02:06:39]OFD Sender: No OFD packet to send [02:06:44]OFD Sender: No OFD packet to send [02:06:49]OFD Sender: No OFD packet to send [02:06:54]OFD Sender: No OFD packet to send [02:06:59]OFD Sender: No OFD packet to send [02:07:04]OFD Sender: No OFD packet to send [02:07:09]OFD Sender: No OFD packet to send [02:07:14]OFD Sender: No OFD packet to send [02:07:19]OFD Sender: No OFD packet to send [02:07:24]OFD Sender: No OFD packet to send [02:07:29]OFD Sender: No OFD packet to send [02:07:34]OFD Sender: No OFD packet to send [02:07:39]OFD Sender: No OFD packet to send [02:07:44]OFD Sender: No OFD packet to send [02:07:49]OFD Sender: No OFD packet to send [02:07:54]OFD Sender: No OFD packet to send [02:07:59]OFD Sender: No OFD packet to send [02:08:04]OFD Sender: No OFD packet to send [02:08:09]OFD Sender: No OFD packet to send [02:08:14]OFD Sender: No OFD packet to send [02:08:19]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:45]OFD Sender: No OFD packet to send [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:32:53]ConnectInit Can't connect to host [02:32:56]OFD Sender: Processing packet 49570 [packets to send 21, broken 20] [02:32:56]ProducePacketName [02:32:56]name=ofd_packets/00049570 [02:32:56]OFD Sender: To server: pG, [02:32:56]CommunicateWithHost lk.salyk.kg:30040 [02:32:56]ConnectInit lk.salyk.kg [02:35:09]ConnectInit Can't connect to host [02:35:09]CommunicateWithHost connect error [02:35:09]CommunicateWithHost err = -1 [02:35:09]OFD Sender: Server communicate error [02:35:14]OFD Sender: Processing packet 49570 [packets to send 21, broken 20] [02:35:14]ProducePacketName [02:35:14]name=ofd_packets/00049570 [02:35:14]OFD Sender: To server: pG, [02:35:14]CommunicateWithHost lk.salyk.kg:30040 [02:35:14]ConnectInit lk.salyk.kg [02:35:14]Connected sock=9 [02:35:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 2E 01 00 00 40 26 26 01 8B 45 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 32 37 32 37 33 38 32 34 06 04 28 00 D0 9B D0 B8 D0 BC D0 BE D0 BD D0 B0 D0 B4 20 53 75 6E 62 65 6C 20 D0 9C D0 BE D1 85 D0 B8 D1 82 D0 BE 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 15 00 00 00 00 13 04 06 00 7C 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 15 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 48 02 00 00 00 00 07 04 06 00 7C 15 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 23 0B C0 66 0E 04 04 00 D1 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 32 35 34 36 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 10 04 04 00 A2 C1 00 00 35 04 06 00 60 48 19 91 46 F8 68 24 E4 6C ED 7C FE C2 [02:35:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 31 38 30 30 4F 00 00 00 4C 08 47 00 04 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 38 37 31 38 30 30 10 04 04 00 A2 C1 00 00 F4 03 04 00 9E B7 BF 66 B6 04 01 00 00 20 54 19 8D 4E F0 BF 01 [02:35:14]CommunicateWithHost err = 0 [02:35:14]CheckOFDResponse [02:35:14]1017 (14) - 77093643461234 [02:35:14]1041 (16) - 0000000000871800 [02:35:14]1040 (4) - 49570 [02:35:14]1012 (4) - 16.08.2024 20:33 [02:35:14]1206 (1) - 0 [02:35:14]OFD Sender: Remove packet 49570 [02:35:14]ProducePacketName [02:35:14]name=ofd_packets/00049570 [02:35:14]NVStorageDeleteData [02:35:14]OFD Sender: No OFD packet to send [02:35:19]OFD Sender: No OFD packet to send [02:35:24]OFD Sender: No OFD packet to send [02:35:29]OFD Sender: No OFD packet to send [02:35:34]OFD Sender: No OFD packet to send [02:35:39]OFD Sender: No OFD packet to send [02:35:44]OFD Sender: No OFD packet to send [02:35:50]OFD Sender: No OFD packet to send [02:35:55]OFD Sender: No OFD packet to send [02:36:00]OFD Sender: No OFD packet to send [02:36:05]OFD Sender: No OFD packet to send [02:36:10]OFD Sender: No OFD packet to send [02:36:15]OFD Sender: No OFD packet to send [02:36:20]OFD Sender: No OFD packet to send [02:36:25]OFD Sender: No OFD packet to send [02:36:30]OFD Sender: No OFD packet to send [02:36:35]OFD Sender: No OFD packet to send [02:36:40]OFD Sender: No OFD packet to send [02:36:45]OFD Sender: No OFD packet to send [02:36:50]OFD Sender: No OFD packet to send [02:36:55]OFD Sender: No OFD packet to send [02:37:00]OFD Sender: No OFD packet to send [02:37:05]OFD Sender: No OFD packet to send [02:37:10]OFD Sender: No OFD packet to send [02:37:15]OFD Sender: No OFD packet to send [02:37:20]OFD Sender: No OFD packet to send [02:37:25]OFD Sender: No OFD packet to send [02:37:30]OFD Sender: No OFD packet to send [02:37:35]OFD Sender: No OFD packet to send [02:37:40]OFD Sender: No OFD packet to send [02:37:45]OFD Sender: No OFD packet to send [02:37:50]OFD Sender: No OFD packet to send [02:37:55]OFD Sender: No OFD packet to send [02:38:00]OFD Sender: No OFD packet to send [02:38:05]OFD Sender: No OFD packet to send [02:38:10]OFD Sender: No OFD packet to send [02:38:15]OFD Sender: No OFD packet to send [02:38:20]OFD Sender: No OFD packet to send [02:38:25]OFD Sender: No OFD packet to send [02:38:30]OFD Sender: No OFD packet to send [02:38:35]OFD Sender: No OFD packet to send [02:38:40]OFD Sender: No OFD packet to send [02:38:45]OFD Sender: No OFD packet to send [02:38:50]OFD Sender: No OFD packet to send [02:38:55]OFD Sender: No OFD packet to send [02:39:00]OFD Sender: No OFD packet to send [02:39:05]OFD Sender: No OFD packet to send [02:39:10]OFD Sender: No OFD packet to send [02:39:15]OFD Sender: No OFD packet to send [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39:40]OFD Sender: No OFD packet to send [02:39:45]OFD Sender: No OFD packet to send [02:39:50]OFD Sender: No OFD packet to send [02:39:55]OFD Sender: No OFD packet to send [02:40:00]OFD Sender: No OFD packet to send [02:40:05]OFD Sender: No OFD packet to send [02:40:10]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:40]OFD Sender: No OFD packet to send [02:40:45]OFD Sender: No OFD packet to send [02:40:50]OFD Sender: No OFD packet to send [02:40:55]OFD Sender: No OFD packet to send [02:41:00]OFD Sender: No OFD packet to send [02:41:05]OFD Sender: No OFD packet to send [02:41:10]OFD Sender: No OFD packet to send [02:41:15]OFD Sender: No OFD packet to send [02:41:20]OFD Sender: No OFD packet to send [02:41:25]OFD Sender: No OFD packet to send [02:41:30]OFD Sender: No OFD packet to send [02:41:35]OFD Sender: No OFD packet to send [02:41:40]OFD Sender: No OFD packet to send [02:41:45]OFD Sender: No OFD packet to send [02:41:50]OFD Sender: No OFD packet to send [02:41:55]OFD Sender: No OFD packet to send [02:42:00]OFD Sender: No OFD packet to send [02:42:05]OFD Sender: No OFD packet to send [02:42:10]OFD Sender: No OFD packet to send [02:42:15]OFD Sender: No OFD packet to send [02:42:20]OFD Sender: No OFD packet to send [02:42:25]OFD Sender: No OFD packet to send [02:42:30]OFD Sender: No OFD packet to send [02:42:35]OFD Sender: No OFD packet to send [02:42:40]OFD Sender: No OFD packet to send [02:42:45]OFD Sender: No OFD packet to send [02:42:50]OFD Sender: No OFD packet to send [02:42:55]OFD Sender: No OFD packet to send [02:43:00]OFD Sender: No OFD packet to send [02:43:05]OFD Sender: No OFD packet to send [02:43:10]OFD Sender: No OFD packet to send [02:43:15]OFD Sender: No OFD packet to send [02:43:20]OFD Sender: No OFD packet to send [02:43:25]OFD Sender: No OFD packet to send [02:43:30]OFD Sender: No OFD packet to send [02:43:35]OFD Sender: No OFD packet to send [02:43:40]OFD Sender: No OFD packet to send [02:43:45]OFD Sender: No OFD packet to send [02:43:50]OFD Sender: No OFD packet to send [02:43:55]OFD Sender: No OFD packet to send [02:44:00]OFD Sender: No OFD packet to send [02:44:05]OFD Sender: No OFD packet to send [02:44:10]OFD Sender: No OFD packet to send [02:44:15]OFD Sender: No OFD packet to send [02:44:20]OFD Sender: No OFD packet to send [02:44:25]OFD Sender: No OFD packet to send [02:44:30]OFD Sender: No OFD packet to send [02:44:35]OFD Sender: No OFD packet to send [02:44:40]OFD Sender: No OFD packet to send [02:44:45]OFD Sender: No OFD packet to send [02:44:50]OFD Sender: No OFD packet to send [02:44:55]OFD Sender: No OFD packet to send [02:45:00]OFD Sender: No OFD packet to send [02:45:05]OFD Sender: No OFD packet to send [02:45:10]OFD Sender: No OFD packet to send [02:45:15]OFD Sender: No OFD packet to send [02:45:20]OFD Sender: No OFD packet to send [02:45:25]OFD Sender: No OFD packet to send [02:45:30]OFD Sender: No OFD packet to send [02:45:35]OFD Sender: No OFD packet to send [02:45:40]OFD Sender: No OFD packet to send [02:45:45]OFD Sender: No OFD packet to send [02:45:50]OFD Sender: No OFD packet to send [02:45:55]OFD Sender: No OFD packet to send [02:46:00]OFD Sender: No OFD packet to send [02:46:05]OFD Sender: No OFD packet to send [02:46:10]OFD Sender: No OFD packet to send [02:46:15]OFD Sender: No OFD packet to send [02:46:20]OFD Sender: No OFD packet to send [02:46:25]OFD Sender: No OFD packet to send [02:46:30]OFD Sender: No OFD packet to send [02:46:35]OFD Sender: No OFD packet to send [02:46:40]OFD Sender: No OFD packet to send [02:46:45]OFD Sender: No OFD packet to send [02:46:50]OFD Sender: No OFD packet to send [02:46:55]OFD Sender: No OFD packet to send [02:47:00]OFD Sender: No OFD packet to send [02:47:05]OFD Sender: No OFD packet to send [02:47:10]OFD Sender: No OFD packet to send [02:47:15]OFD Sender: No OFD packet to send [02:47:20]OFD Sender: No OFD packet to send [02:47:25]OFD Sender: No OFD packet to send [02:47:30]OFD Sender: No OFD packet to send [02:47:35]OFD Sender: No OFD packet to send [02:47:40]OFD Sender: No OFD packet to send [02:47:45]OFD Sender: No OFD packet to send [02:47:50]OFD Sender: No OFD packet to send [02:47:55]OFD Sender: No OFD packet to send [02:48:00]OFD Sender: No OFD packet to send [02:48:05]OFD Sender: No OFD packet to send [02:48:10]OFD Sender: No OFD packet to send [02:48:15]OFD Sender: No OFD packet to send [02:48:20]OFD Sender: No OFD packet to send [02:48:25]OFD Sender: No OFD packet to send [02:48:30]OFD Sender: No OFD packet to send [02:48:35]OFD Sender: No OFD packet to send [02:48:40]OFD Sender: No OFD packet to send [02:56:36]ConnectInit Can't connect to host [02:56:41]OFD Sender: No OFD packet to send [02:56:46]OFD Sender: No OFD packet to send [02:56:51]OFD Sender: No OFD packet to send [02:56:56]OFD Sender: No OFD packet to send [02:57:01]OFD Sender: No OFD packet to send [02:57:06]OFD Sender: No OFD packet to send [02:57:11]OFD Sender: No OFD packet to send [02:57:16]OFD Sender: No OFD packet to send [02:57:21]OFD Sender: No OFD packet to send [02:57:26]OFD Sender: No OFD packet to send [02:57:31]OFD Sender: No OFD packet to send [02:57:36]OFD Sender: No OFD packet to send [02:57:41]OFD Sender: No OFD packet to send [02:57:46]OFD Sender: No OFD packet to send [02:57:51]OFD Sender: No OFD packet to send [02:57:56]OFD Sender: No OFD packet to send [02:58:01]OFD Sender: No OFD packet to send [02:58:06]OFD Sender: No OFD packet to send [02:58:11]OFD Sender: No OFD packet to send [02:58:16]OFD Sender: No OFD packet to send [02:58:21]OFD Sender: No OFD packet to send [02:58:26]OFD Sender: No OFD packet to send [02:58:31]OFD Sender: No OFD packet to send [02:58:36]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [03:00:31]OFD Sender: No OFD packet to send [03:00:36]OFD Sender: No OFD packet to send [03:00:41]OFD Sender: No OFD packet to send [03:00:46]OFD Sender: No OFD packet to send [03:00:51]OFD Sender: No OFD packet to send [03:00:56]OFD Sender: No OFD packet to send [03:01:01]OFD Sender: No OFD packet to send [03:01:06]OFD Sender: No OFD packet to send [03:01:11]OFD Sender: No OFD packet to send [03:01:16]OFD Sender: No OFD packet to send [03:01:21]OFD Sender: No OFD packet to send [03:01:26]OFD Sender: No OFD packet to send [03:01:31]OFD Sender: No OFD packet to send [03:01:36]OFD Sender: No OFD packet to send